df-ae-forms-package 1.0.86 → 1.0.87
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.esm.js +17 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4476,7 +4476,7 @@ formTemplateId, onThresholdActionCompletion, onThresholdIssueRaised, onNotesChan
|
|
|
4476
4476
|
whiteSpace: 'nowrap',
|
|
4477
4477
|
overflow: 'hidden',
|
|
4478
4478
|
textOverflow: 'ellipsis'
|
|
4479
|
-
}, children: component.basic?.label || `Column ${index + 1}` }, `header-${component.id}`))) })), dataEntries.length > 0 ? (dataEntries.map((entry, entryIndex) => (jsxs("div", { className: "table-row", style: {
|
|
4479
|
+
}, children: component.basic?.label || `Column ${index + 1}` }, `header-${component.id || index}`))) })), dataEntries.length > 0 ? (dataEntries.map((entry, entryIndex) => (jsxs("div", { className: "table-row", style: {
|
|
4480
4480
|
// Use flex column for column view, grid for row view
|
|
4481
4481
|
display: columnView ? 'flex' : 'grid',
|
|
4482
4482
|
flexDirection: columnView ? 'column' : 'row',
|
|
@@ -5420,11 +5420,14 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
5420
5420
|
// Recurse
|
|
5421
5421
|
if (comp.children)
|
|
5422
5422
|
extractNotesAndAttachments(comp.children);
|
|
5423
|
-
if (comp.cells)
|
|
5424
|
-
comp.cells.forEach((row) =>
|
|
5425
|
-
if (
|
|
5426
|
-
|
|
5427
|
-
|
|
5423
|
+
if (comp.cells && Array.isArray(comp.cells))
|
|
5424
|
+
comp.cells.forEach((row) => {
|
|
5425
|
+
if (Array.isArray(row))
|
|
5426
|
+
row.forEach((cell) => {
|
|
5427
|
+
if (cell && cell.components)
|
|
5428
|
+
extractNotesAndAttachments(cell.components);
|
|
5429
|
+
});
|
|
5430
|
+
});
|
|
5428
5431
|
if (comp.entries)
|
|
5429
5432
|
comp.entries.forEach((entry) => {
|
|
5430
5433
|
if (entry.components)
|
|
@@ -5610,13 +5613,13 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
5610
5613
|
if (component.name === 'table' && component.cells) {
|
|
5611
5614
|
return {
|
|
5612
5615
|
...component,
|
|
5613
|
-
cells: component.cells.map((row) => row.map((cell) => {
|
|
5616
|
+
cells: component.cells.map((row) => Array.isArray(row) ? row.map((cell) => {
|
|
5614
5617
|
const updatedCell = { ...cell };
|
|
5615
5618
|
if (updatedCell.components) {
|
|
5616
5619
|
updatedCell.components = updateComponentValue(updatedCell.components);
|
|
5617
5620
|
}
|
|
5618
5621
|
return updatedCell;
|
|
5619
|
-
}))
|
|
5622
|
+
}) : row)
|
|
5620
5623
|
};
|
|
5621
5624
|
}
|
|
5622
5625
|
if (component.name === 'datagrid' && component.entries) {
|
|
@@ -6220,13 +6223,13 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6220
6223
|
updatedComponent.children = updateComponentValues(updatedComponent.children);
|
|
6221
6224
|
}
|
|
6222
6225
|
if (updatedComponent.name === 'table' && updatedComponent.cells) {
|
|
6223
|
-
updatedComponent.cells = updatedComponent.cells.map((row) => row.map((cell) => {
|
|
6226
|
+
updatedComponent.cells = updatedComponent.cells.map((row) => Array.isArray(row) ? row.map((cell) => {
|
|
6224
6227
|
const updatedCell = { ...cell };
|
|
6225
6228
|
if (updatedCell.components) {
|
|
6226
6229
|
updatedCell.components = updateComponentValues(updatedCell.components);
|
|
6227
6230
|
}
|
|
6228
6231
|
return updatedCell;
|
|
6229
|
-
}));
|
|
6232
|
+
}) : row);
|
|
6230
6233
|
}
|
|
6231
6234
|
if (updatedComponent.name === 'datagrid' && updatedComponent.entries) {
|
|
6232
6235
|
updatedComponent.entries = updatedComponent.entries.map((entry) => {
|
|
@@ -6407,7 +6410,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6407
6410
|
// Handle notes change for table cell components
|
|
6408
6411
|
const updatedComponents = formComponents.map(comp => {
|
|
6409
6412
|
if (comp.id === component.id && comp.cells) {
|
|
6410
|
-
const updatedCells = comp.cells.map((row) => row.map((cell) => {
|
|
6413
|
+
const updatedCells = comp.cells.map((row) => Array.isArray(row) ? row.map((cell) => {
|
|
6411
6414
|
if (cell.components) {
|
|
6412
6415
|
const updatedCellComponents = cell.components.map((cellComp) => {
|
|
6413
6416
|
if (cellComp.id === componentId) {
|
|
@@ -6424,7 +6427,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6424
6427
|
return { ...cell, components: updatedCellComponents };
|
|
6425
6428
|
}
|
|
6426
6429
|
return cell;
|
|
6427
|
-
}));
|
|
6430
|
+
}) : row);
|
|
6428
6431
|
return { ...comp, cells: updatedCells };
|
|
6429
6432
|
}
|
|
6430
6433
|
return comp;
|
|
@@ -6434,7 +6437,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6434
6437
|
// Handle attachment change for table cell components
|
|
6435
6438
|
const updatedComponents = formComponents.map(comp => {
|
|
6436
6439
|
if (comp.id === component.id && comp.cells) {
|
|
6437
|
-
const updatedCells = comp.cells.map((row) => row.map((cell) => {
|
|
6440
|
+
const updatedCells = comp.cells.map((row) => Array.isArray(row) ? row.map((cell) => {
|
|
6438
6441
|
if (cell.components) {
|
|
6439
6442
|
const updatedCellComponents = cell.components.map((cellComp) => {
|
|
6440
6443
|
if (cellComp.id === componentId) {
|
|
@@ -6451,7 +6454,7 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6451
6454
|
return { ...cell, components: updatedCellComponents };
|
|
6452
6455
|
}
|
|
6453
6456
|
return cell;
|
|
6454
|
-
}));
|
|
6457
|
+
}) : row);
|
|
6455
6458
|
return { ...comp, cells: updatedCells };
|
|
6456
6459
|
}
|
|
6457
6460
|
return comp;
|