@apexcura/core 0.0.15-Beta94 → 0.0.15-Beta95
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/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -105,6 +105,9 @@ var ElementExecutor = (props) => {
|
|
|
105
105
|
if (field.name === name) {
|
|
106
106
|
field["value"] = value;
|
|
107
107
|
props.selectedRecord(field);
|
|
108
|
+
const updatedSchema = updateSchema(schema2);
|
|
109
|
+
setSchema(updatedSchema);
|
|
110
|
+
props.setData({ ...props.data, schema: updatedSchema });
|
|
108
111
|
}
|
|
109
112
|
if (field.fields && field.fields.length) {
|
|
110
113
|
field.fields = updateSchema(field.fields);
|
|
@@ -112,9 +115,6 @@ var ElementExecutor = (props) => {
|
|
|
112
115
|
return field;
|
|
113
116
|
});
|
|
114
117
|
};
|
|
115
|
-
const updatedSchema = updateSchema(schema);
|
|
116
|
-
setSchema(updatedSchema);
|
|
117
|
-
props.setData({ ...props.data, schema: updatedSchema });
|
|
118
118
|
};
|
|
119
119
|
const handleSelectData = async () => {
|
|
120
120
|
try {
|
|
@@ -307,7 +307,7 @@ var ElementExecutor = (props) => {
|
|
|
307
307
|
const renderFields = (schema2) => {
|
|
308
308
|
return schema2 && schema2.map((eachSection) => {
|
|
309
309
|
if (eachSection.visible !== false) {
|
|
310
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderElement(eachSection), /* @__PURE__ */ import_react.default.createElement("div", { className: eachSection.className, key: eachSection.name }, renderFields(eachSection.fields))) : renderElement(eachSection));
|
|
310
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderElement(eachSection), /* @__PURE__ */ import_react.default.createElement("div", { className: eachSection.className, key: eachSection.name }, eachSection.label && /* @__PURE__ */ import_react.default.createElement("p", { className: eachSection.labelClassName }, eachSection.label), renderFields(eachSection.fields))) : renderElement(eachSection));
|
|
311
311
|
}
|
|
312
312
|
return null;
|
|
313
313
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -92,6 +92,9 @@ var ElementExecutor = (props) => {
|
|
|
92
92
|
if (field.name === name) {
|
|
93
93
|
field["value"] = value;
|
|
94
94
|
props.selectedRecord(field);
|
|
95
|
+
const updatedSchema = updateSchema(schema2);
|
|
96
|
+
setSchema(updatedSchema);
|
|
97
|
+
props.setData({ ...props.data, schema: updatedSchema });
|
|
95
98
|
}
|
|
96
99
|
if (field.fields && field.fields.length) {
|
|
97
100
|
field.fields = updateSchema(field.fields);
|
|
@@ -99,9 +102,6 @@ var ElementExecutor = (props) => {
|
|
|
99
102
|
return field;
|
|
100
103
|
});
|
|
101
104
|
};
|
|
102
|
-
const updatedSchema = updateSchema(schema);
|
|
103
|
-
setSchema(updatedSchema);
|
|
104
|
-
props.setData({ ...props.data, schema: updatedSchema });
|
|
105
105
|
};
|
|
106
106
|
const handleSelectData = async () => {
|
|
107
107
|
try {
|
|
@@ -294,7 +294,7 @@ var ElementExecutor = (props) => {
|
|
|
294
294
|
const renderFields = (schema2) => {
|
|
295
295
|
return schema2 && schema2.map((eachSection) => {
|
|
296
296
|
if (eachSection.visible !== false) {
|
|
297
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, renderElement(eachSection), /* @__PURE__ */ React.createElement("div", { className: eachSection.className, key: eachSection.name }, renderFields(eachSection.fields))) : renderElement(eachSection));
|
|
297
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, eachSection.fields && eachSection.fields.length > 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, renderElement(eachSection), /* @__PURE__ */ React.createElement("div", { className: eachSection.className, key: eachSection.name }, eachSection.label && /* @__PURE__ */ React.createElement("p", { className: eachSection.labelClassName }, eachSection.label), renderFields(eachSection.fields))) : renderElement(eachSection));
|
|
298
298
|
}
|
|
299
299
|
return null;
|
|
300
300
|
});
|