@apexcura/core 0.0.16-Beta228 → 0.0.16-Beta229

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
@@ -47,6 +47,9 @@ type FormExecutorProps = {
47
47
  fillText2?: string;
48
48
  labels?: any[];
49
49
  data?: any[];
50
+ pagination?: boolean;
51
+ is_detail?: boolean;
52
+ dateTime?: string;
50
53
  modalContent?: {
51
54
  className?: string;
52
55
  fields?: {
package/dist/index.d.ts CHANGED
@@ -47,6 +47,9 @@ type FormExecutorProps = {
47
47
  fillText2?: string;
48
48
  labels?: any[];
49
49
  data?: any[];
50
+ pagination?: boolean;
51
+ is_detail?: boolean;
52
+ dateTime?: string;
50
53
  modalContent?: {
51
54
  className?: string;
52
55
  fields?: {
package/dist/index.js CHANGED
@@ -36,9 +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"));
41
39
  var import_ui_components = require("@apexcura/ui-components");
40
+ var import_moment = __toESM(require("moment"));
42
41
 
43
42
  // src/services/http-service.tsx
44
43
  var import_axios = __toESM(require("axios"));
@@ -373,33 +372,30 @@ var ElementExecutor = (props) => {
373
372
  const renderFields = (schema2) => {
374
373
  return schema2 && schema2.map((eachSection) => {
375
374
  if (eachSection.visible !== false) {
376
- 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));
375
+ 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)), eachSection.dateTime ? /* @__PURE__ */ import_react.default.createElement(
376
+ "p",
377
+ {
378
+ style: {
379
+ fontSize: "10px",
380
+ textAlign: eachSection.source === "bot" ? "left" : "right"
381
+ }
382
+ },
383
+ (0, import_moment.default)(eachSection.dateTime).format("LT")
384
+ ) : "") : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderElement(eachSection), eachSection.dateTime ? /* @__PURE__ */ import_react.default.createElement(
385
+ "p",
386
+ {
387
+ style: {
388
+ fontSize: "10px",
389
+ textAlign: eachSection.source === "bot" ? "left" : "right"
390
+ }
391
+ },
392
+ (0, import_moment.default)(eachSection.dateTime).format("LT")
393
+ ) : ""));
377
394
  }
378
395
  return null;
379
396
  });
380
397
  };
381
- console.log(123);
382
- const options = {
383
- title: {
384
- text: "My chart"
385
- },
386
- series: [
387
- {
388
- type: "line",
389
- data: [1, 2, 3]
390
- }
391
- ]
392
- };
393
- const chartComponentRef = (0, import_react.useRef)(null);
394
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("h1", null, "import in core as typescript named export HighchartsLineChart same as file name also"), /* @__PURE__ */ import_react.default.createElement(
395
- import_highcharts_react_official.default,
396
- {
397
- highcharts: import_highcharts.default,
398
- options,
399
- ref: chartComponentRef,
400
- ...props
401
- }
402
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: props.data.className }, renderFields(schema)));
398
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: props.data.className }, renderFields(schema)));
403
399
  };
404
400
  // Annotate the CommonJS export names for ESM import in node:
405
401
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -1,7 +1,5 @@
1
1
  // src/libraries/element-executor.tsx
2
- import React, { useState, useRef } from "react";
3
- import Highcharts from "highcharts";
4
- import HighchartsReact from "highcharts-react-official";
2
+ import React, { useState } from "react";
5
3
  import {
6
4
  TextElement,
7
5
  NumberElement,
@@ -34,6 +32,7 @@ import {
34
32
  LineChart,
35
33
  BarChart
36
34
  } from "@apexcura/ui-components";
35
+ import moment from "moment";
37
36
 
38
37
  // src/services/http-service.tsx
39
38
  import axios from "axios";
@@ -368,33 +367,30 @@ var ElementExecutor = (props) => {
368
367
  const renderFields = (schema2) => {
369
368
  return schema2 && schema2.map((eachSection) => {
370
369
  if (eachSection.visible !== false) {
371
- 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));
370
+ 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)), eachSection.dateTime ? /* @__PURE__ */ React.createElement(
371
+ "p",
372
+ {
373
+ style: {
374
+ fontSize: "10px",
375
+ textAlign: eachSection.source === "bot" ? "left" : "right"
376
+ }
377
+ },
378
+ moment(eachSection.dateTime).format("LT")
379
+ ) : "") : /* @__PURE__ */ React.createElement(React.Fragment, null, renderElement(eachSection), eachSection.dateTime ? /* @__PURE__ */ React.createElement(
380
+ "p",
381
+ {
382
+ style: {
383
+ fontSize: "10px",
384
+ textAlign: eachSection.source === "bot" ? "left" : "right"
385
+ }
386
+ },
387
+ moment(eachSection.dateTime).format("LT")
388
+ ) : ""));
372
389
  }
373
390
  return null;
374
391
  });
375
392
  };
376
- console.log(123);
377
- const options = {
378
- title: {
379
- text: "My chart"
380
- },
381
- series: [
382
- {
383
- type: "line",
384
- data: [1, 2, 3]
385
- }
386
- ]
387
- };
388
- const chartComponentRef = useRef(null);
389
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h1", null, "import in core as typescript named export HighchartsLineChart same as file name also"), /* @__PURE__ */ React.createElement(
390
- HighchartsReact,
391
- {
392
- highcharts: Highcharts,
393
- options,
394
- ref: chartComponentRef,
395
- ...props
396
- }
397
- ), /* @__PURE__ */ React.createElement("div", { className: props.data.className }, renderFields(schema)));
393
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: props.data.className }, renderFields(schema)));
398
394
  };
399
395
  export {
400
396
  ElementExecutor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/core",
3
- "version": "0.0.16-Beta228",
3
+ "version": "0.0.16-Beta229",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -28,14 +28,13 @@
28
28
  "build": "tsup"
29
29
  },
30
30
  "dependencies": {
31
- "@apexcura/ui-components": "^0.0.14-Beta196",
31
+ "@apexcura/ui-components": "^0.0.14-Beta197",
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",
35
35
  "antd": "^5.16.5",
36
36
  "axios": "^1.6.8",
37
- "highcharts": "^11.4.3",
38
- "highcharts-react-official": "^3.2.1",
37
+ "moment": "^2.30.1",
39
38
  "react": "^18.3.1",
40
39
  "react-dom": "^18.3.1",
41
40
  "tsup": "^8.0.2"