@memberjunction/ng-entity-viewer 5.39.0 → 5.40.1
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/__tests__/view-types.test.d.ts +2 -0
- package/dist/__tests__/view-types.test.d.ts.map +1 -0
- package/dist/__tests__/view-types.test.js +102 -0
- package/dist/__tests__/view-types.test.js.map +1 -0
- package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts.map +1 -1
- package/dist/lib/entity-data-grid/entity-data-grid.component.js +8 -0
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts +356 -341
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +993 -1097
- package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts +126 -126
- package/dist/lib/view-config-panel/view-config-panel.component.js +635 -635
- package/dist/lib/view-config-panel/view-config-panel.component.js.map +1 -1
- package/dist/lib/view-selector/view-selector.component.d.ts +226 -0
- package/dist/lib/view-selector/view-selector.component.d.ts.map +1 -0
- package/dist/lib/view-selector/view-selector.component.js +861 -0
- package/dist/lib/view-selector/view-selector.component.js.map +1 -0
- package/dist/lib/view-type-switcher/view-type-switcher.component.d.ts +114 -0
- package/dist/lib/view-type-switcher/view-type-switcher.component.d.ts.map +1 -0
- package/dist/lib/view-type-switcher/view-type-switcher.component.js +209 -0
- package/dist/lib/view-type-switcher/view-type-switcher.component.js.map +1 -0
- package/dist/lib/view-types/descriptors/cards-view-type.d.ts +18 -0
- package/dist/lib/view-types/descriptors/cards-view-type.d.ts.map +1 -0
- package/dist/lib/view-types/descriptors/cards-view-type.js +31 -0
- package/dist/lib/view-types/descriptors/cards-view-type.js.map +1 -0
- package/dist/lib/view-types/descriptors/grid-view-type.d.ts +17 -0
- package/dist/lib/view-types/descriptors/grid-view-type.d.ts.map +1 -0
- package/dist/lib/view-types/descriptors/grid-view-type.js +30 -0
- package/dist/lib/view-types/descriptors/grid-view-type.js.map +1 -0
- package/dist/lib/view-types/descriptors/map-view-type.d.ts +21 -0
- package/dist/lib/view-types/descriptors/map-view-type.d.ts.map +1 -0
- package/dist/lib/view-types/descriptors/map-view-type.js +35 -0
- package/dist/lib/view-types/descriptors/map-view-type.js.map +1 -0
- package/dist/lib/view-types/descriptors/timeline-view-type.d.ts +22 -0
- package/dist/lib/view-types/descriptors/timeline-view-type.d.ts.map +1 -0
- package/dist/lib/view-types/descriptors/timeline-view-type.js +40 -0
- package/dist/lib/view-types/descriptors/timeline-view-type.js.map +1 -0
- package/dist/lib/view-types/index.d.ts +20 -0
- package/dist/lib/view-types/index.d.ts.map +1 -0
- package/dist/lib/view-types/index.js +29 -0
- package/dist/lib/view-types/index.js.map +1 -0
- package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts +93 -0
- package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts.map +1 -0
- package/dist/lib/view-types/renderers/cards-view-renderer.component.js +144 -0
- package/dist/lib/view-types/renderers/cards-view-renderer.component.js.map +1 -0
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts +273 -0
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts.map +1 -0
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js +558 -0
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js.map +1 -0
- package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts +135 -0
- package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts.map +1 -0
- package/dist/lib/view-types/renderers/map-view-renderer.component.js +216 -0
- package/dist/lib/view-types/renderers/map-view-renderer.component.js.map +1 -0
- package/dist/lib/view-types/renderers/timeline-view-renderer.component.d.ts +176 -0
- package/dist/lib/view-types/renderers/timeline-view-renderer.component.d.ts.map +1 -0
- package/dist/lib/view-types/renderers/timeline-view-renderer.component.js +535 -0
- package/dist/lib/view-types/renderers/timeline-view-renderer.component.js.map +1 -0
- package/dist/lib/view-types/view-type.contracts.d.ts +235 -0
- package/dist/lib/view-types/view-type.contracts.d.ts.map +1 -0
- package/dist/lib/view-types/view-type.contracts.js +51 -0
- package/dist/lib/view-types/view-type.contracts.js.map +1 -0
- package/dist/lib/view-types/view-type.engine.d.ts +76 -0
- package/dist/lib/view-types/view-type.engine.d.ts.map +1 -0
- package/dist/lib/view-types/view-type.engine.js +138 -0
- package/dist/lib/view-types/view-type.engine.js.map +1 -0
- package/dist/lib/view-workspace/view-workspace.component.d.ts +451 -0
- package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -0
- package/dist/lib/view-workspace/view-workspace.component.js +1212 -0
- package/dist/lib/view-workspace/view-workspace.component.js.map +1 -0
- package/dist/module.d.ts +20 -11
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +50 -8
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +8 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +14 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +16 -15
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ViewEncapsulation, inject, } from '@angular/core';
|
|
2
|
+
import { EntityFieldTSType } from '@memberjunction/core';
|
|
3
|
+
import { UUIDsEqual } from '@memberjunction/global';
|
|
4
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
5
|
+
import { TimelineGroup, } from '@memberjunction/ng-timeline';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/forms";
|
|
8
|
+
import * as i2 from "@memberjunction/ng-timeline";
|
|
9
|
+
const _forTrack0 = ($index, $item) => $item.Name;
|
|
10
|
+
function TimelineViewRendererComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
12
|
+
i0.ɵɵtext(1);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
+
i0.ɵɵadvance();
|
|
17
|
+
i0.ɵɵtextInterpolate(ctx_r0.SelectedDateFieldDisplayName);
|
|
18
|
+
} }
|
|
19
|
+
function TimelineViewRendererComponent_Conditional_4_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "option", 11);
|
|
21
|
+
i0.ɵɵtext(1);
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const field_r3 = ctx.$implicit;
|
|
25
|
+
i0.ɵɵproperty("value", field_r3.Name);
|
|
26
|
+
i0.ɵɵadvance();
|
|
27
|
+
i0.ɵɵtextInterpolate(field_r3.DisplayNameOrName);
|
|
28
|
+
} }
|
|
29
|
+
function TimelineViewRendererComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
31
|
+
i0.ɵɵelementStart(0, "select", 10);
|
|
32
|
+
i0.ɵɵlistener("change", function TimelineViewRendererComponent_Conditional_4_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetTimelineDateField($event.target.value)); });
|
|
33
|
+
i0.ɵɵrepeaterCreate(1, TimelineViewRendererComponent_Conditional_4_For_2_Template, 2, 2, "option", 11, _forTrack0);
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
} if (rf & 2) {
|
|
36
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
37
|
+
i0.ɵɵproperty("value", ctx_r0.SelectedTimelineDateField);
|
|
38
|
+
i0.ɵɵadvance();
|
|
39
|
+
i0.ɵɵrepeater(ctx_r0.AvailableDateFields);
|
|
40
|
+
} }
|
|
41
|
+
function TimelineViewRendererComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
43
|
+
i0.ɵɵelementStart(0, "mj-timeline", 12);
|
|
44
|
+
i0.ɵɵlistener("afterEventClick", function TimelineViewRendererComponent_Conditional_11_Template_mj_timeline_afterEventClick_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnTimelineEventClick($event)); });
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
48
|
+
i0.ɵɵproperty("groups", ctx_r0.TimelineGroups)("orientation", ctx_r0.TimelineOrientationState)("layout", ctx_r0.TimelineOrientationState === "vertical" ? "alternating" : "single")("sortOrder", ctx_r0.TimelineSortOrderState)("segmentGrouping", ctx_r0.TimelineSegmentGrouping)("segmentsCollapsible", true)("segmentsDefaultExpanded", true)("selectedEventId", ctx_r0.TimelineSelectedEventID);
|
|
49
|
+
} }
|
|
50
|
+
function TimelineViewRendererComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
52
|
+
i0.ɵɵelement(1, "i", 13);
|
|
53
|
+
i0.ɵɵelementStart(2, "span");
|
|
54
|
+
i0.ɵɵtext(3, "This entity has no date fields to plot on a timeline.");
|
|
55
|
+
i0.ɵɵelementEnd()();
|
|
56
|
+
} }
|
|
57
|
+
/**
|
|
58
|
+
* TimelineViewRendererComponent
|
|
59
|
+
* -----------------------------
|
|
60
|
+
* The Timeline **view type** as a self-contained {@link IViewRenderer} plug-in. Where the
|
|
61
|
+
* Timeline view used to be hard-wired into the generic `mj-entity-viewer` host (which owned
|
|
62
|
+
* the date-field detection, the record→{@link TimelineGroup} transformation, and the
|
|
63
|
+
* date-field / orientation / sort chrome), this component now OWNS all of it. The host simply
|
|
64
|
+
* dynamic-mounts this renderer when Timeline is the active view type and feeds it the standard
|
|
65
|
+
* renderer inputs (`entity` / `records` / `selectedRecordId` / `filterText` / `config`).
|
|
66
|
+
*
|
|
67
|
+
* It renders a small chrome header row (date-field selector + orientation toggle + sort toggle)
|
|
68
|
+
* above a flex-filling `<mj-timeline>`, exactly reproducing the host's previous timeline chrome
|
|
69
|
+
* and bindings. Because the host only mounts this plug-in when Timeline is active, the chrome
|
|
70
|
+
* always renders — no extra `EffectiveViewMode === 'timeline'` guard is needed.
|
|
71
|
+
*
|
|
72
|
+
* **What was absorbed from the host** (`EntityViewerComponent`): `detectDateFields()`,
|
|
73
|
+
* `sortDateFieldsByPriority()`, `AvailableDateFields`/`HasDateFields`, `configureTimeline()`,
|
|
74
|
+
* `updateTimelineGroups()` (+ `findTitleField`/`findDescriptionField`/`findSubtitleField`),
|
|
75
|
+
* `ToggleTimelineOrientation()`, `ToggleTimelineSortOrder()`, `SetTimelineDateField()`,
|
|
76
|
+
* `SelectedDateFieldDisplayName`, `OnTimelineEventClick()`, and the `TimelineSelectedEventID`
|
|
77
|
+
* composite-key→raw-id derivation.
|
|
78
|
+
*
|
|
79
|
+
* Inputs use the camelCase names mandated by the {@link IViewRenderer} contract (the host binds
|
|
80
|
+
* them by those exact names) rather than MJ's usual PascalCase for public members.
|
|
81
|
+
*/
|
|
82
|
+
export class TimelineViewRendererComponent extends BaseAngularComponent {
|
|
83
|
+
// ========================================
|
|
84
|
+
// IViewRenderer inputs (camelCase per the host contract)
|
|
85
|
+
// ========================================
|
|
86
|
+
_entity = null;
|
|
87
|
+
/** The entity whose records are being rendered. Re-detects date fields + rebuilds groups on change. */
|
|
88
|
+
set entity(value) {
|
|
89
|
+
const changed = !UUIDsEqual(value?.ID, this._entity?.ID);
|
|
90
|
+
this._entity = value;
|
|
91
|
+
if (changed) {
|
|
92
|
+
this.detectDateFields();
|
|
93
|
+
this.cdr.detectChanges();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
get entity() {
|
|
97
|
+
return this._entity;
|
|
98
|
+
}
|
|
99
|
+
_records = [];
|
|
100
|
+
/** The records to render (already loaded/filtered by the host). Rebuilds groups on change. */
|
|
101
|
+
set records(value) {
|
|
102
|
+
this._records = value ?? [];
|
|
103
|
+
this.updateTimelineGroups();
|
|
104
|
+
this.cdr.detectChanges();
|
|
105
|
+
}
|
|
106
|
+
get records() {
|
|
107
|
+
return this._records;
|
|
108
|
+
}
|
|
109
|
+
/** Primary-key string of the currently selected record, if any (composite-key encoded). */
|
|
110
|
+
selectedRecordId = null;
|
|
111
|
+
/** Active filter text — accepted for contract uniformity; the host pre-filters `records`. */
|
|
112
|
+
filterText = null;
|
|
113
|
+
_config = {};
|
|
114
|
+
/**
|
|
115
|
+
* This view's persisted configuration. Seeding the chrome controls from it is deferred to
|
|
116
|
+
* {@link applyConfigToState}, called both here (for late updates) and in {@link ngOnInit}
|
|
117
|
+
* (for the initial mount, where the host sets `config` via `setInput` before init runs).
|
|
118
|
+
*/
|
|
119
|
+
set config(value) {
|
|
120
|
+
this._config = value ?? {};
|
|
121
|
+
if (this._initialized) {
|
|
122
|
+
this.applyConfigToState();
|
|
123
|
+
this.cdr.detectChanges();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
get config() {
|
|
127
|
+
return this._config;
|
|
128
|
+
}
|
|
129
|
+
// ========================================
|
|
130
|
+
// IViewRenderer outputs
|
|
131
|
+
// ========================================
|
|
132
|
+
/** Emitted when a timeline event is clicked — payload is the RAW record object. */
|
|
133
|
+
recordSelected = new EventEmitter();
|
|
134
|
+
/** Emitted when a record should be opened — payload is the RAW record object. */
|
|
135
|
+
recordOpened = new EventEmitter();
|
|
136
|
+
/** Emitted (with the FULL updated config) whenever the user changes a chrome control. */
|
|
137
|
+
configChanged = new EventEmitter();
|
|
138
|
+
// ========================================
|
|
139
|
+
// RENDER STATE (absorbed from the host)
|
|
140
|
+
// ========================================
|
|
141
|
+
/** Whether the current entity has any date fields available for timeline view. */
|
|
142
|
+
HasDateFields = false;
|
|
143
|
+
/** Available date fields from the entity, sorted by priority. */
|
|
144
|
+
AvailableDateFields = [];
|
|
145
|
+
/** The currently selected date field name for the timeline. */
|
|
146
|
+
SelectedTimelineDateField = null;
|
|
147
|
+
/** The built timeline groups handed to `<mj-timeline>`. */
|
|
148
|
+
TimelineGroups = [];
|
|
149
|
+
/**
|
|
150
|
+
* Timeline sort order. Named `…State` (not `TimelineSortOrder`) to avoid colliding with the
|
|
151
|
+
* imported {@link TimelineSortOrder} type symbol used in the template / signatures.
|
|
152
|
+
*/
|
|
153
|
+
TimelineSortOrderState = 'desc';
|
|
154
|
+
/** Timeline segment grouping (day/week/month/...). */
|
|
155
|
+
TimelineSegmentGrouping = 'month';
|
|
156
|
+
/**
|
|
157
|
+
* Timeline orientation. Named `…State` to avoid colliding with the imported
|
|
158
|
+
* {@link TimelineOrientation} type symbol.
|
|
159
|
+
*/
|
|
160
|
+
TimelineOrientationState = 'vertical';
|
|
161
|
+
_initialized = false;
|
|
162
|
+
cdr = inject(ChangeDetectorRef);
|
|
163
|
+
// ========================================
|
|
164
|
+
// LIFECYCLE
|
|
165
|
+
// ========================================
|
|
166
|
+
ngOnInit() {
|
|
167
|
+
// The host sets entity/records/config via setInput BEFORE ngOnInit, so detection may have
|
|
168
|
+
// already run. Apply the seeded config now (controls + defaults), then (re)build groups.
|
|
169
|
+
this._initialized = true;
|
|
170
|
+
this.applyConfigToState();
|
|
171
|
+
this.detectDateFields();
|
|
172
|
+
this.cdr.detectChanges();
|
|
173
|
+
}
|
|
174
|
+
// ========================================
|
|
175
|
+
// COMPUTED
|
|
176
|
+
// ========================================
|
|
177
|
+
/** Display name of the currently selected timeline date field. */
|
|
178
|
+
get SelectedDateFieldDisplayName() {
|
|
179
|
+
if (!this.SelectedTimelineDateField) {
|
|
180
|
+
return '';
|
|
181
|
+
}
|
|
182
|
+
const field = this.AvailableDateFields.find((f) => f.Name === this.SelectedTimelineDateField);
|
|
183
|
+
return field?.DisplayNameOrName || this.SelectedTimelineDateField;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* The raw ID value derived from {@link selectedRecordId} for timeline selection. The host
|
|
187
|
+
* passes the selection in composite-key format (`ID|abc-123` or `ID=abc-123`), but the
|
|
188
|
+
* timeline stores just the raw ID value — so strip the field-name prefix.
|
|
189
|
+
*/
|
|
190
|
+
get TimelineSelectedEventID() {
|
|
191
|
+
if (!this.selectedRecordId) {
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
194
|
+
if (this.selectedRecordId.includes('|')) {
|
|
195
|
+
const parts = this.selectedRecordId.split('|');
|
|
196
|
+
return parts.length > 1 ? parts[1] : this.selectedRecordId;
|
|
197
|
+
}
|
|
198
|
+
if (this.selectedRecordId.includes('=')) {
|
|
199
|
+
const parts = this.selectedRecordId.split('=');
|
|
200
|
+
return parts.length > 1 ? parts[1] : this.selectedRecordId;
|
|
201
|
+
}
|
|
202
|
+
return this.selectedRecordId;
|
|
203
|
+
}
|
|
204
|
+
// ========================================
|
|
205
|
+
// CHROME ACTIONS (absorbed from the host)
|
|
206
|
+
// ========================================
|
|
207
|
+
/** Toggle timeline orientation between vertical and horizontal, then persist via config. */
|
|
208
|
+
ToggleTimelineOrientation() {
|
|
209
|
+
this.TimelineOrientationState = this.TimelineOrientationState === 'vertical' ? 'horizontal' : 'vertical';
|
|
210
|
+
this.emitConfigChange();
|
|
211
|
+
this.cdr.detectChanges();
|
|
212
|
+
}
|
|
213
|
+
/** Toggle timeline sort order between newest-first (desc) and oldest-first (asc), then persist. */
|
|
214
|
+
ToggleTimelineSortOrder() {
|
|
215
|
+
this.TimelineSortOrderState = this.TimelineSortOrderState === 'desc' ? 'asc' : 'desc';
|
|
216
|
+
this.emitConfigChange();
|
|
217
|
+
this.cdr.detectChanges();
|
|
218
|
+
}
|
|
219
|
+
/** Change the date field used for the timeline, rebuild groups, then persist via config. */
|
|
220
|
+
SetTimelineDateField(fieldName) {
|
|
221
|
+
if (this.AvailableDateFields.some((f) => f.Name === fieldName)) {
|
|
222
|
+
this.SelectedTimelineDateField = fieldName;
|
|
223
|
+
this.updateTimelineGroups();
|
|
224
|
+
this.emitConfigChange();
|
|
225
|
+
this.cdr.detectChanges();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
// ========================================
|
|
229
|
+
// TIMELINE EVENT → RECORD MAPPING
|
|
230
|
+
// ========================================
|
|
231
|
+
/**
|
|
232
|
+
* Handle a timeline event click. Maps the {@link AfterEventClickArgs} to the underlying raw
|
|
233
|
+
* record (`event.event.entity`) and emits it on {@link recordSelected}. The host's dynamic
|
|
234
|
+
* handler builds the composite key from the raw record, so we emit the record object as-is.
|
|
235
|
+
*/
|
|
236
|
+
OnTimelineEventClick(event) {
|
|
237
|
+
const record = event.event.entity;
|
|
238
|
+
if (record) {
|
|
239
|
+
this.recordSelected.emit(record);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
// ========================================
|
|
243
|
+
// CONFIG <-> STATE
|
|
244
|
+
// ========================================
|
|
245
|
+
/**
|
|
246
|
+
* Seed the chrome control state from {@link config}, applying sensible defaults where the
|
|
247
|
+
* config is silent (vertical orientation, descending sort, monthly segments). The selected
|
|
248
|
+
* date field is resolved against the currently-available date fields in {@link detectDateFields}.
|
|
249
|
+
*/
|
|
250
|
+
applyConfigToState() {
|
|
251
|
+
const c = this._config;
|
|
252
|
+
this.TimelineOrientationState = c.orientation ?? 'vertical';
|
|
253
|
+
this.TimelineSortOrderState = c.sortOrder ?? 'desc';
|
|
254
|
+
this.TimelineSegmentGrouping = c.segmentGrouping ?? 'month';
|
|
255
|
+
}
|
|
256
|
+
/** Emit the FULL current config object so the host can persist the change. */
|
|
257
|
+
emitConfigChange() {
|
|
258
|
+
this._config = {
|
|
259
|
+
dateFieldName: this.SelectedTimelineDateField ?? undefined,
|
|
260
|
+
orientation: this.TimelineOrientationState,
|
|
261
|
+
sortOrder: this.TimelineSortOrderState,
|
|
262
|
+
segmentGrouping: this.TimelineSegmentGrouping,
|
|
263
|
+
};
|
|
264
|
+
this.configChanged.emit(this._config);
|
|
265
|
+
}
|
|
266
|
+
// ========================================
|
|
267
|
+
// DATE-FIELD DETECTION (absorbed from the host)
|
|
268
|
+
// ========================================
|
|
269
|
+
/**
|
|
270
|
+
* Detect the entity's date fields and configure the timeline. Resolves the selected date
|
|
271
|
+
* field (preferring the configured one, falling back to the highest-priority available field)
|
|
272
|
+
* and rebuilds the groups. No-ops to an empty state when the entity has no date fields.
|
|
273
|
+
*/
|
|
274
|
+
detectDateFields() {
|
|
275
|
+
if (!this._entity) {
|
|
276
|
+
this.HasDateFields = false;
|
|
277
|
+
this.AvailableDateFields = [];
|
|
278
|
+
this.TimelineGroups = [];
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
const dateFields = this._entity.Fields.filter((f) => f.TSType === EntityFieldTSType.Date);
|
|
282
|
+
if (dateFields.length === 0) {
|
|
283
|
+
this.HasDateFields = false;
|
|
284
|
+
this.AvailableDateFields = [];
|
|
285
|
+
this.TimelineGroups = [];
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
this.AvailableDateFields = this.sortDateFieldsByPriority(dateFields);
|
|
289
|
+
this.HasDateFields = true;
|
|
290
|
+
this.SelectedTimelineDateField = this.getEffectiveTimelineDateField();
|
|
291
|
+
this.updateTimelineGroups();
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Sort date fields by priority: `DefaultInView` fields first (by Sequence), then the rest
|
|
295
|
+
* (by Sequence).
|
|
296
|
+
*/
|
|
297
|
+
sortDateFieldsByPriority(dateFields) {
|
|
298
|
+
const defaultInView = dateFields.filter((f) => f.DefaultInView).sort((a, b) => a.Sequence - b.Sequence);
|
|
299
|
+
const others = dateFields.filter((f) => !f.DefaultInView).sort((a, b) => a.Sequence - b.Sequence);
|
|
300
|
+
return [...defaultInView, ...others];
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Resolve which date field to use: the configured `dateFieldName` when it's still a valid
|
|
304
|
+
* available field, otherwise the first (highest-priority) available date field.
|
|
305
|
+
*/
|
|
306
|
+
getEffectiveTimelineDateField() {
|
|
307
|
+
if (this._config.dateFieldName) {
|
|
308
|
+
const configField = this.AvailableDateFields.find((f) => f.Name === this._config.dateFieldName);
|
|
309
|
+
if (configField) {
|
|
310
|
+
return configField.Name;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return this.AvailableDateFields[0].Name;
|
|
314
|
+
}
|
|
315
|
+
// ========================================
|
|
316
|
+
// GROUP BUILDING (absorbed from the host)
|
|
317
|
+
// ========================================
|
|
318
|
+
/**
|
|
319
|
+
* Build the single {@link TimelineGroup} for the current entity + records + selected date
|
|
320
|
+
* field, mirroring the host's previous `updateTimelineGroups()`. No-ops to an empty state
|
|
321
|
+
* when there is no entity or no selected date field.
|
|
322
|
+
*/
|
|
323
|
+
updateTimelineGroups() {
|
|
324
|
+
// Emit NO group until there is an entity, a resolved date field, AND records. Emitting an empty
|
|
325
|
+
// group (records not loaded yet) makes the inner <mj-timeline> run its first refresh with zero
|
|
326
|
+
// events and mark itself loaded; the later records-populated update can then be dropped by its
|
|
327
|
+
// concurrent-refresh / already-loaded guards, leaving "No events to display". Waiting for records
|
|
328
|
+
// means its first real load happens with data.
|
|
329
|
+
if (!this._entity || !this.SelectedTimelineDateField || this._records.length === 0) {
|
|
330
|
+
this.TimelineGroups = [];
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
const titleField = this.findTitleField();
|
|
334
|
+
const group = new TimelineGroup();
|
|
335
|
+
group.DataSourceType = 'array';
|
|
336
|
+
group.EntityObjects = this._records;
|
|
337
|
+
group.TitleFieldName = titleField;
|
|
338
|
+
group.DateFieldName = this.SelectedTimelineDateField;
|
|
339
|
+
group.IdFieldName = 'ID';
|
|
340
|
+
group.GroupLabel = this._entity.Name;
|
|
341
|
+
const descField = this.findDescriptionField();
|
|
342
|
+
if (descField) {
|
|
343
|
+
group.DescriptionFieldName = descField;
|
|
344
|
+
}
|
|
345
|
+
const subtitleField = this.findSubtitleField(titleField);
|
|
346
|
+
if (subtitleField) {
|
|
347
|
+
group.SubtitleFieldName = subtitleField;
|
|
348
|
+
}
|
|
349
|
+
group.CardConfig = {
|
|
350
|
+
collapsible: true,
|
|
351
|
+
defaultExpanded: false,
|
|
352
|
+
showDate: true,
|
|
353
|
+
dateFormat: 'MMM d, yyyy h:mm a',
|
|
354
|
+
};
|
|
355
|
+
this.TimelineGroups = [group];
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Find the best field to use as the event title: the entity's NameField, then a
|
|
359
|
+
* `DefaultInView` string field matching a common name pattern, then the first string field.
|
|
360
|
+
*/
|
|
361
|
+
findTitleField() {
|
|
362
|
+
if (!this._entity) {
|
|
363
|
+
return 'ID';
|
|
364
|
+
}
|
|
365
|
+
if (this._entity.NameField) {
|
|
366
|
+
return this._entity.NameField.Name;
|
|
367
|
+
}
|
|
368
|
+
const stringFields = this._entity.Fields.filter((f) => f.TSType === EntityFieldTSType.String && f.DefaultInView && !f.Name.startsWith('__mj_')).sort((a, b) => a.Sequence - b.Sequence);
|
|
369
|
+
const namePatterns = ['name', 'title', 'subject', 'label'];
|
|
370
|
+
for (const pattern of namePatterns) {
|
|
371
|
+
const match = stringFields.find((f) => f.Name.toLowerCase().includes(pattern));
|
|
372
|
+
if (match) {
|
|
373
|
+
return match.Name;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return stringFields.length > 0 ? stringFields[0].Name : 'ID';
|
|
377
|
+
}
|
|
378
|
+
/** Find a suitable description field by common naming pattern, or null. */
|
|
379
|
+
findDescriptionField() {
|
|
380
|
+
if (!this._entity) {
|
|
381
|
+
return null;
|
|
382
|
+
}
|
|
383
|
+
const descPatterns = ['description', 'notes', 'summary', 'content', 'body', 'details'];
|
|
384
|
+
const textFields = this._entity.Fields.filter((f) => f.TSType === EntityFieldTSType.String && !f.Name.startsWith('__mj_'));
|
|
385
|
+
for (const pattern of descPatterns) {
|
|
386
|
+
const match = textFields.find((f) => f.Name.toLowerCase().includes(pattern));
|
|
387
|
+
if (match) {
|
|
388
|
+
return match.Name;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return null;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Find a suitable subtitle field (different from the title): a `DefaultInView` string field
|
|
395
|
+
* matching a classification pattern (status/type/category/...), else the first other string
|
|
396
|
+
* field, else null.
|
|
397
|
+
*/
|
|
398
|
+
findSubtitleField(excludeField) {
|
|
399
|
+
if (!this._entity) {
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
402
|
+
const patterns = ['status', 'type', 'category', 'state', 'priority'];
|
|
403
|
+
const fields = this._entity.Fields.filter((f) => f.TSType === EntityFieldTSType.String &&
|
|
404
|
+
f.DefaultInView &&
|
|
405
|
+
f.Name !== excludeField &&
|
|
406
|
+
!f.Name.startsWith('__mj_')).sort((a, b) => a.Sequence - b.Sequence);
|
|
407
|
+
for (const pattern of patterns) {
|
|
408
|
+
const match = fields.find((f) => f.Name.toLowerCase().includes(pattern));
|
|
409
|
+
if (match) {
|
|
410
|
+
return match.Name;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
const firstOther = fields.find((f) => f.Name !== excludeField);
|
|
414
|
+
return firstOther?.Name || null;
|
|
415
|
+
}
|
|
416
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵTimelineViewRendererComponent_BaseFactory; return function TimelineViewRendererComponent_Factory(__ngFactoryType__) { return (ɵTimelineViewRendererComponent_BaseFactory || (ɵTimelineViewRendererComponent_BaseFactory = i0.ɵɵgetInheritedFactory(TimelineViewRendererComponent)))(__ngFactoryType__ || TimelineViewRendererComponent); }; })();
|
|
417
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimelineViewRendererComponent, selectors: [["mj-timeline-view-renderer"]], inputs: { entity: "entity", records: "records", selectedRecordId: "selectedRecordId", filterText: "filterText", config: "config" }, outputs: { recordSelected: "recordSelected", recordOpened: "recordOpened", configChanged: "configChanged" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 8, consts: [[1, "timeline-view-chrome"], [1, "timeline-date-selector"], [1, "fa-solid", "fa-calendar-days"], [1, "date-field-label"], [1, "date-field-select", 3, "value"], [1, "timeline-orientation-toggle"], [1, "toggle-btn", 3, "click", "title"], [1, "timeline-sort-toggle"], [3, "groups", "orientation", "layout", "sortOrder", "segmentGrouping", "segmentsCollapsible", "segmentsDefaultExpanded", "selectedEventId"], [1, "timeline-view-empty"], [1, "date-field-select", 3, "change", "value"], [3, "value"], [3, "afterEventClick", "groups", "orientation", "layout", "sortOrder", "segmentGrouping", "segmentsCollapsible", "segmentsDefaultExpanded", "selectedEventId"], [1, "fa-solid", "fa-calendar-xmark"]], template: function TimelineViewRendererComponent_Template(rf, ctx) { if (rf & 1) {
|
|
418
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
419
|
+
i0.ɵɵelement(2, "i", 2);
|
|
420
|
+
i0.ɵɵconditionalCreate(3, TimelineViewRendererComponent_Conditional_3_Template, 2, 1, "span", 3)(4, TimelineViewRendererComponent_Conditional_4_Template, 3, 1, "select", 4);
|
|
421
|
+
i0.ɵɵelementEnd();
|
|
422
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "button", 6);
|
|
423
|
+
i0.ɵɵlistener("click", function TimelineViewRendererComponent_Template_button_click_6_listener() { return ctx.ToggleTimelineOrientation(); });
|
|
424
|
+
i0.ɵɵelement(7, "i");
|
|
425
|
+
i0.ɵɵelementEnd()();
|
|
426
|
+
i0.ɵɵelementStart(8, "div", 7)(9, "button", 6);
|
|
427
|
+
i0.ɵɵlistener("click", function TimelineViewRendererComponent_Template_button_click_9_listener() { return ctx.ToggleTimelineSortOrder(); });
|
|
428
|
+
i0.ɵɵelement(10, "i");
|
|
429
|
+
i0.ɵɵelementEnd()()();
|
|
430
|
+
i0.ɵɵconditionalCreate(11, TimelineViewRendererComponent_Conditional_11_Template, 1, 8, "mj-timeline", 8)(12, TimelineViewRendererComponent_Conditional_12_Template, 4, 0, "div", 9);
|
|
431
|
+
} if (rf & 2) {
|
|
432
|
+
i0.ɵɵadvance(3);
|
|
433
|
+
i0.ɵɵconditional(ctx.AvailableDateFields.length === 1 ? 3 : ctx.AvailableDateFields.length > 1 ? 4 : -1);
|
|
434
|
+
i0.ɵɵadvance(3);
|
|
435
|
+
i0.ɵɵproperty("title", ctx.TimelineOrientationState === "vertical" ? "Switch to Horizontal" : "Switch to Vertical");
|
|
436
|
+
i0.ɵɵadvance();
|
|
437
|
+
i0.ɵɵclassMap(ctx.TimelineOrientationState === "vertical" ? "fa-solid fa-ellipsis-vertical" : "fa-solid fa-ellipsis");
|
|
438
|
+
i0.ɵɵadvance(2);
|
|
439
|
+
i0.ɵɵproperty("title", ctx.TimelineSortOrderState === "desc" ? "Showing Newest First (click for Oldest First)" : "Showing Oldest First (click for Newest First)");
|
|
440
|
+
i0.ɵɵadvance();
|
|
441
|
+
i0.ɵɵclassMap(ctx.TimelineSortOrderState === "desc" ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-up-wide-short");
|
|
442
|
+
i0.ɵɵadvance();
|
|
443
|
+
i0.ɵɵconditional(ctx.HasDateFields ? 11 : 12);
|
|
444
|
+
} }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i2.TimelineComponent], styles: ["\n :host {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n .timeline-view-chrome {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 12px;\n flex: 0 0 auto;\n }\n\n .timeline-view-renderer mj-timeline,\n :host mj-timeline {\n flex: 1 1 auto;\n min-height: 0;\n }\n\n /* Timeline Date Field Selector */\n .timeline-date-selector {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n }\n\n .timeline-date-selector i {\n color: var(--mj-text-disabled);\n }\n\n .date-field-label {\n color: var(--mj-text-secondary);\n font-weight: 500;\n }\n\n .date-field-select {\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n font-size: 13px;\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n outline: none;\n transition: border-color 0.15s ease;\n }\n\n .date-field-select:hover {\n border-color: var(--mj-border-strong);\n }\n\n .date-field-select:focus {\n border-color: var(--mj-brand-primary);\n }\n\n /* Orientation / Sort toggles */\n .timeline-orientation-toggle,\n .timeline-sort-toggle {\n display: flex;\n background: var(--mj-bg-surface-card);\n border-radius: 6px;\n padding: 2px;\n }\n\n .toggle-btn {\n width: 32px;\n height: 32px;\n border: none;\n background: transparent;\n border-radius: 4px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n transition: all 0.15s ease;\n }\n\n .toggle-btn:hover {\n color: var(--mj-text-secondary);\n }\n\n .toggle-btn.active {\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n box-shadow: 0 1px 3px color-mix(in srgb, var(--mj-text-primary) 10%, transparent);\n }\n\n .timeline-view-empty {\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n color: var(--mj-text-muted);\n padding: 32px;\n text-align: center;\n }\n\n .timeline-view-empty i {\n font-size: 32px;\n opacity: 0.6;\n }\n "], encapsulation: 2 });
|
|
445
|
+
}
|
|
446
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimelineViewRendererComponent, [{
|
|
447
|
+
type: Component,
|
|
448
|
+
args: [{ standalone: false, selector: 'mj-timeline-view-renderer', encapsulation: ViewEncapsulation.None, template: `
|
|
449
|
+
<!-- Chrome row: date-field selector + orientation toggle + sort toggle.
|
|
450
|
+
Always rendered — this plug-in only mounts when Timeline is the active view. -->
|
|
451
|
+
<div class="timeline-view-chrome">
|
|
452
|
+
<!-- Date Field Selector -->
|
|
453
|
+
<div class="timeline-date-selector">
|
|
454
|
+
<i class="fa-solid fa-calendar-days"></i>
|
|
455
|
+
@if (AvailableDateFields.length === 1) {
|
|
456
|
+
<span class="date-field-label">{{ SelectedDateFieldDisplayName }}</span>
|
|
457
|
+
} @else if (AvailableDateFields.length > 1) {
|
|
458
|
+
<select
|
|
459
|
+
class="date-field-select"
|
|
460
|
+
[value]="SelectedTimelineDateField"
|
|
461
|
+
(change)="SetTimelineDateField($any($event.target).value)">
|
|
462
|
+
@for (field of AvailableDateFields; track field.Name) {
|
|
463
|
+
<option [value]="field.Name">{{ field.DisplayNameOrName }}</option>
|
|
464
|
+
}
|
|
465
|
+
</select>
|
|
466
|
+
}
|
|
467
|
+
</div>
|
|
468
|
+
|
|
469
|
+
<!-- Orientation Toggle -->
|
|
470
|
+
<div class="timeline-orientation-toggle">
|
|
471
|
+
<button
|
|
472
|
+
class="toggle-btn"
|
|
473
|
+
(click)="ToggleTimelineOrientation()"
|
|
474
|
+
[title]="TimelineOrientationState === 'vertical' ? 'Switch to Horizontal' : 'Switch to Vertical'">
|
|
475
|
+
<i [class]="TimelineOrientationState === 'vertical' ? 'fa-solid fa-ellipsis-vertical' : 'fa-solid fa-ellipsis'"></i>
|
|
476
|
+
</button>
|
|
477
|
+
</div>
|
|
478
|
+
|
|
479
|
+
<!-- Sort Order Toggle -->
|
|
480
|
+
<div class="timeline-sort-toggle">
|
|
481
|
+
<button
|
|
482
|
+
class="toggle-btn"
|
|
483
|
+
(click)="ToggleTimelineSortOrder()"
|
|
484
|
+
[title]="TimelineSortOrderState === 'desc' ? 'Showing Newest First (click for Oldest First)' : 'Showing Oldest First (click for Newest First)'">
|
|
485
|
+
<i [class]="TimelineSortOrderState === 'desc' ? 'fa-solid fa-arrow-down-wide-short' : 'fa-solid fa-arrow-up-wide-short'"></i>
|
|
486
|
+
</button>
|
|
487
|
+
</div>
|
|
488
|
+
</div>
|
|
489
|
+
|
|
490
|
+
@if (HasDateFields) {
|
|
491
|
+
<mj-timeline
|
|
492
|
+
[groups]="TimelineGroups"
|
|
493
|
+
[orientation]="TimelineOrientationState"
|
|
494
|
+
[layout]="TimelineOrientationState === 'vertical' ? 'alternating' : 'single'"
|
|
495
|
+
[sortOrder]="TimelineSortOrderState"
|
|
496
|
+
[segmentGrouping]="TimelineSegmentGrouping"
|
|
497
|
+
[segmentsCollapsible]="true"
|
|
498
|
+
[segmentsDefaultExpanded]="true"
|
|
499
|
+
[selectedEventId]="TimelineSelectedEventID"
|
|
500
|
+
(afterEventClick)="OnTimelineEventClick($event)">
|
|
501
|
+
</mj-timeline>
|
|
502
|
+
} @else {
|
|
503
|
+
<div class="timeline-view-empty">
|
|
504
|
+
<i class="fa-solid fa-calendar-xmark"></i>
|
|
505
|
+
<span>This entity has no date fields to plot on a timeline.</span>
|
|
506
|
+
</div>
|
|
507
|
+
}
|
|
508
|
+
`, styles: ["\n :host {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n .timeline-view-chrome {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 12px;\n flex: 0 0 auto;\n }\n\n .timeline-view-renderer mj-timeline,\n :host mj-timeline {\n flex: 1 1 auto;\n min-height: 0;\n }\n\n /* Timeline Date Field Selector */\n .timeline-date-selector {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n }\n\n .timeline-date-selector i {\n color: var(--mj-text-disabled);\n }\n\n .date-field-label {\n color: var(--mj-text-secondary);\n font-weight: 500;\n }\n\n .date-field-select {\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n font-size: 13px;\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n outline: none;\n transition: border-color 0.15s ease;\n }\n\n .date-field-select:hover {\n border-color: var(--mj-border-strong);\n }\n\n .date-field-select:focus {\n border-color: var(--mj-brand-primary);\n }\n\n /* Orientation / Sort toggles */\n .timeline-orientation-toggle,\n .timeline-sort-toggle {\n display: flex;\n background: var(--mj-bg-surface-card);\n border-radius: 6px;\n padding: 2px;\n }\n\n .toggle-btn {\n width: 32px;\n height: 32px;\n border: none;\n background: transparent;\n border-radius: 4px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n transition: all 0.15s ease;\n }\n\n .toggle-btn:hover {\n color: var(--mj-text-secondary);\n }\n\n .toggle-btn.active {\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n box-shadow: 0 1px 3px color-mix(in srgb, var(--mj-text-primary) 10%, transparent);\n }\n\n .timeline-view-empty {\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n color: var(--mj-text-muted);\n padding: 32px;\n text-align: center;\n }\n\n .timeline-view-empty i {\n font-size: 32px;\n opacity: 0.6;\n }\n "] }]
|
|
509
|
+
}], null, { entity: [{
|
|
510
|
+
type: Input
|
|
511
|
+
}], records: [{
|
|
512
|
+
type: Input
|
|
513
|
+
}], selectedRecordId: [{
|
|
514
|
+
type: Input
|
|
515
|
+
}], filterText: [{
|
|
516
|
+
type: Input
|
|
517
|
+
}], config: [{
|
|
518
|
+
type: Input
|
|
519
|
+
}], recordSelected: [{
|
|
520
|
+
type: Output
|
|
521
|
+
}], recordOpened: [{
|
|
522
|
+
type: Output
|
|
523
|
+
}], configChanged: [{
|
|
524
|
+
type: Output
|
|
525
|
+
}] }); })();
|
|
526
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimelineViewRendererComponent, { className: "TimelineViewRendererComponent", filePath: "src/lib/view-types/renderers/timeline-view-renderer.component.ts", lineNumber: 248 }); })();
|
|
527
|
+
/**
|
|
528
|
+
* Tree-shaking guard. Force-references the component class so bundlers don't drop this module
|
|
529
|
+
* when it's only mounted dynamically via the view-type descriptor's `RendererComponent`.
|
|
530
|
+
*/
|
|
531
|
+
export function LoadTimelineViewRenderer() {
|
|
532
|
+
// no-op; presence prevents tree-shaking of the dynamically-mounted renderer
|
|
533
|
+
void TimelineViewRendererComponent;
|
|
534
|
+
}
|
|
535
|
+
//# sourceMappingURL=timeline-view-renderer.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-view-renderer.component.js","sourceRoot":"","sources":["../../../../src/lib/view-types/renderers/timeline-view-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EACZ,iBAAiB,EAEjB,iBAAiB,EACjB,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAA+B,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EACL,aAAa,GAId,MAAM,6BAA6B,CAAC;;;;;;IAgE3B,+BAA+B;IAAA,YAAkC;IAAA,iBAAO;;;IAAzC,cAAkC;IAAlC,yDAAkC;;;IAO7D,kCAA6B;IAAA,YAA6B;IAAA,iBAAS;;;IAA3D,qCAAoB;IAAC,cAA6B;IAA7B,gDAA6B;;;;IAL9D,kCAG6D;IAA3D,yMAAU,gDAA+C,KAAC;IAC1D,kHAEC;IACH,iBAAS;;;IALP,wDAAmC;IAEnC,cAEC;IAFD,yCAEC;;;;IA2BP,uCASmD;IAAjD,iOAAmB,mCAA4B,KAAC;IAClD,iBAAc;;;IAFZ,AADA,AADA,AADA,AADA,AADA,AADA,AADA,8CAAyB,gDACe,qFACqC,4CACzC,mDACO,6BACf,iCACI,mDACW;;;IAI7C,8BAAiC;IAC/B,wBAA0C;IAC1C,4BAAM;IAAA,qEAAqD;IAC7D,AAD6D,iBAAO,EAC9D;;AAvFZ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAkLH,MAAM,OAAO,6BACX,SAAQ,oBAAoB;IAG5B,2CAA2C;IAC3C,yDAAyD;IACzD,2CAA2C;IAEnC,OAAO,GAAsB,IAAI,CAAC;IAC1C,uGA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,CAAC;QAC/D,OAAO,UAAU,EAAE,IAAI,IAAI,IAAI,CAAC;IAClC,CAAC;iSAhZU,6BAA6B,yBAA7B,6BAA6B;6DAA7B,6BAA6B;YAxKpC,AAFF,8BAAkC,aAEI;YAClC,uBAAyC;YAGvC,AAFF,gGAAwC,4EAEK;YAU/C,iBAAM;YAIJ,AADF,8BAAyC,gBAI6D;YADlG,0GAAS,+BAA2B,IAAC;YAErC,oBAAoH;YAExH,AADE,iBAAS,EACL;YAIJ,AADF,8BAAkC,gBAIkH;YADhJ,0GAAS,6BAAyB,IAAC;YAEnC,qBAA6H;YAGnI,AADE,AADE,iBAAS,EACL,EACF;YAcJ,AAZF,yGAAqB,2EAYZ;;YA/CL,eAWC;YAXD,wGAWC;YAQC,eAAiG;YAAjG,mHAAiG;YAC9F,cAA4G;YAA5G,qHAA4G;YAS/G,eAA+I;YAA/I,iKAA+I;YAC5I,cAAqH;YAArH,8HAAqH;YAK9H,cAiBC;YAjBD,6CAiBC;;;iFAkHQ,6BAA6B;cAjLzC,SAAS;6BACI,KAAK,YACP,2BAA2B,iBACtB,iBAAiB,CAAC,IAAI,YAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DT;;kBA2HA,KAAK;;kBAeL,KAAK;;kBAWL,KAAK;;kBAGL,KAAK;;kBAQL,KAAK;;kBAiBL,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kFAtEI,6BAA6B;AAmZ1C;;;GAGG;AACH,MAAM,UAAU,wBAAwB;IACtC,4EAA4E;IAC5E,KAAK,6BAA6B,CAAC;AACrC,CAAC","sourcesContent":["import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectorRef,\n OnInit,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport { EntityInfo, EntityFieldInfo, EntityFieldTSType } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport {\n TimelineGroup,\n TimeSegmentGrouping,\n TimelineSortOrder,\n AfterEventClickArgs,\n} from '@memberjunction/ng-timeline';\nimport { TimelineOrientation } from '../../types';\nimport { IViewRenderer } from '../view-type.contracts';\n\n/**\n * The persisted configuration shape for the Timeline view type.\n *\n * This is the `config` payload the host hands to the renderer on mount and that the\n * renderer emits back (in full) via {@link TimelineViewRendererComponent.configChanged}\n * whenever the user changes any of the timeline chrome controls. The host treats it as an\n * opaque blob — only this renderer (and an eventual prop-sheet) understands its keys — and\n * persists it per `MJ: View Types` row.\n *\n * All fields are optional: on first mount the renderer falls back to sensible defaults\n * (first available date field, vertical orientation, descending sort, monthly segments).\n */\nexport interface TimelineViewConfig {\n /** The entity date-field used to place records on the timeline (e.g. `__mj_CreatedAt`). */\n dateFieldName?: string;\n /** Vertical (alternating) vs. horizontal (single-row) timeline layout. */\n orientation?: TimelineOrientation;\n /** Newest-first (`desc`) vs. oldest-first (`asc`) event ordering. */\n sortOrder?: TimelineSortOrder;\n /** How events are bucketed into collapsible segments (day/week/month/...). */\n segmentGrouping?: TimeSegmentGrouping;\n}\n\n/**\n * TimelineViewRendererComponent\n * -----------------------------\n * The Timeline **view type** as a self-contained {@link IViewRenderer} plug-in. Where the\n * Timeline view used to be hard-wired into the generic `mj-entity-viewer` host (which owned\n * the date-field detection, the record→{@link TimelineGroup} transformation, and the\n * date-field / orientation / sort chrome), this component now OWNS all of it. The host simply\n * dynamic-mounts this renderer when Timeline is the active view type and feeds it the standard\n * renderer inputs (`entity` / `records` / `selectedRecordId` / `filterText` / `config`).\n *\n * It renders a small chrome header row (date-field selector + orientation toggle + sort toggle)\n * above a flex-filling `<mj-timeline>`, exactly reproducing the host's previous timeline chrome\n * and bindings. Because the host only mounts this plug-in when Timeline is active, the chrome\n * always renders — no extra `EffectiveViewMode === 'timeline'` guard is needed.\n *\n * **What was absorbed from the host** (`EntityViewerComponent`): `detectDateFields()`,\n * `sortDateFieldsByPriority()`, `AvailableDateFields`/`HasDateFields`, `configureTimeline()`,\n * `updateTimelineGroups()` (+ `findTitleField`/`findDescriptionField`/`findSubtitleField`),\n * `ToggleTimelineOrientation()`, `ToggleTimelineSortOrder()`, `SetTimelineDateField()`,\n * `SelectedDateFieldDisplayName`, `OnTimelineEventClick()`, and the `TimelineSelectedEventID`\n * composite-key→raw-id derivation.\n *\n * Inputs use the camelCase names mandated by the {@link IViewRenderer} contract (the host binds\n * them by those exact names) rather than MJ's usual PascalCase for public members.\n */\n@Component({\n standalone: false,\n selector: 'mj-timeline-view-renderer',\n encapsulation: ViewEncapsulation.None,\n template: `\n <!-- Chrome row: date-field selector + orientation toggle + sort toggle.\n Always rendered — this plug-in only mounts when Timeline is the active view. -->\n <div class=\"timeline-view-chrome\">\n <!-- Date Field Selector -->\n <div class=\"timeline-date-selector\">\n <i class=\"fa-solid fa-calendar-days\"></i>\n @if (AvailableDateFields.length === 1) {\n <span class=\"date-field-label\">{{ SelectedDateFieldDisplayName }}</span>\n } @else if (AvailableDateFields.length > 1) {\n <select\n class=\"date-field-select\"\n [value]=\"SelectedTimelineDateField\"\n (change)=\"SetTimelineDateField($any($event.target).value)\">\n @for (field of AvailableDateFields; track field.Name) {\n <option [value]=\"field.Name\">{{ field.DisplayNameOrName }}</option>\n }\n </select>\n }\n </div>\n\n <!-- Orientation Toggle -->\n <div class=\"timeline-orientation-toggle\">\n <button\n class=\"toggle-btn\"\n (click)=\"ToggleTimelineOrientation()\"\n [title]=\"TimelineOrientationState === 'vertical' ? 'Switch to Horizontal' : 'Switch to Vertical'\">\n <i [class]=\"TimelineOrientationState === 'vertical' ? 'fa-solid fa-ellipsis-vertical' : 'fa-solid fa-ellipsis'\"></i>\n </button>\n </div>\n\n <!-- Sort Order Toggle -->\n <div class=\"timeline-sort-toggle\">\n <button\n class=\"toggle-btn\"\n (click)=\"ToggleTimelineSortOrder()\"\n [title]=\"TimelineSortOrderState === 'desc' ? 'Showing Newest First (click for Oldest First)' : 'Showing Oldest First (click for Newest First)'\">\n <i [class]=\"TimelineSortOrderState === 'desc' ? 'fa-solid fa-arrow-down-wide-short' : 'fa-solid fa-arrow-up-wide-short'\"></i>\n </button>\n </div>\n </div>\n\n @if (HasDateFields) {\n <mj-timeline\n [groups]=\"TimelineGroups\"\n [orientation]=\"TimelineOrientationState\"\n [layout]=\"TimelineOrientationState === 'vertical' ? 'alternating' : 'single'\"\n [sortOrder]=\"TimelineSortOrderState\"\n [segmentGrouping]=\"TimelineSegmentGrouping\"\n [segmentsCollapsible]=\"true\"\n [segmentsDefaultExpanded]=\"true\"\n [selectedEventId]=\"TimelineSelectedEventID\"\n (afterEventClick)=\"OnTimelineEventClick($event)\">\n </mj-timeline>\n } @else {\n <div class=\"timeline-view-empty\">\n <i class=\"fa-solid fa-calendar-xmark\"></i>\n <span>This entity has no date fields to plot on a timeline.</span>\n </div>\n }\n `,\n styles: [\n `\n :host {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n .timeline-view-chrome {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 12px;\n flex: 0 0 auto;\n }\n\n .timeline-view-renderer mj-timeline,\n :host mj-timeline {\n flex: 1 1 auto;\n min-height: 0;\n }\n\n /* Timeline Date Field Selector */\n .timeline-date-selector {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n }\n\n .timeline-date-selector i {\n color: var(--mj-text-disabled);\n }\n\n .date-field-label {\n color: var(--mj-text-secondary);\n font-weight: 500;\n }\n\n .date-field-select {\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n font-size: 13px;\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n outline: none;\n transition: border-color 0.15s ease;\n }\n\n .date-field-select:hover {\n border-color: var(--mj-border-strong);\n }\n\n .date-field-select:focus {\n border-color: var(--mj-brand-primary);\n }\n\n /* Orientation / Sort toggles */\n .timeline-orientation-toggle,\n .timeline-sort-toggle {\n display: flex;\n background: var(--mj-bg-surface-card);\n border-radius: 6px;\n padding: 2px;\n }\n\n .toggle-btn {\n width: 32px;\n height: 32px;\n border: none;\n background: transparent;\n border-radius: 4px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n transition: all 0.15s ease;\n }\n\n .toggle-btn:hover {\n color: var(--mj-text-secondary);\n }\n\n .toggle-btn.active {\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n box-shadow: 0 1px 3px color-mix(in srgb, var(--mj-text-primary) 10%, transparent);\n }\n\n .timeline-view-empty {\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n color: var(--mj-text-muted);\n padding: 32px;\n text-align: center;\n }\n\n .timeline-view-empty i {\n font-size: 32px;\n opacity: 0.6;\n }\n `,\n ],\n})\nexport class TimelineViewRendererComponent\n extends BaseAngularComponent\n implements IViewRenderer<TimelineViewConfig>, OnInit\n{\n // ========================================\n // IViewRenderer inputs (camelCase per the host contract)\n // ========================================\n\n private _entity: EntityInfo | null = null;\n /** The entity whose records are being rendered. Re-detects date fields + rebuilds groups on change. */\n @Input()\n set entity(value: EntityInfo | null) {\n const changed = !UUIDsEqual(value?.ID, this._entity?.ID);\n this._entity = value;\n if (changed) {\n this.detectDateFields();\n this.cdr.detectChanges();\n }\n }\n get entity(): EntityInfo | null {\n return this._entity;\n }\n\n private _records: Record<string, unknown>[] = [];\n /** The records to render (already loaded/filtered by the host). Rebuilds groups on change. */\n @Input()\n set records(value: Record<string, unknown>[]) {\n this._records = value ?? [];\n this.updateTimelineGroups();\n this.cdr.detectChanges();\n }\n get records(): Record<string, unknown>[] {\n return this._records;\n }\n\n /** Primary-key string of the currently selected record, if any (composite-key encoded). */\n @Input() selectedRecordId: string | null = null;\n\n /** Active filter text — accepted for contract uniformity; the host pre-filters `records`. */\n @Input() filterText: string | null = null;\n\n private _config: TimelineViewConfig = {};\n /**\n * This view's persisted configuration. Seeding the chrome controls from it is deferred to\n * {@link applyConfigToState}, called both here (for late updates) and in {@link ngOnInit}\n * (for the initial mount, where the host sets `config` via `setInput` before init runs).\n */\n @Input()\n set config(value: TimelineViewConfig) {\n this._config = value ?? {};\n if (this._initialized) {\n this.applyConfigToState();\n this.cdr.detectChanges();\n }\n }\n get config(): TimelineViewConfig {\n return this._config;\n }\n\n // ========================================\n // IViewRenderer outputs\n // ========================================\n\n /** Emitted when a timeline event is clicked — payload is the RAW record object. */\n @Output() recordSelected = new EventEmitter<unknown>();\n\n /** Emitted when a record should be opened — payload is the RAW record object. */\n @Output() recordOpened = new EventEmitter<unknown>();\n\n /** Emitted (with the FULL updated config) whenever the user changes a chrome control. */\n @Output() configChanged = new EventEmitter<TimelineViewConfig>();\n\n // ========================================\n // RENDER STATE (absorbed from the host)\n // ========================================\n\n /** Whether the current entity has any date fields available for timeline view. */\n public HasDateFields = false;\n\n /** Available date fields from the entity, sorted by priority. */\n public AvailableDateFields: EntityFieldInfo[] = [];\n\n /** The currently selected date field name for the timeline. */\n public SelectedTimelineDateField: string | null = null;\n\n /** The built timeline groups handed to `<mj-timeline>`. */\n public TimelineGroups: TimelineGroup<Record<string, unknown>>[] = [];\n\n /**\n * Timeline sort order. Named `…State` (not `TimelineSortOrder`) to avoid colliding with the\n * imported {@link TimelineSortOrder} type symbol used in the template / signatures.\n */\n public TimelineSortOrderState: TimelineSortOrder = 'desc';\n\n /** Timeline segment grouping (day/week/month/...). */\n public TimelineSegmentGrouping: TimeSegmentGrouping = 'month';\n\n /**\n * Timeline orientation. Named `…State` to avoid colliding with the imported\n * {@link TimelineOrientation} type symbol.\n */\n public TimelineOrientationState: TimelineOrientation = 'vertical';\n\n private _initialized = false;\n private cdr = inject(ChangeDetectorRef);\n\n // ========================================\n // LIFECYCLE\n // ========================================\n\n ngOnInit(): void {\n // The host sets entity/records/config via setInput BEFORE ngOnInit, so detection may have\n // already run. Apply the seeded config now (controls + defaults), then (re)build groups.\n this._initialized = true;\n this.applyConfigToState();\n this.detectDateFields();\n this.cdr.detectChanges();\n }\n\n // ========================================\n // COMPUTED\n // ========================================\n\n /** Display name of the currently selected timeline date field. */\n get SelectedDateFieldDisplayName(): string {\n if (!this.SelectedTimelineDateField) {\n return '';\n }\n const field = this.AvailableDateFields.find((f) => f.Name === this.SelectedTimelineDateField);\n return field?.DisplayNameOrName || this.SelectedTimelineDateField;\n }\n\n /**\n * The raw ID value derived from {@link selectedRecordId} for timeline selection. The host\n * passes the selection in composite-key format (`ID|abc-123` or `ID=abc-123`), but the\n * timeline stores just the raw ID value — so strip the field-name prefix.\n */\n get TimelineSelectedEventID(): string | null {\n if (!this.selectedRecordId) {\n return null;\n }\n if (this.selectedRecordId.includes('|')) {\n const parts = this.selectedRecordId.split('|');\n return parts.length > 1 ? parts[1] : this.selectedRecordId;\n }\n if (this.selectedRecordId.includes('=')) {\n const parts = this.selectedRecordId.split('=');\n return parts.length > 1 ? parts[1] : this.selectedRecordId;\n }\n return this.selectedRecordId;\n }\n\n // ========================================\n // CHROME ACTIONS (absorbed from the host)\n // ========================================\n\n /** Toggle timeline orientation between vertical and horizontal, then persist via config. */\n ToggleTimelineOrientation(): void {\n this.TimelineOrientationState = this.TimelineOrientationState === 'vertical' ? 'horizontal' : 'vertical';\n this.emitConfigChange();\n this.cdr.detectChanges();\n }\n\n /** Toggle timeline sort order between newest-first (desc) and oldest-first (asc), then persist. */\n ToggleTimelineSortOrder(): void {\n this.TimelineSortOrderState = this.TimelineSortOrderState === 'desc' ? 'asc' : 'desc';\n this.emitConfigChange();\n this.cdr.detectChanges();\n }\n\n /** Change the date field used for the timeline, rebuild groups, then persist via config. */\n SetTimelineDateField(fieldName: string): void {\n if (this.AvailableDateFields.some((f) => f.Name === fieldName)) {\n this.SelectedTimelineDateField = fieldName;\n this.updateTimelineGroups();\n this.emitConfigChange();\n this.cdr.detectChanges();\n }\n }\n\n // ========================================\n // TIMELINE EVENT → RECORD MAPPING\n // ========================================\n\n /**\n * Handle a timeline event click. Maps the {@link AfterEventClickArgs} to the underlying raw\n * record (`event.event.entity`) and emits it on {@link recordSelected}. The host's dynamic\n * handler builds the composite key from the raw record, so we emit the record object as-is.\n */\n OnTimelineEventClick(event: AfterEventClickArgs): void {\n const record = event.event.entity as Record<string, unknown> | undefined;\n if (record) {\n this.recordSelected.emit(record);\n }\n }\n\n // ========================================\n // CONFIG <-> STATE\n // ========================================\n\n /**\n * Seed the chrome control state from {@link config}, applying sensible defaults where the\n * config is silent (vertical orientation, descending sort, monthly segments). The selected\n * date field is resolved against the currently-available date fields in {@link detectDateFields}.\n */\n private applyConfigToState(): void {\n const c = this._config;\n this.TimelineOrientationState = c.orientation ?? 'vertical';\n this.TimelineSortOrderState = c.sortOrder ?? 'desc';\n this.TimelineSegmentGrouping = c.segmentGrouping ?? 'month';\n }\n\n /** Emit the FULL current config object so the host can persist the change. */\n private emitConfigChange(): void {\n this._config = {\n dateFieldName: this.SelectedTimelineDateField ?? undefined,\n orientation: this.TimelineOrientationState,\n sortOrder: this.TimelineSortOrderState,\n segmentGrouping: this.TimelineSegmentGrouping,\n };\n this.configChanged.emit(this._config);\n }\n\n // ========================================\n // DATE-FIELD DETECTION (absorbed from the host)\n // ========================================\n\n /**\n * Detect the entity's date fields and configure the timeline. Resolves the selected date\n * field (preferring the configured one, falling back to the highest-priority available field)\n * and rebuilds the groups. No-ops to an empty state when the entity has no date fields.\n */\n private detectDateFields(): void {\n if (!this._entity) {\n this.HasDateFields = false;\n this.AvailableDateFields = [];\n this.TimelineGroups = [];\n return;\n }\n\n const dateFields = this._entity.Fields.filter((f) => f.TSType === EntityFieldTSType.Date);\n if (dateFields.length === 0) {\n this.HasDateFields = false;\n this.AvailableDateFields = [];\n this.TimelineGroups = [];\n return;\n }\n\n this.AvailableDateFields = this.sortDateFieldsByPriority(dateFields);\n this.HasDateFields = true;\n this.SelectedTimelineDateField = this.getEffectiveTimelineDateField();\n this.updateTimelineGroups();\n }\n\n /**\n * Sort date fields by priority: `DefaultInView` fields first (by Sequence), then the rest\n * (by Sequence).\n */\n private sortDateFieldsByPriority(dateFields: EntityFieldInfo[]): EntityFieldInfo[] {\n const defaultInView = dateFields.filter((f) => f.DefaultInView).sort((a, b) => a.Sequence - b.Sequence);\n const others = dateFields.filter((f) => !f.DefaultInView).sort((a, b) => a.Sequence - b.Sequence);\n return [...defaultInView, ...others];\n }\n\n /**\n * Resolve which date field to use: the configured `dateFieldName` when it's still a valid\n * available field, otherwise the first (highest-priority) available date field.\n */\n private getEffectiveTimelineDateField(): string {\n if (this._config.dateFieldName) {\n const configField = this.AvailableDateFields.find((f) => f.Name === this._config.dateFieldName);\n if (configField) {\n return configField.Name;\n }\n }\n return this.AvailableDateFields[0].Name;\n }\n\n // ========================================\n // GROUP BUILDING (absorbed from the host)\n // ========================================\n\n /**\n * Build the single {@link TimelineGroup} for the current entity + records + selected date\n * field, mirroring the host's previous `updateTimelineGroups()`. No-ops to an empty state\n * when there is no entity or no selected date field.\n */\n private updateTimelineGroups(): void {\n // Emit NO group until there is an entity, a resolved date field, AND records. Emitting an empty\n // group (records not loaded yet) makes the inner <mj-timeline> run its first refresh with zero\n // events and mark itself loaded; the later records-populated update can then be dropped by its\n // concurrent-refresh / already-loaded guards, leaving \"No events to display\". Waiting for records\n // means its first real load happens with data.\n if (!this._entity || !this.SelectedTimelineDateField || this._records.length === 0) {\n this.TimelineGroups = [];\n return;\n }\n\n const titleField = this.findTitleField();\n\n const group = new TimelineGroup<Record<string, unknown>>();\n group.DataSourceType = 'array';\n group.EntityObjects = this._records;\n group.TitleFieldName = titleField;\n group.DateFieldName = this.SelectedTimelineDateField;\n group.IdFieldName = 'ID';\n group.GroupLabel = this._entity.Name;\n\n const descField = this.findDescriptionField();\n if (descField) {\n group.DescriptionFieldName = descField;\n }\n\n const subtitleField = this.findSubtitleField(titleField);\n if (subtitleField) {\n group.SubtitleFieldName = subtitleField;\n }\n\n group.CardConfig = {\n collapsible: true,\n defaultExpanded: false,\n showDate: true,\n dateFormat: 'MMM d, yyyy h:mm a',\n };\n\n this.TimelineGroups = [group];\n }\n\n /**\n * Find the best field to use as the event title: the entity's NameField, then a\n * `DefaultInView` string field matching a common name pattern, then the first string field.\n */\n private findTitleField(): string {\n if (!this._entity) {\n return 'ID';\n }\n if (this._entity.NameField) {\n return this._entity.NameField.Name;\n }\n\n const stringFields = this._entity.Fields.filter(\n (f) => f.TSType === EntityFieldTSType.String && f.DefaultInView && !f.Name.startsWith('__mj_'),\n ).sort((a, b) => a.Sequence - b.Sequence);\n\n const namePatterns = ['name', 'title', 'subject', 'label'];\n for (const pattern of namePatterns) {\n const match = stringFields.find((f) => f.Name.toLowerCase().includes(pattern));\n if (match) {\n return match.Name;\n }\n }\n\n return stringFields.length > 0 ? stringFields[0].Name : 'ID';\n }\n\n /** Find a suitable description field by common naming pattern, or null. */\n private findDescriptionField(): string | null {\n if (!this._entity) {\n return null;\n }\n const descPatterns = ['description', 'notes', 'summary', 'content', 'body', 'details'];\n const textFields = this._entity.Fields.filter(\n (f) => f.TSType === EntityFieldTSType.String && !f.Name.startsWith('__mj_'),\n );\n for (const pattern of descPatterns) {\n const match = textFields.find((f) => f.Name.toLowerCase().includes(pattern));\n if (match) {\n return match.Name;\n }\n }\n return null;\n }\n\n /**\n * Find a suitable subtitle field (different from the title): a `DefaultInView` string field\n * matching a classification pattern (status/type/category/...), else the first other string\n * field, else null.\n */\n private findSubtitleField(excludeField: string): string | null {\n if (!this._entity) {\n return null;\n }\n const patterns = ['status', 'type', 'category', 'state', 'priority'];\n const fields = this._entity.Fields.filter(\n (f) =>\n f.TSType === EntityFieldTSType.String &&\n f.DefaultInView &&\n f.Name !== excludeField &&\n !f.Name.startsWith('__mj_'),\n ).sort((a, b) => a.Sequence - b.Sequence);\n\n for (const pattern of patterns) {\n const match = fields.find((f) => f.Name.toLowerCase().includes(pattern));\n if (match) {\n return match.Name;\n }\n }\n\n const firstOther = fields.find((f) => f.Name !== excludeField);\n return firstOther?.Name || null;\n }\n}\n\n/**\n * Tree-shaking guard. Force-references the component class so bundlers don't drop this module\n * when it's only mounted dynamically via the view-type descriptor's `RendererComponent`.\n */\nexport function LoadTimelineViewRenderer(): void {\n // no-op; presence prevents tree-shaking of the dynamically-mounted renderer\n void TimelineViewRendererComponent;\n}\n"]}
|