@memberjunction/ng-base-forms 6.2.1 → 6.3.0-edge.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.
Files changed (57) hide show
  1. package/README.md +39 -8
  2. package/dist/lib/base-form-component.d.ts +20 -0
  3. package/dist/lib/base-form-component.d.ts.map +1 -1
  4. package/dist/lib/base-form-component.js +69 -7
  5. package/dist/lib/base-form-component.js.map +1 -1
  6. package/dist/lib/comments/comment-card-driver-host.component.d.ts +55 -0
  7. package/dist/lib/comments/comment-card-driver-host.component.d.ts.map +1 -0
  8. package/dist/lib/comments/comment-card-driver-host.component.js +134 -0
  9. package/dist/lib/comments/comment-card-driver-host.component.js.map +1 -0
  10. package/dist/lib/comments/field-suggestion-card.component.d.ts +43 -0
  11. package/dist/lib/comments/field-suggestion-card.component.d.ts.map +1 -0
  12. package/dist/lib/comments/field-suggestion-card.component.js +357 -0
  13. package/dist/lib/comments/field-suggestion-card.component.js.map +1 -0
  14. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts +69 -7
  15. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts.map +1 -1
  16. package/dist/lib/comments/form-record-comments-coordinator.service.js +251 -11
  17. package/dist/lib/comments/form-record-comments-coordinator.service.js.map +1 -1
  18. package/dist/lib/comments/record-comments.component.d.ts +31 -1
  19. package/dist/lib/comments/record-comments.component.d.ts.map +1 -1
  20. package/dist/lib/comments/record-comments.component.js +765 -465
  21. package/dist/lib/comments/record-comments.component.js.map +1 -1
  22. package/dist/lib/container/record-form-container.component.d.ts +6 -0
  23. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  24. package/dist/lib/container/record-form-container.component.js +286 -246
  25. package/dist/lib/container/record-form-container.component.js.map +1 -1
  26. package/dist/lib/field/form-field.component.d.ts +7 -3
  27. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  28. package/dist/lib/field/form-field.component.js +58 -22
  29. package/dist/lib/field/form-field.component.js.map +1 -1
  30. package/dist/lib/isa-related-panel/isa-related-panel.component.d.ts.map +1 -1
  31. package/dist/lib/isa-related-panel/isa-related-panel.component.js +10 -0
  32. package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
  33. package/dist/lib/panel-slot/collect-form-contribution-registrations.js +1 -1
  34. package/dist/lib/panel-slot/collect-form-contribution-registrations.js.map +1 -1
  35. package/dist/lib/subtype-ui-driver/entity-subtype-ui-driver.d.ts +100 -0
  36. package/dist/lib/subtype-ui-driver/entity-subtype-ui-driver.d.ts.map +1 -0
  37. package/dist/lib/subtype-ui-driver/entity-subtype-ui-driver.js +181 -0
  38. package/dist/lib/subtype-ui-driver/entity-subtype-ui-driver.js.map +1 -0
  39. package/dist/lib/subtype-ui-driver/folded-subtype-section.component.d.ts +104 -0
  40. package/dist/lib/subtype-ui-driver/folded-subtype-section.component.d.ts.map +1 -0
  41. package/dist/lib/subtype-ui-driver/folded-subtype-section.component.js +487 -0
  42. package/dist/lib/subtype-ui-driver/folded-subtype-section.component.js.map +1 -0
  43. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js +2 -2
  44. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js.map +1 -1
  45. package/dist/lib/toolbar/form-toolbar.component.d.ts +2 -0
  46. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  47. package/dist/lib/toolbar/form-toolbar.component.js +241 -290
  48. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  49. package/dist/module.d.ts +17 -14
  50. package/dist/module.d.ts.map +1 -1
  51. package/dist/module.js +25 -6
  52. package/dist/module.js.map +1 -1
  53. package/dist/public-api.d.ts +4 -0
  54. package/dist/public-api.d.ts.map +1 -1
  55. package/dist/public-api.js +4 -0
  56. package/dist/public-api.js.map +1 -1
  57. package/package.json +20 -20
