df-ae-forms-package 1.0.74 → 1.0.76
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 +35 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +35 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -180,7 +180,19 @@ class ConditionalLogicService {
|
|
|
180
180
|
}
|
|
181
181
|
if (comp.name === 'table' && comp.cells) {
|
|
182
182
|
for (const row of comp.cells) {
|
|
183
|
-
|
|
183
|
+
// Check if row is iterable (array)
|
|
184
|
+
if (Array.isArray(row)) {
|
|
185
|
+
for (const cell of row) {
|
|
186
|
+
if (cell.components) {
|
|
187
|
+
const found = this.findComponent(cell.components, componentId);
|
|
188
|
+
if (found)
|
|
189
|
+
return found;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
// Handle case where cells is a 1D array (row is actually a cell)
|
|
195
|
+
const cell = row;
|
|
184
196
|
if (cell.components) {
|
|
185
197
|
const found = this.findComponent(cell.components, componentId);
|
|
186
198
|
if (found)
|
|
@@ -224,7 +236,14 @@ class ConditionalLogicService {
|
|
|
224
236
|
traverse(item.templateComponents);
|
|
225
237
|
if (item.cells) {
|
|
226
238
|
for (const row of item.cells) {
|
|
227
|
-
|
|
239
|
+
if (Array.isArray(row)) {
|
|
240
|
+
for (const cell of row) {
|
|
241
|
+
if (cell.components)
|
|
242
|
+
traverse(cell.components);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
const cell = row;
|
|
228
247
|
if (cell.components)
|
|
229
248
|
traverse(cell.components);
|
|
230
249
|
}
|
|
@@ -6071,10 +6090,20 @@ onComponentSelect, onComponentDelete, onComponentEdit, onComponentUpdate, select
|
|
|
6071
6090
|
if (comp.children)
|
|
6072
6091
|
extractNotesAndAttachments(comp.children);
|
|
6073
6092
|
if (comp.cells)
|
|
6074
|
-
comp.cells.forEach((row) =>
|
|
6075
|
-
if (
|
|
6076
|
-
|
|
6077
|
-
|
|
6093
|
+
comp.cells.forEach((row) => {
|
|
6094
|
+
if (Array.isArray(row)) {
|
|
6095
|
+
row.forEach((cell) => {
|
|
6096
|
+
if (cell.components)
|
|
6097
|
+
extractNotesAndAttachments(cell.components);
|
|
6098
|
+
});
|
|
6099
|
+
}
|
|
6100
|
+
else {
|
|
6101
|
+
// Handle 1D array structure (row is actually a cell)
|
|
6102
|
+
const cell = row;
|
|
6103
|
+
if (cell.components)
|
|
6104
|
+
extractNotesAndAttachments(cell.components);
|
|
6105
|
+
}
|
|
6106
|
+
});
|
|
6078
6107
|
if (comp.entries)
|
|
6079
6108
|
comp.entries.forEach((entry) => {
|
|
6080
6109
|
if (entry.components)
|