infinity-forge 10.9.1 → 10.9.4
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/README.md +20 -0
- package/dist/system/context/auth/components/login/index.js +1 -1
- package/dist/system/context/auth/components/login/index.js.map +1 -1
- package/dist/system/context/infra-injection/interfaces.d.ts +1 -0
- package/dist/test/index.js +8 -6
- package/dist/test/index.js.map +1 -1
- package/dist/ui/atena/presentation/site-configurations/atena-ssr-site.d.ts +19 -0
- package/dist/ui/atena/presentation/site-configurations/atena-ssr-site.js +102 -0
- package/dist/ui/atena/presentation/site-configurations/atena-ssr-site.js.map +1 -1
- package/dist/ui/atena/presentation/site-configurations/use-site-configurations.d.ts +9 -0
- package/dist/ui/atena/presentation/site-configurations/use-site-configurations.js.map +1 -1
- package/dist/ui/components/form/interfaces.d.ts +4 -1
- package/dist/ui/components/form/radio/index.d.ts +3 -2
- package/dist/ui/components/form/radio/index.js +8 -3
- package/dist/ui/components/form/radio/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": ["src/**/*", "styled.d.ts"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"lib": ["es2021", "dom"],
|
|
5
|
+
"types": ["node"],
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"baseUrl": "./src",
|
|
8
|
+
"outDir": "./dist",
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"paths": {
|
|
12
|
+
"@/*": ["./*"]
|
|
13
|
+
},
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"moduleResolution": "node",
|
|
16
|
+
"skipLibCheck": true
|
|
17
|
+
},
|
|
18
|
+
"afterDeclarations": true
|
|
19
|
+
}
|
|
20
|
+
|
|
1
21
|
# Infinity Forge
|
|
2
22
|
|
|
3
23
|
Uma biblioteca abrangente React/Next.js da **Codie Digital** que fornece um poderoso sistema de gerenciamento de conteúdo chamado **Atena** para construir sites dinâmicos e editáveis.
|
|
@@ -42,6 +42,6 @@ var S = __importStar(require("./styles.js"));
|
|
|
42
42
|
function Login() {
|
|
43
43
|
var _a, _b;
|
|
44
44
|
var Configurations = (0, infra_injection_1.useInfraInjection)().Configurations;
|
|
45
|
-
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' }) })] }) }));
|
|
45
|
+
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: Configurations.backgroundLoginLeft || '/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' }) })] }) }));
|
|
46
46
|
}
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/context/auth/components/login/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/context/auth/components/login/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,sBAqCC;;AA5CD,2BAAuC;AAEvC,2CAAwC;AACxC,4DAA4D;AAE5D,0CAA6B;AAE7B,SAAgB,KAAK;;IACX,IAAA,cAAc,GAAK,IAAA,mCAAiB,GAAE,eAAxB,CAAwB;IAE9C,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,OAAO,YACjB,wBAAC,CAAC,CAAC,KAAK,eACN,iCAAK,SAAS,EAAC,SAAS,aACtB,gCAAK,SAAS,EAAC,OAAO,GAAO,EAC7B,4CACE,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,cAAS,IAAC,GAAG,EAAE,cAAc,CAAC,mBAAmB,IAAI,wBAAwB,EAAE,GAAG,EAAC,GAAG,GAAG,GACtF,EAEN,gCAAK,SAAS,EAAC,MAAM,YACnB,+BAAI,SAAS,EAAC,cAAc,gCAAqB,GAC7C,EAEN,uBAAC,sBAAS,KAAG,IACT,EAEN,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,2DACa,GAAG,EACd,+BAAG,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAE,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,0CAAE,IAAI,aACrD,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,0CAAE,IAAI,SAC9B,EAAC,GAAG,qCAEH,GACH,IACF,EAEN,gCAAK,SAAS,EAAC,OAAO,YACpB,uBAAC,cAAS,IAAC,GAAG,EAAC,wBAAwB,EAAC,GAAG,EAAC,iBAAiB,GAAG,GAC5D,IACE,GACJ,CACT,CAAA;AACH,CAAC"}
|
package/dist/test/index.js
CHANGED
|
@@ -4,11 +4,13 @@ exports.NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro = NaoRemoverDaHomeUsadaPa
|
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
var ui_1 = require("../ui/index.js");
|
|
6
6
|
function NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.FormHandler, { children: (0, jsx_runtime_1.jsx)(ui_1.InputRadio, { name: 'test', options: [
|
|
8
|
+
{ label: '1', value: '1' },
|
|
9
|
+
{ label: '2', value: '2' },
|
|
10
|
+
], onChangeInput: function (value) {
|
|
11
|
+
if (value) {
|
|
12
|
+
window.alert(value);
|
|
13
|
+
}
|
|
14
|
+
} }) }));
|
|
13
15
|
}
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
package/dist/test/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;AAEA,wGAiBC;;AAlBD,2BAAwE;AACxE,SAAgB,8CAA8C;IAC5D,OAAO,CACL,uBAAC,gBAAW,cACV,uBAAC,eAAU,IACT,IAAI,EAAC,MAAM,EACX,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;gBAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;aAC3B,EACD,aAAa,EAAE,UAAC,KAAK;gBACnB,IAAI,KAAK,EAAE,CAAC;oBACV,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;gBACrB,CAAC;YACH,CAAC,GACD,GACU,CACf,CAAA;AACH,CAAC"}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { ConfigurationsSiteType } from './use-site-configurations.js';
|
|
3
|
+
import { InfinityForgeProvidersProps } from '../../../../system/index.js';
|
|
4
|
+
interface InfinityForgeProps {
|
|
5
|
+
pageProps: {
|
|
6
|
+
sections: any;
|
|
7
|
+
props: any;
|
|
8
|
+
configurations?: ConfigurationsSiteType;
|
|
9
|
+
};
|
|
10
|
+
configs: Omit<InfinityForgeProvidersProps, 'children' | 'queryClient' | 'i18n'>;
|
|
11
|
+
}
|
|
12
|
+
interface Result {
|
|
13
|
+
infinityForgeProvidersProps: Omit<InfinityForgeProvidersProps, 'children'>;
|
|
14
|
+
QueryProvider: ({ children }: {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export declare function useInfinityForgeProps({ pageProps, configs }: InfinityForgeProps): Result;
|
|
1
19
|
export declare const AtenaSSRSite: (ctx: any, configurations: {
|
|
2
20
|
ssrFunction?: () => any;
|
|
3
21
|
}) => Promise<{
|
|
@@ -14,3 +32,4 @@ export declare const AtenaSSRSite: (ctx: any, configurations: {
|
|
|
14
32
|
sections: any;
|
|
15
33
|
};
|
|
16
34
|
}>;
|
|
35
|
+
export {};
|
|
@@ -1,7 +1,109 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
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;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
2
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
50
|
exports.AtenaSSRSite = void 0;
|
|
51
|
+
exports.useInfinityForgeProps = useInfinityForgeProps;
|
|
52
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
53
|
+
var react_query_1 = require("@tanstack/react-query");
|
|
54
|
+
var utils_1 = require("../../../../ui/utils/index.js");
|
|
4
55
|
var dynamic_elements_1 = require("../dynamic-elements/index.js");
|
|
56
|
+
var queryClient = new react_query_1.QueryClient();
|
|
57
|
+
function useInfinityForgeProps(_a) {
|
|
58
|
+
var _this = this;
|
|
59
|
+
var _b, _c, _d;
|
|
60
|
+
var pageProps = _a.pageProps, configs = _a.configs;
|
|
61
|
+
var config = pageProps === null || pageProps === void 0 ? void 0 : pageProps.configurations;
|
|
62
|
+
var initialConfigurationsAdmin = (_c = (_b = pageProps === null || pageProps === void 0 ? void 0 : pageProps.sections) === null || _b === void 0 ? void 0 : _b.find(function (section) { return (section === null || section === void 0 ? void 0 : section.ref) === 'global_configurationadmin'; })) === null || _c === void 0 ? void 0 : _c.jsonContent;
|
|
63
|
+
var configurationsAdmin = initialConfigurationsAdmin ? JSON.parse(initialConfigurationsAdmin) : {};
|
|
64
|
+
var whatsapp = (config === null || config === void 0 ? void 0 : config.whatsappFixo) &&
|
|
65
|
+
(0, utils_1.generateWhatsappUrl)({
|
|
66
|
+
phoneNumber: config === null || config === void 0 ? void 0 : config.whatsappFixo,
|
|
67
|
+
countryCode: '55',
|
|
68
|
+
fixedPhone: true,
|
|
69
|
+
message: config.whatsappMessage,
|
|
70
|
+
});
|
|
71
|
+
return {
|
|
72
|
+
infinityForgeProvidersProps: __assign({ atena: pageProps, queryClient: queryClient, auth: { roles: { administradorMaster: {} } }, i18n: __assign({}, (_d = pageProps === null || pageProps === void 0 ? void 0 : pageProps.props) === null || _d === void 0 ? void 0 : _d.i18n), InjectedRemotes: {
|
|
73
|
+
users: {
|
|
74
|
+
getRole: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
75
|
+
var user;
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
switch (_a.label) {
|
|
78
|
+
case 0: return [4 /*yield*/, (0, utils_1.api)({ url: 'Users/me', method: 'get' })];
|
|
79
|
+
case 1:
|
|
80
|
+
user = _a.sent();
|
|
81
|
+
return [2 /*return*/, { role: user === null || user === void 0 ? void 0 : user.role, user: user }];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}); },
|
|
85
|
+
},
|
|
86
|
+
}, Configurations: {
|
|
87
|
+
backgroundLoginLeft: configurationsAdmin === null || configurationsAdmin === void 0 ? void 0 : configurationsAdmin.backgroundLoginLeft,
|
|
88
|
+
poweredBy: {
|
|
89
|
+
name: 'Codie',
|
|
90
|
+
link: 'https://codie.com.br/',
|
|
91
|
+
},
|
|
92
|
+
}, siteConfigurations: {
|
|
93
|
+
favicon: '/images/favicon.ico',
|
|
94
|
+
gtm: config === null || config === void 0 ? void 0 : config.googleGTM,
|
|
95
|
+
ua: config === null || config === void 0 ? void 0 : config.googleUA,
|
|
96
|
+
aw: config === null || config === void 0 ? void 0 : config.googleGA,
|
|
97
|
+
whatsappfixo: config === null || config === void 0 ? void 0 : config.whatsappFixo,
|
|
98
|
+
whatsapp: whatsapp,
|
|
99
|
+
pixelFacebook: config === null || config === void 0 ? void 0 : config.facebookPixel,
|
|
100
|
+
} }, configs),
|
|
101
|
+
QueryProvider: function (_a) {
|
|
102
|
+
var children = _a.children;
|
|
103
|
+
return (0, jsx_runtime_1.jsx)(react_query_1.QueryClientProvider, { client: queryClient, children: children });
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
|
5
107
|
var AtenaSSRSite = function (ctx, configurations) {
|
|
6
108
|
return (0, dynamic_elements_1.AtenaSSR)(ctx, {
|
|
7
109
|
ssrFunction: configurations === null || configurations === void 0 ? void 0 : configurations.ssrFunction,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atena-ssr-site.js","sourceRoot":"","sources":["../../../../../src/ui/atena/presentation/site-configurations/atena-ssr-site.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"atena-ssr-site.js","sourceRoot":"","sources":["../../../../../src/ui/atena/presentation/site-configurations/atena-ssr-site.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,sDAqDC;;AA9ED,qDAAwE;AAExE,oCAAqD;AAErD,wDAA8C;AAK9C,IAAM,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAA;AAgBrC,SAAgB,qBAAqB,CAAC,EAA0C;IAAhF,iBAqDC;;QArDuC,SAAS,eAAA,EAAE,OAAO,aAAA;IACxD,IAAM,MAAM,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAqB,CAAA;IAE/C,IAAM,0BAA0B,GAAG,MAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,0CAAE,IAAI,CAC1D,UAAC,OAAO,IAAK,OAAA,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,MAAK,2BAA2B,EAA5C,CAA4C,CAC1D,0CAAE,WAAW,CAAA;IAEd,IAAM,mBAAmB,GAAG,0BAA0B,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAEpG,IAAM,QAAQ,GACZ,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY;QACpB,IAAA,2BAAmB,EAAC;YAClB,WAAW,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY;YACjC,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,MAAM,CAAC,eAAe;SAChC,CAAC,CAAA;IAEJ,OAAO;QACL,2BAA2B,aACzB,KAAK,EAAE,SAAgB,EACvB,WAAW,aAAA,EACX,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,EAAE,EAC5C,IAAI,eA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AW,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,WAAW;QACxC,IAAI,EAAE;YACJ,MAAM,EAAE,KAAK;SACd;QACD,gBAAgB,EAAE,UAAC,QAAQ;;YACzB,IAAM,qBAAqB,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAC1C,UAAC,OAAO,IAAK,OAAA,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,MAAK,0BAA0B,EAA3C,CAA2C,CACzD,0CAAE,WAAW,CAAA;YAEd,IAAM,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;YAErF,OAAO,EAAE,QAAQ,UAAA,EAAE,cAAc,gBAAA,EAAE,CAAA;QACrC,CAAC;KACF,CAAC;AAdF,CAcE,CAAA;AAfS,QAAA,YAAY,gBAerB"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { FileSystemType } from '../../../../ui/utils/index.js';
|
|
2
|
+
export type ConfigurationsAdminType = {
|
|
3
|
+
logo: FileSystemType[];
|
|
4
|
+
favicon: FileSystemType[];
|
|
5
|
+
pageTitle: string;
|
|
6
|
+
bgLogin: string;
|
|
7
|
+
bgHeader: string;
|
|
8
|
+
vacancys?: boolean;
|
|
9
|
+
backgroundLoginLeft?: FileSystemType[];
|
|
10
|
+
};
|
|
2
11
|
export type ConfigurationsSiteType = {
|
|
3
12
|
facebook: string;
|
|
4
13
|
instagram: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-site-configurations.js","sourceRoot":"","sources":["../../../../../src/ui/atena/presentation/site-configurations/use-site-configurations.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-site-configurations.js","sourceRoot":"","sources":["../../../../../src/ui/atena/presentation/site-configurations/use-site-configurations.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAmCA,sCAuBC;AA1DD,oCAAkD;AAElD,wDAAuD;AAiCvD,SAAgB,aAAa;;IAC3B,IAAM,OAAO,GAAG,IAAA,oCAAiB,EAAyB;QACxD,UAAU,EAAE,oBAAoB;QAChC,QAAQ,EAAE,IAAI;KACf,CAAC,CAAA;IAEM,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAY;IAE/B,IAAM,UAAU,GAAG,CAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,0CAAE,MAAM,MAAK,EAAE,CAAA;IAE1E,6BACK,OAAO,KACV,cAAc,wBACT,WAAW,KACd,WAAW,EACT,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ;gBACrB,aAAK,CAAC,QAAQ,CAAC,mBAAmB,CAAC;oBACjC,UAAU,YAAA;oBACV,WAAW,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ;oBAClC,OAAO,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,eAAe;iBACtC,CAAC,OAEP;AACH,CAAC"}
|
|
@@ -64,7 +64,10 @@ interface Props {
|
|
|
64
64
|
onClick?: (value: any) => void;
|
|
65
65
|
};
|
|
66
66
|
iconDirection?: 'left' | 'right';
|
|
67
|
-
onChangeInput?: (value: number | string | boolean | string[] | Date | FileSystemType[]
|
|
67
|
+
onChangeInput?: (value: number | string | boolean | string[] | Date | FileSystemType[] | {
|
|
68
|
+
value?: string;
|
|
69
|
+
checked?: boolean;
|
|
70
|
+
}, callback?: () => void, formik?: InputFormikState, applyMask?: (value: string, mask: string) => string, formikContext?: FormikContextType<unknown>) => any;
|
|
68
71
|
controlledInitialValue?: {
|
|
69
72
|
value?: string;
|
|
70
73
|
};
|
|
@@ -14,8 +14,9 @@ interface InputRadioProps {
|
|
|
14
14
|
value?: string;
|
|
15
15
|
options: OptionInputRadio[];
|
|
16
16
|
}
|
|
17
|
-
export declare function InputRadioComponent(props: {
|
|
17
|
+
export declare function InputRadioComponent(props: OptionInputRadio & {
|
|
18
|
+
onChangeInput: InputProps['onChangeInput'];
|
|
18
19
|
name: string;
|
|
19
|
-
}
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export declare function InputRadio({ name, options, ...props }: InputRadioProps & InputProps): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export {};
|
|
@@ -62,12 +62,17 @@ var formik_1 = require("formik");
|
|
|
62
62
|
var S = __importStar(require("./styles.js"));
|
|
63
63
|
var input_control_1 = require("../input-control/index.js");
|
|
64
64
|
function InputRadioComponent(props) {
|
|
65
|
-
var
|
|
65
|
+
var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], state = _a[1], helpers = _a[2];
|
|
66
66
|
var isActive = field.value === props.value;
|
|
67
|
-
|
|
67
|
+
var handleChange = function (value, checked) {
|
|
68
|
+
var _a;
|
|
69
|
+
helpers.setValue(value);
|
|
70
|
+
(_a = props === null || props === void 0 ? void 0 : props.onChangeInput) === null || _a === void 0 ? void 0 : _a.call(props, value, undefined, { state: state, utils: helpers }, undefined);
|
|
71
|
+
};
|
|
72
|
+
return ((0, jsx_runtime_1.jsxs)("label", { htmlFor: props.name + props.label, children: [(0, jsx_runtime_1.jsx)("input", __assign({ id: props.name + props.label }, field, { checked: isActive, type: 'radio', readOnly: props.readOnly, value: props.value, onChange: function (e) { return handleChange(String(props.value), e.target.checked); }, style: { display: props.CustomOption ? 'none' : 'block' } })), props.CustomOption ? (0, jsx_runtime_1.jsx)(props.CustomOption, __assign({}, props, { isActive: isActive })) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.label && props.label })] }));
|
|
68
73
|
}
|
|
69
74
|
function InputRadio(_a) {
|
|
70
75
|
var name = _a.name, options = _a.options, props = __rest(_a, ["name", "options"]);
|
|
71
|
-
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { name: name, children: (0, jsx_runtime_1.jsx)(S.InputRadio, { children: (0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: options.map(function (option) { return ((0, jsx_runtime_1.jsx)(InputRadioComponent, __assign({ readOnly: props.readOnly }, option, { name: name }), option.value)); }) }) }) })));
|
|
76
|
+
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { name: name, children: (0, jsx_runtime_1.jsx)(S.InputRadio, { children: (0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: options.map(function (option) { return ((0, jsx_runtime_1.jsx)(InputRadioComponent, __assign({ onChangeInput: props === null || props === void 0 ? void 0 : props.onChangeInput, readOnly: props.readOnly }, option, { name: name }), option.value)); }) }) }) })));
|
|
72
77
|
}
|
|
73
78
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/radio/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/radio/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,kDA4BC;AAED,gCAkBC;;AApED,iCAAiC;AAEjC,0CAA6B;AAC7B,kDAA+C;AAiB/C,SAAgB,mBAAmB,CACjC,KAAsF;IAEhF,IAAA,KAA0B,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAvD,KAAK,QAAA,EAAE,KAAK,QAAA,EAAE,OAAO,QAAkC,CAAA;IAE9D,IAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAA;IAE5C,IAAM,YAAY,GAAG,UAAC,KAAa,EAAE,OAAgB;;QACnD,OAAO,CAA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