infinity-forge 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/system/presentation/components/pages/users/table/create.d.ts +1 -1
- package/dist/system/presentation/components/pages/users/table/create.js.map +1 -1
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +1 -1
- package/dist/system/presentation/components/pages/users/table/edit.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +1 -2
- package/dist/ui/components/form/handler/component.d.ts +2 -0
- package/dist/ui/components/form/handler/component.js +25 -0
- package/dist/ui/components/form/handler/component.js.map +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +103 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js.map +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +4 -88
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +2 -2
- package/dist/ui/components/form/handler/index.d.ts +5 -2
- package/dist/ui/components/form/handler/index.js +18 -21
- package/dist/ui/components/form/handler/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
|
|
1
2
|
import { User } from '../../../../../../system/index.js';
|
|
2
|
-
import { DynamicFormHandlerProps } from '../../../../../../ui/components/form/handler/dynamic_form_handler/interfaces.js';
|
|
3
3
|
export declare function useCreateTable(queryKey: string): DynamicFormHandlerProps<User>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAE5B,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAE5B,2BAAwD;AACxD,mCAA8D;AAE9D,SAAgB,cAAc,CAAC,QAAgB;IAA/C,iBAyBC;IAxBS,IAAA,WAAW,GAAK,IAAA,aAAQ,GAAE,YAAf,CAAe;IAElC,IAAM,WAAW,GAAkC;QACjD,KAAK,EAAE,eAAe;QACtB,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QACzB,WAAW,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAClC,QAAQ,EAAE,UAAO,IAAI;;;4BACnB,qBAAM,kBAAS,CAAC,GAAG,CAAc,cAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAA;;wBAAhE,SAAgE,CAAA;wBAEhE,IAAA,YAAM,EAAC,QAAQ,CAAC,CAAA;wBAEhB,WAAW,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;;;;aACnE;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,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;SAC1F;KACF,CAAA;IAED,OAAO,WAAW,CAAA;AACpB,CAAC;AAzBD,wCAyBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
|
|
1
2
|
import { User } from '../../../../../../system/index.js';
|
|
2
|
-
import { DynamicFormHandlerProps } from '../../../../../../ui/components/form/handler/dynamic_form_handler/interfaces.js';
|
|
3
3
|
export declare function useEditTable(queryKey: string): DynamicFormHandlerProps<User>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/edit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAE5B,
|
|
1
|
+
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/edit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAE5B,2BAAwD;AACxD,mCAA8D;AAE9D,SAAgB,YAAY,CAAC,QAAgB;IAA7C,iBA4BC;IA3BS,IAAA,WAAW,GAAK,IAAA,aAAQ,GAAE,YAAf,CAAe;IAElC,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,UAAU,GAAG,SAAS,CAAC,EAAE,EAAzB,CAAyB;YAC7C,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,IAAA,YAAM,EAAC,QAAQ,CAAC,CAAA;wBAEhB,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,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;SAC7E;KACF,CAAA;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AA5BD,oCA4BC"}
|
|
@@ -79,7 +79,7 @@ var react_1 = require("react");
|
|
|
79
79
|
var link_1 = __importDefault(require("next/link"));
|
|
80
80
|
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
81
81
|
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
82
|
-
var
|
|
82
|
+
var component_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler/component.js");
|
|
83
83
|
var S = __importStar(require("./styles.js"));
|
|
84
84
|
function Actions(_a) {
|
|
85
85
|
var _b;
|
|
@@ -99,7 +99,7 @@ function Actions(_a) {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
return ((0, jsx_runtime_1.jsx)(S.Actions, { children: (0, jsx_runtime_1.jsxs)("div", { children: [actions.edit &&
|
|
102
|
-
(((_b = actions.edit) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'action-button', href: actions.edit.link.href(table), children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) })) : ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: openEdit, onClose: function () { return setOpenEdit(false); }, style: { maxWidth: 512, borderRadius: 10 }, trigger: (0, jsx_runtime_1.jsx)("span", { className: 'action-button', children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) }) }), content: (0, jsx_runtime_1.jsx)(
|
|
102
|
+
(((_b = actions.edit) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'action-button', href: actions.edit.link.href(table), children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) })) : ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: openEdit, onClose: function () { return setOpenEdit(false); }, style: { maxWidth: 512, borderRadius: 10 }, trigger: (0, jsx_runtime_1.jsx)("span", { className: 'action-button', children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) }) }), content: (0, jsx_runtime_1.jsx)(component_1.DynamicFormHandler, __assign({}, actions.edit, { onSucess: onSuccessEdit, tableItem: table })), onOpen: function () {
|
|
103
103
|
console.log('?');
|
|
104
104
|
setOpenEdit(true);
|
|
105
105
|
} }))), actions.detail && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Detalhe', trigger: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'action-button', href: actions.detail(table), children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEye' }) }) })), actions.delete && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Excluir', trigger: (0, jsx_runtime_1.jsx)("button", { className: 'action-button', onClick: function () { return actions.delete(table); }, type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconDelete' }) }) }))] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/actions/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAChC,mDAA4B;AAE5B,uDAAgD;AAEhD,2BAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/actions/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAChC,mDAA4B;AAE5B,uDAAgD;AAEhD,2BAA2B;AAC3B,yFAAgG;AAIhG,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,EAAyD;;QAAvD,OAAO,aAAA,EAAE,KAAK,WAAA;IAChC,IAAA,KAA0B,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAxC,QAAQ,QAAA,EAAE,WAAW,QAAmB,CAAA;IAE/C,SAAe,aAAa,CAAC,IAAI;;;;4BAC/B,qBAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAA;;wBAAjC,SAAiC,CAAA;wBAEjC,WAAW,CAAC,KAAK,CAAC,CAAA;;;;;KACnB;IAED,OAAO,CACL,uBAAC,CAAC,CAAC,OAAO,cACR,4CACG,OAAO,CAAC,IAAI;oBACX,CAAC,CAAA,MAAA,OAAO,CAAC,IAAI,0CAAE,IAAI,EAAC,CAAC,CAAC,CACpB,uBAAC,yBAAK,IACJ,OAAO,EAAC,QAAQ,EAChB,OAAO,EACL,uBAAC,cAAI,IAAC,SAAS,EAAC,eAAe,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YACjE,uBAAC,SAAI,IAAC,IAAI,EAAE,UAAU,GAAI,GACrB,GAET,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,yBAAK,IACJ,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,cAAM,OAAA,WAAW,CAAC,KAAK,CAAC,EAAlB,CAAkB,EACjC,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,EAAE,EAC1C,OAAO,EACL,iCAAM,SAAS,EAAC,eAAe,YAC7B,uBAAC,yBAAK,IACJ,OAAO,EAAC,QAAQ,EAChB,OAAO,EACL,mCAAS,IAAI,EAAC,QAAQ,YACpB,uBAAC,SAAI,IAAC,IAAI,EAAC,UAAU,GAAG,GACjB,GAEX,GACG,EAET,OAAO,EAAE,uBAAC,8BAAkB,eAAK,OAAO,CAAC,IAAI,IAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,IAAI,EAC5F,MAAM,EAAE;4BACN,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;4BAChB,WAAW,CAAC,IAAI,CAAC,CAAA;wBACnB,CAAC,GACD,CACH,CAAC,EAEH,OAAO,CAAC,MAAM,IAAI,CACjB,uBAAC,yBAAK,IACJ,OAAO,EAAC,SAAS,EACjB,OAAO,EACL,uBAAC,cAAI,IAAC,SAAS,EAAC,eAAe,EAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,YACzD,uBAAC,SAAI,IAAC,IAAI,EAAC,SAAS,GAAG,GAClB,GAET,CACH,EAEA,OAAO,CAAC,MAAM,IAAI,CACjB,uBAAC,yBAAK,IACJ,OAAO,EAAC,SAAS,EACjB,OAAO,EACL,mCAAQ,SAAS,EAAC,eAAe,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAArB,CAAqB,EAAE,IAAI,EAAC,QAAQ,YACnF,uBAAC,SAAI,IAAC,IAAI,EAAC,YAAY,GAAG,GACnB,GAEX,CACH,IACG,GACI,CACb,CAAA;AACH,CAAC;AAvED,0BAuEC"}
|
|
@@ -78,7 +78,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
78
78
|
var react_1 = require("react");
|
|
79
79
|
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
80
80
|
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
81
|
-
var
|
|
81
|
+
var component_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler/component.js");
|
|
82
82
|
var link_1 = __importDefault(require("next/link"));
|
|
83
83
|
var S = __importStar(require("./styles.js"));
|
|
84
84
|
function CreateAction(_a) {
|
|
@@ -99,7 +99,7 @@ function CreateAction(_a) {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
return ((0, jsx_runtime_1.jsx)(S.Create, { children: actions.create &&
|
|
102
|
-
(((_b = actions.create) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'create-button', href: actions.create.link.href, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: ((_c = actions === null || actions === void 0 ? void 0 : actions.create) === null || _c === void 0 ? void 0 : _c.icon) || 'IconPlusSharp' }) }), actions.create.text] })) : ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: openCreate, onClose: function () { return setOpenCreate(false); }, style: { maxWidth: 512, borderRadius: 10 }, trigger: (0, jsx_runtime_1.jsxs)("button", { className: 'create-button', type: 'button', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (actions === null || actions === void 0 ? void 0 : actions.create.icon) || 'IconPlusSharp' }) }), actions.create.text] }), content: (0, jsx_runtime_1.jsx)(
|
|
102
|
+
(((_b = actions.create) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'create-button', href: actions.create.link.href, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: ((_c = actions === null || actions === void 0 ? void 0 : actions.create) === null || _c === void 0 ? void 0 : _c.icon) || 'IconPlusSharp' }) }), actions.create.text] })) : ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: openCreate, onClose: function () { return setOpenCreate(false); }, style: { maxWidth: 512, borderRadius: 10 }, trigger: (0, jsx_runtime_1.jsxs)("button", { className: 'create-button', type: 'button', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (actions === null || actions === void 0 ? void 0 : actions.create.icon) || 'IconPlusSharp' }) }), actions.create.text] }), content: (0, jsx_runtime_1.jsx)(component_1.DynamicFormHandler, __assign({}, actions.create, { onSucess: onSuccessCreate })), onOpen: function () { return setOpenCreate(true); } }))) }));
|
|
103
103
|
}
|
|
104
104
|
exports.CreateAction = CreateAction;
|
|
105
105
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/create/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAEhC,uDAAyC;AAEzC,2BAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/create/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAEhC,uDAAyC;AAEzC,2BAA2B;AAC3B,yFAAgG;AAIhG,mDAA4B;AAE5B,0CAA6B;AAE7B,SAAgB,YAAY,CAAC,EAAsC;;QAApC,OAAO,aAAA;IAC9B,IAAA,KAA8B,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA5C,UAAU,QAAA,EAAE,aAAa,QAAmB,CAAA;IAEnD,SAAe,eAAe,CAAC,IAAI;;;;4BACjC,qBAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAA;;wBAAnC,SAAmC,CAAA;wBAEnC,aAAa,CAAC,KAAK,CAAC,CAAA;;;;;KACrB;IAED,OAAO,CACL,uBAAC,CAAC,CAAC,MAAM,cACN,OAAO,CAAC,MAAM;YACb,CAAC,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,IAAI,EAAC,CAAC,CAAC,CACtB,wBAAC,cAAI,IAAC,SAAS,EAAC,eAAe,EAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,aAC5D,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,SAAI,IAAC,IAAI,EAAE,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,IAAI,KAAI,eAAe,GAAI,GACpD,EAEL,OAAO,CAAC,MAAM,CAAC,IAAI,IACf,CACR,CAAC,CAAC,CAAC,CACF,uBAAC,yBAAK,IACJ,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,cAAM,OAAA,aAAa,CAAC,KAAK,CAAC,EAApB,CAAoB,EACnC,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,EAAE,EAC1C,OAAO,EACL,oCAAQ,SAAS,EAAC,eAAe,EAAC,IAAI,EAAC,QAAQ,aAC7C,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,SAAI,IAAC,IAAI,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC,IAAI,KAAI,eAAe,GAAI,GACnD,EAEL,OAAO,CAAC,MAAM,CAAC,IAAI,IACb,EAEX,OAAO,EAAE,uBAAC,8BAAkB,eAAK,OAAO,CAAC,MAAM,IAAE,QAAQ,EAAE,eAAe,IAAI,EAC9E,MAAM,EAAE,cAAM,OAAA,aAAa,CAAC,IAAI,CAAC,EAAnB,CAAmB,GACjC,CACH,CAAC,GACK,CACZ,CAAA;AACH,CAAC;AAxCD,oCAwCC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PaginationModel } from '../../../../../system/index.js';
|
|
3
|
-
import { IconsNames } from '../../../../../ui/index.js';
|
|
4
|
-
import { DynamicFormHandlerProps } from '../../../../../ui/components/form/handler/dynamic_form_handler/interfaces.js';
|
|
3
|
+
import { IconsNames, DynamicFormHandlerProps } from '../../../../../ui/index.js';
|
|
5
4
|
interface Column<T = any> {
|
|
6
5
|
id: keyof T;
|
|
7
6
|
label: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.FormHandler = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var formik_1 = require("formik");
|
|
20
|
+
var form_handler_1 = __importDefault(require("./form-handler/index.js"));
|
|
21
|
+
function FormHandler(props) {
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: props.initialData || {}, onSubmit: function () { }, children: (0, jsx_runtime_1.jsx)(form_handler_1.default, __assign({}, props, { children: props.children })) }));
|
|
23
|
+
}
|
|
24
|
+
exports.FormHandler = FormHandler;
|
|
25
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/handler/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAA+B;AAE/B,gEAAwC;AAGxC,SAAgB,WAAW,CAAC,KAAmB;IAC7C,OAAO,CACL,uBAAC,eAAM,IAAC,aAAa,EAAE,KAAK,CAAC,WAAW,IAAI,EAAE,EAAE,QAAQ,EAAE,cAAO,CAAC,YAChE,uBAAC,sBAAW,eAAK,KAAK,cAAG,KAAK,CAAC,QAAQ,IAAe,GAC/C,CACV,CAAA;AACH,CAAC;AAND,kCAMC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
+
function step(op) {
|
|
50
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
+
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;
|
|
53
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
+
switch (op[0]) {
|
|
55
|
+
case 0: case 1: t = op; break;
|
|
56
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
+
default:
|
|
60
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
+
if (t[2]) _.ops.pop();
|
|
65
|
+
_.trys.pop(); continue;
|
|
66
|
+
}
|
|
67
|
+
op = body.call(thisArg, _);
|
|
68
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
74
|
+
};
|
|
75
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
+
exports.DynamicFormHandler = void 0;
|
|
77
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
78
|
+
var component_1 = require("../component.js");
|
|
79
|
+
var loader_circle_1 = require("../../../../../ui/components/loader-circle/index.js");
|
|
80
|
+
var swr_1 = __importDefault(require("swr"));
|
|
81
|
+
var Inputs = __importStar(require("../../index.js"));
|
|
82
|
+
function DynamicFormHandler(props) {
|
|
83
|
+
function fetcher() {
|
|
84
|
+
var _a;
|
|
85
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
+
return __generator(this, function (_b) {
|
|
87
|
+
return [2 /*return*/, (_a = props === null || props === void 0 ? void 0 : props.getDetails) === null || _a === void 0 ? void 0 : _a.fetcher(props.tableItem)];
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
var _a = (0, swr_1.default)(props.getDetails && props.getDetails.key(props.tableItem), fetcher), data = _a.data, isLoading = _a.isLoading;
|
|
92
|
+
if (isLoading && props.getDetails) {
|
|
93
|
+
return (0, jsx_runtime_1.jsx)(loader_circle_1.LoaderCircle, { size: 30, color: '#000' });
|
|
94
|
+
}
|
|
95
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: { padding: 20 }, children: [props.title && (0, jsx_runtime_1.jsx)("h3", { className: 'font-18-bold', style: { marginBottom: 15 }, children: props.title }), (0, jsx_runtime_1.jsx)(component_1.FormHandler, __assign({}, props, { initialData: __assign(__assign({}, data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
|
|
96
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'grid', gap: 15, gridTemplateColumns: "repeat(".concat(row.length, ", 1fr)") }, children: row.map(function (input) {
|
|
97
|
+
var Element = Inputs[input.inputComponent];
|
|
98
|
+
return (0, jsx_runtime_1.jsx)(Element, __assign({}, input), input.name);
|
|
99
|
+
}) }, index));
|
|
100
|
+
}) }))] }));
|
|
101
|
+
}
|
|
102
|
+
exports.DynamicFormHandler = DynamicFormHandler;
|
|
103
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/dynamic_form_handler/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA0C;AAC1C,+DAA4D;AAE5D,4CAAwB;AAIxB,kDAAqC;AAErC,SAAgB,kBAAkB,CAAC,KAA8B;IAC/D,SAAe,OAAO;;;;gBACpB,sBAAO,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,EAAA;;;KACnD;IAEK,IAAA,KAAsB,IAAA,aAAM,EAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAA9F,IAAI,UAAA,EAAE,SAAS,eAA+E,CAAA;IAEtG,IAAI,SAAS,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,uBAAC,4BAAY,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,CAAA;IAChD,CAAC;IAED,OAAO,CACL,iCAAK,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,aACxB,KAAK,CAAC,KAAK,IAAI,+BAAI,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,YAAG,KAAK,CAAC,KAAK,GAAM,EAE5F,uBAAC,uBAAW,eAAM,KAAa,IAAE,WAAW,wBAAO,IAAI,GAAK,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,CAAC,aAClF,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,KAAK;oBAC3B,OAAO,CACL,gCAAiB,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,mBAAmB,EAAE,iBAAU,GAAG,CAAC,MAAM,WAAQ,EAAE,YACpG,GAAG,CAAC,GAAG,CAAC,UAAC,KAAK;4BACb,IAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;4BAE5C,OAAO,uBAAC,OAAO,eAAuB,KAAa,GAA9B,KAAK,CAAC,IAAI,CAAwB,CAAA;wBACzD,CAAC,CAAC,IALM,KAAK,CAMT,CACP,CAAA;gBACH,CAAC,CAAC,IACU,IACV,CACP,CAAA;AACH,CAAC;AA9BD,gDA8BC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export * from "./component.js";
|
|
2
|
+
export * from "./interfaces.js";
|
|
@@ -1,15 +1,4 @@
|
|
|
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
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -21,83 +10,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
21
10
|
if (k2 === undefined) k2 = k;
|
|
22
11
|
o[k2] = m[k];
|
|
23
12
|
}));
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
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;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0: case 1: t = op; break;
|
|
56
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
-
default:
|
|
60
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
-
if (t[2]) _.ops.pop();
|
|
65
|
-
_.trys.pop(); continue;
|
|
66
|
-
}
|
|
67
|
-
op = body.call(thisArg, _);
|
|
68
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
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);
|
|
74
15
|
};
|
|
75
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var __1 = require("../index.js");
|
|
79
|
-
var loader_circle_1 = require("../../../../../ui/components/loader-circle/index.js");
|
|
80
|
-
var swr_1 = __importDefault(require("swr"));
|
|
81
|
-
var Inputs = __importStar(require("../../index.js"));
|
|
82
|
-
function DynamicFormHandler(props) {
|
|
83
|
-
function fetcher() {
|
|
84
|
-
var _a;
|
|
85
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
-
return __generator(this, function (_b) {
|
|
87
|
-
return [2 /*return*/, (_a = props === null || props === void 0 ? void 0 : props.getDetails) === null || _a === void 0 ? void 0 : _a.fetcher(props.tableItem)];
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
var _a = (0, swr_1.default)(props.getDetails && props.getDetails.key(props.tableItem), fetcher), data = _a.data, isLoading = _a.isLoading;
|
|
92
|
-
if (isLoading && props.getDetails) {
|
|
93
|
-
return (0, jsx_runtime_1.jsx)(loader_circle_1.LoaderCircle, { size: 30, color: '#000' });
|
|
94
|
-
}
|
|
95
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { padding: 20 }, children: (0, jsx_runtime_1.jsx)(__1.FormHandler, __assign({}, props, { initialData: __assign(__assign({}, data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
|
|
96
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'grid', gap: 15, gridTemplateColumns: "repeat(".concat(row.length, ", 1fr)") }, children: row.map(function (input) {
|
|
97
|
-
var Element = Inputs[input.inputComponent];
|
|
98
|
-
return (0, jsx_runtime_1.jsx)(Element, __assign({}, input), input.name);
|
|
99
|
-
}) }, index));
|
|
100
|
-
}) })) }));
|
|
101
|
-
}
|
|
102
|
-
exports.DynamicFormHandler = DynamicFormHandler;
|
|
17
|
+
__exportStar(require("./component.js"), exports);
|
|
18
|
+
__exportStar(require("./interfaces.js"), exports);
|
|
103
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/dynamic_form_handler/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/dynamic_form_handler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,+CAA4B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconsNames } from '../../../../../ui/icons/index.js';
|
|
2
|
-
import * as Inputs from '../../index.js';
|
|
3
|
-
import { ISelectProps } from '../../select/interfaces.js';
|
|
4
2
|
import { IFormHandler } from '../interfaces.js';
|
|
3
|
+
import { ISelectProps } from '../../select/interfaces.js';
|
|
4
|
+
import * as Inputs from '../../index.js';
|
|
5
5
|
type InputProps<T = any> = {
|
|
6
6
|
name: keyof T;
|
|
7
7
|
inputComponent: keyof typeof Inputs;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export * from "./interfaces.js";
|
|
2
|
+
export * from "./component.js";
|
|
3
|
+
export * from "./form-handler/index.js";
|
|
4
|
+
export * from "./custom-submit/index.js";
|
|
5
|
+
export * from "./dynamic_form_handler/index.js";
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
var
|
|
14
|
-
|
|
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
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: props.initialData || {}, onSubmit: function () { }, children: (0, jsx_runtime_1.jsx)(form_handler_1.default, __assign({}, props, { children: props.children })) }));
|
|
23
|
-
}
|
|
24
|
-
exports.FormHandler = FormHandler;
|
|
17
|
+
__exportStar(require("./interfaces.js"), exports);
|
|
18
|
+
__exportStar(require("./component.js"), exports);
|
|
19
|
+
__exportStar(require("./form-handler/index.js"), exports);
|
|
20
|
+
__exportStar(require("./custom-submit/index.js"), exports);
|
|
21
|
+
__exportStar(require("./dynamic_form_handler/index.js"), exports);
|
|
25
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/handler/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/handler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8CAA2B;AAC3B,iDAA8B;AAC9B,kDAA+B;AAC/B,yDAAsC"}
|