@memberjunction/ng-entity-viewer 5.39.0 → 5.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,273 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EntityInfo, RunViewParams } from '@memberjunction/core';
|
|
3
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
4
|
+
import { PageChangeEvent } from '@memberjunction/ng-pagination';
|
|
5
|
+
import { ListManagementDialogConfig, ListManagementResult } from '@memberjunction/ng-list-management';
|
|
6
|
+
import { IViewRenderer, ViewDataRequest, ViewRelatedRecordNavigation } from '../view-type.contracts';
|
|
7
|
+
import { ViewGridState } from '../../types';
|
|
8
|
+
import { GridSelectionMode, GridToolbarConfig, ForeignKeyClickEvent } from '../../entity-data-grid/models/grid-types';
|
|
9
|
+
import { AfterRowClickEventArgs, AfterRowDoubleClickEventArgs, AfterSortEventArgs } from '../../entity-data-grid/events/grid-events';
|
|
10
|
+
import { GridStateChangedEvent } from '../../types';
|
|
11
|
+
import { EntityDataGridComponent } from '../../entity-data-grid/entity-data-grid.component';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* Opaque per-view configuration for the Grid view type.
|
|
15
|
+
* -----------------------------------------------------
|
|
16
|
+
* This is the blob the host persists verbatim against the active `ViewTypeID` and never
|
|
17
|
+
* inspects (see {@link IViewRenderer.configChanged}). The renderer seeds the
|
|
18
|
+
* `<mj-entity-data-grid>` bindings from these fields, applying sensible defaults when a
|
|
19
|
+
* field is absent (see {@link GridViewRendererComponent}). It is intentionally a plain,
|
|
20
|
+
* fully-serializable shape — every field is optional so an empty `{}` is a valid config.
|
|
21
|
+
*/
|
|
22
|
+
export interface GridViewConfig {
|
|
23
|
+
/**
|
|
24
|
+
* Persisted grid state (columns/widths/order/sort) from a User View. Mutated in place when
|
|
25
|
+
* the grid emits sort or generic grid-state changes, then surfaced via `configChanged` so the
|
|
26
|
+
* host persists it. Fed straight into `[GridState]`.
|
|
27
|
+
*/
|
|
28
|
+
gridState?: ViewGridState;
|
|
29
|
+
/** Whether the grid's own toolbar is shown. Defaults to `true` when absent. */
|
|
30
|
+
showToolbar?: boolean;
|
|
31
|
+
/** The grid toolbar configuration. Fed into `[ToolbarConfig]`. */
|
|
32
|
+
toolbarConfig?: GridToolbarConfig;
|
|
33
|
+
/** Row selection mode. Defaults to `'checkbox'` when absent. */
|
|
34
|
+
selectionMode?: GridSelectionMode;
|
|
35
|
+
/** Whether the "Add to List" button is shown. Defaults to `true` when absent. */
|
|
36
|
+
showAddToListButton?: boolean;
|
|
37
|
+
/** Whether the pager is shown. Defaults to `true` when absent. */
|
|
38
|
+
showPager?: boolean;
|
|
39
|
+
/** Page size for the grid's pager. Falls back to the `pageSize` input when absent. */
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Explicit RunViewParams for the grid's data source. When absent the renderer builds a minimal
|
|
43
|
+
* dynamic-view params object from {@link entity}. Fed into `[Params]`.
|
|
44
|
+
*/
|
|
45
|
+
params?: RunViewParams;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* GridViewRendererComponent
|
|
49
|
+
* -------------------------
|
|
50
|
+
* The Grid **view type** renderer — a fully self-contained {@link IViewRenderer} adapter that hosts
|
|
51
|
+
* the existing {@link EntityDataGridComponent} (`<mj-entity-data-grid>`) inside the entity-viewer's
|
|
52
|
+
* pluggable view-type system. It is the dynamic-mounted plug-in that the `GridViewType` descriptor
|
|
53
|
+
* points at.
|
|
54
|
+
*
|
|
55
|
+
* **Architectural intent — the container knows nothing about grids, and grid *features* never bubble
|
|
56
|
+
* up.** The host (entity-viewer) binds only the generic {@link IViewRenderer} surface: the core
|
|
57
|
+
* inputs (`entity` / `provider` / `records` / `selectedRecordId` / `filterText` / `config`), the
|
|
58
|
+
* generic data-context inputs (`totalRecordCount` / `page` / `pageSize` / `isLoading`), and a small
|
|
59
|
+
* set of generic outputs. There is **no opaque `hostAction` channel** — everything a grid does is
|
|
60
|
+
* resolved through one of these three categories:
|
|
61
|
+
*
|
|
62
|
+
* 1. **Self-contained (owned end-to-end — never bubbles up):**
|
|
63
|
+
* - **Export** → owned entirely by `<mj-entity-data-grid>` itself (its `onExportClick` opens its
|
|
64
|
+
* OWN export dialog with format/sampling via `ExportService`). This wrapper does NOT host an
|
|
65
|
+
* export dialog — doing so produced two stacked dialogs.
|
|
66
|
+
* - **Add to List** → hosts `<mj-list-management-dialog>` ({@link ListManagementModule}). On
|
|
67
|
+
* `(AddToListRequested)` the wrapper builds a {@link ListManagementDialogConfig} from the
|
|
68
|
+
* entity + selected records and opens the dialog.
|
|
69
|
+
* - **Delete** → hosts the Generic `<mj-ev-confirm-dialog>` (from {@link EntityViewerModule}).
|
|
70
|
+
* On `(DeleteButtonClick)` the wrapper confirms, deletes via the MJ entity layer, then
|
|
71
|
+
* re-requests data so the host reloads the current page.
|
|
72
|
+
* - **Refresh** → on `(RefreshButtonClick)` the wrapper re-emits {@link dataRequest} so the host
|
|
73
|
+
* reloads. No feature event leaves the wrapper.
|
|
74
|
+
* - **Selection** → kept INTERNAL; it only drives the wrapper's own add-to-list. Never bubbles.
|
|
75
|
+
*
|
|
76
|
+
* 2. **Navigation (the ONLY legitimate upward signals — routing lives in the outer app):**
|
|
77
|
+
* - Row double-click → {@link recordOpened}.
|
|
78
|
+
* - Foreign-key cell click `(ForeignKeyClick)` → {@link openRelatedRecordRequested}.
|
|
79
|
+
* - New button `(NewButtonClick)` → {@link createRecordRequested}.
|
|
80
|
+
*
|
|
81
|
+
* 3. **Container ↔ plug-in generic coordination (NOT outer-app signals):**
|
|
82
|
+
* - Sort `(AfterSort)` → {@link dataRequest} (`sort`) + persisted into `config.gridState` via
|
|
83
|
+
* {@link configChanged}.
|
|
84
|
+
* - Pager `(PageChange)` → {@link dataRequest} (`page` / `pageSize`).
|
|
85
|
+
* - Generic grid-state `(GridStateChanged)` → merged into `config.gridState` + {@link configChanged}.
|
|
86
|
+
*
|
|
87
|
+
* **Seeding the grid from `config` with defaults:** absent config fields fall back to sensible
|
|
88
|
+
* defaults so a brand-new view (`config === {}`) renders a fully-functional grid — toolbar on,
|
|
89
|
+
* checkbox selection, add-to-list on, pager on. The grid never loads its own data
|
|
90
|
+
* (`[AllowLoad]="false"`) — the host owns the fetch.
|
|
91
|
+
*
|
|
92
|
+
* This is an NgModule-declared (`standalone: false`) component, declared in `EntityViewerModule`.
|
|
93
|
+
* It renders `<mj-entity-data-grid>` + the Generic `<mj-list-management-dialog>` / `<mj-ev-confirm-dialog>`
|
|
94
|
+
* straight from the module's compilation scope (the module imports `ListManagementModule` and declares
|
|
95
|
+
* the grid + confirm dialog; the grid component brings its own export dialog) — so there's
|
|
96
|
+
* no `imports` array and, crucially, no self-import of `EntityViewerModule`: the module loads the
|
|
97
|
+
* view-type descriptors, which reference these wrappers, so a wrapper importing the module back would
|
|
98
|
+
* form a runtime import cycle (NG0919).
|
|
99
|
+
*
|
|
100
|
+
* Inputs use the camelCase names mandated by the {@link IViewRenderer} contract (the host binds them
|
|
101
|
+
* by those exact names via `setInput`), rather than MJ's usual PascalCase for public members —
|
|
102
|
+
* mirroring the Cards and Cluster renderers.
|
|
103
|
+
*/
|
|
104
|
+
export declare class GridViewRendererComponent extends BaseAngularComponent implements IViewRenderer<GridViewConfig> {
|
|
105
|
+
/** Change detection ref used to flush dialog visibility toggles driven by grid events. */
|
|
106
|
+
private cdr;
|
|
107
|
+
/** The entity whose records are being rendered. Used to build default params + resolve selection. */
|
|
108
|
+
entity: EntityInfo | null;
|
|
109
|
+
/** The records to render (already loaded / filtered / paged by the host). Fed into `[Data]`. */
|
|
110
|
+
records: Record<string, unknown>[];
|
|
111
|
+
/** Primary-key string of the currently selected record, if any. */
|
|
112
|
+
selectedRecordId: string | null;
|
|
113
|
+
/** Active filter text — passed through for the grid's cell highlighting. */
|
|
114
|
+
filterText: string | null;
|
|
115
|
+
/** Opaque per-view configuration. Seeds the grid bindings; mutated + re-emitted on grid changes. */
|
|
116
|
+
config: GridViewConfig;
|
|
117
|
+
/** Total record count across all pages, for the grid's pager. Fed into `[TotalRowCount]`. */
|
|
118
|
+
totalRecordCount?: number;
|
|
119
|
+
/** One-based current page the host is showing. Fed into `[PagerPageNumber]` (already 1-based). */
|
|
120
|
+
page?: number;
|
|
121
|
+
/** Page size the host is using — fallback when `config.pageSize` is absent. */
|
|
122
|
+
pageSize?: number;
|
|
123
|
+
/** Whether the host is currently (re)loading the record set. Accepted per contract; unused here. */
|
|
124
|
+
isLoading?: boolean;
|
|
125
|
+
/** Emitted when a row is single-clicked — payload is the raw record object (host builds the key). */
|
|
126
|
+
recordSelected: EventEmitter<unknown>;
|
|
127
|
+
/** Emitted when a row is double-clicked — payload is the raw record object (host builds the key). */
|
|
128
|
+
recordOpened: EventEmitter<unknown>;
|
|
129
|
+
/** Emitted when this renderer mutates its opaque {@link config} (sort / grid-state persistence). */
|
|
130
|
+
configChanged: EventEmitter<GridViewConfig>;
|
|
131
|
+
/** Generic data-access channel: ask the host to re-load with different sort / page. */
|
|
132
|
+
dataRequest: EventEmitter<ViewDataRequest>;
|
|
133
|
+
/**
|
|
134
|
+
* NAVIGATION: open a related record on a (possibly different) entity from a foreign-key cell click.
|
|
135
|
+
* Routing lives in the outer app, so this is one of the few signals that legitimately bubbles up.
|
|
136
|
+
*/
|
|
137
|
+
openRelatedRecordRequested: EventEmitter<ViewRelatedRecordNavigation>;
|
|
138
|
+
/** NAVIGATION: create a new record of the current entity (grid "New" button). Bubbles up for routing. */
|
|
139
|
+
createRecordRequested: EventEmitter<void>;
|
|
140
|
+
/**
|
|
141
|
+
* Reference to the hosted grid. Currently only retained for parity / future selection resolution;
|
|
142
|
+
* selection is mapped from the {@link records} input rather than read from the grid, per contract.
|
|
143
|
+
*/
|
|
144
|
+
protected grid?: EntityDataGridComponent;
|
|
145
|
+
/** Whether the add-to-list dialog is visible. Toggled internally by {@link onAddToListRequested}. */
|
|
146
|
+
protected showListManagementDialog: boolean;
|
|
147
|
+
/** Config fed into `<mj-list-management-dialog>`. Built from the entity + selected records. */
|
|
148
|
+
protected listManagementConfig: ListManagementDialogConfig | null;
|
|
149
|
+
/** Whether the delete-confirmation dialog is visible. Toggled internally by {@link onDeleteButtonClick}. */
|
|
150
|
+
protected showDeleteConfirm: boolean;
|
|
151
|
+
/** Records staged for deletion while the confirm dialog is open. */
|
|
152
|
+
private pendingDeleteRecords;
|
|
153
|
+
/** Dynamic message for the delete-confirmation dialog (reflects the staged record count). */
|
|
154
|
+
protected deleteConfirmMessage: string;
|
|
155
|
+
/** Effective toolbar visibility — defaults to `true` when not set in config. */
|
|
156
|
+
get effectiveShowToolbar(): boolean;
|
|
157
|
+
/** Effective selection mode — defaults to `'checkbox'` when not set in config. */
|
|
158
|
+
get effectiveSelectionMode(): GridSelectionMode;
|
|
159
|
+
/** Effective add-to-list button visibility — defaults to `true` when not set in config. */
|
|
160
|
+
get effectiveShowAddToListButton(): boolean;
|
|
161
|
+
/** Effective pager visibility — defaults to `true` when not set in config. */
|
|
162
|
+
get effectiveShowPager(): boolean;
|
|
163
|
+
/** Effective page size — config wins, else the generic `pageSize` input, else the grid's own default. */
|
|
164
|
+
get effectivePageSize(): number;
|
|
165
|
+
/**
|
|
166
|
+
* Effective RunViewParams for the grid. Uses `config.params` when supplied; otherwise builds a
|
|
167
|
+
* minimal dynamic-view params object from {@link entity}. Returns `null` when no entity is known
|
|
168
|
+
* yet (the grid renders empty until the host provides one).
|
|
169
|
+
*/
|
|
170
|
+
get effectiveParams(): RunViewParams | null;
|
|
171
|
+
/**
|
|
172
|
+
* Row single-click → {@link recordSelected}. Extracts the raw record (`event.row`) so the host
|
|
173
|
+
* builds the composite key itself, matching the other renderers.
|
|
174
|
+
*/
|
|
175
|
+
onAfterRowClick(event: AfterRowClickEventArgs): void;
|
|
176
|
+
/** Row double-click → {@link recordOpened} (NAVIGATION), emitting the raw record object. */
|
|
177
|
+
onAfterRowDoubleClick(event: AfterRowDoubleClickEventArgs): void;
|
|
178
|
+
/**
|
|
179
|
+
* Sort change → both generic coordination channels:
|
|
180
|
+
* 1. {@link dataRequest} with the generic `sort` shape so the host re-loads with a new OrderBy.
|
|
181
|
+
* 2. persists the sort into `config.gridState.sortSettings` and emits {@link configChanged} so
|
|
182
|
+
* the grid's sort survives view reloads via the opaque config channel.
|
|
183
|
+
*/
|
|
184
|
+
onAfterSort(event: AfterSortEventArgs): void;
|
|
185
|
+
/**
|
|
186
|
+
* Generic grid-state change (column resize / reorder / visibility) → merge the grid's updated
|
|
187
|
+
* {@link ViewGridState} into the opaque config and emit {@link configChanged}; the host persists
|
|
188
|
+
* the blob verbatim. No `dataRequest` here — column changes don't alter the loaded record set.
|
|
189
|
+
*/
|
|
190
|
+
onGridStateChanged(event: GridStateChangedEvent): void;
|
|
191
|
+
/**
|
|
192
|
+
* Selection change → kept INTERNAL. The grid drives its own add-to-list from the selection, so the
|
|
193
|
+
* wrapper has no need to surface it. We intentionally do not bubble selection anywhere.
|
|
194
|
+
*/
|
|
195
|
+
onSelectionChange(_selectedKeys: string[]): void;
|
|
196
|
+
/**
|
|
197
|
+
* Foreign-key link click → {@link openRelatedRecordRequested} (NAVIGATION). Maps the grid's
|
|
198
|
+
* {@link ForeignKeyClickEvent} (which carries the related entity + the FK value) onto the generic
|
|
199
|
+
* {@link ViewRelatedRecordNavigation} the container forwards to the outer app for routing. The
|
|
200
|
+
* related entity name is taken from the event when present, else resolved from the metadata by ID.
|
|
201
|
+
*/
|
|
202
|
+
onForeignKeyClick(event: ForeignKeyClickEvent): void;
|
|
203
|
+
/** New button → {@link createRecordRequested} (NAVIGATION) — opening the create form is routing. */
|
|
204
|
+
onNewButtonClick(): void;
|
|
205
|
+
/**
|
|
206
|
+
* Pager navigation → generic {@link dataRequest}. Maps the grid's {@link PageChangeEvent}
|
|
207
|
+
* (`PageNumber` is already 1-based, `PageSize`) onto the generic `{ page, pageSize }` shape the
|
|
208
|
+
* host honors against its own RunView.
|
|
209
|
+
*/
|
|
210
|
+
onPageChange(event: PageChangeEvent): void;
|
|
211
|
+
/**
|
|
212
|
+
* Refresh button → re-emit {@link dataRequest} so the host reloads the current page. This is
|
|
213
|
+
* generic container ↔ plug-in coordination (a data-access request), NOT a feature event surfaced
|
|
214
|
+
* to the outer app.
|
|
215
|
+
*/
|
|
216
|
+
onRefreshButtonClick(): void;
|
|
217
|
+
/**
|
|
218
|
+
* Add-to-list button → build a {@link ListManagementDialogConfig} from the entity + the records the
|
|
219
|
+
* grid supplied, then open the Generic list-management dialog. The dialog persists membership
|
|
220
|
+
* changes itself — nothing bubbles up. Mirrors the config construction the legacy host did in
|
|
221
|
+
* `data-explorer-dashboard`'s `onAddToListRequested()`.
|
|
222
|
+
*/
|
|
223
|
+
onAddToListRequested(event: {
|
|
224
|
+
entityInfo: EntityInfo;
|
|
225
|
+
records: Record<string, unknown>[];
|
|
226
|
+
recordIds: string[];
|
|
227
|
+
}): void;
|
|
228
|
+
/** List-management dialog completed (membership changes applied) → tear down state. */
|
|
229
|
+
onListManagementComplete(_result: ListManagementResult): void;
|
|
230
|
+
/** List-management dialog cancelled → tear down state. */
|
|
231
|
+
onListManagementCancel(): void;
|
|
232
|
+
/**
|
|
233
|
+
* Resolve a human-friendly display name for a record using the entity's NameField, falling back to
|
|
234
|
+
* the composite-key string. Mirrors the legacy host's display-name resolution.
|
|
235
|
+
*/
|
|
236
|
+
private getRecordDisplayName;
|
|
237
|
+
/**
|
|
238
|
+
* Build the list of RAW primary-key values (not concatenated composite-key strings) used by list
|
|
239
|
+
* membership matching. Mirrors the legacy host, which deliberately extracts the first PK field's
|
|
240
|
+
* raw value so it matches how List Details store records.
|
|
241
|
+
*/
|
|
242
|
+
private buildRawRecordIds;
|
|
243
|
+
/**
|
|
244
|
+
* Delete button → stage the records and open the Generic confirm dialog. The actual delete happens
|
|
245
|
+
* in {@link onDeleteConfirmed} after the user confirms — nothing bubbles up.
|
|
246
|
+
*/
|
|
247
|
+
onDeleteButtonClick(records: Record<string, unknown>[]): void;
|
|
248
|
+
/**
|
|
249
|
+
* Delete confirmed → delete each staged record through the MJ entity layer
|
|
250
|
+
* (`ProviderToUse.GetEntityObject(name, compositeKey, user)` → `Delete`), checking the boolean
|
|
251
|
+
* result and surfacing failures via {@link LogError}. After deletion, re-request the current page
|
|
252
|
+
* so the host reloads. Self-contained — no feature event leaves the wrapper.
|
|
253
|
+
*/
|
|
254
|
+
onDeleteConfirmed(): Promise<void>;
|
|
255
|
+
/** Delete cancelled → discard the staged records and close the confirm dialog. */
|
|
256
|
+
onDeleteCancelled(): void;
|
|
257
|
+
/** Build a {@link ViewDataRequest} that re-requests the host's current page/pageSize, if known. */
|
|
258
|
+
private currentPageDataRequest;
|
|
259
|
+
/**
|
|
260
|
+
* Resolve an entity's name from its ID via the active provider's metadata. Used when a foreign-key
|
|
261
|
+
* click event omits the related entity name and only carries its ID.
|
|
262
|
+
*/
|
|
263
|
+
private resolveEntityNameById;
|
|
264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridViewRendererComponent, never>;
|
|
265
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridViewRendererComponent, "mj-grid-view-renderer", never, { "entity": { "alias": "entity"; "required": false; }; "records": { "alias": "records"; "required": false; }; "selectedRecordId": { "alias": "selectedRecordId"; "required": false; }; "filterText": { "alias": "filterText"; "required": false; }; "config": { "alias": "config"; "required": false; }; "totalRecordCount": { "alias": "totalRecordCount"; "required": false; }; "page": { "alias": "page"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, { "recordSelected": "recordSelected"; "recordOpened": "recordOpened"; "configChanged": "configChanged"; "dataRequest": "dataRequest"; "openRelatedRecordRequested": "openRelatedRecordRequested"; "createRecordRequested": "createRecordRequested"; }, never, never, false, never>;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Tree-shaking guard. Force-references this renderer so bundlers (ESBuild/Vite) don't drop the
|
|
269
|
+
* component in builds that only mount it dynamically via the ClassFactory/descriptor. Mirrors the
|
|
270
|
+
* Cards/Cluster renderers' load guards; the parent wires this into a barrel/module load path.
|
|
271
|
+
*/
|
|
272
|
+
export declare function LoadGridViewRenderer(): void;
|
|
273
|
+
//# sourceMappingURL=grid-view-renderer.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-view-renderer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/view-types/renderers/grid-view-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA2D,MAAM,eAAe,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,aAAa,EAAY,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,2BA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