@apexcura/ui-components 0.0.11-Beta56 → 0.0.11-Beta58
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 +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -2
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,17 +383,16 @@ var AddMoreTable = (props) => {
|
|
|
382
383
|
variable_data: [
|
|
383
384
|
{
|
|
384
385
|
id: 1,
|
|
385
|
-
Route: { label: "Route", element: "
|
|
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: "
|
|
392
|
+
icons: { delete: "plusOutlined", add: "plusOut-lined" }
|
|
392
393
|
}
|
|
393
394
|
]
|
|
394
395
|
};
|
|
395
|
-
console.log(rows);
|
|
396
396
|
setRows((prevData) => [...prevData, newRow]);
|
|
397
397
|
};
|
|
398
398
|
const onHandleDelete = (index) => {
|
|
@@ -454,7 +454,6 @@ var AddMoreTable = (props) => {
|
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
const dataSource = rows.flatMap((eachRow, index) => {
|
|
457
|
-
console.log("------rows", rows);
|
|
458
457
|
const rowData = [];
|
|
459
458
|
const mainRow = {
|
|
460
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,17 +336,16 @@ var AddMoreTable = (props) => {
|
|
|
335
336
|
variable_data: [
|
|
336
337
|
{
|
|
337
338
|
id: 1,
|
|
338
|
-
Route: { label: "Route", element: "
|
|
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: "
|
|
345
|
+
icons: { delete: "plusOutlined", add: "plusOut-lined" }
|
|
345
346
|
}
|
|
346
347
|
]
|
|
347
348
|
};
|
|
348
|
-
console.log(rows);
|
|
349
349
|
setRows((prevData) => [...prevData, newRow]);
|
|
350
350
|
};
|
|
351
351
|
const onHandleDelete = (index) => {
|
|
@@ -407,7 +407,6 @@ var AddMoreTable = (props) => {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
const dataSource = rows.flatMap((eachRow, index) => {
|
|
410
|
-
console.log("------rows", rows);
|
|
411
410
|
const rowData = [];
|
|
412
411
|
const mainRow = {
|
|
413
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-
|
|
3
|
+
"version": "0.0.11-Beta58",
|
|
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
|
}
|