@apexcura/core 0.0.16-Beta21 → 0.0.16-Beta210

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,15 @@ 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;
46
+ fillText1?: string;
47
+ fillText2?: string;
48
+ labels?: any[];
49
+ data?: any[];
41
50
  modalContent?: {
42
51
  className?: string;
43
52
  fields?: {
@@ -52,11 +61,14 @@ type FormExecutorProps = {
52
61
  }[];
53
62
  };
54
63
  items?: {
55
- icon?: React.JSX.Element;
64
+ icon?: React.JSX.Element | string;
56
65
  label?: string;
57
66
  active?: boolean;
58
67
  text?: string;
59
68
  time?: string;
69
+ name?: string;
70
+ y?: number;
71
+ color?: string;
60
72
  }[];
61
73
  fields?: {
62
74
  name?: string;
@@ -109,6 +121,7 @@ type FormExecutorProps = {
109
121
  required?: boolean;
110
122
  key?: string;
111
123
  render?: () => void;
124
+ ellipsis: boolean;
112
125
  }[];
113
126
  tbody?: {
114
127
  id?: number;
package/dist/index.d.ts CHANGED
@@ -38,6 +38,15 @@ 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;
46
+ fillText1?: string;
47
+ fillText2?: string;
48
+ labels?: any[];
49
+ data?: any[];
41
50
  modalContent?: {
42
51
  className?: string;
43
52
  fields?: {
@@ -52,11 +61,14 @@ type FormExecutorProps = {
52
61
  }[];
53
62
  };
54
63
  items?: {
55
- icon?: React.JSX.Element;
64
+ icon?: React.JSX.Element | string;
56
65
  label?: string;
57
66
  active?: boolean;
58
67
  text?: string;
59
68
  time?: string;
69
+ name?: string;
70
+ y?: number;
71
+ color?: string;
60
72
  }[];
61
73
  fields?: {
62
74
  name?: string;
@@ -109,6 +121,7 @@ type FormExecutorProps = {
109
121
  required?: boolean;
110
122
  key?: string;
111
123
  render?: () => void;
124
+ ellipsis: boolean;
112
125
  }[];
113
126
  tbody?: {
114
127
  id?: number;
package/dist/index.js CHANGED
@@ -36,6 +36,8 @@ module.exports = __toCommonJS(src_exports);
36
36
 
37
37
  // src/libraries/element-executor.tsx
38
38
  var import_react = __toESM(require("react"));
39
+ var import_highcharts = __toESM(require("highcharts"));
40
+ var import_highcharts_react_official = __toESM(require("highcharts-react-official"));
39
41
  var import_ui_components = require("@apexcura/ui-components");
40
42
 
41
43
  // src/services/http-service.tsx
@@ -266,6 +268,14 @@ var ElementExecutor = (props) => {
266
268
  onChange: (value) => onHandleChange(elementProps.name || "", value)
267
269
  }
268
270
  );
271
+ case "upload-manually":
272
+ return /* @__PURE__ */ import_react.default.createElement(
273
+ import_ui_components.Upload,
274
+ {
275
+ ...elementProps,
276
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
277
+ }
278
+ );
269
279
  case "image":
270
280
  return /* @__PURE__ */ import_react.default.createElement(import_ui_components.Image, { ...elementProps });
271
281
  case "input-password":
@@ -300,6 +310,64 @@ var ElementExecutor = (props) => {
300
310
  onChange: (value) => onHandleChange(elementProps.name || "", value)
301
311
  }
302
312
  );
313
+ case "otp":
314
+ return /* @__PURE__ */ import_react.default.createElement(
315
+ import_ui_components.OtpElement,
316
+ {
317
+ ...elementProps,
318
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
319
+ }
320
+ );
321
+ case "circle-donut":
322
+ return /* @__PURE__ */ import_react.default.createElement(
323
+ import_ui_components.CircleDonut,
324
+ {
325
+ ...elementProps,
326
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
327
+ }
328
+ );
329
+ case "semicircle-donut":
330
+ return /* @__PURE__ */ import_react.default.createElement(
331
+ import_ui_components.SemiCircleDonut,
332
+ {
333
+ ...elementProps,
334
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
335
+ }
336
+ );
337
+ case "horizontal-barchart":
338
+ return /* @__PURE__ */ import_react.default.createElement(
339
+ import_ui_components.HorizontalBarChart,
340
+ {
341
+ ...elementProps,
342
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
343
+ }
344
+ );
345
+ case "linechart":
346
+ return /* @__PURE__ */ import_react.default.createElement(
347
+ import_ui_components.LineChart,
348
+ {
349
+ ...elementProps,
350
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
351
+ }
352
+ );
353
+ case "highchart-linechart":
354
+ return /* @__PURE__ */ import_react.default.createElement(import_highcharts_react_official.default, { highcharts: import_highcharts.default, options: elementProps.data_options });
355
+ case "double-barchart":
356
+ return /* @__PURE__ */ import_react.default.createElement(
357
+ import_ui_components.DoubleBarChart,
358
+ {
359
+ ...elementProps,
360
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
361
+ }
362
+ );
363
+ case "barchart":
364
+ return /* @__PURE__ */ import_react.default.createElement(
365
+ import_ui_components.BarChart,
366
+ {
367
+ ...elementProps,
368
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
369
+ }
370
+ );
303
371
  default:
304
372
  return null;
305
373
  }
@@ -307,7 +375,7 @@ var ElementExecutor = (props) => {
307
375
  const renderFields = (schema2) => {
308
376
  return schema2 && schema2.map((eachSection) => {
309
377
  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));
378
+ 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));
311
379
  }
312
380
  return null;
313
381
  });
