@apexcura/core 0.0.16-Beta19 → 0.0.16-Beta2

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.d.mts CHANGED
@@ -33,7 +33,6 @@ type FormExecutorProps = {
33
33
  count?: number;
34
34
  profileImage?: string;
35
35
  profileSubClassName?: string;
36
- containerClassName?: string;
37
36
  subContainerClassName?: string;
38
37
  secondTextClassName?: string;
39
38
  iconsClassName?: string;
@@ -70,16 +69,6 @@ type FormExecutorProps = {
70
69
  label: string;
71
70
  value: string;
72
71
  }[];
73
- firstOptions?: {
74
- key?: number;
75
- label: string;
76
- value: string;
77
- }[];
78
- secondOptions?: {
79
- key?: number;
80
- label: string;
81
- value: string;
82
- }[];
83
72
  selectBefore?: {
84
73
  label: string;
85
74
  value: string;
package/dist/index.d.ts CHANGED
@@ -33,7 +33,6 @@ type FormExecutorProps = {
33
33
  count?: number;
34
34
  profileImage?: string;
35
35
  profileSubClassName?: string;
36
- containerClassName?: string;
37
36
  subContainerClassName?: string;
38
37
  secondTextClassName?: string;
39
38
  iconsClassName?: string;
@@ -70,16 +69,6 @@ type FormExecutorProps = {
70
69
  label: string;
71
70
  value: string;
72
71
  }[];
73
- firstOptions?: {
74
- key?: number;
75
- label: string;
76
- value: string;
77
- }[];
78
- secondOptions?: {
79
- key?: number;
80
- label: string;
81
- value: string;
82
- }[];
83
72
  selectBefore?: {
84
73
  label: string;
85
74
  value: string;
package/dist/index.js CHANGED
@@ -100,6 +100,8 @@ var ElementExecutor = (props) => {
100
100
  const [data, setData] = (0, import_react.useState)([]);
101
101
  const [schema, setSchema] = (0, import_react.useState)(props.data.schema);
102
102
  const onHandleChange = (name, value) => {
103
+ console.log("name", name);
104
+ console.log("value", value);
103
105
  const updateSchema = (schema2) => {
104
106
  return schema2.map((field) => {
105
107
  if (field.name === name) {
@@ -112,6 +114,7 @@ var ElementExecutor = (props) => {
112
114
  return field;
113
115
  });
114
116
  };
117
+ console.log("schema--------------", schema);
115
118
  const updatedSchema = updateSchema(schema);
116
119
  setSchema(updatedSchema);
117
120
  props.setData({ ...props.data, schema: updatedSchema });
@@ -307,7 +310,7 @@ var ElementExecutor = (props) => {
307
310
  const renderFields = (schema2) => {
308
311
  return schema2 && schema2.map((eachSection) => {
309
312
  if (eachSection.visible !== false) {
310
- return /* @__PURE__ */ import_react.default.createElement("div", { key: eachSection.name }, 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));
313
+ 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));
311
314
  }
312
315
  return null;
313
316
  });
package/dist/index.mjs CHANGED
@@ -87,6 +87,8 @@ var ElementExecutor = (props) => {
87
87
  const [data, setData] = useState([]);
88
88
  const [schema, setSchema] = useState(props.data.schema);
89
89
  const onHandleChange = (name, value) => {
90
+ console.log("name", name);
91
+ console.log("value", value);
90
92
  const updateSchema = (schema2) => {
91
93
  return schema2.map((field) => {
92
94
  if (field.name === name) {
@@ -99,6 +101,7 @@ var ElementExecutor = (props) => {
99
101
  return field;
100
102
  });
101
103
  };
104
+ console.log("schema--------------", schema);
102
105
  const updatedSchema = updateSchema(schema);
103
106
  setSchema(updatedSchema);
104
107
  props.setData({ ...props.data, schema: updatedSchema });
@@ -294,7 +297,7 @@ var ElementExecutor = (props) => {
294
297
  const renderFields = (schema2) => {
295
298
  return schema2 && schema2.map((eachSection) => {
296
299
  if (eachSection.visible !== false) {
297
- return /* @__PURE__ */ React.createElement("div", { key: eachSection.name }, 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));
300
+ 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));
298
301
  }
299
302
  return null;
300
303
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/core",
3
- "version": "0.0.16-Beta19",
3
+ "version": "0.0.16-Beta2",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -28,7 +28,7 @@
28
28
  "build": "tsup"
29
29
  },
30
30
  "dependencies": {
31
- "@apexcura/ui-components": "^0.0.14-Beta19",
31
+ "@apexcura/ui-components": "^0.0.14-Beta3",
32
32
  "@testing-library/jest-dom": "^6.4.2",
33
33
  "@testing-library/react": "^15.0.6",
34
34
  "@types/react-global-configuration": "^1.3.3",