@memberjunction/ng-entity-viewer 5.27.1 → 5.29.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/README.md +101 -0
- package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts +14 -1
- 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 +199 -172
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts +9 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +58 -38
- package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
- package/dist/lib/recycle-bin/events/recycle-bin-events.d.ts +91 -0
- package/dist/lib/recycle-bin/events/recycle-bin-events.d.ts.map +1 -0
- package/dist/lib/recycle-bin/events/recycle-bin-events.js +10 -0
- package/dist/lib/recycle-bin/events/recycle-bin-events.js.map +1 -0
- package/dist/lib/recycle-bin/recycle-bin-chip.component.d.ts +75 -0
- package/dist/lib/recycle-bin/recycle-bin-chip.component.d.ts.map +1 -0
- package/dist/lib/recycle-bin/recycle-bin-chip.component.js +228 -0
- package/dist/lib/recycle-bin/recycle-bin-chip.component.js.map +1 -0
- package/dist/lib/recycle-bin/recycle-bin.component.d.ts +178 -0
- package/dist/lib/recycle-bin/recycle-bin.component.d.ts.map +1 -0
- package/dist/lib/recycle-bin/recycle-bin.component.js +681 -0
- package/dist/lib/recycle-bin/recycle-bin.component.js.map +1 -0
- package/dist/module.d.ts +13 -9
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +23 -7
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +4 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +13 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recycle-bin.component.js","sourceRoot":"","sources":["../../../src/lib/recycle-bin/recycle-bin.component.ts","../../../src/lib/recycle-bin/recycle-bin.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EAEvB,YAAY,EACZ,KAAK,EAEL,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,QAAQ,EACR,OAAO,GAER,MAAM,sBAAsB,CAAC;;;;;;;;ICGpB,8BAAgC;IAAA,YAAoB;IAAA,iBAAM;;;IAA1B,cAAoB;IAApB,2CAAoB;;;IAOxD,8BAAsC;IACpC,wBAAmD;IACnD,0BAAI;IAAA,6BAAa;IAAA,iBAAK;IACtB,yBAAG;IAAA,YAAe;IACpB,AADoB,iBAAI,EAClB;;;IADD,eAAe;IAAf,sCAAe;;;IAMpB,gCAAyE;;;IAKzE,+BAAqC;IACnC,wBAAmE;IACnE,0BAAI;IAAA,8CAA8B;IAAA,iBAAK;IACvC,yBAAG;IAAA,YAAe;IACpB,AADoB,iBAAI,EAClB;;;IADD,eAAe;IAAf,sCAAe;;;IAMpB,+BAAqC;IACnC,wBAAwD;IACxD,0BAAI;IAAA,oCAAoB;IAAA,iBAAK;IAC7B,yBAAG;IAAA,qGACkB;IACvB,AADuB,iBAAI,EACrB;;;IAcU,AADF,gCAA4B,aAClB;IAAA,YAAqB;IAAA,iBAAS;IAAC,YACzC;IAAA,iBAAO;;;IADG,eAAqB;IAArB,iDAAqB;IAAU,cACzC;IADyC,4CACzC;;;IAJJ,+BAA4B;IAC1B,2HAIC;IACH,iBAAM;;;IALJ,cAIC;IAJD,wCAIC;;;IAOD,YACF;;;;IADE,qFACF;;;;IAfF,AADF,AADF,+BAAqB,cACO,cACE;IAAA,YAA0B;IAAA,iBAAM;IAC1D,2GAAyC;IASzC,+BAA0B;IACxB,wBAAoD;IACpD,YACA;IAAA,gGAA+B;IAInC,AADE,iBAAM,EACF;IAEJ,AADF,+BAA6B,kBAKX;IADd,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f,eAEC;YAFD,yCAEC;YAKL,cAMC;YAND,4EAMC;YAGD,cAEC;YAFD,yCAEC;YAGD,cAMC;YAND,4EAMC;YAGD,cAOC;YAPD,yGAOC;YAGD,cAoCC;YApCD,sFAoCC;YAMD,cAA0B;YAG1B,AADA,AADA,AADA,4CAA0B,oBACP,6FACiC,8BAC3B;;;iFDXhB,mBAAmB;cAR/B,SAAS;6BACI,KAAK,YACP,gBAAgB,mBAGT,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI;;kBAUpC,KAAK;;kBAeL,KAAK;;kBAML,KAAK;;kBAQL,KAAK;;kBAKL,MAAM;;kBAON,MAAM;;kBAGN,MAAM;;kBAQN,MAAM;;kBAMN,MAAM;;kBAON,MAAM;;kBAGN,MAAM;;kFA5EI,mBAAmB","sourcesContent":["import {\n Component,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n EntityFieldInfo,\n EntityInfo,\n Metadata,\n RunView,\n UserInfo,\n} from '@memberjunction/core';\nimport { MJRecordChangeEntity } from '@memberjunction/core-entities';\nimport { RestoreCommitEvent } from '@memberjunction/ng-record-changes';\nimport {\n AfterRecordRestoreEventArgs,\n AfterRecycleBinOpenEventArgs,\n AfterRestoreCommitEventArgs,\n BeforeRecordRestoreEventArgs,\n BeforeRecycleBinOpenEventArgs,\n BeforeRestoreCommitEventArgs,\n RecycleBinEntry,\n} from './events/recycle-bin-events';\n\n/**\n * Slide-in panel that lists all hard-deleted records for a single entity\n * and lets a user with `Delete` permission re-create any of them from its\n * historical RecordChange snapshot.\n *\n * ### When to use\n *\n * Surface this component from any entity-viewing context where the user\n * might need to restore a hard-deleted record. The {@link EntityViewerComponent},\n * {@link EntityDataGridComponent}, and {@link EntityCardsComponent}\n * already expose a `ShowRecycleBin` input (default `true`) that renders a\n * chip in their toolbar — you only need to use this component directly if\n * you're building a custom viewer.\n *\n * ### Permissions\n *\n * The chip / panel is gated on `entity.UserPermissions.CanDelete` —\n * rationale: there is no native \"undelete\" permission in MemberJunction,\n * but if a user has the higher-trust permission to *delete* records of an\n * entity, restoring deleted ones is well within scope. The actual\n * re-create action additionally requires `CanCreate`; without it the\n * Restore button on each card disables with a tooltip.\n *\n * ### Soft deletes vs hard deletes\n *\n * This component only surfaces *hard*-deleted records. Soft-deletes (e.g.,\n * `IsDeleted` flags, `Status='Inactive'`, etc.) leave the record visible\n * in normal entity views, so the standard Record Changes panel + restore\n * preview already handles them — no Recycle Bin needed.\n *\n * ### Cancelable Before/After event surface\n *\n * Every meaningful action emits a paired `before*` / `after*` event. The\n * `before*` event carries `cancel: boolean` so consumers can intercept\n * — useful for custom approval workflows, audit logging, or to take over\n * the actual restore execution entirely. See {@link BeforeRecordRestoreEventArgs}\n * and friends.\n *\n * @example Basic usage (rare — usually embedded by entity-viewer)\n * <mj-recycle-bin\n * [Visible]=\"showBin\"\n * [EntityName]=\"'Customers'\"\n * (Closed)=\"showBin = false\"\n * (BeforeRecordRestore)=\"auditRestore($event)\"\n * (AfterRestoreCommit)=\"onRestored($event)\">\n * </mj-recycle-bin>\n *\n * @example Intercepting a restore\n * onBeforeRecordRestore(e: BeforeRecordRestoreEventArgs) {\n * if (!myCustomApproval(e.entry)) {\n * e.cancel = true;\n * e.cancelReason = 'Awaiting compliance approval';\n * }\n * }\n */\n@Component({\n standalone: false,\n selector: 'mj-recycle-bin',\n templateUrl: './recycle-bin.component.html',\n styleUrls: ['./recycle-bin.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class RecycleBinComponent implements OnInit {\n // ─── Inputs ─────────────────────────────────────────────────────\n\n /**\n * Controls panel visibility. Set to true to slide in (and trigger an\n * initial load); false to slide out.\n */\n private _visible = false;\n @Input()\n set Visible(value: boolean) {\n const wasVisible = this._visible;\n this._visible = value;\n if (value && !wasVisible && this.isInitialized) {\n this.LoadDeletedRecords();\n }\n }\n get Visible(): boolean {\n return this._visible;\n }\n\n /**\n * The name of the entity whose deleted records will be listed. Required.\n */\n @Input() EntityName: string | null = null;\n\n /**\n * Optional context user. When omitted, falls back to\n * {@link Metadata.Provider.CurrentUser} per standard MJ conventions.\n */\n @Input() ContextUser: UserInfo | null = null;\n\n /**\n * Maximum number of deleted-record cards to load. Defaults to 200 — this\n * is a UI affordance, not a hard limit; consumers needing pagination\n * should listen to {@link AfterRecycleBinOpen} and surface their own UI\n * if `deletedRecordCount === MaxRecords`.\n */\n @Input() MaxRecords = 200;\n\n // ─── Outputs ────────────────────────────────────────────────────\n\n /** Fires when the user closes the panel. */\n @Output() Closed = new EventEmitter<void>();\n\n /**\n * Cancelable. Fires when {@link Visible} flips to true and the bin is\n * about to query for deleted records. Setting `cancel = true` aborts\n * the query (and the panel will show the empty state).\n */\n @Output() BeforeRecycleBinOpen = new EventEmitter<BeforeRecycleBinOpenEventArgs>();\n\n /** Fires after the deleted-record query completes. */\n @Output() AfterRecycleBinOpen = new EventEmitter<AfterRecycleBinOpenEventArgs>();\n\n /**\n * Cancelable. Fires when the user clicks Restore on a deleted-record\n * card, before the preview panel opens. Setting `cancel = true` skips\n * the preview entirely — useful for consumers that want to take over\n * the restore flow themselves.\n */\n @Output() BeforeRecordRestore = new EventEmitter<BeforeRecordRestoreEventArgs>();\n\n /**\n * Fires after the user closes the restore preview, with `success`\n * indicating whether the actual insert worked.\n */\n @Output() AfterRecordRestore = new EventEmitter<AfterRecordRestoreEventArgs>();\n\n /**\n * Cancelable. Fires after the user clicks Restore in the preview but\n * before the entity is inserted. Setting `cancel = true` aborts the\n * insert.\n */\n @Output() BeforeRestoreCommit = new EventEmitter<BeforeRestoreCommitEventArgs>();\n\n /** Fires after the insert completes (success or failure). */\n @Output() AfterRestoreCommit = new EventEmitter<AfterRestoreCommitEventArgs>();\n\n // ─── Public template state ──────────────────────────────────────\n\n public IsLoading = false;\n public LoadError: string | null = null;\n public Entries: RecycleBinEntry[] = [];\n\n /** The currently selected entry whose preview is open. */\n public SelectedEntry: RecycleBinEntry | null = null;\n public PreviewVisible = false;\n\n /** Permission flags (computed once when EntityName is set). */\n public CanDelete = false;\n public CanCreate = false;\n\n private isInitialized = false;\n private resolvedEntityInfo: EntityInfo | null = null;\n\n constructor(private cdr: ChangeDetectorRef) {}\n\n ngOnInit(): void {\n this.isInitialized = true;\n if (this.Visible) this.LoadDeletedRecords();\n }\n\n // ─── Derived state ──────────────────────────────────────────────\n\n public get HeaderSubtitle(): string {\n if (!this.EntityName) return '';\n const n = this.Entries.length;\n return `${n} record${n === 1 ? '' : 's'} have been deleted from ${this.EntityName}.`;\n }\n\n /**\n * The user has Delete permission and may browse the bin. The Restore\n * button on each card additionally requires {@link CanCreate}.\n */\n public get HasAccess(): boolean {\n return this.CanDelete;\n }\n\n // ─── Public actions ─────────────────────────────────────────────\n\n /**\n * Manually trigger a re-load — useful for consumers who want to refresh\n * after some external event (e.g., a delete happened and they want the\n * bin to re-populate immediately).\n */\n public async LoadDeletedRecords(): Promise<void> {\n if (!this.EntityName) {\n this.LoadError = 'EntityName is required';\n return;\n }\n\n // Resolve metadata + permissions\n const md = new Metadata();\n const entityInfo = md.Entities.find(\n e => e.Name.trim().toLowerCase() === this.EntityName!.trim().toLowerCase(),\n );\n if (!entityInfo) {\n this.LoadError = `Entity '${this.EntityName}' not found`;\n this.cdr.markForCheck();\n return;\n }\n this.resolvedEntityInfo = entityInfo;\n const effectiveUser = this.ContextUser ?? md.CurrentUser;\n if (effectiveUser) {\n const perms = entityInfo.GetUserPermisions(effectiveUser);\n this.CanDelete = perms?.CanDelete ?? false;\n this.CanCreate = perms?.CanCreate ?? false;\n } else {\n this.CanDelete = false;\n this.CanCreate = false;\n }\n\n if (!this.CanDelete) {\n this.Entries = [];\n this.LoadError = 'You do not have Delete permission for this entity.';\n this.cdr.markForCheck();\n return;\n }\n\n // Fire BeforeRecycleBinOpen — consumer may cancel\n const beforeArgs: BeforeRecycleBinOpenEventArgs = {\n bin: this,\n timestamp: new Date(),\n entityName: this.EntityName,\n cancel: false,\n _kind: 'beforeRecycleBinOpen',\n };\n this.BeforeRecycleBinOpen.emit(beforeArgs);\n if (beforeArgs.cancel) {\n this.LoadError = beforeArgs.cancelReason ?? 'Cancelled by host';\n this.cdr.markForCheck();\n return;\n }\n\n this.IsLoading = true;\n this.LoadError = null;\n this.Entries = [];\n this.cdr.markForCheck();\n\n try {\n const rv = new RunView();\n // Get the most recent Delete change per RecordID. We over-fetch and\n // dedupe in JS — the data is small and SQL grouping with the latest\n // change per ID is awkward across dialects.\n const result = await rv.RunView<MJRecordChangeEntity>(\n {\n EntityName: 'MJ: Record Changes',\n ExtraFilter: `EntityID='${entityInfo.ID}' AND Type='Delete'`,\n OrderBy: 'ChangedAt DESC',\n MaxRows: this.MaxRecords * 2, // dedupe headroom\n ResultType: 'entity_object',\n },\n this.ContextUser ?? undefined,\n );\n\n if (!result.Success) {\n this.LoadError = result.ErrorMessage || 'Failed to load deleted records';\n } else {\n this.Entries = this.dedupeAndBuildEntries(result.Results, entityInfo);\n }\n } catch (e) {\n this.LoadError = e instanceof Error ? e.message : 'Unknown error';\n } finally {\n this.IsLoading = false;\n this.cdr.markForCheck();\n }\n\n // Fire AfterRecycleBinOpen\n this.AfterRecycleBinOpen.emit({\n bin: this,\n timestamp: new Date(),\n entityName: this.EntityName,\n deletedRecordCount: this.Entries.length,\n _kind: 'afterRecycleBinOpen',\n });\n }\n\n /**\n * User clicked Restore on a card — open the preview panel (unless a\n * BeforeRecordRestore handler cancelled).\n */\n public OnRestoreClicked(entry: RecycleBinEntry): void {\n if (!this.CanCreate) return; // gated in template too\n\n const beforeArgs: BeforeRecordRestoreEventArgs = {\n bin: this,\n timestamp: new Date(),\n entityName: this.EntityName ?? '',\n entry,\n cancel: false,\n _kind: 'beforeRecordRestore',\n };\n this.BeforeRecordRestore.emit(beforeArgs);\n if (beforeArgs.cancel) return;\n\n this.SelectedEntry = entry;\n this.PreviewVisible = true;\n this.cdr.markForCheck();\n }\n\n /**\n * Preview panel emitted RestoreConfirmed — perform the insert and emit\n * the matching after* events.\n */\n public async OnPreviewConfirmed(commit: RestoreCommitEvent): Promise<void> {\n if (!this.SelectedEntry || !this.resolvedEntityInfo) return;\n const entry = this.SelectedEntry;\n\n const beforeArgs: BeforeRestoreCommitEventArgs = {\n bin: this,\n timestamp: new Date(),\n entityName: this.EntityName ?? '',\n entry,\n fieldValues: commit.FieldValues,\n reason: commit.Reason,\n cancel: false,\n _kind: 'beforeRestoreCommit',\n };\n this.BeforeRestoreCommit.emit(beforeArgs);\n if (beforeArgs.cancel) {\n this.PreviewVisible = false;\n this.cdr.markForCheck();\n return;\n }\n\n let success = false;\n let errorMessage: string | undefined;\n let newRecordID: string | undefined;\n\n try {\n const md = new Metadata();\n const entity = await md.GetEntityObject(this.resolvedEntityInfo.Name, this.ContextUser ?? undefined);\n\n // Apply the snapshot fields, including the original primary key\n // (preserves any FK references that still point at this ID).\n for (const fv of commit.FieldValues) {\n entity.Set(fv.FieldName, fv.Value);\n }\n // Also re-apply the original primary key from the snapshot so dangling\n // FK references continue to work. Set() on a fresh entity treats this\n // as the new record's PK.\n try {\n const snapshotData = JSON.parse(entry.RecordChange.FullRecordJSON || '{}');\n for (const pk of this.resolvedEntityInfo.PrimaryKeys) {\n if (snapshotData[pk.Name] != null) {\n entity.Set(pk.Name, snapshotData[pk.Name]);\n }\n }\n } catch {\n // PK preservation is best-effort\n }\n\n entity.SetRestoreContext(commit.SourceChangeID, commit.Reason);\n\n try {\n success = await entity.Save();\n if (success) {\n newRecordID = entity.PrimaryKey.ToString();\n } else {\n errorMessage = entity.LatestResult?.CompleteMessage ?? 'Save returned false';\n }\n } finally {\n entity.ClearRestoreContext();\n }\n } catch (e) {\n success = false;\n errorMessage = e instanceof Error ? e.message : 'Unknown error';\n }\n\n this.AfterRestoreCommit.emit({\n bin: this,\n timestamp: new Date(),\n entityName: this.EntityName ?? '',\n entry,\n success,\n newRecordID,\n errorMessage,\n _kind: 'afterRestoreCommit',\n });\n\n this.AfterRecordRestore.emit({\n bin: this,\n timestamp: new Date(),\n entityName: this.EntityName ?? '',\n entry,\n success,\n errorMessage,\n _kind: 'afterRecordRestore',\n });\n\n if (success) {\n // Remove the restored entry from the list and close preview\n this.Entries = this.Entries.filter(e => e !== entry);\n }\n this.PreviewVisible = false;\n this.SelectedEntry = null;\n this.cdr.markForCheck();\n }\n\n public OnPreviewCancelled(): void {\n this.PreviewVisible = false;\n this.SelectedEntry = null;\n this.cdr.markForCheck();\n }\n\n public OnClose(): void {\n this._visible = false;\n this.cdr.markForCheck();\n this.Closed.emit();\n }\n\n // ─── Internal: build entries from raw RecordChange rows ─────────\n\n /**\n * Dedupes the raw delete-change rows: keeps only the most recent Delete\n * per RecordID (since a record could in principle have been recreated\n * and re-deleted). Builds the display fields heuristically by reading\n * the snapshot JSON.\n */\n private dedupeAndBuildEntries(\n rows: MJRecordChangeEntity[],\n entityInfo: EntityInfo,\n ): RecycleBinEntry[] {\n const seen = new Set<string>();\n const entries: RecycleBinEntry[] = [];\n\n for (const row of rows) {\n if (entries.length >= this.MaxRecords) break;\n if (seen.has(row.RecordID)) continue;\n seen.add(row.RecordID);\n\n const snapshot = this.parseSnapshot(row.FullRecordJSON);\n if (!snapshot) continue;\n\n const entry: RecycleBinEntry = {\n RecordChange: row,\n RecordID: row.RecordID,\n DisplaySummary: this.buildDisplaySummary(snapshot, entityInfo),\n SupportingFields: this.buildSupportingFields(snapshot, entityInfo),\n };\n entries.push(entry);\n }\n\n return entries;\n }\n\n /**\n * Builds the headline of the card. Prefers the entity's name field, then\n * any non-PK string field, then the RecordID itself as a last resort.\n */\n private buildDisplaySummary(snapshot: Record<string, unknown>, entityInfo: EntityInfo): string {\n const nameField = entityInfo.NameField;\n if (nameField && snapshot[nameField.Name] != null && snapshot[nameField.Name] !== '') {\n return String(snapshot[nameField.Name]);\n }\n // Fallback: first non-PK, non-empty string field\n for (const f of entityInfo.Fields) {\n if (f.IsPrimaryKey) continue;\n const v = snapshot[f.Name];\n if (typeof v === 'string' && v.trim().length > 0) return v;\n }\n return `Record ${snapshot[entityInfo.PrimaryKeys[0]?.Name] ?? ''}`;\n }\n\n /**\n * Picks up to 3 \"interesting\" fields from the snapshot to render as\n * supporting metadata under the headline. Heuristic: prefer fields that\n * are non-empty, non-PK, non-system, and have a display name.\n */\n private buildSupportingFields(\n snapshot: Record<string, unknown>,\n entityInfo: EntityInfo,\n ): Array<{ Name: string; DisplayName: string; Value: string }> {\n const out: Array<{ Name: string; DisplayName: string; Value: string }> = [];\n const nameFieldName = entityInfo.NameField?.Name;\n\n for (const f of entityInfo.Fields) {\n if (out.length >= 3) break;\n if (f.IsPrimaryKey) continue;\n if (f.Name.startsWith('__mj_')) continue;\n if (f.Name === nameFieldName) continue;\n\n const v = snapshot[f.Name];\n if (v == null || v === '') continue;\n\n out.push({\n Name: f.Name,\n DisplayName: f.DisplayNameOrName,\n Value: this.formatFieldValue(v, f),\n });\n }\n return out;\n }\n\n private formatFieldValue(value: unknown, _field: EntityFieldInfo): string {\n if (value == null) return '';\n if (typeof value === 'object') {\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n }\n return String(value);\n }\n\n private parseSnapshot(json: string | null | undefined): Record<string, unknown> | null {\n if (!json) return null;\n try {\n return JSON.parse(json) as Record<string, unknown>;\n } catch {\n return null;\n }\n }\n\n // ─── Display helpers (template) ─────────────────────────────────\n\n public formatTimestamp(date: Date | string | null): string {\n if (!date) return '';\n return new Intl.DateTimeFormat('en-US', {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n hour12: true,\n }).format(new Date(date));\n }\n\n public getUserDisplay(user: string | null): string {\n if (!user) return 'Unknown';\n if (user.includes('@')) return user.split('@')[0];\n return user;\n }\n}\n","<mj-slide-panel\n [Mode]=\"'slide'\"\n [Title]=\"'Recycle Bin · ' + (EntityName || '')\"\n [Visible]=\"Visible\"\n [Resizable]=\"true\"\n [MinWidthPx]=\"480\"\n [MaxWidthRatio]=\"0.6\"\n (Closed)=\"OnClose()\">\n\n <div class=\"rb-container\">\n\n <!-- Header -->\n <div class=\"rb-header\">\n <div class=\"rb-header-icon\">\n <i class=\"fa-solid fa-trash-can-arrow-up\" aria-hidden=\"true\"></i>\n </div>\n <div class=\"rb-header-text\">\n <div class=\"rb-header-title\">Recycle Bin</div>\n @if (EntityName) {\n <div class=\"rb-header-subtitle\">{{ HeaderSubtitle }}</div>\n }\n </div>\n </div>\n\n <!-- No-permission state -->\n @if (!IsLoading && LoadError && !HasAccess) {\n <div class=\"rb-state rb-state-denied\">\n <i class=\"fa-solid fa-lock\" aria-hidden=\"true\"></i>\n <h3>Access denied</h3>\n <p>{{ LoadError }}</p>\n </div>\n }\n\n <!-- Loading -->\n @if (IsLoading) {\n <mj-loading text=\"Loading deleted records...\" size=\"medium\"></mj-loading>\n }\n\n <!-- Generic error -->\n @if (!IsLoading && LoadError && HasAccess) {\n <div class=\"rb-state rb-state-error\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n <h3>Could not load deleted records</h3>\n <p>{{ LoadError }}</p>\n </div>\n }\n\n <!-- Empty state -->\n @if (!IsLoading && !LoadError && HasAccess && Entries.length === 0) {\n <div class=\"rb-state rb-state-empty\">\n <i class=\"fa-solid fa-trash-can\" aria-hidden=\"true\"></i>\n <h3>Recycle Bin is empty</h3>\n <p>No records have been deleted from this entity, or change tracking\n isn't enabled here.</p>\n </div>\n }\n\n <!-- Entries -->\n @if (!IsLoading && !LoadError && Entries.length > 0) {\n <div class=\"rb-list\">\n @for (entry of Entries; track entry.RecordChange.ID) {\n <div class=\"rb-card\">\n <div class=\"rb-card-info\">\n <div class=\"rb-card-name\">{{ entry.DisplaySummary }}</div>\n @if (entry.SupportingFields.length > 0) {\n <div class=\"rb-card-fields\">\n @for (sf of entry.SupportingFields; track sf.Name) {\n <span class=\"rb-card-field\">\n <strong>{{ sf.DisplayName }}:</strong> {{ sf.Value }}\n </span>\n }\n </div>\n }\n <div class=\"rb-card-meta\">\n <i class=\"fa-solid fa-trash\" aria-hidden=\"true\"></i>\n Deleted {{ formatTimestamp(entry.RecordChange.ChangedAt) }}\n @if (entry.RecordChange.User) {\n by {{ getUserDisplay(entry.RecordChange.User) }}\n }\n </div>\n </div>\n <div class=\"rb-card-actions\">\n <button class=\"rb-btn rb-btn-restore\"\n [disabled]=\"!CanCreate\"\n [title]=\"CanCreate ? 'Re-create this record from its snapshot' : 'You do not have Create permission for this entity'\"\n (click)=\"OnRestoreClicked(entry)\"\n type=\"button\">\n <i class=\"fa-solid fa-rotate-left\" aria-hidden=\"true\"></i>\n Restore\n </button>\n </div>\n </div>\n }\n </div>\n }\n\n </div>\n\n <!-- Restore preview slide-in (reused from ng-record-changes) -->\n <mj-restore-preview-panel\n [Visible]=\"PreviewVisible\"\n [Mode]=\"'undelete'\"\n [RecordChange]=\"SelectedEntry?.RecordChange ?? null\"\n [EntityName]=\"EntityName\"\n (RestoreConfirmed)=\"OnPreviewConfirmed($event)\"\n (RestoreCancelled)=\"OnPreviewCancelled()\">\n </mj-restore-preview-panel>\n\n</mj-slide-panel>\n"]}
|
package/dist/module.d.ts
CHANGED
|
@@ -12,14 +12,18 @@ import * as i10 from "./lib/quick-save-dialog/quick-save-dialog.component";
|
|
|
12
12
|
import * as i11 from "./lib/view-header/view-header.component";
|
|
13
13
|
import * as i12 from "./lib/duplicate-view-dialog/duplicate-view-dialog.component";
|
|
14
14
|
import * as i13 from "./lib/shared-view-warning-dialog/shared-view-warning-dialog.component";
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "@
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "@memberjunction/ng-
|
|
21
|
-
import * as i20 from "@memberjunction/ng-
|
|
22
|
-
import * as i21 from "@memberjunction/ng-
|
|
15
|
+
import * as i14 from "./lib/recycle-bin/recycle-bin.component";
|
|
16
|
+
import * as i15 from "./lib/recycle-bin/recycle-bin-chip.component";
|
|
17
|
+
import * as i16 from "@angular/common";
|
|
18
|
+
import * as i17 from "@angular/forms";
|
|
19
|
+
import * as i18 from "ag-grid-angular";
|
|
20
|
+
import * as i19 from "@memberjunction/ng-shared-generic";
|
|
21
|
+
import * as i20 from "@memberjunction/ng-pagination";
|
|
22
|
+
import * as i21 from "@memberjunction/ng-timeline";
|
|
23
|
+
import * as i22 from "@memberjunction/ng-export-service";
|
|
24
|
+
import * as i23 from "@memberjunction/ng-map-view";
|
|
25
|
+
import * as i24 from "@memberjunction/ng-record-changes";
|
|
26
|
+
import * as i25 from "@memberjunction/ng-versions";
|
|
23
27
|
/**
|
|
24
28
|
* EntityViewerModule - Provides components for viewing entity data
|
|
25
29
|
*
|
|
@@ -43,7 +47,7 @@ import * as i21 from "@memberjunction/ng-map-view";
|
|
|
43
47
|
*/
|
|
44
48
|
export declare class EntityViewerModule {
|
|
45
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntityViewerModule, never>;
|
|
46
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EntityViewerModule, [typeof i1.EntityCardsComponent, typeof i2.EntityViewerComponent, typeof i3.EntityRecordDetailPanelComponent, typeof i4.PillComponent, typeof i5.EntityDataGridComponent, typeof i6.ViewConfigPanelComponent, typeof i7.AggregatePanelComponent, typeof i8.AggregateSetupDialogComponent, typeof i9.ConfirmDialogComponent, typeof i10.QuickSaveDialogComponent, typeof i11.ViewHeaderComponent, typeof i12.DuplicateViewDialogComponent, typeof i13.SharedViewWarningDialogComponent], [typeof
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EntityViewerModule, [typeof i1.EntityCardsComponent, typeof i2.EntityViewerComponent, typeof i3.EntityRecordDetailPanelComponent, typeof i4.PillComponent, typeof i5.EntityDataGridComponent, typeof i6.ViewConfigPanelComponent, typeof i7.AggregatePanelComponent, typeof i8.AggregateSetupDialogComponent, typeof i9.ConfirmDialogComponent, typeof i10.QuickSaveDialogComponent, typeof i11.ViewHeaderComponent, typeof i12.DuplicateViewDialogComponent, typeof i13.SharedViewWarningDialogComponent, typeof i14.RecycleBinComponent, typeof i15.RecycleBinChipComponent], [typeof i16.CommonModule, typeof i17.FormsModule, typeof i18.AgGridModule, typeof i19.SharedGenericModule, typeof i20.PaginationComponent, typeof i21.TimelineModule, typeof i22.ExportServiceModule, typeof i23.MapViewModule, typeof i24.RecordChangesModule, typeof i25.VersionsModule], [typeof i1.EntityCardsComponent, typeof i2.EntityViewerComponent, typeof i3.EntityRecordDetailPanelComponent, typeof i4.PillComponent, typeof i5.EntityDataGridComponent, typeof i6.ViewConfigPanelComponent, typeof i7.AggregatePanelComponent, typeof i8.AggregateSetupDialogComponent, typeof i9.ConfirmDialogComponent, typeof i10.QuickSaveDialogComponent, typeof i11.ViewHeaderComponent, typeof i12.DuplicateViewDialogComponent, typeof i13.SharedViewWarningDialogComponent, typeof i14.RecycleBinComponent]>;
|
|
47
51
|
static ɵinj: i0.ɵɵInjectorDeclaration<EntityViewerModule>;
|
|
48
52
|
}
|
|
49
53
|
//# sourceMappingURL=module.d.ts.map
|
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBA+Ca,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAAI"}
|
package/dist/module.js
CHANGED
|
@@ -7,6 +7,8 @@ import { PaginationComponent } from '@memberjunction/ng-pagination';
|
|
|
7
7
|
import { TimelineModule } from '@memberjunction/ng-timeline';
|
|
8
8
|
import { ExportServiceModule } from '@memberjunction/ng-export-service';
|
|
9
9
|
import { MapViewModule } from '@memberjunction/ng-map-view';
|
|
10
|
+
import { RecordChangesModule } from '@memberjunction/ng-record-changes';
|
|
11
|
+
import { VersionsModule } from '@memberjunction/ng-versions';
|
|
10
12
|
import { EntityCardsComponent } from './lib/entity-cards/entity-cards.component';
|
|
11
13
|
import { EntityViewerComponent } from './lib/entity-viewer/entity-viewer.component';
|
|
12
14
|
import { EntityRecordDetailPanelComponent } from './lib/entity-record-detail-panel/entity-record-detail-panel.component';
|
|
@@ -20,6 +22,8 @@ import { QuickSaveDialogComponent } from './lib/quick-save-dialog/quick-save-dia
|
|
|
20
22
|
import { ViewHeaderComponent } from './lib/view-header/view-header.component';
|
|
21
23
|
import { DuplicateViewDialogComponent } from './lib/duplicate-view-dialog/duplicate-view-dialog.component';
|
|
22
24
|
import { SharedViewWarningDialogComponent } from './lib/shared-view-warning-dialog/shared-view-warning-dialog.component';
|
|
25
|
+
import { RecycleBinComponent } from './lib/recycle-bin/recycle-bin.component';
|
|
26
|
+
import { RecycleBinChipComponent } from './lib/recycle-bin/recycle-bin-chip.component';
|
|
23
27
|
import * as i0 from "@angular/core";
|
|
24
28
|
/**
|
|
25
29
|
* EntityViewerModule - Provides components for viewing entity data
|
|
@@ -52,7 +56,9 @@ export class EntityViewerModule {
|
|
|
52
56
|
PaginationComponent,
|
|
53
57
|
TimelineModule,
|
|
54
58
|
ExportServiceModule,
|
|
55
|
-
MapViewModule
|
|
59
|
+
MapViewModule,
|
|
60
|
+
RecordChangesModule,
|
|
61
|
+
VersionsModule] });
|
|
56
62
|
}
|
|
57
63
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntityViewerModule, [{
|
|
58
64
|
type: NgModule,
|
|
@@ -70,7 +76,9 @@ export class EntityViewerModule {
|
|
|
70
76
|
QuickSaveDialogComponent,
|
|
71
77
|
ViewHeaderComponent,
|
|
72
78
|
DuplicateViewDialogComponent,
|
|
73
|
-
SharedViewWarningDialogComponent
|
|
79
|
+
SharedViewWarningDialogComponent,
|
|
80
|
+
RecycleBinComponent,
|
|
81
|
+
RecycleBinChipComponent
|
|
74
82
|
],
|
|
75
83
|
imports: [
|
|
76
84
|
CommonModule,
|
|
@@ -80,7 +88,9 @@ export class EntityViewerModule {
|
|
|
80
88
|
PaginationComponent,
|
|
81
89
|
TimelineModule,
|
|
82
90
|
ExportServiceModule,
|
|
83
|
-
MapViewModule
|
|
91
|
+
MapViewModule,
|
|
92
|
+
RecordChangesModule,
|
|
93
|
+
VersionsModule
|
|
84
94
|
],
|
|
85
95
|
exports: [
|
|
86
96
|
EntityCardsComponent,
|
|
@@ -95,7 +105,8 @@ export class EntityViewerModule {
|
|
|
95
105
|
QuickSaveDialogComponent,
|
|
96
106
|
ViewHeaderComponent,
|
|
97
107
|
DuplicateViewDialogComponent,
|
|
98
|
-
SharedViewWarningDialogComponent
|
|
108
|
+
SharedViewWarningDialogComponent,
|
|
109
|
+
RecycleBinComponent
|
|
99
110
|
]
|
|
100
111
|
}]
|
|
101
112
|
}], null, null); })();
|
|
@@ -111,14 +122,18 @@ export class EntityViewerModule {
|
|
|
111
122
|
QuickSaveDialogComponent,
|
|
112
123
|
ViewHeaderComponent,
|
|
113
124
|
DuplicateViewDialogComponent,
|
|
114
|
-
SharedViewWarningDialogComponent
|
|
125
|
+
SharedViewWarningDialogComponent,
|
|
126
|
+
RecycleBinComponent,
|
|
127
|
+
RecycleBinChipComponent], imports: [CommonModule,
|
|
115
128
|
FormsModule,
|
|
116
129
|
AgGridModule,
|
|
117
130
|
SharedGenericModule,
|
|
118
131
|
PaginationComponent,
|
|
119
132
|
TimelineModule,
|
|
120
133
|
ExportServiceModule,
|
|
121
|
-
MapViewModule
|
|
134
|
+
MapViewModule,
|
|
135
|
+
RecordChangesModule,
|
|
136
|
+
VersionsModule], exports: [EntityCardsComponent,
|
|
122
137
|
EntityViewerComponent,
|
|
123
138
|
EntityRecordDetailPanelComponent,
|
|
124
139
|
PillComponent,
|
|
@@ -130,5 +145,6 @@ export class EntityViewerModule {
|
|
|
130
145
|
QuickSaveDialogComponent,
|
|
131
146
|
ViewHeaderComponent,
|
|
132
147
|
DuplicateViewDialogComponent,
|
|
133
|
-
SharedViewWarningDialogComponent
|
|
148
|
+
SharedViewWarningDialogComponent,
|
|
149
|
+
RecycleBinComponent] }); })();
|
|
134
150
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CA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BAAmB;QACnB,4BAA4B;QAC5B,gCAAgC;QAChC,mBAAmB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { AgGridModule } from 'ag-grid-angular';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\nimport { PaginationComponent } from '@memberjunction/ng-pagination';\nimport { TimelineModule } from '@memberjunction/ng-timeline';\nimport { ExportServiceModule } from '@memberjunction/ng-export-service';\nimport { MapViewModule } from '@memberjunction/ng-map-view';\nimport { RecordChangesModule } from '@memberjunction/ng-record-changes';\nimport { VersionsModule } from '@memberjunction/ng-versions';\n\nimport { EntityCardsComponent } from './lib/entity-cards/entity-cards.component';\nimport { EntityViewerComponent } from './lib/entity-viewer/entity-viewer.component';\nimport { EntityRecordDetailPanelComponent } from './lib/entity-record-detail-panel/entity-record-detail-panel.component';\nimport { PillComponent } from './lib/pill/pill.component';\nimport { EntityDataGridComponent } from './lib/entity-data-grid/entity-data-grid.component';\nimport { ViewConfigPanelComponent } from './lib/view-config-panel/view-config-panel.component';\nimport { AggregatePanelComponent } from './lib/aggregate-panel/aggregate-panel.component';\nimport { AggregateSetupDialogComponent } from './lib/aggregate-setup-dialog/aggregate-setup-dialog.component';\nimport { ConfirmDialogComponent } from './lib/confirm-dialog/confirm-dialog.component';\nimport { QuickSaveDialogComponent } from './lib/quick-save-dialog/quick-save-dialog.component';\nimport { ViewHeaderComponent } from './lib/view-header/view-header.component';\nimport { DuplicateViewDialogComponent } from './lib/duplicate-view-dialog/duplicate-view-dialog.component';\nimport { SharedViewWarningDialogComponent } from './lib/shared-view-warning-dialog/shared-view-warning-dialog.component';\nimport { RecycleBinComponent } from './lib/recycle-bin/recycle-bin.component';\nimport { RecycleBinChipComponent } from './lib/recycle-bin/recycle-bin-chip.component';\n\n/**\n * EntityViewerModule - Provides components for viewing entity data\n *\n * This module exports:\n * - EntityViewerComponent: Composite component with grid/cards toggle, server-side filtering/sorting/pagination\n * - EntityDataGridComponent: Modern AG Grid-based grid with Before/After cancelable events\n * - EntityCardsComponent: Card-based view with standalone or parent-managed data\n * - EntityRecordDetailPanelComponent: Detail panel for displaying single record information\n * - PillComponent: Semantic color pills for categorical values\n * - ViewConfigPanelComponent: Sliding panel for configuring view settings (columns, sort, filters)\n *\n * @example\n * ```typescript\n * import { EntityViewerModule } from '@memberjunction/ng-entity-viewer';\n *\n * @NgModule({\n * imports: [EntityViewerModule]\n * })\n * export class MyModule { }\n * ```\n */\n@NgModule({\n declarations: [\n EntityCardsComponent,\n EntityViewerComponent,\n EntityRecordDetailPanelComponent,\n PillComponent,\n EntityDataGridComponent,\n ViewConfigPanelComponent,\n AggregatePanelComponent,\n AggregateSetupDialogComponent,\n ConfirmDialogComponent,\n QuickSaveDialogComponent,\n ViewHeaderComponent,\n DuplicateViewDialogComponent,\n SharedViewWarningDialogComponent,\n RecycleBinComponent,\n RecycleBinChipComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n AgGridModule,\n SharedGenericModule,\n PaginationComponent,\n TimelineModule,\n ExportServiceModule,\n MapViewModule,\n RecordChangesModule,\n VersionsModule\n ],\n exports: [\n EntityCardsComponent,\n EntityViewerComponent,\n EntityRecordDetailPanelComponent,\n PillComponent,\n EntityDataGridComponent,\n ViewConfigPanelComponent,\n AggregatePanelComponent,\n AggregateSetupDialogComponent,\n ConfirmDialogComponent,\n QuickSaveDialogComponent,\n ViewHeaderComponent,\n DuplicateViewDialogComponent,\n SharedViewWarningDialogComponent,\n RecycleBinComponent\n ]\n})\nexport class EntityViewerModule { }\n"]}
|
package/dist/public-api.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ export * from './lib/quick-save-dialog/quick-save-dialog.component';
|
|
|
21
21
|
export * from './lib/view-header/view-header.component';
|
|
22
22
|
export * from './lib/duplicate-view-dialog/duplicate-view-dialog.component';
|
|
23
23
|
export * from './lib/shared-view-warning-dialog/shared-view-warning-dialog.component';
|
|
24
|
+
export * from './lib/recycle-bin/recycle-bin.component';
|
|
25
|
+
export * from './lib/recycle-bin/recycle-bin-chip.component';
|
|
26
|
+
export * from './lib/recycle-bin/events/recycle-bin-events';
|
|
24
27
|
export * from './lib/utils/highlight.util';
|
|
25
28
|
export * from './lib/utils/record.util';
|
|
26
29
|
export declare const ENTITY_VIEWER_GEO_VERSION = 1;
|
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,UAAU,CAAC;AAGzB,cAAc,aAAa,CAAC;AAG5B,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uEAAuE,CAAC;AACtF,cAAc,2BAA2B,CAAC;AAG1C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAG1D,cAAc,qDAAqD,CAAC;AAGpE,cAAc,iDAAiD,CAAC;AAGhE,cAAc,+DAA+D,CAAC;AAG9E,cAAc,+CAA+C,CAAC;AAG9D,cAAc,qDAAqD,CAAC;AAGpE,cAAc,yCAAyC,CAAC;AAGxD,cAAc,6DAA6D,CAAC;AAG5E,cAAc,uEAAuE,CAAC;AAGtF,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AAExC,eAAO,MAAM,yBAAyB,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,UAAU,CAAC;AAGzB,cAAc,aAAa,CAAC;AAG5B,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uEAAuE,CAAC;AACtF,cAAc,2BAA2B,CAAC;AAG1C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAG1D,cAAc,qDAAqD,CAAC;AAGpE,cAAc,iDAAiD,CAAC;AAGhE,cAAc,+DAA+D,CAAC;AAG9E,cAAc,+CAA+C,CAAC;AAG9D,cAAc,qDAAqD,CAAC;AAGpE,cAAc,yCAAyC,CAAC;AAGxD,cAAc,6DAA6D,CAAC;AAG5E,cAAc,uEAAuE,CAAC;AAGtF,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAG5D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AAExC,eAAO,MAAM,yBAAyB,IAAI,CAAC"}
|
package/dist/public-api.js
CHANGED
|
@@ -33,6 +33,10 @@ export * from './lib/view-header/view-header.component';
|
|
|
33
33
|
export * from './lib/duplicate-view-dialog/duplicate-view-dialog.component';
|
|
34
34
|
// Shared View Warning Dialog (warning when saving shared views)
|
|
35
35
|
export * from './lib/shared-view-warning-dialog/shared-view-warning-dialog.component';
|
|
36
|
+
// Recycle Bin (slide-in for hard-deleted records, gated on entity Delete permission)
|
|
37
|
+
export * from './lib/recycle-bin/recycle-bin.component';
|
|
38
|
+
export * from './lib/recycle-bin/recycle-bin-chip.component';
|
|
39
|
+
export * from './lib/recycle-bin/events/recycle-bin-events';
|
|
36
40
|
// Utilities
|
|
37
41
|
export * from './lib/utils/highlight.util';
|
|
38
42
|
export * from './lib/utils/record.util';
|
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,SAAS;AACT,cAAc,UAAU,CAAC;AAEzB,uBAAuB;AACvB,cAAc,aAAa,CAAC;AAE5B,aAAa;AACb,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uEAAuE,CAAC;AACtF,cAAc,2BAA2B,CAAC;AAE1C,uEAAuE;AACvE,cAAc,mDAAmD,CAAC;AAClE,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAE1D,2DAA2D;AAC3D,cAAc,qDAAqD,CAAC;AAEpE,iDAAiD;AACjD,cAAc,iDAAiD,CAAC;AAEhE,oEAAoE;AACpE,cAAc,+DAA+D,CAAC;AAE9E,wDAAwD;AACxD,cAAc,+CAA+C,CAAC;AAE9D,8CAA8C;AAC9C,cAAc,qDAAqD,CAAC;AAEpE,sEAAsE;AACtE,cAAc,yCAAyC,CAAC;AAExD,uEAAuE;AACvE,cAAc,6DAA6D,CAAC;AAE5E,gEAAgE;AAChE,cAAc,uEAAuE,CAAC;AAEtF,YAAY;AACZ,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,sBAAsB;AACtB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC","sourcesContent":["/**\n * @memberjunction/ng-entity-viewer\n *\n * Angular components for viewing entity data in multiple formats.\n * Provides grid (AG Grid) and card views with filtering, selection, and shared data management.\n */\n\n// Module\nexport * from './module';\n\n// Types and Interfaces\nexport * from './lib/types';\n\n// Components\nexport * from './lib/entity-cards/entity-cards.component';\nexport * from './lib/entity-viewer/entity-viewer.component';\nexport * from './lib/entity-record-detail-panel/entity-record-detail-panel.component';\nexport * from './lib/pill/pill.component';\n\n// Entity Data Grid (modern AG Grid component with Before/After events)\nexport * from './lib/entity-data-grid/entity-data-grid.component';\nexport * from './lib/entity-data-grid/models/grid-types';\nexport * from './lib/entity-data-grid/events/grid-events';\n\n// View Config Panel (sliding panel for view configuration)\nexport * from './lib/view-config-panel/view-config-panel.component';\n\n// Aggregate Panel (card-based aggregate display)\nexport * from './lib/aggregate-panel/aggregate-panel.component';\n\n// Aggregate Setup Dialog (3-mode dialog for configuring aggregates)\nexport * from './lib/aggregate-setup-dialog/aggregate-setup-dialog.component';\n\n// Confirm Dialog (generic reusable confirmation dialog)\nexport * from './lib/confirm-dialog/confirm-dialog.component';\n\n// Quick Save Dialog (focused view save modal)\nexport * from './lib/quick-save-dialog/quick-save-dialog.component';\n\n// View Header (inline name edit, modified badge, save/revert actions)\nexport * from './lib/view-header/view-header.component';\n\n// Duplicate View Dialog (modal for duplicating views with custom name)\nexport * from './lib/duplicate-view-dialog/duplicate-view-dialog.component';\n\n// Shared View Warning Dialog (warning when saving shared views)\nexport * from './lib/shared-view-warning-dialog/shared-view-warning-dialog.component';\n\n// Utilities\nexport * from './lib/utils/highlight.util';\nexport * from './lib/utils/record.util';\n// Geo support exports\nexport const ENTITY_VIEWER_GEO_VERSION = 1;\n"]}
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,SAAS;AACT,cAAc,UAAU,CAAC;AAEzB,uBAAuB;AACvB,cAAc,aAAa,CAAC;AAE5B,aAAa;AACb,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uEAAuE,CAAC;AACtF,cAAc,2BAA2B,CAAC;AAE1C,uEAAuE;AACvE,cAAc,mDAAmD,CAAC;AAClE,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAE1D,2DAA2D;AAC3D,cAAc,qDAAqD,CAAC;AAEpE,iDAAiD;AACjD,cAAc,iDAAiD,CAAC;AAEhE,oEAAoE;AACpE,cAAc,+DAA+D,CAAC;AAE9E,wDAAwD;AACxD,cAAc,+CAA+C,CAAC;AAE9D,8CAA8C;AAC9C,cAAc,qDAAqD,CAAC;AAEpE,sEAAsE;AACtE,cAAc,yCAAyC,CAAC;AAExD,uEAAuE;AACvE,cAAc,6DAA6D,CAAC;AAE5E,gEAAgE;AAChE,cAAc,uEAAuE,CAAC;AAEtF,qFAAqF;AACrF,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAE5D,YAAY;AACZ,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,sBAAsB;AACtB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC","sourcesContent":["/**\n * @memberjunction/ng-entity-viewer\n *\n * Angular components for viewing entity data in multiple formats.\n * Provides grid (AG Grid) and card views with filtering, selection, and shared data management.\n */\n\n// Module\nexport * from './module';\n\n// Types and Interfaces\nexport * from './lib/types';\n\n// Components\nexport * from './lib/entity-cards/entity-cards.component';\nexport * from './lib/entity-viewer/entity-viewer.component';\nexport * from './lib/entity-record-detail-panel/entity-record-detail-panel.component';\nexport * from './lib/pill/pill.component';\n\n// Entity Data Grid (modern AG Grid component with Before/After events)\nexport * from './lib/entity-data-grid/entity-data-grid.component';\nexport * from './lib/entity-data-grid/models/grid-types';\nexport * from './lib/entity-data-grid/events/grid-events';\n\n// View Config Panel (sliding panel for view configuration)\nexport * from './lib/view-config-panel/view-config-panel.component';\n\n// Aggregate Panel (card-based aggregate display)\nexport * from './lib/aggregate-panel/aggregate-panel.component';\n\n// Aggregate Setup Dialog (3-mode dialog for configuring aggregates)\nexport * from './lib/aggregate-setup-dialog/aggregate-setup-dialog.component';\n\n// Confirm Dialog (generic reusable confirmation dialog)\nexport * from './lib/confirm-dialog/confirm-dialog.component';\n\n// Quick Save Dialog (focused view save modal)\nexport * from './lib/quick-save-dialog/quick-save-dialog.component';\n\n// View Header (inline name edit, modified badge, save/revert actions)\nexport * from './lib/view-header/view-header.component';\n\n// Duplicate View Dialog (modal for duplicating views with custom name)\nexport * from './lib/duplicate-view-dialog/duplicate-view-dialog.component';\n\n// Shared View Warning Dialog (warning when saving shared views)\nexport * from './lib/shared-view-warning-dialog/shared-view-warning-dialog.component';\n\n// Recycle Bin (slide-in for hard-deleted records, gated on entity Delete permission)\nexport * from './lib/recycle-bin/recycle-bin.component';\nexport * from './lib/recycle-bin/recycle-bin-chip.component';\nexport * from './lib/recycle-bin/events/recycle-bin-events';\n\n// Utilities\nexport * from './lib/utils/highlight.util';\nexport * from './lib/utils/record.util';\n// Geo support exports\nexport const ENTITY_VIEWER_GEO_VERSION = 1;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-entity-viewer",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.29.0",
|
|
4
4
|
"description": "MemberJunction: Angular components for viewing entity data in multiple formats (grid, cards) with filtering, selection, and shared data management",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -37,16 +37,18 @@
|
|
|
37
37
|
"ag-grid-community": "^35.0.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@memberjunction/core-entities": "5.
|
|
41
|
-
"@memberjunction/export-engine": "5.
|
|
42
|
-
"@memberjunction/global": "5.
|
|
43
|
-
"@memberjunction/core": "5.
|
|
44
|
-
"@memberjunction/ng-pagination": "5.
|
|
45
|
-
"@memberjunction/ng-shared-generic": "5.
|
|
46
|
-
"@memberjunction/ng-timeline": "5.
|
|
47
|
-
"@memberjunction/ng-filter-builder": "5.
|
|
48
|
-
"@memberjunction/ng-export-service": "5.
|
|
49
|
-
"@memberjunction/ng-map-view": "5.
|
|
40
|
+
"@memberjunction/core-entities": "5.29.0",
|
|
41
|
+
"@memberjunction/export-engine": "5.29.0",
|
|
42
|
+
"@memberjunction/global": "5.29.0",
|
|
43
|
+
"@memberjunction/core": "5.29.0",
|
|
44
|
+
"@memberjunction/ng-pagination": "5.29.0",
|
|
45
|
+
"@memberjunction/ng-shared-generic": "5.29.0",
|
|
46
|
+
"@memberjunction/ng-timeline": "5.29.0",
|
|
47
|
+
"@memberjunction/ng-filter-builder": "5.29.0",
|
|
48
|
+
"@memberjunction/ng-export-service": "5.29.0",
|
|
49
|
+
"@memberjunction/ng-map-view": "5.29.0",
|
|
50
|
+
"@memberjunction/ng-record-changes": "5.29.0",
|
|
51
|
+
"@memberjunction/ng-versions": "5.29.0",
|
|
50
52
|
"rxjs": "^7.8.2",
|
|
51
53
|
"tslib": "^2.8.1"
|
|
52
54
|
},
|