@memberjunction/ng-entity-viewer 6.2.0-edge.0 → 6.2.0-edge.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/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts +22 -0
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts.map +1 -1
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js +57 -13
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js.map +1 -1
- package/dist/lib/entity-cards/entity-cards.component.d.ts +67 -5
- package/dist/lib/entity-cards/entity-cards.component.d.ts.map +1 -1
- package/dist/lib/entity-cards/entity-cards.component.js +202 -71
- package/dist/lib/entity-cards/entity-cards.component.js.map +1 -1
- package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts +159 -16
- 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 +446 -147
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-data-grid/events/grid-events.js +67 -67
- package/dist/lib/entity-data-grid/events/grid-events.js.map +1 -1
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts +112 -8
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts.map +1 -1
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js +245 -61
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts +6 -0
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +28 -9
- package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
- package/dist/lib/pill/pill.component.d.ts +13 -3
- package/dist/lib/pill/pill.component.d.ts.map +1 -1
- package/dist/lib/pill/pill.component.js +34 -10
- package/dist/lib/pill/pill.component.js.map +1 -1
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.d.ts +29 -3
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.d.ts.map +1 -1
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.js +173 -114
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.js.map +1 -1
- package/dist/lib/recycle-bin/recycle-bin.component.d.ts +4 -0
- package/dist/lib/recycle-bin/recycle-bin.component.d.ts.map +1 -1
- package/dist/lib/recycle-bin/recycle-bin.component.js +10 -2
- package/dist/lib/recycle-bin/recycle-bin.component.js.map +1 -1
- package/dist/lib/utils/highlight.util.d.ts +6 -0
- package/dist/lib/utils/highlight.util.d.ts.map +1 -1
- package/dist/lib/utils/highlight.util.js +23 -11
- package/dist/lib/utils/highlight.util.js.map +1 -1
- package/dist/lib/utils/record.util.d.ts +10 -0
- package/dist/lib/utils/record.util.d.ts.map +1 -1
- package/dist/lib/utils/record.util.js +20 -4
- package/dist/lib/utils/record.util.js.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts +17 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.js +39 -6
- package/dist/lib/view-config-panel/view-config-panel.component.js.map +1 -1
- package/dist/lib/view-selector/view-selector.component.js +2 -2
- package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts +15 -3
- package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/cards-view-renderer.component.js +33 -5
- package/dist/lib/view-types/renderers/cards-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts +70 -2
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js +155 -33
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts +16 -2
- package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/map-view-renderer.component.js +37 -9
- package/dist/lib/view-types/renderers/map-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/view-type.contracts.d.ts +8 -0
- package/dist/lib/view-types/view-type.contracts.d.ts.map +1 -1
- package/dist/lib/view-types/view-type.contracts.js.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.d.ts +243 -25
- package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.js +631 -180
- package/dist/lib/view-workspace/view-workspace.component.js.map +1 -1
- package/package.json +21 -20
|
@@ -1 +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,EAAmD,SAAS,EAAU,MAAM,eAAe,CAAC;AAC3I,OAAO,EAAE,UAAU,EAAE,aAAa,EAAY,YAAY,EAA+B,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACzB,MAAM,iCAAiC,CAAC;AAEzC,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,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACtH,OAAO,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,2CA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IAErC;;;;OAIG;IACM,qBAAqB,UAAQ;IAItC,6FAA6F;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAEnC,kGAAkG;IACzF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB,+EAA+E;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B,oGAAoG;IAC3F,SAAS,CAAC,EAAE,OAAO,CAAC;IAI7B,qGAAqG;IAC3F,cAAc,wBAA+B;IAEvD,qGAAqG;IAC3F,YAAY,wBAA+B;IAErD,oGAAoG;IAC1F,aAAa,+BAAsC;IAE7D,uFAAuF;IAC7E,WAAW,gCAAuC;IAE5D;;;;;OAKG;IACO,kBAAkB,qBAA4B;IAExD;;;OAGG;IACO,0BAA0B,4CAAmD;IAEvF,yGAAyG;IAC/F,qBAAqB,qBAA4B;IAE3D;;;OAGG;IACgB,SAAS,CAAC,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAE5D;;;;;;;;OAQG;IACG,aAAa,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
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,EAAmD,SAAS,EAAU,MAAM,eAAe,CAAC;AAC3I,OAAO,EAAE,UAAU,EAAE,aAAa,EAAY,YAAY,EAA+B,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACzB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,oBA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,gBAAgB,IAAI,IAAI;IAKxB,gDAAgD;IAChD,gBAAgB,IAAI,IAAI;IAIxB;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa;IAiBrB;;;;;OAKG;YACW,eAAe;IA4B7B;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAa3B;;;;;;OAMG;YACW,oBAAoB;IAYlC,8EAA8E;IAC9E,OAAO,CAAC,QAAQ;IAUhB,mGAAmG;IACnG,OAAO,CAAC,sBAAsB;IAY9B;;;OAGG;IACH,OAAO,CAAC,qBAAqB;yCA36BlB,yBAAyB;2CAAzB,yBAAyB;CAk7BrC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C"}
|
|
@@ -3,7 +3,7 @@ import { LogError, CompositeKey, RunView, RecordMergeRequest } from '@memberjunc
|
|
|
3
3
|
import { RecordComparisonService, } from '@memberjunction/ng-record-merge';
|
|
4
4
|
import { UUIDsEqual } from '@memberjunction/global';
|
|
5
5
|
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
6
|
-
import {
|
|
6
|
+
import { BuildPkString, BuildCompositeKey } from '../../utils/record.util';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
import * as i1 from "@memberjunction/ng-list-management";
|
|
9
9
|
import * as i2 from "@memberjunction/ng-record-merge";
|
|
@@ -156,7 +156,15 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
156
156
|
* Optional full-result-set fetcher supplied by the host, forwarded to the grid's ExportDataProvider
|
|
157
157
|
* so exports cover every matching row rather than just the loaded page (bug C1).
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
ExportDataProvider = null;
|
|
160
|
+
/** @deprecated Use {@link ExportDataProvider}. */
|
|
161
|
+
set exportDataProvider(value) {
|
|
162
|
+
this.ExportDataProvider = value;
|
|
163
|
+
}
|
|
164
|
+
/** @deprecated Use {@link ExportDataProvider}. */
|
|
165
|
+
get exportDataProvider() {
|
|
166
|
+
return this.ExportDataProvider;
|
|
167
|
+
}
|
|
160
168
|
/** Primary-key string of the currently selected record, if any. */
|
|
161
169
|
selectedRecordId = null;
|
|
162
170
|
/** Active filter text — passed through for the grid's cell highlighting. */
|
|
@@ -222,6 +230,10 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
222
230
|
const result = await this.grid.Export(format ? { format } : undefined, true);
|
|
223
231
|
return !!result?.success;
|
|
224
232
|
}
|
|
233
|
+
/** The hosted grid's on-screen columns ({@link IViewRenderer.GetExportColumns}); empty before it mounts. */
|
|
234
|
+
GetExportColumns() {
|
|
235
|
+
return this.grid?.GetExportColumns() ?? [];
|
|
236
|
+
}
|
|
225
237
|
// ================================================================
|
|
226
238
|
// Self-contained dialog state (never surfaced to the host)
|
|
227
239
|
// ================================================================
|
|
@@ -240,38 +252,62 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
240
252
|
// Effective binding accessors — seed grid inputs from config + defaults
|
|
241
253
|
// ================================================================
|
|
242
254
|
/** Effective toolbar visibility — defaults to `true` when not set in config. */
|
|
243
|
-
get
|
|
255
|
+
get EffectiveShowToolbar() {
|
|
244
256
|
return this.config.showToolbar ?? true;
|
|
245
257
|
}
|
|
258
|
+
/** @deprecated Use {@link EffectiveShowToolbar}. */
|
|
259
|
+
get effectiveShowToolbar() {
|
|
260
|
+
return this.EffectiveShowToolbar;
|
|
261
|
+
}
|
|
246
262
|
/**
|
|
247
263
|
* Grid search defaults OFF when hosted in entity-viewer. The container already owns
|
|
248
264
|
* `filterText` ("Filter records..."). Opt in with `toolbarConfig.showSearch: true`.
|
|
249
265
|
*/
|
|
250
|
-
get
|
|
266
|
+
get EffectiveShowSearch() {
|
|
251
267
|
return this.config.toolbarConfig?.showSearch ?? false;
|
|
252
268
|
}
|
|
269
|
+
/** @deprecated Use {@link EffectiveShowSearch}. */
|
|
270
|
+
get effectiveShowSearch() {
|
|
271
|
+
return this.EffectiveShowSearch;
|
|
272
|
+
}
|
|
253
273
|
/** Effective selection mode — defaults to `'checkbox'` when not set in config. */
|
|
254
|
-
get
|
|
274
|
+
get EffectiveSelectionMode() {
|
|
255
275
|
return this.config.selectionMode ?? 'checkbox';
|
|
256
276
|
}
|
|
277
|
+
/** @deprecated Use {@link EffectiveSelectionMode}. */
|
|
278
|
+
get effectiveSelectionMode() {
|
|
279
|
+
return this.EffectiveSelectionMode;
|
|
280
|
+
}
|
|
257
281
|
/** Effective add-to-list button visibility — defaults to `true` when not set in config. */
|
|
258
|
-
get
|
|
282
|
+
get EffectiveShowAddToListButton() {
|
|
259
283
|
return this.config.showAddToListButton ?? true;
|
|
260
284
|
}
|
|
285
|
+
/** @deprecated Use {@link EffectiveShowAddToListButton}. */
|
|
286
|
+
get effectiveShowAddToListButton() {
|
|
287
|
+
return this.EffectiveShowAddToListButton;
|
|
288
|
+
}
|
|
261
289
|
/** Effective pager visibility — defaults to `true` when not set in config. */
|
|
262
|
-
get
|
|
290
|
+
get EffectiveShowPager() {
|
|
263
291
|
return this.config.showPager ?? true;
|
|
264
292
|
}
|
|
293
|
+
/** @deprecated Use {@link EffectiveShowPager}. */
|
|
294
|
+
get effectiveShowPager() {
|
|
295
|
+
return this.EffectiveShowPager;
|
|
296
|
+
}
|
|
265
297
|
/** Effective page size — config wins, else the generic `pageSize` input, else the grid's own default. */
|
|
266
|
-
get
|
|
298
|
+
get EffectivePageSize() {
|
|
267
299
|
return this.config.pageSize ?? this.pageSize ?? 100;
|
|
268
300
|
}
|
|
301
|
+
/** @deprecated Use {@link EffectivePageSize}. */
|
|
302
|
+
get effectivePageSize() {
|
|
303
|
+
return this.EffectivePageSize;
|
|
304
|
+
}
|
|
269
305
|
/**
|
|
270
306
|
* Effective RunViewParams for the grid. Uses `config.params` when supplied; otherwise builds a
|
|
271
307
|
* minimal dynamic-view params object from {@link entity}. Returns `null` when no entity is known
|
|
272
308
|
* yet (the grid renders empty until the host provides one).
|
|
273
309
|
*/
|
|
274
|
-
get
|
|
310
|
+
get EffectiveParams() {
|
|
275
311
|
if (this.config.params) {
|
|
276
312
|
return this.config.params;
|
|
277
313
|
}
|
|
@@ -280,6 +316,10 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
280
316
|
}
|
|
281
317
|
return null;
|
|
282
318
|
}
|
|
319
|
+
/** @deprecated Use {@link EffectiveParams}. */
|
|
320
|
+
get effectiveParams() {
|
|
321
|
+
return this.EffectiveParams;
|
|
322
|
+
}
|
|
283
323
|
// ================================================================
|
|
284
324
|
// Navigation + generic coordination output mapping
|
|
285
325
|
// ================================================================
|
|
@@ -287,24 +327,32 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
287
327
|
* Row single-click → {@link recordSelected}. Extracts the raw record (`event.row`) so the host
|
|
288
328
|
* builds the composite key itself, matching the other renderers.
|
|
289
329
|
*/
|
|
290
|
-
|
|
330
|
+
OnAfterRowClick(event) {
|
|
291
331
|
if (event.row) {
|
|
292
332
|
this.recordSelected.emit(event.row);
|
|
293
333
|
}
|
|
294
334
|
}
|
|
335
|
+
/** @deprecated Use {@link OnAfterRowClick}. */
|
|
336
|
+
onAfterRowClick(event) {
|
|
337
|
+
return this.OnAfterRowClick(event);
|
|
338
|
+
}
|
|
295
339
|
/** Row double-click → {@link recordOpened} (NAVIGATION), emitting the raw record object. */
|
|
296
|
-
|
|
340
|
+
OnAfterRowDoubleClick(event) {
|
|
297
341
|
if (event.row) {
|
|
298
342
|
this.recordOpened.emit(event.row);
|
|
299
343
|
}
|
|
300
344
|
}
|
|
345
|
+
/** @deprecated Use {@link OnAfterRowDoubleClick}. */
|
|
346
|
+
onAfterRowDoubleClick(event) {
|
|
347
|
+
return this.OnAfterRowDoubleClick(event);
|
|
348
|
+
}
|
|
301
349
|
/**
|
|
302
350
|
* Sort change → both generic coordination channels:
|
|
303
351
|
* 1. {@link dataRequest} with the generic `sort` shape so the host re-loads with a new OrderBy.
|
|
304
352
|
* 2. persists the sort into `config.gridState.sortSettings` and emits {@link configChanged} so
|
|
305
353
|
* the grid's sort survives view reloads via the opaque config channel.
|
|
306
354
|
*/
|
|
307
|
-
|
|
355
|
+
OnAfterSort(event) {
|
|
308
356
|
const sort = (event.newSortState ?? []).map((s) => ({ field: s.field, direction: s.direction }));
|
|
309
357
|
this.dataRequest.emit({ sort });
|
|
310
358
|
const gridState = { ...(this.config.gridState ?? {}) };
|
|
@@ -312,47 +360,71 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
312
360
|
this.config = { ...this.config, gridState };
|
|
313
361
|
this.configChanged.emit(this.config);
|
|
314
362
|
}
|
|
363
|
+
/** @deprecated Use {@link OnAfterSort}. */
|
|
364
|
+
onAfterSort(event) {
|
|
365
|
+
return this.OnAfterSort(event);
|
|
366
|
+
}
|
|
315
367
|
/**
|
|
316
368
|
* Generic grid-state change (column resize / reorder / visibility) → merge the grid's updated
|
|
317
369
|
* {@link ViewGridState} into the opaque config and emit {@link configChanged}; the host persists
|
|
318
370
|
* the blob verbatim. No `dataRequest` here — column changes don't alter the loaded record set.
|
|
319
371
|
*/
|
|
320
|
-
|
|
372
|
+
OnGridStateChanged(event) {
|
|
321
373
|
this.config = { ...this.config, gridState: event.gridState };
|
|
322
374
|
this.configChanged.emit(this.config);
|
|
323
375
|
}
|
|
376
|
+
/** @deprecated Use {@link OnGridStateChanged}. */
|
|
377
|
+
onGridStateChanged(event) {
|
|
378
|
+
return this.OnGridStateChanged(event);
|
|
379
|
+
}
|
|
324
380
|
/**
|
|
325
381
|
* Selection change → kept INTERNAL. The grid drives its own add-to-list from the selection, so the
|
|
326
382
|
* wrapper has no need to surface it. We intentionally do not bubble selection anywhere.
|
|
327
383
|
*/
|
|
328
|
-
|
|
384
|
+
OnSelectionChange(_selectedKeys) {
|
|
329
385
|
// No-op: selection is internal to the grid + this wrapper's add-to-list. It never bubbles up.
|
|
330
386
|
}
|
|
387
|
+
/** @deprecated Use {@link OnSelectionChange}. */
|
|
388
|
+
onSelectionChange(_selectedKeys) {
|
|
389
|
+
return this.OnSelectionChange(_selectedKeys);
|
|
390
|
+
}
|
|
331
391
|
/**
|
|
332
392
|
* Foreign-key link click → {@link openRelatedRecordRequested} (NAVIGATION). Maps the grid's
|
|
333
393
|
* {@link ForeignKeyClickEvent} (which carries the related entity + the FK value) onto the generic
|
|
334
394
|
* {@link ViewRelatedRecordNavigation} the container forwards to the outer app for routing. The
|
|
335
395
|
* related entity name is taken from the event when present, else resolved from the metadata by ID.
|
|
336
396
|
*/
|
|
337
|
-
|
|
397
|
+
OnForeignKeyClick(event) {
|
|
338
398
|
const entityName = event.relatedEntityName ?? this.resolveEntityNameById(event.relatedEntityId);
|
|
339
399
|
if (!entityName) {
|
|
340
400
|
return;
|
|
341
401
|
}
|
|
342
402
|
this.openRelatedRecordRequested.emit({ entityName, recordKey: event.recordId });
|
|
343
403
|
}
|
|
404
|
+
/** @deprecated Use {@link OnForeignKeyClick}. */
|
|
405
|
+
onForeignKeyClick(event) {
|
|
406
|
+
return this.OnForeignKeyClick(event);
|
|
407
|
+
}
|
|
344
408
|
/** New button → {@link createRecordRequested} (NAVIGATION) — opening the create form is routing. */
|
|
345
|
-
|
|
409
|
+
OnNewButtonClick() {
|
|
346
410
|
this.createRecordRequested.emit();
|
|
347
411
|
}
|
|
412
|
+
/** @deprecated Use {@link OnNewButtonClick}. */
|
|
413
|
+
onNewButtonClick() {
|
|
414
|
+
return this.OnNewButtonClick();
|
|
415
|
+
}
|
|
348
416
|
/**
|
|
349
417
|
* Pager navigation → generic {@link dataRequest}. Maps the grid's {@link PageChangeEvent}
|
|
350
418
|
* (`PageNumber` is already 1-based, `PageSize`) onto the generic `{ page, pageSize }` shape the
|
|
351
419
|
* host honors against its own RunView.
|
|
352
420
|
*/
|
|
353
|
-
|
|
421
|
+
OnPageChange(event) {
|
|
354
422
|
this.dataRequest.emit({ page: event.PageNumber, pageSize: event.PageSize });
|
|
355
423
|
}
|
|
424
|
+
/** @deprecated Use {@link OnPageChange}. */
|
|
425
|
+
onPageChange(event) {
|
|
426
|
+
return this.OnPageChange(event);
|
|
427
|
+
}
|
|
356
428
|
// ================================================================
|
|
357
429
|
// Self-contained: Refresh
|
|
358
430
|
// ================================================================
|
|
@@ -361,9 +433,13 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
361
433
|
* generic container ↔ plug-in coordination (a data-access request), NOT a feature event surfaced
|
|
362
434
|
* to the outer app.
|
|
363
435
|
*/
|
|
364
|
-
|
|
436
|
+
OnRefreshButtonClick() {
|
|
365
437
|
this.dataRequest.emit(this.currentPageDataRequest());
|
|
366
438
|
}
|
|
439
|
+
/** @deprecated Use {@link OnRefreshButtonClick}. */
|
|
440
|
+
onRefreshButtonClick() {
|
|
441
|
+
return this.OnRefreshButtonClick();
|
|
442
|
+
}
|
|
367
443
|
// ================================================================
|
|
368
444
|
// Export: handled entirely by mj-entity-data-grid (its onExportClick opens its own export dialog
|
|
369
445
|
// via ExportService). This wrapper intentionally does NOT host an export dialog — doing so produced
|
|
@@ -378,7 +454,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
378
454
|
* changes itself — nothing bubbles up. Mirrors the config construction the legacy host did in
|
|
379
455
|
* `data-explorer-dashboard`'s `onAddToListRequested()`.
|
|
380
456
|
*/
|
|
381
|
-
|
|
457
|
+
OnAddToListRequested(event) {
|
|
382
458
|
const entity = event.entityInfo ?? this.entity;
|
|
383
459
|
if (!entity || !event.records || event.records.length === 0) {
|
|
384
460
|
return;
|
|
@@ -404,18 +480,30 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
404
480
|
this.showListManagementDialog = true;
|
|
405
481
|
this.cdr.detectChanges();
|
|
406
482
|
}
|
|
483
|
+
/** @deprecated Use {@link OnAddToListRequested}. */
|
|
484
|
+
onAddToListRequested(event) {
|
|
485
|
+
return this.OnAddToListRequested(event);
|
|
486
|
+
}
|
|
407
487
|
/** List-management dialog completed (membership changes applied) → tear down state. */
|
|
408
|
-
|
|
488
|
+
OnListManagementComplete(_result) {
|
|
409
489
|
this.showListManagementDialog = false;
|
|
410
490
|
this.listManagementConfig = null;
|
|
411
491
|
this.cdr.detectChanges();
|
|
412
492
|
}
|
|
493
|
+
/** @deprecated Use {@link OnListManagementComplete}. */
|
|
494
|
+
onListManagementComplete(_result) {
|
|
495
|
+
return this.OnListManagementComplete(_result);
|
|
496
|
+
}
|
|
413
497
|
/** List-management dialog cancelled → tear down state. */
|
|
414
|
-
|
|
498
|
+
OnListManagementCancel() {
|
|
415
499
|
this.showListManagementDialog = false;
|
|
416
500
|
this.listManagementConfig = null;
|
|
417
501
|
this.cdr.detectChanges();
|
|
418
502
|
}
|
|
503
|
+
/** @deprecated Use {@link OnListManagementCancel}. */
|
|
504
|
+
onListManagementCancel() {
|
|
505
|
+
return this.OnListManagementCancel();
|
|
506
|
+
}
|
|
419
507
|
/**
|
|
420
508
|
* Resolve a human-friendly display name for a record using the entity's NameField, falling back to
|
|
421
509
|
* the composite-key string. Mirrors the legacy host's display-name resolution.
|
|
@@ -427,7 +515,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
427
515
|
return String(nameValue);
|
|
428
516
|
}
|
|
429
517
|
}
|
|
430
|
-
return
|
|
518
|
+
return BuildPkString(record, entity) || 'Unknown';
|
|
431
519
|
}
|
|
432
520
|
/**
|
|
433
521
|
* Build the record-id strings used by list membership matching, in the compact form `MJ: List Details`
|
|
@@ -450,7 +538,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
450
538
|
* Delete button → stage the records and open the Generic confirm dialog. The actual delete happens
|
|
451
539
|
* in {@link onDeleteConfirmed} after the user confirms — nothing bubbles up.
|
|
452
540
|
*/
|
|
453
|
-
|
|
541
|
+
OnDeleteButtonClick(records) {
|
|
454
542
|
if (!records || records.length === 0) {
|
|
455
543
|
return;
|
|
456
544
|
}
|
|
@@ -460,13 +548,17 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
460
548
|
this.showDeleteConfirm = true;
|
|
461
549
|
this.cdr.detectChanges();
|
|
462
550
|
}
|
|
551
|
+
/** @deprecated Use {@link OnDeleteButtonClick}. */
|
|
552
|
+
onDeleteButtonClick(records) {
|
|
553
|
+
return this.OnDeleteButtonClick(records);
|
|
554
|
+
}
|
|
463
555
|
/**
|
|
464
556
|
* Delete confirmed → delete each staged record through the MJ entity layer
|
|
465
557
|
* (`ProviderToUse.GetEntityObject(name, compositeKey, user)` → `Delete`), checking the boolean
|
|
466
558
|
* result and surfacing failures via {@link LogError}. After deletion, re-request the current page
|
|
467
559
|
* so the host reloads. Self-contained — no feature event leaves the wrapper.
|
|
468
560
|
*/
|
|
469
|
-
async
|
|
561
|
+
async OnDeleteConfirmed() {
|
|
470
562
|
this.showDeleteConfirm = false;
|
|
471
563
|
const entity = this.entity;
|
|
472
564
|
const records = this.pendingDeleteRecords;
|
|
@@ -478,7 +570,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
478
570
|
const provider = this.ProviderToUse;
|
|
479
571
|
const user = provider.CurrentUser;
|
|
480
572
|
for (const record of records) {
|
|
481
|
-
const key =
|
|
573
|
+
const key = BuildCompositeKey(record, entity);
|
|
482
574
|
try {
|
|
483
575
|
// The (name, key, user) overload instantiates AND loads in one call (throws if it can't load).
|
|
484
576
|
const obj = await provider.GetEntityObject(entity.Name, key, user);
|
|
@@ -500,12 +592,20 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
500
592
|
}
|
|
501
593
|
this.cdr.detectChanges();
|
|
502
594
|
}
|
|
595
|
+
/** @deprecated Use {@link OnDeleteConfirmed}. */
|
|
596
|
+
async onDeleteConfirmed() {
|
|
597
|
+
return this.OnDeleteConfirmed();
|
|
598
|
+
}
|
|
503
599
|
/** Delete cancelled → discard the staged records and close the confirm dialog. */
|
|
504
|
-
|
|
600
|
+
OnDeleteCancelled() {
|
|
505
601
|
this.showDeleteConfirm = false;
|
|
506
602
|
this.pendingDeleteRecords = [];
|
|
507
603
|
this.cdr.detectChanges();
|
|
508
604
|
}
|
|
605
|
+
/** @deprecated Use {@link OnDeleteCancelled}. */
|
|
606
|
+
onDeleteCancelled() {
|
|
607
|
+
return this.OnDeleteCancelled();
|
|
608
|
+
}
|
|
509
609
|
// ================================================================
|
|
510
610
|
// Record merge
|
|
511
611
|
// ================================================================
|
|
@@ -534,10 +634,14 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
534
634
|
}
|
|
535
635
|
}
|
|
536
636
|
/** Dismiss the merge notice from its own close button. */
|
|
537
|
-
|
|
637
|
+
OnDismissMergeNotice() {
|
|
538
638
|
this.setMergeNotice(null);
|
|
539
639
|
this.cdr.detectChanges();
|
|
540
640
|
}
|
|
641
|
+
/** @deprecated Use {@link OnDismissMergeNotice}. */
|
|
642
|
+
onDismissMergeNotice() {
|
|
643
|
+
return this.OnDismissMergeNotice();
|
|
644
|
+
}
|
|
541
645
|
/**
|
|
542
646
|
* Set (or clear) the merge notice, replacing any pending auto-dismiss. Every write to
|
|
543
647
|
* `mergeNotice` goes through here so a notice cannot outlive its timer or strand an old one.
|
|
@@ -579,7 +683,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
579
683
|
* The grid asked to merge the selected rows. Compare them, preview what will move, and open
|
|
580
684
|
* the panel — nothing is written until the user confirms.
|
|
581
685
|
*/
|
|
582
|
-
async
|
|
686
|
+
async OnMergeRequested(event) {
|
|
583
687
|
this.setMergeNotice(null);
|
|
584
688
|
try {
|
|
585
689
|
await this.prepareMerge(event);
|
|
@@ -590,8 +694,12 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
590
694
|
this.cdr.detectChanges();
|
|
591
695
|
}
|
|
592
696
|
}
|
|
697
|
+
/** @deprecated Use {@link OnMergeRequested}. */
|
|
698
|
+
async onMergeRequested(event) {
|
|
699
|
+
return this.OnMergeRequested(event);
|
|
700
|
+
}
|
|
593
701
|
/** The user chose which record survives; differing fields default to that record's values. */
|
|
594
|
-
|
|
702
|
+
OnSurvivorChange(side) {
|
|
595
703
|
if (!this.mergeState || this.mergeState.IsMerging)
|
|
596
704
|
return;
|
|
597
705
|
this.mergeState.Config = { ...this.mergeState.Config, SurvivorSide: side };
|
|
@@ -601,6 +709,10 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
601
709
|
}
|
|
602
710
|
this.cdr.detectChanges();
|
|
603
711
|
}
|
|
712
|
+
/** @deprecated Use {@link OnSurvivorChange}. */
|
|
713
|
+
onSurvivorChange(side) {
|
|
714
|
+
return this.OnSurvivorChange(side);
|
|
715
|
+
}
|
|
604
716
|
async prepareMerge(event) {
|
|
605
717
|
const entity = event.entityInfo ?? this.entity;
|
|
606
718
|
if (!entity)
|
|
@@ -679,7 +791,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
679
791
|
this.cdr.detectChanges();
|
|
680
792
|
}
|
|
681
793
|
/** The user confirmed: merge, then reload the page so the loser disappears from the grid. */
|
|
682
|
-
async
|
|
794
|
+
async OnMergeConfirmed(event) {
|
|
683
795
|
if (!this.mergeState)
|
|
684
796
|
return;
|
|
685
797
|
this.mergeState.IsMerging = true;
|
|
@@ -707,11 +819,19 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
707
819
|
}
|
|
708
820
|
this.cdr.detectChanges();
|
|
709
821
|
}
|
|
822
|
+
/** @deprecated Use {@link OnMergeConfirmed}. */
|
|
823
|
+
async onMergeConfirmed(event) {
|
|
824
|
+
return this.OnMergeConfirmed(event);
|
|
825
|
+
}
|
|
710
826
|
/** Merge cancelled → close the panel, write nothing. */
|
|
711
|
-
|
|
827
|
+
OnMergeCancelled() {
|
|
712
828
|
this.mergeState = null;
|
|
713
829
|
this.cdr.detectChanges();
|
|
714
830
|
}
|
|
831
|
+
/** @deprecated Use {@link OnMergeCancelled}. */
|
|
832
|
+
onMergeCancelled() {
|
|
833
|
+
return this.OnMergeCancelled();
|
|
834
|
+
}
|
|
715
835
|
/**
|
|
716
836
|
* Fields whose resolution has to travel, and only those: the survivor already holds the value
|
|
717
837
|
* for any field resolved to its own side.
|
|
@@ -842,7 +962,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
842
962
|
} if (rf & 2) {
|
|
843
963
|
let _t;
|
|
844
964
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.grid = _t.first);
|
|
845
|
-
} }, inputs: { entity: "entity", records: "records", exportDataProvider: "exportDataProvider", selectedRecordId: "selectedRecordId", filterText: "filterText", config: "config", AutoLoadEntityActions: "AutoLoadEntityActions", totalRecordCount: "totalRecordCount", page: "page", pageSize: "pageSize", isLoading: "isLoading" }, outputs: { recordSelected: "recordSelected", recordOpened: "recordOpened", configChanged: "configChanged", dataRequest: "dataRequest", configureRequested: "configureRequested", openRelatedRecordRequested: "openRelatedRecordRequested", createRecordRequested: "createRecordRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 25, consts: [["grid", ""], [3, "AfterRowClick", "AfterRowDoubleClick", "AfterSort", "GridStateChanged", "SelectionChange", "NewButtonClick", "RefreshButtonClick", "DeleteButtonClick", "AddToListRequested", "ForeignKeyClick", "PageChange", "ManageColumnsRequested", "MergeRecordsRequested", "Provider", "Data", "ExportDataProvider", "Params", "FilterText", "GridState", "Height", "AllowLoad", "AutoLoadEntityActions", "ShowToolbar", "ShowSearch", "ToolbarConfig", "SelectionMode", "ShowAddToListButton", "ShowPager", "PageSize", "TotalRowCount", "PagerPageNumber", "ShowMergeButton"], [3, "Provider", "visible", "config"], ["Title", "Delete Records", "DetailMessage", "This action cannot be undone.", "ConfirmText", "Delete", "ConfirmStyle", "danger", "Icon", "fa-solid fa-trash", 3, "Confirmed", "Cancelled", "IsOpen", "Message"], ["Size", "lg", 3, "Visible", "Closeable"], ["role", "status", 1, "mj-ev-merge-notice"], [3, "complete", "cancel", "Provider", "visible", "config"], ["Size", "lg", 3, "Close", "Visible", "Closeable"], ["role", "radiogroup", "aria-label", "Record to keep", 1, "mj-ev-merge-survivor"], ["type", "button", "mjButton", "", "size", "sm", "role", "radio", 3, "click", "variant", "disabled"], [1, "mj-ev-merge-survivor-note"], [3, "MergeConfirmed", "MergeCancelled", "Fields", "Config", "MergeEnabled", "IsMerging"], [1, "mj-ev-merge-deps"], [1, "mj-ev-merge-notice-text"], ["type", "button", "title", "Dismiss", "aria-label", "Dismiss", 1, "mj-ev-merge-notice-dismiss", 3, "click"], [1, "fa-solid", "fa-xmark"]], template: function GridViewRendererComponent_Template(rf, ctx) { if (rf & 1) {
|
|
965
|
+
} }, inputs: { entity: "entity", records: "records", ExportDataProvider: "ExportDataProvider", exportDataProvider: "exportDataProvider", selectedRecordId: "selectedRecordId", filterText: "filterText", config: "config", AutoLoadEntityActions: "AutoLoadEntityActions", totalRecordCount: "totalRecordCount", page: "page", pageSize: "pageSize", isLoading: "isLoading" }, outputs: { recordSelected: "recordSelected", recordOpened: "recordOpened", configChanged: "configChanged", dataRequest: "dataRequest", configureRequested: "configureRequested", openRelatedRecordRequested: "openRelatedRecordRequested", createRecordRequested: "createRecordRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 25, consts: [["grid", ""], [3, "AfterRowClick", "AfterRowDoubleClick", "AfterSort", "GridStateChanged", "SelectionChange", "NewButtonClick", "RefreshButtonClick", "DeleteButtonClick", "AddToListRequested", "ForeignKeyClick", "PageChange", "ManageColumnsRequested", "MergeRecordsRequested", "Provider", "Data", "ExportDataProvider", "Params", "FilterText", "GridState", "Height", "AllowLoad", "AutoLoadEntityActions", "ShowToolbar", "ShowSearch", "ToolbarConfig", "SelectionMode", "ShowAddToListButton", "ShowPager", "PageSize", "TotalRowCount", "PagerPageNumber", "ShowMergeButton"], [3, "Provider", "visible", "config"], ["Title", "Delete Records", "DetailMessage", "This action cannot be undone.", "ConfirmText", "Delete", "ConfirmStyle", "danger", "Icon", "fa-solid fa-trash", 3, "Confirmed", "Cancelled", "IsOpen", "Message"], ["Size", "lg", 3, "Visible", "Closeable"], ["role", "status", 1, "mj-ev-merge-notice"], [3, "complete", "cancel", "Provider", "visible", "config"], ["Size", "lg", 3, "Close", "Visible", "Closeable"], ["role", "radiogroup", "aria-label", "Record to keep", 1, "mj-ev-merge-survivor"], ["type", "button", "mjButton", "", "size", "sm", "role", "radio", 3, "click", "variant", "disabled"], [1, "mj-ev-merge-survivor-note"], [3, "MergeConfirmed", "MergeCancelled", "Fields", "Config", "MergeEnabled", "IsMerging"], [1, "mj-ev-merge-deps"], [1, "mj-ev-merge-notice-text"], ["type", "button", "title", "Dismiss", "aria-label", "Dismiss", 1, "mj-ev-merge-notice-dismiss", 3, "click"], [1, "fa-solid", "fa-xmark"]], template: function GridViewRendererComponent_Template(rf, ctx) { if (rf & 1) {
|
|
846
966
|
i0.ɵɵelementStart(0, "mj-entity-data-grid", 1, 0);
|
|
847
967
|
i0.ɵɵlistener("AfterRowClick", function GridViewRendererComponent_Template_mj_entity_data_grid_AfterRowClick_0_listener($event) { return ctx.onAfterRowClick($event); })("AfterRowDoubleClick", function GridViewRendererComponent_Template_mj_entity_data_grid_AfterRowDoubleClick_0_listener($event) { return ctx.onAfterRowDoubleClick($event); })("AfterSort", function GridViewRendererComponent_Template_mj_entity_data_grid_AfterSort_0_listener($event) { return ctx.onAfterSort($event); })("GridStateChanged", function GridViewRendererComponent_Template_mj_entity_data_grid_GridStateChanged_0_listener($event) { return ctx.onGridStateChanged($event); })("SelectionChange", function GridViewRendererComponent_Template_mj_entity_data_grid_SelectionChange_0_listener($event) { return ctx.onSelectionChange($event); })("NewButtonClick", function GridViewRendererComponent_Template_mj_entity_data_grid_NewButtonClick_0_listener() { return ctx.onNewButtonClick(); })("RefreshButtonClick", function GridViewRendererComponent_Template_mj_entity_data_grid_RefreshButtonClick_0_listener() { return ctx.onRefreshButtonClick(); })("DeleteButtonClick", function GridViewRendererComponent_Template_mj_entity_data_grid_DeleteButtonClick_0_listener($event) { return ctx.onDeleteButtonClick($event); })("AddToListRequested", function GridViewRendererComponent_Template_mj_entity_data_grid_AddToListRequested_0_listener($event) { return ctx.onAddToListRequested($event); })("ForeignKeyClick", function GridViewRendererComponent_Template_mj_entity_data_grid_ForeignKeyClick_0_listener($event) { return ctx.onForeignKeyClick($event); })("PageChange", function GridViewRendererComponent_Template_mj_entity_data_grid_PageChange_0_listener($event) { return ctx.onPageChange($event); })("ManageColumnsRequested", function GridViewRendererComponent_Template_mj_entity_data_grid_ManageColumnsRequested_0_listener() { return ctx.configureRequested.emit(); })("MergeRecordsRequested", function GridViewRendererComponent_Template_mj_entity_data_grid_MergeRecordsRequested_0_listener($event) { return ctx.onMergeRequested($event); });
|
|
848
968
|
i0.ɵɵelementEnd();
|
|
@@ -979,6 +1099,8 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
979
1099
|
type: Input
|
|
980
1100
|
}], records: [{
|
|
981
1101
|
type: Input
|
|
1102
|
+
}], ExportDataProvider: [{
|
|
1103
|
+
type: Input
|
|
982
1104
|
}], exportDataProvider: [{
|
|
983
1105
|
type: Input
|
|
984
1106
|
}], selectedRecordId: [{
|
|
@@ -1015,7 +1137,7 @@ export class GridViewRendererComponent extends BaseAngularComponent {
|
|
|
1015
1137
|
type: ViewChild,
|
|
1016
1138
|
args: ['grid']
|
|
1017
1139
|
}] }); })();
|
|
1018
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GridViewRendererComponent, { className: "GridViewRendererComponent", filePath: "src/lib/view-types/renderers/grid-view-renderer.component.ts", lineNumber:
|
|
1140
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GridViewRendererComponent, { className: "GridViewRendererComponent", filePath: "src/lib/view-types/renderers/grid-view-renderer.component.ts", lineNumber: 289 }); })();
|
|
1019
1141
|
/**
|
|
1020
1142
|
* Tree-shaking guard. Force-references this renderer so bundlers (ESBuild/Vite) don't drop the
|
|
1021
1143
|
* component in builds that only mount it dynamically via the ClassFactory/descriptor. Mirrors the
|