@apexcura/ui-components 0.0.11-Beta44 → 0.0.11-Beta45
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 +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -378,7 +378,19 @@ var AddMoreTable = (props) => {
|
|
|
378
378
|
const newId = lastRow ? lastRow.id + 1 : 1;
|
|
379
379
|
let newRow = {
|
|
380
380
|
...lastRow,
|
|
381
|
-
id: newId
|
|
381
|
+
id: newId,
|
|
382
|
+
variable_data: [
|
|
383
|
+
{
|
|
384
|
+
id: 1,
|
|
385
|
+
Route: { label: "Route", element: "single-select", type: "text" },
|
|
386
|
+
Dose: { label: "Dose", element: "single-select", type: "text" },
|
|
387
|
+
Frequency: { label: "Frequency", element: "single-select", type: "text" },
|
|
388
|
+
When: { label: "When", element: "textarea", type: "text" },
|
|
389
|
+
Duration: { label: "Duration", element: "textarea", type: "text" },
|
|
390
|
+
Instructions: { label: "Instructions", element: "textarea", type: "text" },
|
|
391
|
+
icons: { delete: "plusOutlined", add: "plusOutlined" }
|
|
392
|
+
}
|
|
393
|
+
]
|
|
382
394
|
};
|
|
383
395
|
console.log(rows);
|
|
384
396
|
setRows((prevData) => [...prevData, newRow]);
|
package/dist/index.mjs
CHANGED
|
@@ -331,7 +331,19 @@ var AddMoreTable = (props) => {
|
|
|
331
331
|
const newId = lastRow ? lastRow.id + 1 : 1;
|
|
332
332
|
let newRow = {
|
|
333
333
|
...lastRow,
|
|
334
|
-
id: newId
|
|
334
|
+
id: newId,
|
|
335
|
+
variable_data: [
|
|
336
|
+
{
|
|
337
|
+
id: 1,
|
|
338
|
+
Route: { label: "Route", element: "single-select", type: "text" },
|
|
339
|
+
Dose: { label: "Dose", element: "single-select", type: "text" },
|
|
340
|
+
Frequency: { label: "Frequency", element: "single-select", type: "text" },
|
|
341
|
+
When: { label: "When", element: "textarea", type: "text" },
|
|
342
|
+
Duration: { label: "Duration", element: "textarea", type: "text" },
|
|
343
|
+
Instructions: { label: "Instructions", element: "textarea", type: "text" },
|
|
344
|
+
icons: { delete: "plusOutlined", add: "plusOutlined" }
|
|
345
|
+
}
|
|
346
|
+
]
|
|
335
347
|
};
|
|
336
348
|
console.log(rows);
|
|
337
349
|
setRows((prevData) => [...prevData, newRow]);
|