@apexcura/ui-components 0.0.11-Beta206 → 0.0.11-Beta208

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
@@ -52,6 +52,12 @@ type ElementType = {
52
52
  iconsClassName?: string;
53
53
  labelClassName?: string;
54
54
  containerClassName?: string;
55
+ chat_duration?: string;
56
+ chat_end?: string;
57
+ chat_start?: string;
58
+ major_actions?: string;
59
+ patient_name?: string;
60
+ phno?: string;
55
61
  };
56
62
 
57
63
  interface ElementExecuterProps$3 extends ElementType {
package/dist/index.d.ts CHANGED
@@ -52,6 +52,12 @@ type ElementType = {
52
52
  iconsClassName?: string;
53
53
  labelClassName?: string;
54
54
  containerClassName?: string;
55
+ chat_duration?: string;
56
+ chat_end?: string;
57
+ chat_start?: string;
58
+ major_actions?: string;
59
+ patient_name?: string;
60
+ phno?: string;
55
61
  };
56
62
 
57
63
  interface ElementExecuterProps$3 extends ElementType {
package/dist/index.js CHANGED
@@ -616,17 +616,13 @@ var import_react19 = __toESM(require("react"));
616
616
  var import_antd13 = require("antd");
617
617
  var ModelElement = (props) => {
618
618
  const { onCancel, model, selectedRecord } = props;
619
+ console.log("selectedRecord in model", selectedRecord);
619
620
  return /* @__PURE__ */ import_react19.default.createElement(
620
621
  import_antd13.Modal,
621
622
  {
622
623
  open: model,
623
624
  onCancel,
624
- footer: null,
625
- title: /* @__PURE__ */ import_react19.default.createElement("div", null, selectedRecord.map(
626
- (eachRecord) => {
627
- return /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement("p", null, eachRecord));
628
- }
629
- ))
625
+ footer: null
630
626
  },
631
627
  /* @__PURE__ */ import_react19.default.createElement("p", null, "Model opened")
632
628
  );
@@ -637,6 +633,7 @@ var TableElement = (props) => {
637
633
  const { thead, tbody } = props;
638
634
  const [selectedRecord, setSelectedRecord] = (0, import_react20.useState)({});
639
635
  const [model, setModel] = (0, import_react20.useState)(false);
636
+ console.log("selectedRecord", selectedRecord);
640
637
  let columns = [];
641
638
  if (thead) {
642
639
  columns = [
@@ -672,11 +669,10 @@ var TableElement = (props) => {
672
669
  columns,
673
670
  bordered: true,
674
671
  size: props.size && props.size,
675
- onRow: (record, rowIndex) => {
672
+ onRow: (record) => {
676
673
  return {
677
674
  onClick: () => {
678
675
  setSelectedRecord(record);
679
- console.log(selectedRecord);
680
676
  setModel(true);
681
677
  }
682
678
  };
package/dist/index.mjs CHANGED
@@ -565,17 +565,13 @@ import React18 from "react";
565
565
  import { Modal } from "antd";
566
566
  var ModelElement = (props) => {
567
567
  const { onCancel, model, selectedRecord } = props;
568
+ console.log("selectedRecord in model", selectedRecord);
568
569
  return /* @__PURE__ */ React18.createElement(
569
570
  Modal,
570
571
  {
571
572
  open: model,
572
573
  onCancel,
573
- footer: null,
574
- title: /* @__PURE__ */ React18.createElement("div", null, selectedRecord.map(
575
- (eachRecord) => {
576
- return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement("p", null, eachRecord));
577
- }
578
- ))
574
+ footer: null
579
575
  },
580
576
  /* @__PURE__ */ React18.createElement("p", null, "Model opened")
581
577
  );
@@ -586,6 +582,7 @@ var TableElement = (props) => {
586
582
  const { thead, tbody } = props;
587
583
  const [selectedRecord, setSelectedRecord] = useState5({});
588
584
  const [model, setModel] = useState5(false);
585
+ console.log("selectedRecord", selectedRecord);
589
586
  let columns = [];
590
587
  if (thead) {
591
588
  columns = [
@@ -621,11 +618,10 @@ var TableElement = (props) => {
621
618
  columns,
622
619
  bordered: true,
623
620
  size: props.size && props.size,
624
- onRow: (record, rowIndex) => {
621
+ onRow: (record) => {
625
622
  return {
626
623
  onClick: () => {
627
624
  setSelectedRecord(record);
628
- console.log(selectedRecord);
629
625
  setModel(true);
630
626
  }
631
627
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta206",
3
+ "version": "0.0.11-Beta208",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",