@apexcura/core 0.0.16-Beta12 → 0.0.16-Beta121

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,11 @@ 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;
45
+ loading?: boolean;
41
46
  modalContent?: {
42
47
  className?: string;
43
48
  fields?: {
@@ -52,11 +57,14 @@ type FormExecutorProps = {
52
57
  }[];
53
58
  };
54
59
  items?: {
55
- icon?: React.JSX.Element;
60
+ icon?: React.JSX.Element | string;
56
61
  label?: string;
57
62
  active?: boolean;
58
63
  text?: string;
59
64
  time?: string;
65
+ name?: string;
66
+ y?: number;
67
+ color?: string;
60
68
  }[];
61
69
  fields?: {
62
70
  name?: string;
@@ -70,12 +78,12 @@ type FormExecutorProps = {
70
78
  label: string;
71
79
  value: string;
72
80
  }[];
73
- options1?: {
81
+ firstOptions?: {
74
82
  key?: number;
75
83
  label: string;
76
84
  value: string;
77
85
  }[];
78
- options2?: {
86
+ secondOptions?: {
79
87
  key?: number;
80
88
  label: string;
81
89
  value: string;
@@ -109,6 +117,7 @@ type FormExecutorProps = {
109
117
  required?: boolean;
110
118
  key?: string;
111
119
  render?: () => void;
120
+ ellipsis: boolean;
112
121
  }[];
113
122
  tbody?: {
114
123
  id?: number;
package/dist/index.d.ts CHANGED
@@ -38,6 +38,11 @@ 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;
45
+ loading?: boolean;
41
46
  modalContent?: {
42
47
  className?: string;
43
48
  fields?: {
@@ -52,11 +57,14 @@ type FormExecutorProps = {
52
57
  }[];
53
58
  };
54
59
  items?: {
55
- icon?: React.JSX.Element;
60
+ icon?: React.JSX.Element | string;
56
61
  label?: string;
57
62
  active?: boolean;
58
63
  text?: string;
59
64
  time?: string;
65
+ name?: string;
66
+ y?: number;
67
+ color?: string;
60
68
  }[];
61
69
  fields?: {
62
70
  name?: string;
@@ -70,12 +78,12 @@ type FormExecutorProps = {
70
78
  label: string;
71
79
  value: string;
72
80
  }[];
73
- options1?: {
81
+ firstOptions?: {
74
82
  key?: number;
75
83
  label: string;
76
84
  value: string;
77
85
  }[];
78
- options2?: {
86
+ secondOptions?: {
79
87
  key?: number;
80
88
  label: string;
81
89
  value: string;
@@ -109,6 +117,7 @@ type FormExecutorProps = {
109
117
  required?: boolean;
110
118
  key?: string;
111
119
  render?: () => void;
120
+ ellipsis: boolean;
112
121
  }[];
113
122
  tbody?: {
114
123
  id?: number;
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,22 @@ 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
+ );
319
+ case "donut":
320
+ return /* @__PURE__ */ import_react.default.createElement(
321
+ import_ui_components.CircleDonut,
322
+ {
323
+ ...elementProps,
324
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
325
+ }
326
+ );
306
327
  default:
307
328
  return null;
308
329
  }
@@ -310,7 +331,7 @@ var ElementExecutor = (props) => {
310
331
  const renderFields = (schema2) => {
311
332
  return schema2 && schema2.map((eachSection) => {
312
333
  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));
334
+ 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
335
  }
315
336
  return null;
316
337
  });
package/dist/index.mjs CHANGED
@@ -22,7 +22,10 @@ import {
22
22
  SingleCheckbox,
23
23
  DropDownGroup,
24
24
  FileUpload,
25
- TabsElement
25
+ TabsElement,
26
+ Upload,
27
+ OtpElement,
28
+ CircleDonut
26
29
  } from "@apexcura/ui-components";
27
30
 
28
31
  // src/services/http-service.tsx
@@ -87,8 +90,6 @@ var ElementExecutor = (props) => {
87
90
  const [data, setData] = useState([]);
88
91
  const [schema, setSchema] = useState(props.data.schema);
89
92
  const onHandleChange = (name, value) => {
90
- console.log("name", name);
91
- console.log("value", value);
92
93
  const updateSchema = (schema2) => {
93
94
  return schema2.map((field) => {
94
95
  if (field.name === name) {
@@ -101,7 +102,6 @@ var ElementExecutor = (props) => {
101
102
  return field;
102
103
  });
103
104
  };
104
- console.log("schema--------------", schema);
105
105
  const updatedSchema = updateSchema(schema);
106
106
  setSchema(updatedSchema);
107
107
  props.setData({ ...props.data, schema: updatedSchema });
@@ -256,6 +256,14 @@ var ElementExecutor = (props) => {
256
256
  onChange: (value) => onHandleChange(elementProps.name || "", value)
257
257
  }
258
258
  );
259
+ case "upload-manually":
260
+ return /* @__PURE__ */ React.createElement(
261
+ Upload,
262
+ {
263
+ ...elementProps,
264
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
265
+ }
266
+ );
259
267
  case "image":
260
268
  return /* @__PURE__ */ React.createElement(Image, { ...elementProps });
261
269
  case "input-password":
@@ -290,6 +298,22 @@ var ElementExecutor = (props) => {
290
298
  onChange: (value) => onHandleChange(elementProps.name || "", value)
291
299
  }
292
300
  );
301
+ case "otp":
302
+ return /* @__PURE__ */ React.createElement(
303
+ OtpElement,
304
+ {
305
+ ...elementProps,
306
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
307
+ }
308
+ );
309
+ case "donut":
310
+ return /* @__PURE__ */ React.createElement(
311
+ CircleDonut,
312
+ {
313
+ ...elementProps,
314
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
315
+ }
316
+ );
293
317
  default:
294
318
  return null;
295
319
  }
@@ -297,7 +321,7 @@ var ElementExecutor = (props) => {
297
321
  const renderFields = (schema2) => {
298
322
  return schema2 && schema2.map((eachSection) => {
299
323
  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));
324
+ 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
325
  }
302
326
  return null;
303
327
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/core",
3
- "version": "0.0.16-Beta12",
3
+ "version": "0.0.16-Beta121",
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-Beta12",
31
+ "@apexcura/ui-components": "^0.0.14-Beta118",
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",