package/dist/index.mjs CHANGED
@@ -1,5 +1,7 @@
1
1
  // src/libraries/element-executor.tsx
2
2
  import React, { useState } from "react";
3
+ import Highcharts from "highcharts";
4
+ import HighchartsReact from "highcharts-react-official";
3
5
  import {
4
6
  TextElement,
5
7
  NumberElement,
@@ -22,7 +24,15 @@ import {
22
24
  SingleCheckbox,
23
25
  DropDownGroup,
24
26
  FileUpload,
25
- TabsElement
27
+ TabsElement,
28
+ Upload,
29
+ OtpElement,
30
+ CircleDonut,
31
+ SemiCircleDonut,
32
+ HorizontalBarChart,
33
+ DoubleBarChart,
34
+ LineChart,
35
+ BarChart
26
36
  } from "@apexcura/ui-components";
27
37
 
28
38
  // src/services/http-service.tsx
@@ -253,6 +263,14 @@ var ElementExecutor = (props) => {
253
263
  onChange: (value) => onHandleChange(elementProps.name || "", value)
254
264
  }
255
265
  );
266
+ case "upload-manually":
267
+ return /* @__PURE__ */ React.createElement(
268
+ Upload,
269
+ {
270
+ ...elementProps,
271
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
272
+ }
273
+ );
256
274
  case "image":
257
275
  return /* @__PURE__ */ React.createElement(Image, { ...elementProps });
258
276
  case "input-password":
@@ -287,6 +305,64 @@ var ElementExecutor = (props) => {
287
305
  onChange: (value) => onHandleChange(elementProps.name || "", value)
288
306
  }
289
307
  );
308
+ case "otp":
309
+ return /* @__PURE__ */ React.createElement(
310
+ OtpElement,
311
+ {
312
+ ...elementProps,
313
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
314
+ }
315
+ );
316
+ case "circle-donut":
317
+ return /* @__PURE__ */ React.createElement(
318
+ CircleDonut,
319
+ {
320
+ ...elementProps,
321
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
322
+ }
323
+ );
324
+ case "semicircle-donut":
325
+ return /* @__PURE__ */ React.createElement(
326
+ SemiCircleDonut,
327
+ {
328
+ ...elementProps,
329
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
330
+ }
331
+ );
332
+ case "horizontal-barchart":
333
+ return /* @__PURE__ */ React.createElement(
334
+ HorizontalBarChart,
335
+ {
336
+ ...elementProps,
337
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
338
+ }
339
+ );
340
+ case "linechart":
341
+ return /* @__PURE__ */ React.createElement(
342
+ LineChart,
343
+ {
344
+ ...elementProps,
345
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
346
+ }
347
+ );
348
+ case "highchart-linechart":
349
+ return /* @__PURE__ */ React.createElement(HighchartsReact, { highcharts: Highcharts, options: elementProps.data_options });
350
+ case "double-barchart":
351
+ return /* @__PURE__ */ React.createElement(
352
+ DoubleBarChart,
353
+ {
354
+ ...elementProps,
355
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
356
+ }
357
+ );
358
+ case "barchart":
359
+ return /* @__PURE__ */ React.createElement(
360
+ BarChart,
361
+ {
362
+ ...elementProps,
363
+ onChange: (value) => onHandleChange(elementProps.name || "", value)
364
+ }
365
+ );
290
366
  default:
291
367
  return null;
292
368
  }
@@ -294,7 +370,7 @@ var ElementExecutor = (props) => {
294
370
  const renderFields = (schema2) => {
295
371
  return schema2 && schema2.map((eachSection) => {
296
372
  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));
373
+ 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));
298
374
  }
299
375
  return null;
300
376
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/core",
3
- "version": "0.0.16-Beta21",
3
+ "version": "0.0.16-Beta210",
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-Beta21",
31
+ "@apexcura/ui-components": "^0.0.14-Beta194",
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",