df-ae-forms-package 1.0.76 → 1.0.77
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 +24 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6021,14 +6021,22 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6021
6021
|
}
|
|
6022
6022
|
// Handle nested components in table cells
|
|
6023
6023
|
if (component.cells && Array.isArray(component.cells)) {
|
|
6024
|
-
component.cells.forEach((
|
|
6025
|
-
|
|
6026
|
-
|
|
6024
|
+
component.cells.forEach((rowOrCell, _rowIndex) => {
|
|
6025
|
+
// Handle 2D array (standard)
|
|
6026
|
+
if (Array.isArray(rowOrCell)) {
|
|
6027
|
+
rowOrCell.forEach((cell, _cellIndex) => {
|
|
6027
6028
|
if (cell && cell.components && Array.isArray(cell.components)) {
|
|
6028
6029
|
initializeComponentValues(cell.components, values);
|
|
6029
6030
|
}
|
|
6030
6031
|
});
|
|
6031
6032
|
}
|
|
6033
|
+
// Handle 1D array (flat) structure
|
|
6034
|
+
else if (typeof rowOrCell === 'object' && rowOrCell !== null) {
|
|
6035
|
+
const cell = rowOrCell;
|
|
6036
|
+
if (cell && cell.components && Array.isArray(cell.components)) {
|
|
6037
|
+
initializeComponentValues(cell.components, values);
|
|
6038
|
+
}
|
|
6039
|
+
}
|
|
6032
6040
|
});
|
|
6033
6041
|
}
|
|
6034
6042
|
// Handle nested components in datagrid entries
|
|
@@ -6235,12 +6243,22 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6235
6243
|
}
|
|
6236
6244
|
// Handle nested components in table cells
|
|
6237
6245
|
if (component.cells && Array.isArray(component.cells)) {
|
|
6238
|
-
component.cells.forEach((
|
|
6239
|
-
|
|
6246
|
+
component.cells.forEach((rowOrCell) => {
|
|
6247
|
+
// Handle 2D array (standard)
|
|
6248
|
+
if (Array.isArray(rowOrCell)) {
|
|
6249
|
+
rowOrCell.forEach((cell) => {
|
|
6250
|
+
if (cell.components && Array.isArray(cell.components)) {
|
|
6251
|
+
evaluateComponentConditionalLogic(cell.components, visibility, currentFormValues, fullSchema);
|
|
6252
|
+
}
|
|
6253
|
+
});
|
|
6254
|
+
}
|
|
6255
|
+
// Handle 1D array (flat) structure
|
|
6256
|
+
else if (typeof rowOrCell === 'object' && rowOrCell !== null) {
|
|
6257
|
+
const cell = rowOrCell;
|
|
6240
6258
|
if (cell.components && Array.isArray(cell.components)) {
|
|
6241
6259
|
evaluateComponentConditionalLogic(cell.components, visibility, currentFormValues, fullSchema);
|
|
6242
6260
|
}
|
|
6243
|
-
}
|
|
6261
|
+
}
|
|
6244
6262
|
});
|
|
6245
6263
|
}
|
|
6246
6264
|
// Handle nested components in datagrid entries
|