@memberjunction/ng-base-forms 6.2.0-edge.6 → 6.2.0-edge.8

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 (98) hide show
  1. package/README.md +10 -0
  2. package/dist/lib/apply/form-placement-preview.component.d.ts.map +1 -1
  3. package/dist/lib/apply/form-placement-preview.component.js +1 -0
  4. package/dist/lib/apply/form-placement-preview.component.js.map +1 -1
  5. package/dist/lib/base-form-component.d.ts +15 -2
  6. package/dist/lib/base-form-component.d.ts.map +1 -1
  7. package/dist/lib/base-form-component.js +18 -8
  8. package/dist/lib/base-form-component.js.map +1 -1
  9. package/dist/lib/chrome/form-chrome-coordinator.service.d.ts.map +1 -1
  10. package/dist/lib/chrome/form-chrome-coordinator.service.js +4 -1
  11. package/dist/lib/chrome/form-chrome-coordinator.service.js.map +1 -1
  12. package/dist/lib/chrome/phone-viewport.d.ts +15 -0
  13. package/dist/lib/chrome/phone-viewport.d.ts.map +1 -0
  14. package/dist/lib/chrome/phone-viewport.js +28 -0
  15. package/dist/lib/chrome/phone-viewport.js.map +1 -0
  16. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts +159 -0
  17. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts.map +1 -0
  18. package/dist/lib/comments/form-record-comments-coordinator.service.js +421 -0
  19. package/dist/lib/comments/form-record-comments-coordinator.service.js.map +1 -0
  20. package/dist/lib/comments/record-comments.component.d.ts +205 -0
  21. package/dist/lib/comments/record-comments.component.d.ts.map +1 -0
  22. package/dist/lib/comments/record-comments.component.js +2019 -0
  23. package/dist/lib/comments/record-comments.component.js.map +1 -0
  24. package/dist/lib/container/record-form-container.component.d.ts +47 -1
  25. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  26. package/dist/lib/container/record-form-container.component.js +877 -316
  27. package/dist/lib/container/record-form-container.component.js.map +1 -1
  28. package/dist/lib/field/default-fk-lookup-strategy.d.ts.map +1 -1
  29. package/dist/lib/field/default-fk-lookup-strategy.js +14 -6
  30. package/dist/lib/field/default-fk-lookup-strategy.js.map +1 -1
  31. package/dist/lib/field/fk-lookup-strategy.d.ts +11 -0
  32. package/dist/lib/field/fk-lookup-strategy.d.ts.map +1 -1
  33. package/dist/lib/field/fk-lookup-strategy.js +10 -0
  34. package/dist/lib/field/fk-lookup-strategy.js.map +1 -1
  35. package/dist/lib/field/fk-search-utils.d.ts +17 -0
  36. package/dist/lib/field/fk-search-utils.d.ts.map +1 -1
  37. package/dist/lib/field/fk-search-utils.js +29 -0
  38. package/dist/lib/field/fk-search-utils.js.map +1 -1
  39. package/dist/lib/field/form-field.component.d.ts +35 -1
  40. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  41. package/dist/lib/field/form-field.component.js +631 -446
  42. package/dist/lib/field/form-field.component.js.map +1 -1
  43. package/dist/lib/host/entity-form-host.component.d.ts +6 -0
  44. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  45. package/dist/lib/host/entity-form-host.component.js +17 -3
  46. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  47. package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
  48. package/dist/lib/interactive-form/interactive-form.component.js +1 -0
  49. package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
  50. package/dist/lib/links/record-links.component.d.ts +6 -0
  51. package/dist/lib/links/record-links.component.d.ts.map +1 -1
  52. package/dist/lib/links/record-links.component.js +30 -7
  53. package/dist/lib/links/record-links.component.js.map +1 -1
  54. package/dist/lib/panel/collapsible-panel.component.d.ts +5 -0
  55. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  56. package/dist/lib/panel/collapsible-panel.component.js +109 -30
  57. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  58. package/dist/lib/preview-popover/record-preview-popover.component.d.ts +8 -1
  59. package/dist/lib/preview-popover/record-preview-popover.component.d.ts.map +1 -1
  60. package/dist/lib/preview-popover/record-preview-popover.component.js +33 -9
  61. package/dist/lib/preview-popover/record-preview-popover.component.js.map +1 -1
  62. package/dist/lib/related-grid-height.d.ts +2 -2
  63. package/dist/lib/related-grid-height.d.ts.map +1 -1
  64. package/dist/lib/related-grid-height.js +2 -2
  65. package/dist/lib/related-grid-height.js.map +1 -1
  66. package/dist/lib/section-indicators/form-section-indicators.d.ts +4 -0
  67. package/dist/lib/section-indicators/form-section-indicators.d.ts.map +1 -1
  68. package/dist/lib/section-indicators/form-section-indicators.js +15 -1
  69. package/dist/lib/section-indicators/form-section-indicators.js.map +1 -1
  70. package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts +17 -0
  71. package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts.map +1 -0
  72. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js +52 -0
  73. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js.map +1 -0
  74. package/dist/lib/toolbar/base-form-toolbar-action.d.ts +9 -0
  75. package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -1
  76. package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -1
  77. package/dist/lib/toolbar/form-toolbar.component.d.ts +107 -2
  78. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  79. package/dist/lib/toolbar/form-toolbar.component.js +927 -415
  80. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  81. package/dist/lib/types/form-toolbar-item.d.ts +1 -1
  82. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  83. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  84. package/dist/lib/types/form-types.d.ts +8 -0
  85. package/dist/lib/types/form-types.d.ts.map +1 -1
  86. package/dist/lib/types/form-types.js.map +1 -1
  87. package/dist/lib/types/toolbar-config.d.ts +2 -0
  88. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  89. package/dist/lib/types/toolbar-config.js.map +1 -1
  90. package/dist/module.d.ts +15 -14
  91. package/dist/module.d.ts.map +1 -1
  92. package/dist/module.js +15 -5
  93. package/dist/module.js.map +1 -1
  94. package/dist/public-api.d.ts +3 -0
  95. package/dist/public-api.d.ts.map +1 -1
  96. package/dist/public-api.js +3 -0
  97. package/dist/public-api.js.map +1 -1
  98. package/package.json +20 -20
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The one breakpoint the form chrome treats as "a phone": the section rail becomes a single
3
+ * section picker that opens a searchable bottom sheet, the toolbar auto-hides behind the
4
+ * [Edit | …] pill, and the standard-form switch moves into the View sheet. Keep every
5
+ * form-side `matchMedia` on this constant.
6
+ */
7
+ export declare const PHONE_VIEWPORT_MEDIA_QUERY = "(max-width: 768px)";
8
+ /** True at phone width. False wherever `matchMedia` does not exist (jsdom, SSR). */
9
+ export declare function IsPhoneViewport(): boolean;
10
+ /**
11
+ * Calls `onChange` whenever the viewport crosses the phone breakpoint. Returns the
12
+ * function that stops watching; always returns one, even where there is no `matchMedia`.
13
+ */
14
+ export declare function WatchPhoneViewport(onChange: () => void): () => void;
15
+ //# sourceMappingURL=phone-viewport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-viewport.d.ts","sourceRoot":"","sources":["../../../src/lib/chrome/phone-viewport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,uBAAuB,CAAC;AAO/D,oFAAoF;AACpF,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAKnE"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The one breakpoint the form chrome treats as "a phone": the section rail becomes a single
3
+ * section picker that opens a searchable bottom sheet, the toolbar auto-hides behind the
4
+ * [Edit | …] pill, and the standard-form switch moves into the View sheet. Keep every
5
+ * form-side `matchMedia` on this constant.
6
+ */
7
+ export const PHONE_VIEWPORT_MEDIA_QUERY = '(max-width: 768px)';
8
+ function phoneMedia() {
9
+ if (typeof window === 'undefined' || typeof window.matchMedia !== 'function')
10
+ return null;
11
+ return window.matchMedia(PHONE_VIEWPORT_MEDIA_QUERY);
12
+ }
13
+ /** True at phone width. False wherever `matchMedia` does not exist (jsdom, SSR). */
14
+ export function IsPhoneViewport() {
15
+ return phoneMedia()?.matches === true;
16
+ }
17
+ /**
18
+ * Calls `onChange` whenever the viewport crosses the phone breakpoint. Returns the
19
+ * function that stops watching; always returns one, even where there is no `matchMedia`.
20
+ */
21
+ export function WatchPhoneViewport(onChange) {
22
+ const media = phoneMedia();
23
+ if (!media || typeof media.addEventListener !== 'function')
24
+ return () => undefined;
25
+ media.addEventListener('change', onChange);
26
+ return () => media.removeEventListener('change', onChange);
27
+ }
28
+ //# sourceMappingURL=phone-viewport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-viewport.js","sourceRoot":"","sources":["../../../src/lib/chrome/phone-viewport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,oBAAoB,CAAC;AAE/D,SAAS,UAAU;IACf,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU;QAAE,OAAO,IAAI,CAAC;IAC1F,OAAO,MAAM,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;AACzD,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,eAAe;IAC3B,OAAO,UAAU,EAAE,EAAE,OAAO,KAAK,IAAI,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAoB;IACnD,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAC3B,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,CAAC,gBAAgB,KAAK,UAAU;QAAE,OAAO,GAAG,EAAE,CAAC,SAAS,CAAC;IACnF,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["/**\n * The one breakpoint the form chrome treats as \"a phone\": the section rail becomes a single\n * section picker that opens a searchable bottom sheet, the toolbar auto-hides behind the\n * [Edit | …] pill, and the standard-form switch moves into the View sheet. Keep every\n * form-side `matchMedia` on this constant.\n */\nexport const PHONE_VIEWPORT_MEDIA_QUERY = '(max-width: 768px)';\n\nfunction phoneMedia(): MediaQueryList | null {\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return null;\n return window.matchMedia(PHONE_VIEWPORT_MEDIA_QUERY);\n}\n\n/** True at phone width. False wherever `matchMedia` does not exist (jsdom, SSR). */\nexport function IsPhoneViewport(): boolean {\n return phoneMedia()?.matches === true;\n}\n\n/**\n * Calls `onChange` whenever the viewport crosses the phone breakpoint. Returns the\n * function that stops watching; always returns one, even where there is no `matchMedia`.\n */\nexport function WatchPhoneViewport(onChange: () => void): () => void {\n const media = phoneMedia();\n if (!media || typeof media.addEventListener !== 'function') return () => undefined;\n media.addEventListener('change', onChange);\n return () => media.removeEventListener('change', onChange);\n}\n"]}
@@ -0,0 +1,159 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { BaseEntity, EntityInfo, IMetadataProvider, UserInfo } from '@memberjunction/core';
3
+ import { AnchoredCommentRollup, ConversationAnchorMetadata, ConversationAnchorType, MJConversationDetailEntity, MJConversationEntity } from '@memberjunction/core-entities';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Viewport rectangle used to tether the inline anchored comment popover to a field or section trigger button.
8
+ */
9
+ export interface CommentPopoverAnchorRect {
10
+ top: number;
11
+ left: number;
12
+ bottom: number;
13
+ right: number;
14
+ width: number;
15
+ height: number;
16
+ }
17
+ /**
18
+ * Target specification when opening an inline anchored comment popover or filtering the comments drawer.
19
+ */
20
+ export interface FormCommentAnchorTarget {
21
+ AnchorType: ConversationAnchorType;
22
+ AnchorKey: string | null;
23
+ Label: string;
24
+ QuotedValue?: string;
25
+ SectionKey?: string;
26
+ SectionDisplayName?: string;
27
+ GroupKey?: string;
28
+ GroupDisplayName?: string;
29
+ AnchorRect?: CommentPopoverAnchorRect;
30
+ }
31
+ /**
32
+ * Request emitted when the user clicks an anchor badge inside the Record Comments drawer
33
+ * to jump to, expand, and highlight the target field, section, or rail group on the form.
34
+ */
35
+ export interface FormCommentAnchorNavigationRequest {
36
+ AnchorType: ConversationAnchorType;
37
+ AnchorKey: string | null;
38
+ SectionKey?: string | null;
39
+ GroupKey?: string | null;
40
+ }
41
+ /**
42
+ * Per-form coordinator service (provided by `<mj-record-form-container>`) that manages
43
+ * anchored conversations and inline comments across the record as a whole, its `<mj-form-field>`
44
+ * instances, `<mj-collapsible-panel>` sections, and left-nav rail groups.
45
+ */
46
+ export declare class FormRecordCommentsCoordinatorService implements OnDestroy {
47
+ private readonly _changed$;
48
+ private readonly _navigateToAnchor$;
49
+ /** Emits whenever comment threads, details, counts, drawer state, or popover state change. */
50
+ get Changed$(): Observable<void>;
51
+ /** Emits when the user clicks an anchor badge to scroll/expand/highlight a target on the form. */
52
+ get NavigateToAnchor$(): Observable<FormCommentAnchorNavigationRequest>;
53
+ private _record;
54
+ private _provider;
55
+ private _conversations;
56
+ private _detailsByConversationId;
57
+ private _rollup;
58
+ private _isLoading;
59
+ private _isLoaded;
60
+ private _loadGeneration;
61
+ private _isDrawerOpen;
62
+ private _drawerStatusFilter;
63
+ private _drawerTargetFilter;
64
+ private _activePopoverTarget;
65
+ get Record(): BaseEntity | null;
66
+ get Provider(): IMetadataProvider | null;
67
+ get Conversations(): readonly MJConversationEntity[];
68
+ get DetailsByConversationId(): ReadonlyMap<string, MJConversationDetailEntity[]>;
69
+ get Rollup(): AnchoredCommentRollup;
70
+ get IsLoading(): boolean;
71
+ get IsLoaded(): boolean;
72
+ get IsDrawerOpen(): boolean;
73
+ get DrawerStatusFilter(): 'open' | 'resolved' | 'all';
74
+ get DrawerTargetFilter(): FormCommentAnchorTarget | null;
75
+ get ActivePopoverTarget(): FormCommentAnchorTarget | null;
76
+ get CurrentUser(): UserInfo | null;
77
+ get EntityInfo(): EntityInfo | null;
78
+ /**
79
+ * Binds the coordinator to the active record and provider. Resets cached state if the
80
+ * record identity changed.
81
+ */
82
+ BindRecord(record: BaseEntity | null, provider: IMetadataProvider | null): void;
83
+ /**
84
+ * Loads all anchored conversations and their detail messages for the bound record,
85
+ * applying RLS and FLS filtering for the current user and recomputing rollups.
86
+ */
87
+ LoadForRecord(record?: BaseEntity | null, provider?: IMetadataProvider | null, forceRefresh?: boolean): Promise<AnchoredCommentRollup>;
88
+ /**
89
+ * Returns the number of open anchored comment threads on a specific field (`FieldName`).
90
+ */
91
+ GetFieldOpenCommentCount(fieldName: string | null | undefined): number;
92
+ /**
93
+ * Returns all anchored threads (open + optionally resolved) targeting a specific field.
94
+ */
95
+ GetFieldThreads(fieldName: string | null | undefined, includeResolved?: boolean): MJConversationEntity[];
96
+ /**
97
+ * Returns the number of open comment threads belonging to a section:
98
+ * threads anchored directly to `sectionKey` (`AnchorType === 'Section'`) OR whose
99
+ * `AnchorMetadataObject.sectionKey` matches `sectionKey`, plus any open `Field` threads
100
+ * whose field name is in `ownedFieldNames` (and wasn't already counted via `sectionKey`).
101
+ */
102
+ GetSectionOpenCommentCount(sectionKey: string | null | undefined, ownedFieldNames?: readonly string[]): number;
103
+ /**
104
+ * Returns the number of open comment threads belonging to a left-nav rail group (`groupKey`),
105
+ * including threads anchored directly to `groupKey` (`AnchorType === 'Group'`) or to any of
106
+ * its `sectionKeys`.
107
+ */
108
+ GetGroupOpenCommentCount(groupKey: string | null | undefined, sectionKeys?: readonly string[]): number;
109
+ /**
110
+ * Returns all messages (`MJ: Conversation Details`) for a given conversation ID.
111
+ */
112
+ GetDetailsForConversation(conversationId: string): readonly MJConversationDetailEntity[];
113
+ /**
114
+ * Creates a new anchored comment thread on the current record and posts its initial message.
115
+ */
116
+ StartAnchoredThread(params: {
117
+ AnchorType: ConversationAnchorType;
118
+ AnchorKey?: string | null;
119
+ AnchorMetadata?: ConversationAnchorMetadata | null;
120
+ Message: string;
121
+ Name?: string;
122
+ }): Promise<MJConversationEntity | null>;
123
+ /**
124
+ * Appends a new reply message (`MJ: Conversation Details`) to an existing anchored thread.
125
+ */
126
+ PostReply(conversationId: string, messageText: string): Promise<MJConversationDetailEntity | null>;
127
+ /**
128
+ * Resolves or re-opens an anchored conversation thread.
129
+ */
130
+ ToggleResolved(conversationId: string, isResolved: boolean): Promise<MJConversationEntity | null>;
131
+ /**
132
+ * Opens the inline anchored comment popover tethered to a specific field or section,
133
+ * lazy-loading the record's anchored conversations if not yet loaded.
134
+ */
135
+ OpenPopoverForTarget(target: FormCommentAnchorTarget): void;
136
+ /**
137
+ * Closes the inline anchored comment popover.
138
+ */
139
+ ClosePopover(): void;
140
+ /**
141
+ * Opens or closes the Record Comments slide-in drawer, optionally pre-filtering to a target.
142
+ */
143
+ SetDrawerOpen(open: boolean, targetFilter?: FormCommentAnchorTarget | null): void;
144
+ SetDrawerStatusFilter(status: 'open' | 'resolved' | 'all'): void;
145
+ SetDrawerTargetFilter(target: FormCommentAnchorTarget | null): void;
146
+ /**
147
+ * Requests the form container to navigate to, expand, scroll into view, and pulse
148
+ * the specified field, section, or rail group.
149
+ */
150
+ RequestNavigateToAnchor(request: FormCommentAnchorNavigationRequest): void;
151
+ NotifyChanged(): void;
152
+ ngOnDestroy(): void;
153
+ private recomputeRollup;
154
+ private getSerializedRecordId;
155
+ private notifyChanged;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormRecordCommentsCoordinatorService, never>;
157
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormRecordCommentsCoordinatorService>;
158
+ }
159
+ //# sourceMappingURL=form-record-comments-coordinator.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-record-comments-coordinator.service.d.ts","sourceRoot":"","sources":["../../../src/lib/comments/form-record-comments-coordinator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EA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EAAE,MAAM,EACtB,UAAU,EAAE,OAAO,GACpB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAyBvC;;;OAGG;IACI,oBAAoB,CAAC,MAAM,EAAE,uBAAuB,GAAG,IAAI;IAQlE;;OAEG;IACI,YAAY,IAAI,IAAI;IAM3B;;OAEG;IACI,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,uBAAuB,GAAG,IAAI,GAAG,IAAI;IAcjF,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,IAAI;IAKhE,qBAAqB,CAAC,MAAM,EAAE,uBAAuB,GAAG,IAAI,GAAG,IAAI;IAK1E;;;OAGG;IACI,uBAAuB,CAAC,OAAO,EAAE,kCAAkC,GAAG,IAAI;IAI1E,aAAa,IAAI,IAAI;IAIrB,WAAW,IAAI,IAAI;IAK1B,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,qBAAqB;IAiB7B,OAAO,CAAC,aAAa;yCAxgBZ,oCAAoC;6CAApC,oCAAoC;CA2gBhD"}
@@ -0,0 +1,421 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { LogError } from '@memberjunction/core';
3
+ import { ComputeAnchoredCommentCounts, ConversationEngine, IsConversationHiddenByFieldSecurity, ParseConversationAnchorMetadata } from '@memberjunction/core-entities';
4
+ import { NormalizeUUID, UUIDsEqual } from '@memberjunction/global';
5
+ import { Subject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ const EMPTY_ROLLUP = {
8
+ TotalOpenCount: 0,
9
+ TotalResolvedCount: 0,
10
+ RecordLevelOpenCount: 0,
11
+ ByField: new Map(),
12
+ BySection: new Map(),
13
+ ByGroup: new Map(),
14
+ ByContribution: new Map()
15
+ };
16
+ /**
17
+ * Per-form coordinator service (provided by `<mj-record-form-container>`) that manages
18
+ * anchored conversations and inline comments across the record as a whole, its `<mj-form-field>`
19
+ * instances, `<mj-collapsible-panel>` sections, and left-nav rail groups.
20
+ */
21
+ export class FormRecordCommentsCoordinatorService {
22
+ _changed$ = new Subject();
23
+ _navigateToAnchor$ = new Subject();
24
+ /** Emits whenever comment threads, details, counts, drawer state, or popover state change. */
25
+ get Changed$() {
26
+ return this._changed$.asObservable();
27
+ }
28
+ /** Emits when the user clicks an anchor badge to scroll/expand/highlight a target on the form. */
29
+ get NavigateToAnchor$() {
30
+ return this._navigateToAnchor$.asObservable();
31
+ }
32
+ _record = null;
33
+ _provider = null;
34
+ _conversations = [];
35
+ _detailsByConversationId = new Map();
36
+ _rollup = EMPTY_ROLLUP;
37
+ _isLoading = false;
38
+ _isLoaded = false;
39
+ _loadGeneration = 0;
40
+ _isDrawerOpen = false;
41
+ _drawerStatusFilter = 'open';
42
+ _drawerTargetFilter = null;
43
+ _activePopoverTarget = null;
44
+ get Record() {
45
+ return this._record;
46
+ }
47
+ get Provider() {
48
+ return this._provider;
49
+ }
50
+ get Conversations() {
51
+ return this._conversations;
52
+ }
53
+ get DetailsByConversationId() {
54
+ return this._detailsByConversationId;
55
+ }
56
+ get Rollup() {
57
+ return this._rollup;
58
+ }
59
+ get IsLoading() {
60
+ return this._isLoading;
61
+ }
62
+ get IsLoaded() {
63
+ return this._isLoaded;
64
+ }
65
+ get IsDrawerOpen() {
66
+ return this._isDrawerOpen;
67
+ }
68
+ get DrawerStatusFilter() {
69
+ return this._drawerStatusFilter;
70
+ }
71
+ get DrawerTargetFilter() {
72
+ return this._drawerTargetFilter;
73
+ }
74
+ get ActivePopoverTarget() {
75
+ return this._activePopoverTarget;
76
+ }
77
+ get CurrentUser() {
78
+ return this._provider?.CurrentUser ?? null;
79
+ }
80
+ get EntityInfo() {
81
+ return this._record?.EntityInfo ?? null;
82
+ }
83
+ /**
84
+ * Binds the coordinator to the active record and provider. Resets cached state if the
85
+ * record identity changed.
86
+ */
87
+ BindRecord(record, provider) {
88
+ const prevEntityId = this._record?.EntityInfo?.ID ?? null;
89
+ const prevRecordId = this.getSerializedRecordId(this._record);
90
+ const nextEntityId = record?.EntityInfo?.ID ?? null;
91
+ const nextRecordId = this.getSerializedRecordId(record);
92
+ this._record = record;
93
+ this._provider = provider;
94
+ if (prevEntityId !== nextEntityId || prevRecordId !== nextRecordId) {
95
+ this._conversations = [];
96
+ this._detailsByConversationId.clear();
97
+ this._rollup = EMPTY_ROLLUP;
98
+ this._isLoaded = false;
99
+ this._activePopoverTarget = null;
100
+ this._drawerTargetFilter = null;
101
+ this.notifyChanged();
102
+ }
103
+ }
104
+ /**
105
+ * Loads all anchored conversations and their detail messages for the bound record,
106
+ * applying RLS and FLS filtering for the current user and recomputing rollups.
107
+ */
108
+ async LoadForRecord(record, provider, forceRefresh = false) {
109
+ if (record !== undefined || provider !== undefined) {
110
+ this.BindRecord(record ?? this._record, provider ?? this._provider);
111
+ }
112
+ const activeRecord = this._record;
113
+ const activeProvider = this._provider;
114
+ const currentUser = activeProvider?.CurrentUser ?? null;
115
+ const linkedEntityId = activeRecord?.EntityInfo?.ID ?? null;
116
+ const linkedRecordId = this.getSerializedRecordId(activeRecord);
117
+ if (!activeRecord?.IsSaved || !activeProvider || !currentUser || !linkedEntityId || !linkedRecordId) {
118
+ this._conversations = [];
119
+ this._detailsByConversationId.clear();
120
+ this._rollup = EMPTY_ROLLUP;
121
+ this._isLoaded = false;
122
+ this.notifyChanged();
123
+ return this._rollup;
124
+ }
125
+ if (this._isLoaded && !forceRefresh) {
126
+ return this._rollup;
127
+ }
128
+ const generation = ++this._loadGeneration;
129
+ this._isLoading = true;
130
+ this.notifyChanged();
131
+ try {
132
+ const conversations = await ConversationEngine.Instance.LoadAnchoredConversations(linkedEntityId, linkedRecordId, currentUser, {
133
+ includeResolved: true,
134
+ provider: activeProvider,
135
+ bypassCache: forceRefresh
136
+ });
137
+ if (generation !== this._loadGeneration) {
138
+ return this._rollup;
139
+ }
140
+ const visibleConversations = conversations.filter((c) => !IsConversationHiddenByFieldSecurity(activeRecord.EntityInfo, currentUser, c.AnchorType, c.AnchorKey, c.AnchorMetadataObject ?? c.AnchorMetadata));
141
+ const detailsMap = await ConversationEngine.Instance.LoadAnchoredConversationDetails(visibleConversations.map((c) => c.ID), currentUser, activeProvider, forceRefresh);
142
+ if (generation !== this._loadGeneration) {
143
+ return this._rollup;
144
+ }
145
+ this._conversations = visibleConversations;
146
+ this._detailsByConversationId = detailsMap;
147
+ this._rollup = ComputeAnchoredCommentCounts(this._conversations, currentUser, activeRecord.EntityInfo);
148
+ this._isLoaded = true;
149
+ }
150
+ catch (error) {
151
+ LogError(`FormRecordCommentsCoordinatorService.LoadForRecord failed: ${error instanceof Error ? error.message : String(error)}`);
152
+ }
153
+ finally {
154
+ if (generation === this._loadGeneration) {
155
+ this._isLoading = false;
156
+ this.notifyChanged();
157
+ }
158
+ }
159
+ return this._rollup;
160
+ }
161
+ /**
162
+ * Returns the number of open anchored comment threads on a specific field (`FieldName`).
163
+ */
164
+ GetFieldOpenCommentCount(fieldName) {
165
+ const key = (fieldName ?? '').trim().toLowerCase();
166
+ if (!key)
167
+ return 0;
168
+ return this._rollup.ByField.get(key) ?? 0;
169
+ }
170
+ /**
171
+ * Returns all anchored threads (open + optionally resolved) targeting a specific field.
172
+ */
173
+ GetFieldThreads(fieldName, includeResolved = true) {
174
+ const key = (fieldName ?? '').trim().toLowerCase();
175
+ if (!key)
176
+ return [];
177
+ return this._conversations.filter((c) => {
178
+ if (!includeResolved && c.IsResolved)
179
+ return false;
180
+ if (c.AnchorType !== 'Field')
181
+ return false;
182
+ const meta = ParseConversationAnchorMetadata(c.AnchorMetadataObject ?? c.AnchorMetadata);
183
+ const candidate = (c.AnchorKey || meta?.fieldName || '').trim().toLowerCase();
184
+ return candidate === key;
185
+ });
186
+ }
187
+ /**
188
+ * Returns the number of open comment threads belonging to a section:
189
+ * threads anchored directly to `sectionKey` (`AnchorType === 'Section'`) OR whose
190
+ * `AnchorMetadataObject.sectionKey` matches `sectionKey`, plus any open `Field` threads
191
+ * whose field name is in `ownedFieldNames` (and wasn't already counted via `sectionKey`).
192
+ */
193
+ GetSectionOpenCommentCount(sectionKey, ownedFieldNames) {
194
+ const secKey = (sectionKey ?? '').trim();
195
+ if (!secKey && (!ownedFieldNames || ownedFieldNames.length === 0)) {
196
+ return 0;
197
+ }
198
+ const secLower = secKey.toLowerCase();
199
+ const ownedFieldSet = new Set((ownedFieldNames ?? []).map((f) => f.trim().toLowerCase()));
200
+ let count = 0;
201
+ for (const conv of this._conversations) {
202
+ if (conv.IsResolved || !conv.AnchorType)
203
+ continue;
204
+ const meta = ParseConversationAnchorMetadata(conv.AnchorMetadataObject ?? conv.AnchorMetadata);
205
+ if (secLower &&
206
+ ((conv.AnchorType === 'Section' && (conv.AnchorKey ?? '').trim().toLowerCase() === secLower) ||
207
+ (meta?.sectionKey ?? '').trim().toLowerCase() === secLower)) {
208
+ count++;
209
+ continue;
210
+ }
211
+ if (conv.AnchorType === 'Field' && ownedFieldSet.size > 0) {
212
+ const fKey = (conv.AnchorKey || meta?.fieldName || '').trim().toLowerCase();
213
+ if (fKey && ownedFieldSet.has(fKey)) {
214
+ count++;
215
+ }
216
+ }
217
+ }
218
+ return count;
219
+ }
220
+ /**
221
+ * Returns the number of open comment threads belonging to a left-nav rail group (`groupKey`),
222
+ * including threads anchored directly to `groupKey` (`AnchorType === 'Group'`) or to any of
223
+ * its `sectionKeys`.
224
+ */
225
+ GetGroupOpenCommentCount(groupKey, sectionKeys) {
226
+ const gLower = (groupKey ?? '').trim().toLowerCase();
227
+ const secSet = new Set((sectionKeys ?? []).map((s) => s.trim().toLowerCase()).filter(Boolean));
228
+ if (!gLower && secSet.size === 0) {
229
+ return 0;
230
+ }
231
+ let count = 0;
232
+ for (const conv of this._conversations) {
233
+ if (conv.IsResolved || !conv.AnchorType)
234
+ continue;
235
+ const meta = ParseConversationAnchorMetadata(conv.AnchorMetadataObject ?? conv.AnchorMetadata);
236
+ if (gLower &&
237
+ ((conv.AnchorType === 'Group' && (conv.AnchorKey ?? '').trim().toLowerCase() === gLower) ||
238
+ (meta?.groupKey ?? '').trim().toLowerCase() === gLower)) {
239
+ count++;
240
+ continue;
241
+ }
242
+ if (secSet.size > 0) {
243
+ const secKey = conv.AnchorType === 'Section'
244
+ ? (conv.AnchorKey ?? '').trim().toLowerCase()
245
+ : (meta?.sectionKey ?? '').trim().toLowerCase();
246
+ if (secKey && secSet.has(secKey)) {
247
+ count++;
248
+ }
249
+ }
250
+ }
251
+ return count;
252
+ }
253
+ /**
254
+ * Returns all messages (`MJ: Conversation Details`) for a given conversation ID.
255
+ */
256
+ GetDetailsForConversation(conversationId) {
257
+ return this._detailsByConversationId.get(NormalizeUUID(conversationId)) ?? [];
258
+ }
259
+ /**
260
+ * Creates a new anchored comment thread on the current record and posts its initial message.
261
+ */
262
+ async StartAnchoredThread(params) {
263
+ const record = this._record;
264
+ const provider = this._provider;
265
+ const currentUser = provider?.CurrentUser ?? null;
266
+ const linkedEntityId = record?.EntityInfo?.ID ?? null;
267
+ const linkedRecordId = this.getSerializedRecordId(record);
268
+ if (!record?.IsSaved || !provider || !currentUser || !linkedEntityId || !linkedRecordId) {
269
+ return null;
270
+ }
271
+ const { Conversation, InitialDetail } = await ConversationEngine.Instance.CreateAnchoredConversation({
272
+ name: params.Name,
273
+ linkedEntityId,
274
+ linkedRecordId,
275
+ anchorType: params.AnchorType,
276
+ anchorKey: params.AnchorKey ?? null,
277
+ anchorMetadata: params.AnchorMetadata ?? null,
278
+ initialMessage: params.Message,
279
+ provider
280
+ }, currentUser);
281
+ this._conversations = [Conversation, ...this._conversations];
282
+ this._detailsByConversationId.set(NormalizeUUID(Conversation.ID), InitialDetail ? [InitialDetail] : []);
283
+ this.recomputeRollup();
284
+ this.notifyChanged();
285
+ return Conversation;
286
+ }
287
+ /**
288
+ * Appends a new reply message (`MJ: Conversation Details`) to an existing anchored thread.
289
+ */
290
+ async PostReply(conversationId, messageText) {
291
+ const provider = this._provider;
292
+ const currentUser = provider?.CurrentUser ?? null;
293
+ const text = messageText.trim();
294
+ if (!provider || !currentUser || !text) {
295
+ return null;
296
+ }
297
+ const detail = await provider.GetEntityObject('MJ: Conversation Details', currentUser);
298
+ detail.NewRecord();
299
+ detail.ConversationID = conversationId;
300
+ detail.UserID = currentUser.ID;
301
+ detail.Role = 'User';
302
+ detail.Message = text;
303
+ const saved = await detail.Save();
304
+ if (!saved) {
305
+ throw new Error(detail.LatestResult?.CompleteMessage ||
306
+ detail.LatestResult?.Message ||
307
+ 'Failed to post reply');
308
+ }
309
+ const normId = NormalizeUUID(conversationId);
310
+ const existing = this._detailsByConversationId.get(normId) ?? [];
311
+ this._detailsByConversationId.set(normId, [...existing, detail]);
312
+ this.notifyChanged();
313
+ return detail;
314
+ }
315
+ /**
316
+ * Resolves or re-opens an anchored conversation thread.
317
+ */
318
+ async ToggleResolved(conversationId, isResolved) {
319
+ const provider = this._provider;
320
+ const currentUser = provider?.CurrentUser ?? null;
321
+ if (!provider || !currentUser) {
322
+ return null;
323
+ }
324
+ const updated = await ConversationEngine.Instance.SetConversationResolved(conversationId, isResolved, currentUser, provider);
325
+ const idx = this._conversations.findIndex((c) => UUIDsEqual(c.ID, conversationId));
326
+ if (idx >= 0) {
327
+ const copy = [...this._conversations];
328
+ copy[idx] = updated;
329
+ this._conversations = copy;
330
+ }
331
+ this.recomputeRollup();
332
+ this.notifyChanged();
333
+ return updated;
334
+ }
335
+ /**
336
+ * Opens the inline anchored comment popover tethered to a specific field or section,
337
+ * lazy-loading the record's anchored conversations if not yet loaded.
338
+ */
339
+ OpenPopoverForTarget(target) {
340
+ this._activePopoverTarget = target;
341
+ if (!this._isLoaded && !this._isLoading) {
342
+ void this.LoadForRecord();
343
+ }
344
+ this.notifyChanged();
345
+ }
346
+ /**
347
+ * Closes the inline anchored comment popover.
348
+ */
349
+ ClosePopover() {
350
+ if (!this._activePopoverTarget)
351
+ return;
352
+ this._activePopoverTarget = null;
353
+ this.notifyChanged();
354
+ }
355
+ /**
356
+ * Opens or closes the Record Comments slide-in drawer, optionally pre-filtering to a target.
357
+ */
358
+ SetDrawerOpen(open, targetFilter) {
359
+ this._isDrawerOpen = open;
360
+ if (targetFilter !== undefined) {
361
+ this._drawerTargetFilter = targetFilter;
362
+ }
363
+ if (open) {
364
+ this._activePopoverTarget = null;
365
+ if (!this._isLoaded && !this._isLoading) {
366
+ void this.LoadForRecord();
367
+ }
368
+ }
369
+ this.notifyChanged();
370
+ }
371
+ SetDrawerStatusFilter(status) {
372
+ this._drawerStatusFilter = status;
373
+ this.notifyChanged();
374
+ }
375
+ SetDrawerTargetFilter(target) {
376
+ this._drawerTargetFilter = target;
377
+ this.notifyChanged();
378
+ }
379
+ /**
380
+ * Requests the form container to navigate to, expand, scroll into view, and pulse
381
+ * the specified field, section, or rail group.
382
+ */
383
+ RequestNavigateToAnchor(request) {
384
+ this._navigateToAnchor$.next(request);
385
+ }
386
+ NotifyChanged() {
387
+ this.notifyChanged();
388
+ }
389
+ ngOnDestroy() {
390
+ this._changed$.complete();
391
+ this._navigateToAnchor$.complete();
392
+ }
393
+ recomputeRollup() {
394
+ this._rollup = ComputeAnchoredCommentCounts(this._conversations, this.CurrentUser, this.EntityInfo);
395
+ }
396
+ getSerializedRecordId(record) {
397
+ if (!record?.IsSaved || !record.PrimaryKey) {
398
+ return null;
399
+ }
400
+ const pairs = record.PrimaryKey.KeyValuePairs;
401
+ if (!pairs || pairs.length === 0) {
402
+ return null;
403
+ }
404
+ if (pairs.length === 1) {
405
+ const val = pairs[0].Value;
406
+ return val !== null && val !== undefined && String(val).trim().length > 0
407
+ ? String(val).trim()
408
+ : null;
409
+ }
410
+ return record.PrimaryKey.ToURLSegment();
411
+ }
412
+ notifyChanged() {
413
+ this._changed$.next();
414
+ }
415
+ static ɵfac = function FormRecordCommentsCoordinatorService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormRecordCommentsCoordinatorService)(); };
416
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FormRecordCommentsCoordinatorService, factory: FormRecordCommentsCoordinatorService.ɵfac });
417
+ }
418
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormRecordCommentsCoordinatorService, [{
419
+ type: Injectable
420
+ }], null, null); })();
421
+ //# sourceMappingURL=form-record-comments-coordinator.service.js.map