pict-section-recordset 1.4.0 → 1.5.0
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/package.json
CHANGED
|
@@ -158,6 +158,19 @@ class ViewRecordSetSUBSETFilterEntityReferenceBase extends ViewRecordSetSUBSETFi
|
|
|
158
158
|
|| pRecord.ExternalFilterByColumns || (pRecord.ExternalFilterByColumn ? [ pRecord.ExternalFilterByColumn ] : [ 'Name' ]);
|
|
159
159
|
pRecord.ClauseDescriptor.PictForm.ValueArrayAddress = pRecord.ClauseValuesAddress;
|
|
160
160
|
pRecord.ClauseDescriptor.PictForm.GetContextScopeFilter = () => this.getContextScopeFilter(this.getInformaryScopedValue(pRecord.ClauseAddress) || pRecord);
|
|
161
|
+
// JoinEntity compound display (host opt-in on the clause): show each searched row joined to a
|
|
162
|
+
// parent entity's field — e.g. a LineItem disambiguated by its Project. The picker fetch-then-
|
|
163
|
+
// merges the join (Meadow can't join in one read). Forwarded straight through; no-op when unset.
|
|
164
|
+
if (pRecord.JoinEntity || pRecord.ClauseDescriptor.PictForm.JoinEntity)
|
|
165
|
+
{
|
|
166
|
+
const tmpPF = pRecord.ClauseDescriptor.PictForm;
|
|
167
|
+
tmpPF.JoinEntity = tmpPF.JoinEntity || pRecord.JoinEntity;
|
|
168
|
+
tmpPF.JoinField = tmpPF.JoinField || pRecord.JoinField;
|
|
169
|
+
tmpPF.JoinEntityValueField = tmpPF.JoinEntityValueField || pRecord.JoinEntityValueField;
|
|
170
|
+
tmpPF.JoinEntityDisplayField = tmpPF.JoinEntityDisplayField || pRecord.JoinEntityDisplayField;
|
|
171
|
+
if (tmpPF.JoinEntityFirst === undefined && pRecord.JoinEntityFirst !== undefined) { tmpPF.JoinEntityFirst = pRecord.JoinEntityFirst; }
|
|
172
|
+
if (tmpPF.JoinSeparator === undefined && pRecord.JoinSeparator !== undefined) { tmpPF.JoinSeparator = pRecord.JoinSeparator; }
|
|
173
|
+
}
|
|
161
174
|
// Saved-filter seeding: mirror the live clause's Values array into the csv `.StringArrayValue`
|
|
162
175
|
// the input reads, so a reloaded/persisted filter shows its current selections on render.
|
|
163
176
|
const tmpLiveClause = this.getInformaryScopedValue(pRecord.ClauseAddress);
|