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