@memberjunction/ng-entity-viewer 6.2.0-edge.6 → 6.2.0-edge.7
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/entity-data-grid/entity-data-grid.component.d.ts +99 -2
- 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 +619 -272
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-data-grid/open-in-excel.d.ts +40 -0
- package/dist/lib/entity-data-grid/open-in-excel.d.ts.map +1 -0
- package/dist/lib/entity-data-grid/open-in-excel.js +60 -0
- package/dist/lib/entity-data-grid/open-in-excel.js.map +1 -0
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts +40 -0
- 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 +72 -8
- 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 +13 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +35 -5
- package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
- package/dist/lib/utils/record.util.d.ts +23 -0
- package/dist/lib/utils/record.util.d.ts.map +1 -1
- package/dist/lib/utils/record.util.js +34 -0
- package/dist/lib/utils/record.util.js.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts +34 -5
- 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 +158 -56
- package/dist/lib/view-config-panel/view-config-panel.component.js.map +1 -1
- package/dist/lib/view-selector/view-selector.component.d.ts +7 -1
- package/dist/lib/view-selector/view-selector.component.d.ts.map +1 -1
- package/dist/lib/view-selector/view-selector.component.js +134 -119
- package/dist/lib/view-selector/view-selector.component.js.map +1 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts +7 -1
- 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 +13 -3
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/view-type.contracts.d.ts +6 -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 +20 -0
- package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.js +104 -19
- package/dist/lib/view-workspace/view-workspace.component.js.map +1 -1
- package/package.json +23 -22
|
@@ -466,6 +466,9 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
466
466
|
this.selectDynamicRenderer(activeOption);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
+
if (this._initialized) {
|
|
470
|
+
this.pushDynamicRendererInputs();
|
|
471
|
+
}
|
|
469
472
|
if (this._initialized && this._entity && !this._records) {
|
|
470
473
|
// Apply view's sort state if available, then defer the reload.
|
|
471
474
|
// Deferring ensures all sibling input bindings (gridState, etc.) are
|
|
@@ -475,6 +478,17 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
475
478
|
this.deferReload();
|
|
476
479
|
}
|
|
477
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* ID of the persisted `MJ: User Views` record backing the current view, or `null` for a dynamic /
|
|
483
|
+
* unsaved view. Pushed to view-type plug-ins so saved-view affordances (e.g. Open in Excel) work.
|
|
484
|
+
*/
|
|
485
|
+
get EffectiveSavedViewID() {
|
|
486
|
+
const view = this._viewEntity;
|
|
487
|
+
if (!view || view.IsSaved === false) {
|
|
488
|
+
return null;
|
|
489
|
+
}
|
|
490
|
+
return view.ID?.trim() || null;
|
|
491
|
+
}
|
|
478
492
|
/**
|
|
479
493
|
* Optional semantic `Name` of a registered alternate base view on the entity (`MJ: Entity Alternate Base Views.Name`).
|
|
480
494
|
* When provided, takes precedence over `ViewEntity.AlternateBaseView` for all `RunView` / `RunViews` queries.
|
|
@@ -701,6 +715,13 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
701
715
|
* it has been persisted). Notification only.
|
|
702
716
|
*/
|
|
703
717
|
AfterViewTypeChange = new EventEmitter();
|
|
718
|
+
/**
|
|
719
|
+
* Emitted whenever the active view type changes — including the initial registry reconciliation
|
|
720
|
+
* (where {@link AfterViewTypeChange} is intentionally suppressed because the user didn't initiate
|
|
721
|
+
* a switch). Hosts use this to sync fallback chrome (such as a fallback Export button for view
|
|
722
|
+
* types whose descriptor does not set `ProvidesOwnExport`).
|
|
723
|
+
*/
|
|
724
|
+
ActiveViewTypeResolved = new EventEmitter();
|
|
704
725
|
/**
|
|
705
726
|
* Emitted (cancelable) BEFORE a plug-in renderer's configuration change is applied/persisted.
|
|
706
727
|
*/
|
|
@@ -1245,9 +1266,9 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
1245
1266
|
if (result.Success) {
|
|
1246
1267
|
// Non-silent cap: if the entity has more matching rows than we're allowed to pull at once,
|
|
1247
1268
|
// tell the user the operation covered the first N — don't let it look like the full set.
|
|
1248
|
-
if (result.TotalRowCount > EntityViewerComponent.EXPORT_MAX_RECORDS) {
|
|
1269
|
+
if ((result.TotalRowCount ?? 0) > EntityViewerComponent.EXPORT_MAX_RECORDS) {
|
|
1249
1270
|
MJNotificationService.Instance.CreateSimpleNotification(`This operation is limited to the first ${EntityViewerComponent.EXPORT_MAX_RECORDS.toLocaleString()} of ` +
|
|
1250
|
-
`${result.TotalRowCount.toLocaleString()} matching records. Narrow the view with a filter to include the rest.`, 'warning', 6000);
|
|
1271
|
+
`${(result.TotalRowCount ?? 0).toLocaleString()} matching records. Narrow the view with a filter to include the rest.`, 'warning', 6000);
|
|
1251
1272
|
}
|
|
1252
1273
|
return result.Results;
|
|
1253
1274
|
}
|
|
@@ -1367,7 +1388,7 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
1367
1388
|
this.InternalRecords = result.Results;
|
|
1368
1389
|
const total = countResult?.Success && countResult.TotalRowCount != null
|
|
1369
1390
|
? countResult.TotalRowCount
|
|
1370
|
-
: result.TotalRowCount;
|
|
1391
|
+
: result.TotalRowCount ?? 0;
|
|
1371
1392
|
this.TotalRecordCount = total;
|
|
1372
1393
|
this.FilteredRecordCount = this.InternalRecords.length;
|
|
1373
1394
|
// Update pagination state
|
|
@@ -1599,7 +1620,10 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
1599
1620
|
get ActiveViewTypeHasOwnExport() {
|
|
1600
1621
|
const opt = this.ActiveDynamicOption;
|
|
1601
1622
|
if (!opt) {
|
|
1602
|
-
|
|
1623
|
+
// Before ViewTypeEngine finishes initial resolution, no renderer is mounted yet and Grid is
|
|
1624
|
+
// the default view type; return true so hosts don't flash a duplicate fallback Export button
|
|
1625
|
+
// ahead of ActiveViewTypeResolved.
|
|
1626
|
+
return true;
|
|
1603
1627
|
}
|
|
1604
1628
|
// Primary signal: the descriptor's declarative capability flag. Belt-and-suspenders: also match
|
|
1605
1629
|
// the grid's stable DriverClass key, in case a descriptor was resolved via the hardcoded fallback
|
|
@@ -1755,6 +1779,9 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
1755
1779
|
this.resetPaginationState(false);
|
|
1756
1780
|
this.LoadData();
|
|
1757
1781
|
}
|
|
1782
|
+
if (typeChanged) {
|
|
1783
|
+
this.ActiveViewTypeResolved.emit();
|
|
1784
|
+
}
|
|
1758
1785
|
if (emit) {
|
|
1759
1786
|
if (this.AutoSaveView) {
|
|
1760
1787
|
void this.persistActiveViewType(option);
|
|
@@ -2032,6 +2059,7 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
2032
2059
|
this.setDynamicInput(ref, 'pageSize', this.Pagination.pageSize);
|
|
2033
2060
|
this.setDynamicInput(ref, 'isLoading', this.IsLoading);
|
|
2034
2061
|
this.setDynamicInput(ref, 'alternateBaseView', this.EffectiveAlternateBaseView);
|
|
2062
|
+
this.setDynamicInput(ref, 'SavedViewID', this.EffectiveSavedViewID);
|
|
2035
2063
|
}
|
|
2036
2064
|
// ========================================
|
|
2037
2065
|
// CANONICAL GRID-STATE BRIDGE
|
|
@@ -2253,7 +2281,7 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
2253
2281
|
} if (rf & 2) {
|
|
2254
2282
|
let _t;
|
|
2255
2283
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicViewHost = _t.first);
|
|
2256
|
-
} }, hostAttrs: [2, "display", "block", "height", "100%"], inputs: { Entity: "Entity", EntityName: "EntityName", EntityID: "EntityID", ViewID: "ViewID", Records: "Records", Config: "Config", SelectedRecordID: "SelectedRecordID", FilterText: "FilterText", SortState: "SortState", ViewEntity: "ViewEntity", AlternateBaseView: "AlternateBaseView", Properties: "Properties", GridState: "GridState", ShowRecycleBin: "ShowRecycleBin", ViewTypeID: "ViewTypeID", ViewTypeConfigs: "ViewTypeConfigs", AutoSaveView: "AutoSaveView" }, outputs: { RecordSelected: "RecordSelected", RecordOpened: "RecordOpened", DataLoaded: "DataLoaded", FilterTextChange: "FilterTextChange", FilteredCountChanged: "FilteredCountChanged", OpenRelatedRecordRequested: "OpenRelatedRecordRequested", CreateRecordRequested: "CreateRecordRequested", ConfigureRequested: "ConfigureRequested", BeforeViewTypeChange: "BeforeViewTypeChange", AfterViewTypeChange: "AfterViewTypeChange", BeforeViewTypeConfigChange: "BeforeViewTypeConfigChange", AfterViewTypeConfigChange: "AfterViewTypeConfigChange" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 11, consts: [["dynamicViewHost", ""], [1, "entity-viewer-container"], [1, "viewer-header"], ["role", "list", "aria-label", "View properties", 1, "view-properties-row"], [1, "viewer-content"], [1, "loading-container", 3, "hidden"], ["size", "medium", 3, "text"], [1, "loading-overlay", 3, "hidden"], ["size", "small", 3, "text"], ["Icon", "fa-solid fa-database", "Title", "Select an entity to view records", 1, "empty-state-fill"], [1, "empty-state-fill", 3, "Variant", "Title"], [1, "dynamic-view-host", 3, "hidden"], [1, "filter-container"], [1, "record-count"], [3, "Provider", "Entity", "ActiveViewTypeID"], [3, "Provider", "EntityName"], [1, "fa-solid", "fa-search", "filter-icon"], ["type", "text", 1, "filter-input", 3, "input", "placeholder", "value"], ["title", "Clear filter", 1, "clear-filter-btn"], ["title", "Clear filter", 1, "clear-filter-btn", 3, "click"], [1, "fa-solid", "fa-times"], [3, "ViewTypeSelected", "Provider", "Entity", "ActiveViewTypeID"], ["role", "listitem", 1, "view-property-chip", 3, "server-set"], ["role", "alert", 1, "view-properties-error"], ["role", "listitem", 1, "view-property-chip"], ["aria-hidden", "true", 1, "fa-solid", "fa-lock"], [1, "view-property-name"], [1, "view-property-value"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"]], template: function EntityViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2284
|
+
} }, hostAttrs: [2, "display", "block", "height", "100%"], inputs: { Entity: "Entity", EntityName: "EntityName", EntityID: "EntityID", ViewID: "ViewID", Records: "Records", Config: "Config", SelectedRecordID: "SelectedRecordID", FilterText: "FilterText", SortState: "SortState", ViewEntity: "ViewEntity", AlternateBaseView: "AlternateBaseView", Properties: "Properties", GridState: "GridState", ShowRecycleBin: "ShowRecycleBin", ViewTypeID: "ViewTypeID", ViewTypeConfigs: "ViewTypeConfigs", AutoSaveView: "AutoSaveView" }, outputs: { RecordSelected: "RecordSelected", RecordOpened: "RecordOpened", DataLoaded: "DataLoaded", FilterTextChange: "FilterTextChange", FilteredCountChanged: "FilteredCountChanged", OpenRelatedRecordRequested: "OpenRelatedRecordRequested", CreateRecordRequested: "CreateRecordRequested", ConfigureRequested: "ConfigureRequested", BeforeViewTypeChange: "BeforeViewTypeChange", AfterViewTypeChange: "AfterViewTypeChange", ActiveViewTypeResolved: "ActiveViewTypeResolved", BeforeViewTypeConfigChange: "BeforeViewTypeConfigChange", AfterViewTypeConfigChange: "AfterViewTypeConfigChange" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 11, consts: [["dynamicViewHost", ""], [1, "entity-viewer-container"], [1, "viewer-header"], ["role", "list", "aria-label", "View properties", 1, "view-properties-row"], [1, "viewer-content"], [1, "loading-container", 3, "hidden"], ["size", "medium", 3, "text"], [1, "loading-overlay", 3, "hidden"], ["size", "small", 3, "text"], ["Icon", "fa-solid fa-database", "Title", "Select an entity to view records", 1, "empty-state-fill"], [1, "empty-state-fill", 3, "Variant", "Title"], [1, "dynamic-view-host", 3, "hidden"], [1, "filter-container"], [1, "record-count"], [3, "Provider", "Entity", "ActiveViewTypeID"], [3, "Provider", "EntityName"], [1, "fa-solid", "fa-search", "filter-icon"], ["type", "text", 1, "filter-input", 3, "input", "placeholder", "value"], ["title", "Clear filter", 1, "clear-filter-btn"], ["title", "Clear filter", 1, "clear-filter-btn", 3, "click"], [1, "fa-solid", "fa-times"], [3, "ViewTypeSelected", "Provider", "Entity", "ActiveViewTypeID"], ["role", "listitem", 1, "view-property-chip", 3, "server-set"], ["role", "alert", 1, "view-properties-error"], ["role", "listitem", 1, "view-property-chip"], ["aria-hidden", "true", 1, "fa-solid", "fa-lock"], [1, "view-property-name"], [1, "view-property-value"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"]], template: function EntityViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2257
2285
|
i0.ɵɵelementStart(0, "div", 1);
|
|
2258
2286
|
i0.ɵɵconditionalCreate(1, EntityViewerComponent_Conditional_1_Template, 5, 4, "div", 2);
|
|
2259
2287
|
i0.ɵɵconditionalCreate(2, EntityViewerComponent_Conditional_2_Template, 4, 1, "div", 3);
|
|
@@ -2349,6 +2377,8 @@ export class EntityViewerComponent extends BaseAngularComponent {
|
|
|
2349
2377
|
type: Output
|
|
2350
2378
|
}], AfterViewTypeChange: [{
|
|
2351
2379
|
type: Output
|
|
2380
|
+
}], ActiveViewTypeResolved: [{
|
|
2381
|
+
type: Output
|
|
2352
2382
|
}], BeforeViewTypeConfigChange: [{
|
|
2353
2383
|
type: Output
|
|
2354
2384
|
}], AfterViewTypeConfigChange: [{
|