@apexcura/core 0.0.16-Beta6 → 0.0.16-Beta61

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
@@ -38,6 +38,10 @@ type FormExecutorProps = {
38
38
  secondTextClassName?: string;
39
39
  iconsClassName?: string;
40
40
  labelClassName?: string;
41
+ view?: boolean;
42
+ isSVGStylesOverride?: boolean;
43
+ rowSelection?: boolean;
44
+ length?: number;
41
45
  modalContent?: {
42
46
  className?: string;
43
47
  fields?: {
@@ -70,6 +74,16 @@ type FormExecutorProps = {
70
74
  label: string;
71
75
  value: string;
72
76
  }[];
77
+ firstOptions?: {
78
+ key?: number;
79
+ label: string;
80
+ value: string;
81
+ }[];
82
+ secondOptions?: {
83
+ key?: number;
84
+ label: string;
85
+ value: string;
86
+ }[];
73
87
  selectBefore?: {
74
88
  label: string;
75
89
  value: string;
package/dist/index.d.ts CHANGED
@@ -38,6 +38,10 @@ type FormExecutorProps = {
38
38
  secondTextClassName?: string;
39
39
  iconsClassName?: string;
40
40
  labelClassName?: string;
41
+ view?: boolean;
42
+ isSVGStylesOverride?: boolean;
43
+ rowSelection?: boolean;
44
+ length?: number;
41
45
  modalContent?: {
42
46
  className?: string;
43
47
  fields?: {
@@ -70,6 +74,16 @@ type FormExecutorProps = {
70
74
  label: string;
71
75
  value: string;
72
76
  }[];
77
+ firstOptions?: {
78
+ key?: number;
79
+ label: string;
80
+ value: string;
81
+ }[];
82
+ secondOptions?: {
83
+ key?: number;
84
+ label: string;
85
+ value: string;
86
+ }[];
73
87
  selectBefore?: {
74
88
  label: string;
75
89
  value: string;
package/dist/index.js CHANGED
@@ -100,8 +100,6 @@ 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);
105
103
  const updateSchema = (schema2) => {
106
104
  return schema2.map((field) => {
107
105
  if (field.name === name) {
@@ -114,7 +112,6 @@ var ElementExecutor = (props) => {
114
112
  return field;
115
113
  });
116
114
  };
117
- console.log("schema--------------", schema);
118
115
  const updatedSchema = updateSchema(schema);
119
116
  setSchema(updatedSchema);
120
117
  props.setData({ ...props.data, schema: updatedSchema });
@@ -269,6 +266,14 @@ var ElementExecutor = (props) => {
269
266
  onChange: (value) => onHandleChange(elementProps.name || "", value)
270
267
  }
271
268
  );
269
+ case "upload-manually":
270
+ return /* @__PURE__ */ import_react.default.createElement(
271
+ import_ui_components.Upload,
272
+ {
273
+ ...elementProps,
274
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
275
+ }
276
+ );
272
277
  case "image":
273
278
  return /* @__PURE__ */ import_react.default.createElement(import_ui_components.Image, { ...elementProps });
274
279
  case "input-password":
@@ -303,6 +308,14 @@ var ElementExecutor = (props) => {
303
308
  onChange: (value) => onHandleChange(elementProps.name || "", value)
304
309
  }
305
310
  );
311
+ case "otp":
312
+ return /* @__PURE__ */ import_react.default.createElement(
313
+ import_ui_components.OtpElement,
314
+ {
315
+ ...elementProps,
316
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
317
+ }
318
+ );
306
319
  default:
307
320
  return null;
308
321
  }
@@ -310,7 +323,7 @@ var ElementExecutor = (props) => {
310
323
  const renderFields = (schema2) => {
311
324
  return schema2 && schema2.map((eachSection) => {
312
325
  if (eachSection.visible !== false) {
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));
326
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, { 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));
314
327
  }
315
328
  return null;
316
329
  });
package/dist/index.mjs CHANGED
@@ -22,7 +22,9 @@ import {
22
22
  SingleCheckbox,
23
23
  DropDownGroup,
24
24
  FileUpload,
25
- TabsElement
25
+ TabsElement,
26
+ Upload,
27
+ OtpElement
26
28
  } from "@apexcura/ui-components";
27
29
 
28
30
  // src/services/http-service.tsx
@@ -87,8 +89,6 @@ var ElementExecutor = (props) => {
87
89
  const [data, setData] = useState([]);
88
90
  const [schema, setSchema] = useState(props.data.schema);
89
91
  const onHandleChange = (name, value) => {
90
- console.log("name", name);
91
- console.log("value", value);
92
92
  const updateSchema = (schema2) => {
93
93
  return schema2.map((field) => {
94
94
  if (field.name === name) {
@@ -101,7 +101,6 @@ var ElementExecutor = (props) => {
101
101
  return field;
102
102
  });
103
103
  };
104
- console.log("schema--------------", schema);
105
104
  const updatedSchema = updateSchema(schema);
106
105
  setSchema(updatedSchema);
107
106
  props.setData({ ...props.data, schema: updatedSchema });
@@ -256,6 +255,14 @@ var ElementExecutor = (props) => {
256
255
  onChange: (value) => onHandleChange(elementProps.name || "", value)
257
256
  }
258
257
  );
258
+ case "upload-manually":
259
+ return /* @__PURE__ */ React.createElement(
260
+ Upload,
261
+ {
262
+ ...elementProps,
263
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
264
+ }
265
+ );
259
266
  case "image":
260
267
  return /* @__PURE__ */ React.createElement(Image, { ...elementProps });
261
268
  case "input-password":
@@ -290,6 +297,14 @@ var ElementExecutor = (props) => {
290
297
  onChange: (value) => onHandleChange(elementProps.name || "", value)
291
298
  }
292
299
  );
300
+ case "otp":
301
+ return /* @__PURE__ */ React.createElement(
302
+ OtpElement,
303
+ {
304
+ ...elementProps,
305
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
306
+ }
307
+ );
293
308
  default:
294
309
  return null;
295
310
  }
@@ -297,7 +312,7 @@ var ElementExecutor = (props) => {
297
312
  const renderFields = (schema2) => {
298
313
  return schema2 && schema2.map((eachSection) => {
299
314
  if (eachSection.visible !== false) {
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));
315
+ return /* @__PURE__ */ React.createElement(React.Fragment, { 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));
301
316
  }
302
317
  return null;
303
318
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/core",
3
- "version": "0.0.16-Beta6",
3
+ "version": "0.0.16-Beta61",
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-Beta6",
31
+ "@apexcura/ui-components": "^0.0.14-Beta63",
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",