@apexcura/ui-components 0.0.11-Beta57 → 0.0.11-Beta59

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.js CHANGED
@@ -363,6 +363,7 @@ var import_react13 = __toESM(require("react"));
363
363
  var import_antd11 = require("antd");
364
364
  var import_icons2 = require("@ant-design/icons");
365
365
  var AddMoreTable = (props) => {
366
+ console.log("props----------", props);
366
367
  const { thead, tbody } = props;
367
368
  const [tableData, setTableData] = (0, import_react13.useState)({});
368
369
  const [rows, setRows] = (0, import_react13.useState)(tbody || []);
@@ -382,13 +383,13 @@ var AddMoreTable = (props) => {
382
383
  variable_data: [
383
384
  {
384
385
  id: 1,
385
- Route: { label: "Route", element: "single-select", type: "text" },
386
+ Route: { label: "Route", element: "singleselect", type: "text" },
386
387
  Dose: { label: "Dose", element: "single-select", type: "text" },
387
388
  Frequency: { label: "Frequency", element: "single-select", type: "text" },
388
389
  When: { label: "When", element: "textarea", type: "text" },
389
390
  Duration: { label: "Duration", element: "textarea", type: "text" },
390
391
  Instructions: { label: "Instructions", element: "textarea", type: "text" },
391
- icons: { delete: "plusOutlined", add: "plusOutlined" }
392
+ icons: { delete: "plusOutlined", add: "plusOut-lined" }
392
393
  }
393
394
  ]
394
395
  };
@@ -452,7 +453,7 @@ var AddMoreTable = (props) => {
452
453
  return null;
453
454
  }
454
455
  };
455
- const dataSource = rows.map((eachRow, index) => {
456
+ const dataSource = rows.flatMap((eachRow, index) => {
456
457
  const rowData = [];
457
458
  const mainRow = {
458
459
  key: index.toString(),
package/dist/index.mjs CHANGED
@@ -316,6 +316,7 @@ import React12, { useState as useState3 } from "react";
316
316
  import { Table, Button as Button3 } from "antd";
317
317
  import { PlusOutlined, DeleteOutlined } from "@ant-design/icons";
318
318
  var AddMoreTable = (props) => {
319
+ console.log("props----------", props);
319
320
  const { thead, tbody } = props;
320
321
  const [tableData, setTableData] = useState3({});
321
322
  const [rows, setRows] = useState3(tbody || []);
@@ -335,13 +336,13 @@ var AddMoreTable = (props) => {
335
336
  variable_data: [
336
337
  {
337
338
  id: 1,
338
- Route: { label: "Route", element: "single-select", type: "text" },
339
+ Route: { label: "Route", element: "singleselect", type: "text" },
339
340
  Dose: { label: "Dose", element: "single-select", type: "text" },
340
341
  Frequency: { label: "Frequency", element: "single-select", type: "text" },
341
342
  When: { label: "When", element: "textarea", type: "text" },
342
343
  Duration: { label: "Duration", element: "textarea", type: "text" },
343
344
  Instructions: { label: "Instructions", element: "textarea", type: "text" },
344
- icons: { delete: "plusOutlined", add: "plusOutlined" }
345
+ icons: { delete: "plusOutlined", add: "plusOut-lined" }
345
346
  }
346
347
  ]
347
348
  };
@@ -405,7 +406,7 @@ var AddMoreTable = (props) => {
405
406
  return null;
406
407
  }
407
408
  };
408
- const dataSource = rows.map((eachRow, index) => {
409
+ const dataSource = rows.flatMap((eachRow, index) => {
409
410
  const rowData = [];
410
411
  const mainRow = {
411
412
  key: index.toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta57",
3
+ "version": "0.0.11-Beta59",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -48,7 +48,6 @@
48
48
  "node": ">=18.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@apexcura/ui-components": "^0.0.11-Beta53",
52
51
  "@tinymce/tinymce-react": "^5.0.1"
53
52
  }
54
53
  }