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