package/README.md CHANGED
@@ -31,6 +31,9 @@ per-surface code and no regeneration.
31
31
  | **Record links & hover cards** | `MjRecordLinksComponent` (`<mj-record-links>`), `MjRecordPreviewPopoverComponent` (`<mj-record-preview-popover>`), `MjRecordPreviewDirective` (`[mjRecordPreview]`) | Bidirectional record links drawer (outbound FKs, inbound related entities, polymorphic links) with pin-aware pre-warming and Sage `LinksSummary` context; hover preview cards on read-mode FK links. See [Forms Architecture §7f](../../../../guides/FORMS_ARCHITECTURE_GUIDE.md#7f-bidirectional-record-links-mj-record-links--hover-preview-cards-mj-record-preview-popover). |
32
32
  | **Time-travel version preview** | `MjRecordFormContainerComponent` (`ActiveVersionPreview`, `OnPreviewVersionSelected`, `OnStepVersionPreview`, `OnExitVersionPreview`), `FormSlotCoordinator.VersionPreviewChanged$` | Rehydrates historical `FullRecordJSON` + `ChangesJSON` snapshots directly inside the form with a top Time-Travel Scrubber Bar and changed-field jump chips. See [Forms Architecture §7g](../../../../guides/FORMS_ARCHITECTURE_GUIDE.md#7g-in-form-time-travel-version-preview--record-changes-activity-sparkline). |
33
33
  | **New-record defaults** | `BaseFormComponent.NewRecordValues` / `NewRecordValuesForJoinFields` | Related grids copy every join field onto the child. Explorer persists them as `/record/:entity/new?NewRecordValues=...`. |
34
+ | **Duplicate check at entry** | `DuplicateEntryCheckController`, `DuplicateEntryCheckSession`, `BaseFormComponent.CheckDuplicateEntry` | Flags existing records that may duplicate a new record while it is being typed. See [Duplicate check at entry](#duplicate-check-at-entry). |
35
+ | **Folded IS-A subtype sections** | `MjFoldedSubtypeSectionComponent` (`<mj-folded-subtype-section>`), `EntitySubtypeUIDriverBase` | When `Entity.SubtypeSelector` sets `FoldIntoForm: true`, renders the resolved IS-A child's own fields (or its `UIDriver` component) inline as soon as a type is picked — including before first save. |
36
+ | **Notes & suggestions** | `MjRecordCommentsComponent` (`<mj-record-comments>`), `MjCommentCardDriverHostComponent`, `FieldSuggestionCardComponent`, `FormRecordCommentsCoordinatorService` | Unified **Notes & suggestions** drawer and field popover with per-type field badges, type filter pills, dynamic `UIDriverClass` cards, and one-click `Field Suggestion` Accept / Reject / Discuss. |
34
37
 
35
38
  ## Quick start
36
39
 
@@ -240,18 +243,46 @@ export class CustomPersonPreviewPopoverComponent extends MjRecordPreviewPopoverC
240
243
  }
241
244
  ```
242
245
 
243
- ## Anchored Record Comments (`<mj-record-comments>`)
244
-
245
- Every saved record form automatically provides threaded conversations (`MJ: Conversations` + `MJ: Conversation Details`) anchored at the **Record**, **Field**, **Section**, **Group (Left-Nav Tab)**, or **Contribution** level:
246
-
247
- - **Form Toolbar Action (`RecordCommentsToolbarAction`, key `'comments'`)**: Displays the total open comment count across the record and toggles the slide-over Record Comments Drawer.
248
- - **Field-Level Trigger & Badge (`<mj-form-field>`)**: Shows an inline comment count badge on fields with active threads (or a hover trigger to start a thread), capturing a `quotedValue` snapshot of the field's value at the time of commenting. Fields with open comments are never collapsed away as empty in read mode.
249
- - **Section & Left-Nav Rail Rollup (`<mj-collapsible-panel>`, `<mj-record-form-container>`, `FormSectionIndicators`)**: Open field and section comments roll up into section header chips and left-nav group badges. Clicking any anchor chip in the drawer or popover expands the target group/section, scrolls the field into view, and pulses it.
250
- - **RLS & FLS Security + `@Mention` Notifications**: Enforces Row-Level Security and Field-Level Security (including write-time restricted-field classification and `AnchorMetadataObject.restrictedFields` stamping) and dispatches `MJ: User Notifications` on `@mention` only to users permitted to read both the record and the anchored/referenced fields.
246
+ ## Duplicate check at entry
247
+
248
+ While a user fills in a **new, unsaved** record, every form built on `BaseFormComponent` asks the server
249
+ whether existing records look like the same thing, and shows a dismissible notice above the form:
250
+ **"This may duplicate:"** followed by the matches' names, each opening the existing record in a new
251
+ tab. It only flags — it never blocks a save, and saving clears the notice.
252
+
253
+ - **Turning it on** is server-side configuration, not a form setting: the entity needs an Active
254
+ entity document with `EnableLLMReasoning` on and `ReasoningMode` = `Decision` or
255
+ `DecisionThenPrompt`. Otherwise the server answers `NotConfigured` and the form stops asking about
256
+ that entity for the rest of the session (`DuplicateEntryCheckSession`); `NotAuthorized` does the same.
257
+ - **When it runs**: `DUPLICATE_ENTRY_CHECK_DEBOUNCE_MS` (600 ms) after the last field edit, only for a
258
+ user who can read the entity, one check at a time. Edits made meanwhile are checked once, on the
259
+ latest values, after the answer or after `DUPLICATE_ENTRY_CHECK_IN_FLIGHT_LIMIT_MS` (3 s).
260
+ - **Budget**: an answer later than `DUPLICATE_ENTRY_CHECK_BUDGET_MS` (1.5 s), or one that newer edits
261
+ have overtaken, is dropped.
262
+ - **What is sent**: every field except primary keys and `__mj_*` columns, non-empty scalar values only,
263
+ text cut to `DUPLICATE_ENTRY_CHECK_MAX_FIELD_TEXT_LENGTH` (500) characters
264
+ (`DuplicateEntryCheckValues`).
265
+ - **The call**: `BaseFormComponent.CheckDuplicateEntry` sends `GraphQLAIClient.CheckDuplicateEntry`
266
+ (the `CheckDuplicateEntry` mutation). Override it in a form subclass to change how the check is made;
267
+ a provider that is not a GraphQL provider answers `NotConfigured`.
268
+
269
+ How the server finds and judges the candidates is in the
270
+ [Duplicate Management Guide](../../../../guides/DUPLICATE_MANAGEMENT_GUIDE.md#7-the-entry-time-duplicate-check).
271
+
272
+ ## Notes & Suggestions (`<mj-record-comments>` & `FieldSuggestionCardComponent`)
273
+
274
+ Every saved record form automatically provides threaded conversations and structured comment subtypes (`MJ: Conversations`, `MJ: Comments`, `MJ: Comment Types`, and `MJ: Field Suggestions`) anchored at the **Record**, **Field**, **Section**, **Group (Left-Nav Tab)**, or **Contribution** level:
275
+
276
+ - **Form Toolbar Action (`RecordCommentsToolbarAction`, key `'comments'`, label `'Notes & suggestions'`)**: Displays the total open note + pending field-suggestion count across the record and toggles the slide-over **Notes & suggestions** drawer.
277
+ - **Per-Type Field Triggers & Badges (`<mj-form-field>`)**: Shows separate inline badges for open plain notes and pending `MJ: Field Suggestions` (or a hover trigger to start a thread), opening the anchored popover pre-filtered to that comment type. Fields with open notes or suggestions are never collapsed away as empty in read mode.
278
+ - **Dynamic `UIDriverClass` Cards (`<mj-comment-card-driver-host>` & `FieldSuggestionCardComponent`)**: Plain comments render with the standard threaded card, whereas comment types declaring a `UIDriverClass` (such as `FieldSuggestionCardComponent`, registered via `@RegisterClass(EntitySubtypeUIDriverBase, 'FieldSuggestionCardComponent')`) render specialized cards with ghost value diffs, **Accept** (reloading the clean record into the form), **Reject**, and on-demand **Discuss**.
279
+ - **Section & Left-Nav Rail Rollup (`<mj-collapsible-panel>`, `<mj-record-form-container>`, `FormSectionIndicators`)**: Open counts roll up into section header chips and left-nav group badges. Clicking any anchor chip in the drawer or popover expands the target group/section, scrolls the field into view, and pulses it.
280
+ - **RLS & FLS Security + `@Mention` Notifications**: Enforces Row-Level Security and Field-Level Security across all IS-A views (`MJ: Conversations`, `MJ: Comments`, `MJ: Field Suggestions`, `MJ: Conversation Details`) and dispatches `MJ: User Notifications` on `@mention` only to users permitted to read both the record and the anchored/referenced fields.
251
281
 
252
282
  ## Related docs
253
283
 
254
284
  - **Architecture (read first):** [/guides/FORMS_ARCHITECTURE_GUIDE.md](../../../../guides/FORMS_ARCHITECTURE_GUIDE.md)
285
+ - **Duplicate detection, the entry-time check and merging:** [/guides/DUPLICATE_MANAGEMENT_GUIDE.md](../../../../guides/DUPLICATE_MANAGEMENT_GUIDE.md)
255
286
  - **Anchored Conversations & Record Commenting:** [/guides/ANCHORED_CONVERSATIONS_AND_RECORD_COMMENTS_GUIDE.md](../../../../guides/ANCHORED_CONVERSATIONS_AND_RECORD_COMMENTS_GUIDE.md)
256
287
  - **Inject custom sections into a form:** [PANELS.md](./PANELS.md)
257
288
  - **Form chrome (rail / More / inclusion):** [Forms Architecture §7d](../../../../guides/FORMS_ARCHITECTURE_GUIDE.md#7d-form-chrome--accordion-left-nav-and-more)
@@ -226,9 +226,19 @@ export declare abstract class BaseFormComponent extends BaseRecordComponent impl
226
226
  */
227
227
  AskAIRequested: EventEmitter<void>;
228
228
  private readonly _formPanels;
229
+ private readonly _subtypeValidators;
229
230
  /** Slot hosts register every mounted panel so validation can include panel-owned checks. */
230
231
  RegisterFormPanel(panel: BaseFormPanel): void;
231
232
  UnregisterFormPanel(panel: BaseFormPanel): void;
233
+ /** Folded subtype sections register custom UIDriver validators so SaveRecord awaits them. */
234
+ RegisterSubtypeValidator(validator: {
235
+ Validate(): ValidationResult | Promise<ValidationResult>;
236
+ LastKnownValidation(): ValidationResult;
237
+ }): void;
238
+ UnregisterSubtypeValidator(validator: {
239
+ Validate(): ValidationResult | Promise<ValidationResult>;
240
+ LastKnownValidation(): ValidationResult;
241
+ }): void;
232
242
  /**
233
243
  * Fires when a section's known row count changes — from the container's batched
234
244
  * count prefetch, a related grid load (including a manual grid refresh), or a
@@ -275,6 +285,15 @@ export declare abstract class BaseFormComponent extends BaseRecordComponent impl
275
285
  * (the AI Agent form's "Remove action", added actions and prompts), and `CancelEdit` reverts
276
286
  * saves but leaves delete entries in the list, so outside edit mode they are stale.
277
287
  */
288
+ /**
289
+ * True when `SubtypeSelector.FoldIntoForm` is enabled and any folded `ISAChild` record
290
+ * holds dirty own-field edits.
291
+ */
292
+ get IsFoldedSubtypeDirty(): boolean;
293
+ /**
294
+ * Dirty own-field names across any folded `ISAChild` chain when `FoldIntoForm` is enabled.
295
+ */
296
+ get FoldedSubtypeDirtyFieldNames(): string[];
278
297
  get HasUnsavedChangesBeyondRecord(): boolean;
279
298
  protected PendingRecordsDirty(): boolean;
280
299
  protected PopulatePendingRecords(): void;
@@ -308,6 +327,7 @@ export declare abstract class BaseFormComponent extends BaseRecordComponent impl
308
327
  */
309
328
  ValidateAsync(): Promise<ValidationResult>;
310
329
  private validateRecordAndPending;
330
+ private foldedValidationTarget;
311
331
  protected RaiseEvent(eventCode: BaseFormComponentEventCodes): FormEditingCompleteEvent;
312
332
  SaveRecord(StopEditModeAfterSave: boolean): Promise<boolean>;
313
333
  CancelEdit(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"base-form-component.d.ts","sourceRoot":"","sources":["../../src/lib/base-form-component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAAE,MAAM,EAAE,SAAS,EAClB,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAC9C,YAAY,EACrB,MAAM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;OAIG;IACI,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAIvD;;;;OAIG;IACU,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB/C;;;OAGG;IACU,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/C;;;OAGG;IACI,kBAAkB,IAAI,IAAI;IAIjC;;;OAGG;IACI,yBAAyB,IAAI,IAAI;yCAxtDpB,iBAAiB;2CAAjB,iBAAiB;CA8tDtC"}
@@ -250,6 +250,7 @@ export class BaseFormComponent extends BaseRecordComponent {
250
250
  */
251
251
  AskAIRequested = new EventEmitter();
252
252
  _formPanels = new Set();
253
+ _subtypeValidators = new Set();
253
254
  /** Slot hosts register every mounted panel so validation can include panel-owned checks. */
254
255
  RegisterFormPanel(panel) {
255
256
  this._formPanels.add(panel);
@@ -257,6 +258,13 @@ export class BaseFormComponent extends BaseRecordComponent {
257
258
  UnregisterFormPanel(panel) {
258
259
  this._formPanels.delete(panel);
259
260
  }
261
+ /** Folded subtype sections register custom UIDriver validators so SaveRecord awaits them. */
262
+ RegisterSubtypeValidator(validator) {
263
+ this._subtypeValidators.add(validator);
264
+ }
265
+ UnregisterSubtypeValidator(validator) {
266
+ this._subtypeValidators.delete(validator);
267
+ }
260
268
  /**
261
269
  * Fires when a section's known row count changes — from the container's batched
262
270
  * count prefetch, a related grid load (including a manual grid refresh), or a
@@ -350,9 +358,38 @@ export class BaseFormComponent extends BaseRecordComponent {
350
358
  * (the AI Agent form's "Remove action", added actions and prompts), and `CancelEdit` reverts
351
359
  * saves but leaves delete entries in the list, so outside edit mode they are stale.
352
360
  */
361
+ /**
362
+ * True when `SubtypeSelector.FoldIntoForm` is enabled and any folded `ISAChild` record
363
+ * holds dirty own-field edits.
364
+ */
365
+ get IsFoldedSubtypeDirty() {
366
+ return this.FoldedSubtypeDirtyFieldNames.length > 0;
367
+ }
368
+ /**
369
+ * Dirty own-field names across any folded `ISAChild` chain when `FoldIntoForm` is enabled.
370
+ */
371
+ get FoldedSubtypeDirtyFieldNames() {
372
+ if (!this.record || this.record.EntityInfo?.SubtypeSelectorConfig?.FoldIntoForm !== true) {
373
+ return [];
374
+ }
375
+ const dirtyNames = [];
376
+ let current = this.record.ISAChild;
377
+ while (current) {
378
+ const parentNames = current.EntityInfo.ParentEntityFieldNames;
379
+ for (const f of current.Fields) {
380
+ if (!f.EntityFieldInfo.IsPrimaryKey && !parentNames.has(f.Name) && f.Dirty) {
381
+ dirtyNames.push(f.Name);
382
+ }
383
+ }
384
+ current = current.EntityInfo.SubtypeSelectorConfig?.FoldIntoForm ? current.ISAChild : null;
385
+ }
386
+ return dirtyNames;
387
+ }
353
388
  get HasUnsavedChangesBeyondRecord() {
354
389
  if (this.HasAdditionalUnsavedChanges)
355
390
  return true;
391
+ if (this.IsFoldedSubtypeDirty)
392
+ return true;
356
393
  const isUnsaved = (p) => p.action === 'delete' || p.entityObject.Dirty;
357
394
  if (this.EditMode && this._pendingRecords.some(isUnsaved))
358
395
  return true;
@@ -429,7 +466,10 @@ export class BaseFormComponent extends BaseRecordComponent {
429
466
  if (this._omitLastKnownPanelValidation) {
430
467
  return valResults;
431
468
  }
432
- return MergePanelValidation(valResults, [...this._formPanels].map((panel) => panel.LastKnownValidation()));
469
+ return MergePanelValidation(valResults, [
470
+ ...[...this._formPanels].map((panel) => panel.LastKnownValidation()),
471
+ ...[...this._subtypeValidators].map((v) => v.LastKnownValidation()),
472
+ ]);
433
473
  }
434
474
  /** True only while {@link ValidateAsync} calls {@link Validate}: the awaited panel results take the place of the last-known ones. */
435
475
  _omitLastKnownPanelValidation = false;
@@ -454,11 +494,15 @@ export class BaseFormComponent extends BaseRecordComponent {
454
494
  finally {
455
495
  this._omitLastKnownPanelValidation = false;
456
496
  }
457
- const panelResults = await Promise.all([...this._formPanels].map((panel) => panel.Validate()));
497
+ const panelResults = await Promise.all([
498
+ ...[...this._formPanels].map((panel) => panel.Validate()),
499
+ ...[...this._subtypeValidators].map((v) => v.Validate()),
500
+ ]);
458
501
  return MergePanelValidation(base, panelResults);
459
502
  }
460
503
  validateRecordAndPending() {
461
- const valResults = this.record.Validate();
504
+ const targetRecord = this.foldedValidationTarget(this.record);
505
+ const valResults = targetRecord.Validate();
462
506
  const pendingValResults = this.ValidatePendingRecords();
463
507
  for (let i = 0; i < pendingValResults.length; i++) {
464
508
  const pendingValResult = pendingValResults[i];
@@ -469,6 +513,13 @@ export class BaseFormComponent extends BaseRecordComponent {
469
513
  }
470
514
  return valResults;
471
515
  }
516
+ foldedValidationTarget(record) {
517
+ let current = record;
518
+ while (current.EntityInfo?.SubtypeSelectorConfig?.FoldIntoForm === true && current.ISAChild) {
519
+ current = current.ISAChild;
520
+ }
521
+ return current;
522
+ }
472
523
  RaiseEvent(eventCode) {
473
524
  const event = new FormEditingCompleteEvent();
474
525
  event.elementRef = this.elementRef;
@@ -553,9 +604,13 @@ export class BaseFormComponent extends BaseRecordComponent {
553
604
  // entities. We need to know whether this record was ever persisted so we
554
605
  // can tell the host to dismiss the form (there's nothing to view).
555
606
  const wasNeverSaved = !r.IsSaved;
556
- if (r.Dirty || this.PendingRecordsDirty()) {
607
+ if (r.Dirty || this.IsFoldedSubtypeDirty || this.PendingRecordsDirty()) {
557
608
  // Revert is safe here — the toolbar's discard dialog already confirmed with the user
558
- r.Revert();
609
+ const leaf = this.foldedValidationTarget(r);
610
+ leaf.Revert();
611
+ if (r.EntityInfo?.SubtypeSelectorConfig?.FoldIntoForm === true) {
612
+ void r.ReconcileISAChild();
613
+ }
559
614
  const pendingRecords = this.PendingRecords;
560
615
  if (pendingRecords && pendingRecords.length > 0) {
561
616
  pendingRecords.forEach(p => {
@@ -1164,10 +1219,17 @@ export class BaseFormComponent extends BaseRecordComponent {
1164
1219
  * matches an empty Source) but still belong in the toast.
1165
1220
  */
1166
1221
  fieldSourcedServerErrors() {
1167
- const errors = DeserializeValidationErrors(this.record?.LatestResult?.Errors);
1168
- if (errors.length === 0)
1222
+ const target = this.record ? this.foldedValidationTarget(this.record) : null;
1223
+ const rawErrors = target?.LatestResult?.Errors?.length ? target.LatestResult.Errors : this.record?.LatestResult?.Errors;
1224
+ const errors = DeserializeValidationErrors(rawErrors);
1225
+ if (errors.length === 0 || !this.record)
1169
1226
  return [];
1170
1227
  const fieldNames = new Set(this.record.EntityInfo.Fields.map(f => f.Name));
1228
+ if (target && target !== this.record) {
1229
+ for (const f of target.EntityInfo.Fields) {
1230
+ fieldNames.add(f.Name);
1231
+ }
1232
+ }
1171
1233
  return errors.some(e => e.Source.length > 0 && fieldNames.has(e.Source)) ? errors : [];
1172
1234
  }
1173
1235
  /** Clears all validation display state (called on save success, cancel, end edit) */