@apia/api 4.0.77 → 4.0.78

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.js CHANGED
@@ -4250,13 +4250,27 @@ class QueryController {
4250
4250
  initiallySelected: r.selected,
4251
4251
  isLocked: r.isLocked,
4252
4252
  rowProps: r,
4253
- cells: [
4254
- columns.find((c) => c.showAsAdditional) ? {} : void 0,
4255
- ...columns.filter((c) => c.hidden).map(() => ({})),
4256
- ...arrayOrArray(r.cell).map((c) => ({
4257
- children: typeof c === "string" ? unescapeHtml(c) : c
4258
- }))
4259
- ].filter(Boolean),
4253
+ cells: (() => {
4254
+ const hasAdditionalCol = columns.some((c) => c.showAsAdditional);
4255
+ const rawCells = arrayOrArray(r.cell);
4256
+ const isAdditionalCell = (x) => x && typeof x === "object" && !Array.isArray(x) && "moreInfo" in x;
4257
+ const normalCells = rawCells.filter((c) => !isAdditionalCell(c));
4258
+ const additionalCells = rawCells.filter(
4259
+ (c) => isAdditionalCell(c)
4260
+ );
4261
+ return [
4262
+ ...columns.filter((c) => c.hidden).map(() => ({})),
4263
+ ...normalCells.map((c) => ({
4264
+ children: typeof c === "string" ? unescapeHtml(c) : c
4265
+ })),
4266
+ ...hasAdditionalCol ? additionalCells.map((a) => ({
4267
+ children: a.moreInfo,
4268
+ className: "",
4269
+ id: uniqueId$1(),
4270
+ title: uniqueId$1()
4271
+ })) : []
4272
+ ].filter(Boolean);
4273
+ })(),
4260
4274
  className: r.classToAdd,
4261
4275
  id: r.id ?? uniqueId$1("row")
4262
4276
  };