@memberjunction/ng-resource-permissions 5.24.0 → 5.26.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.
@@ -1 +1 @@
1
- {"version":3,"file":"resource-permissions.component.d.ts","sourceRoot":"","sources":["../../src/lib/resource-permissions.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,eAAe,CAAC;AAChE,OAAO,EAA2D,QAAQ,EAAW,MAAM,sBAAsB,CAAC;AAClH,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEnH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAGrE;;;GAGG;AACH,qBAMa,4BAA6B,SAAQ,oBAAqB,YAAW,aAAa;IAC7F;;OAEG;IACM,cAAc,EAAG,MAAM,CAAC;IACjC;;OAEG;IACM,gBAAgB,EAAG,MAAM,CAAC;IACnC;;;;OAIG;IACM,cAAc,EAAE,OAAO,CAAS;IACzC;;;OAGG;IACM,oBAAoB,EAAE,OAAO,CAAQ;IAC9C;;;OAGG;IACM,qBAAqB,EAAE,OAAO,CAAS;IAChD;;OAEG;IACM,mBAAmB,EAAE,OAAO,CAAQ;IAC7C;;OAEG;IACM,oBAAoB,EAAE,OAAO,CAAQ;IAC9C;;OAEG;IACM,sBAAsB,EAAE,OAAO,CAAQ;IAEhD;;OAEG;IACM,gBAAgB,WAA6B;IAEtD;;OAEG;IACM,eAAe,WAAoB;IAE5C;;;OAGG;IACM,iBAAiB,EAAE,MAAM,EAAE,CAAM;IAE1C;;;OAGG;IACM,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAEpC,QAAQ,EAAE,YAAY,EAAE,CAAM;IAC9B,QAAQ,EAAE,QAAQ,EAAE,CAAM;IAE1B,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IACzC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAQ;IACrC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAU;IACvC,uBAAuB,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAU;IAE5D,QAAQ,EAAE,OAAO,CAAS;IAEpB,sBAAsB,CAAC,gBAAgB,EAAE,MAAM;IAQrD,mBAAmB,EAAE,0BAA0B,EAAE,CAAM;IACxD,eAAe;IAkCrB,OAAO,CAAC,eAAe,CAAoC;IACpD,gBAAgB,CAAC,UAAU,EAAE,0BAA0B;IAK9D,OAAO,CAAC,YAAY,CAAoC;IAC3C,aAAa;IAuBnB,uBAAuB,IAAI,OAAO;IAkB5B,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAwEhD,SAAS,CAAC,SAAS,IAAI,wBAAwB;yCAzOpC,4BAA4B;2CAA5B,4BAA4B;CA4OxC"}
1
+ {"version":3,"file":"resource-permissions.component.d.ts","sourceRoot":"","sources":["../../src/lib/resource-permissions.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAY,QAAQ,EAAW,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEnH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAGrE;;;GAGG;AACH,qBAMa,4BAA6B,SAAQ,oBAAqB,YAAW,aAAa;IAC7F;;OAEG;IACM,cAAc,EAAG,MAAM,CAAC;IACjC;;OAEG;IACM,gBAAgB,EAAG,MAAM,CAAC;IACnC;;;;OAIG;IACM,cAAc,EAAE,OAAO,CAAS;IACzC;;;OAGG;IACM,oBAAoB,EAAE,OAAO,CAAQ;IAC9C;;;OAGG;IACM,qBAAqB,EAAE,OAAO,CAAS;IAChD;;OAEG;IACM,mBAAmB,EAAE,OAAO,CAAQ;IAC7C;;OAEG;IACM,oBAAoB,EAAE,OAAO,CAAQ;IAC9C;;OAEG;IACM,sBAAsB,EAAE,OAAO,CAAQ;IAEhD;;OAEG;IACM,gBAAgB,WAA6B;IAEtD;;OAEG;IACM,eAAe,WAAoB;IAE5C;;;OAGG;IACM,iBAAiB,EAAE,MAAM,EAAE,CAAM;IAE1C;;;OAGG;IACM,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAEpC,QAAQ,EAAE,YAAY,EAAE,CAAM;IAC9B,QAAQ,EAAE,QAAQ,EAAE,CAAM;IAE1B,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IACzC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAQ;IACrC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAU;IACvC,uBAAuB,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAU;IAE5D,QAAQ,EAAE,OAAO,CAAS;IAEpB,sBAAsB,CAAC,gBAAgB,EAAE,MAAM;IAQrD,mBAAmB,EAAE,0BAA0B,EAAE,CAAM;IACxD,eAAe;IAkCrB,OAAO,CAAC,eAAe,CAAoC;IACpD,gBAAgB,CAAC,UAAU,EAAE,0BAA0B;IAK9D,OAAO,CAAC,YAAY,CAAoC;IAC3C,aAAa;IAuBnB,uBAAuB,IAAI,OAAO;IAkB5B,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAwEhD,SAAS,CAAC,SAAS,IAAI,wBAAwB;yCAzOpC,4BAA4B;2CAA5B,4BAA4B;CA4OxC"}
@@ -233,7 +233,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
233
233
  const allResourcePermissions = engine.GetResourcePermissions(this.ResourceTypeID, this.ResourceRecordID);
234
234
  this.resourcePermissions = allResourcePermissions.filter((p) => p.Status === 'Approved'); // only include approved permissions in the UI, we don't show requested, rejected, revoked permissions here, just suppress them.
235
235
  const p = this.ProviderToUse;
236
- const rv = new RunView(p);
236
+ const rv = RunView.FromMetadataProvider(p);
237
237
  const result = await rv.RunView({
238
238
  EntityName: "MJ: Users",
239
239
  ResultType: "entity_object",
@@ -1 +1 @@
1
- {"version":3,"file":"resource-permissions.component.js","sourceRoot":"","sources":["../../src/lib/resource-permissions.component.ts","../../src/lib/resource-permissions.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAuC,QAAQ,EAAsB,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAClH,OAAO,EAAE,wBAAwB,EAA4C,MAAM,+BAA+B,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;;ICHrE,gCAA0D;;IAA9C,gCAAkB;;;;IAG9B,iCAA6C;IAA5B,gMAAS,wBAAiB,KAAC;IAAC,oBAAI;IAAA,iBAAS;;;;IAYpD,uCAKwB;IAHtB,iVAA0B;IAI5B,iBAAc;;;IALZ,sCAAiB;IACjB,mDAA0B;;;;IAO5B,uCAKwB;IAHtB,iVAA0B;IAI5B,iBAAc;;;IALZ,sCAAiB;IACjB,mDAA0B;;;IAO5B,YACF;;;IADE,kEACF;;;;IAEE,sCAGwB;IADtB,uWAAqC;IAEvC,iBAAc;;;IAHZ,8CAAyB;IACzB,8DAAqC;;;;IA9BzC,AADF,8BAAoC,cACC;IAAA,8BAAc;IAAA,iBAAO;IACxD,sCAGwB;IADtB,kUAA0B;IAE5B,iBAAc;IAmBd,AATA,AATA,oHAA+B,+FASK,4EAS7B;IAGP,qHAA4B;IAO5B,kCAAwL;IAAvK,gMAAS,sBAAe,KAAC;IAA8I,mBAAG;IAC7L,AAD6L,iBAAS,EAChM;;;IAjCF,eAAwB;IAAxB,6CAAwB;IACxB,mDAA0B;IAG5B,cAoBC;IApBD,6FAoBC;IACD,eAMC;IAND,sDAMC;IAC0C,cAAsC;IAAC,AAAvC,2DAAsC,4GAAqG;;;IASlL,0BAAI;IAAA,qBAAK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BAIL,KAAK;;kBAKL,KAAK;;kBAKL,KAAK;;kBAML,KAAK;;kBAML,KAAK;;kFA1DK,4BAA4B","sourcesContent":["import { AfterViewInit, Component, Input } from '@angular/core';\nimport { IMetadataProvider, IRunViewProvider, LogError, Metadata, RoleInfo, RunView } from '@memberjunction/core';\nimport { ResourcePermissionEngine, MJResourcePermissionEntity, MJUserEntity } from '@memberjunction/core-entities';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { MJNotificationService } from '@memberjunction/ng-notifications';\n\n/**\n * Visual component used to display and manage permissions for a resource. You can wrap this in a dialog or display anywhere else within\n * an Angular application or component.\n */\n@Component({\n standalone: false,\n selector: 'mj-resource-permissions',\n templateUrl: './resource-permissions.component.html',\n styleUrls: ['./resource-permissions.component.css']\n})\nexport class ResourcePermissionsComponent extends BaseAngularComponent implements AfterViewInit {\n /**\n * Required: the ID of the resource type record for the specified resource that the permissions are being set for.\n */\n @Input() ResourceTypeID!: string;\n /**\n * Required: the record ID of the resource that the permissions are being set for.\n */ \n @Input() ResourceRecordID!: string;\n /**\n * If set to true, the component will show a Save button to the user and persist the changes to the \n * database when the user clicks the Save button. By default this is off to allow users of the component\n * to wrap the component as desired, and handle the save themselves.\n */\n @Input() ShowSaveButton: boolean = false;\n /**\n * If set to true, the component will show the permission levels to the user. By default this is on. If you have \n * a Resource Type or run-time use case where levels are not relevant, you can turn this off.\n */\n @Input() ShowPermissionLevels: boolean = true;\n /**\n * By default, this component will not show any error messages to the user. \n * If you want to show error messages to the user, set this to true. The component will always throw exceptions when error occur internally.\n */\n @Input() ShowUserErrorMessages: boolean = false;\n /**\n * Allows you to determine if the user is able to add new permissions for the resource.\n */\n @Input() AllowAddPermissions: boolean = true;\n /**\n * Allows you to determine if the user is able to edit existing permissions for the resource.\n */\n @Input() AllowEditPermissions: boolean = true;\n /**\n * Allows you to determine if the user is able to delete existing permissions for the resource.\n */\n @Input() AllowDeletePermissions: boolean = true;\n\n /**\n * List of possible permission levels that can be set for the resource. An array of strings, defaults to ['View', 'Edit', 'Owner']\n */\n @Input() PermissionLevels = ['View', 'Edit', 'Owner']; // these are the possible permission levels\n\n /**\n * Specifies the types of permissions the UI will allow settings for. An array of strings, defaults to ['User', 'Role']\n */\n @Input() PermissionTypes = ['User', 'Role'];\n\n /**\n * This optional input allows you to exclude certain roles from the list of roles that can be selected for permissions. If existing permissions have been created with roles that are in this list they will still be displayed, \n * but the user will not be able to add new permissions with these roles. This is an array of strings with the NAMES of the roles.\n */\n @Input() ExcludedRoleNames: string[] = [];\n\n /**\n * This optional input allows you to exclude certain users from the list of users that can be selected for permissions. If existing permissions have been created with users that are in this list they will still be displayed, \n * but the user will not be able to add new permissions with these users. This is an array of strings with EMAILS.\n */\n @Input() ExcludedUserEmails: string[] = [];\n\n public AllUsers: MJUserEntity[] = [];\n public AllRoles: RoleInfo[] = [];\n\n public SelectedUser: MJUserEntity | null = null;\n public SelectedRole: RoleInfo | null = null;\n public SelectedType: 'User' | 'Role' = 'Role';\n public SelectedPermissionLevel: 'View' | 'Edit' | 'Owner' = 'View';\n\n public _Loading: boolean = false;\n\n public async UpdateResourceRecordID(ResourceRecordID: string) {\n this.ResourceRecordID = ResourceRecordID;\n // now go through all of our permissions and update the ResourceRecordID\n for (const permission of this.resourcePermissions) {\n permission.ResourceRecordID = ResourceRecordID\n }\n }\n\n public resourcePermissions: MJResourcePermissionEntity[] = [];\n async ngAfterViewInit() {\n if (!this.ResourceTypeID || !this.ResourceRecordID) {\n throw new Error('ResourceTypeID and ResourceRecordID must be set');\n }\n\n this._Loading = true;\n // load up the current permissions for the specified ResourceTypeID and ResourceRecordID\n const engine = this.GetEngine();\n await engine.Config(false, this.ProviderToUse.CurrentUser, this.ProviderToUse);\n // now we can get the permissions for the specified resource\n const allResourcePermissions = engine.GetResourcePermissions(this.ResourceTypeID, this.ResourceRecordID);\n this.resourcePermissions = allResourcePermissions.filter((p) => p.Status === 'Approved'); // only include approved permissions in the UI, we don't show requested, rejected, revoked permissions here, just suppress them.\n \n const p = this.ProviderToUse;\n const rv = new RunView(<IRunViewProvider><any>p)\n const result = await rv.RunView<MJUserEntity>({\n EntityName: \"MJ: Users\",\n ResultType: \"entity_object\",\n OrderBy: \"Name\",\n ExtraFilter: \"IsActive=1\"\n });\n // filter out any users that are in the ExcludedUserEmails list\n this.AllUsers = result.Results.filter((u) => !this.ExcludedUserEmails.includes(u.Email));\n // filter out any roles that are in the ExcludedRoleNames list\n this.AllRoles = p.Roles.filter((r) => !this.ExcludedRoleNames.includes(r.Name));\n\n if (this.AllUsers.length > 0)\n this.SelectedUser = this.AllUsers[0];\n if (this.AllRoles.length > 0)\n this.SelectedRole = this.AllRoles[0];\n\n this._Loading = false;\n }\n\n private _pendingDeletes: MJResourcePermissionEntity[] = [];\n public deletePermission(permission: MJResourcePermissionEntity) {\n this._pendingDeletes.push(permission);\n this.resourcePermissions = this.resourcePermissions.filter((p) => p !== permission);\n }\n\n private _pendingAdds: MJResourcePermissionEntity[] = [];\n public async addPermission() {\n const p = this.ProviderToUse;\n const permission = await p.GetEntityObject<MJResourcePermissionEntity>(\"MJ: Resource Permissions\", p.CurrentUser);\n permission.ResourceTypeID = this.ResourceTypeID;\n permission.ResourceRecordID = this.ResourceRecordID;\n permission.Type = this.SelectedType;\n permission.Status = 'Approved';\n permission.PermissionLevel = this.SelectedPermissionLevel;\n if (this.SelectedType === 'User' && this.SelectedUser) {\n permission.UserID = this.SelectedUser.ID;\n permission.Set(\"User\", this.SelectedUser.Name);// set the virtual field for display purposes\n }\n else if (this.SelectedType === 'Role' && this.SelectedRole) { \n permission.RoleID = this.SelectedRole.ID;\n permission.Set(\"Role\", this.SelectedRole.Name); // set the virtual field for display purposes\n }\n else {\n LogError('Invalid permission type or missing user/role');\n return;\n }\n this.resourcePermissions.push(permission);\n }\n\n public permissionAlreadyExists(): boolean {\n // check to see if the selection that the user currently has in place for the combination of TYPE + either USER or ROLE already exists\n // in our list of permissions\n for (const permission of this.resourcePermissions) {\n if (permission.Type === this.SelectedType) {\n if (this.SelectedType === 'User' && UUIDsEqual(permission.UserID, this.SelectedUser?.ID)) {\n return true;\n }\n else if (this.SelectedType === 'Role' && UUIDsEqual(permission.RoleID, this.SelectedRole?.ID)) {\n return true;\n }\n }\n }\n\n // if we get here, then the permission does not already exist\n return false;\n }\n\n public async SavePermissions(): Promise<boolean> {\n // first delete any permissions that were marked for deletion\n this._Loading = true;\n const p = this.ProviderToUse;\n const tg = await p.CreateTransactionGroup();\n for (const permission of this._pendingDeletes) {\n if (permission.IsSaved) {\n // only delete records previously saved, sometimes a user adds a new permission and deletes it before saving it\n permission.TransactionGroup = tg;\n if (!await permission.Delete()) { // we use await here because the promise will resolve before the actual save occurs --- the internals will not call the network until tg.Submit() below\n // validation errors come back here\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);\n\n LogError('Error deleting permission record in the transaction group: ' + permission.LatestResult.CompleteMessage);\n return false;\n } \n } \n }\n\n // next add new permissions by saving them in the transaction group\n for (const permission of this._pendingAdds) {\n if (this._pendingDeletes.includes(permission)) {\n // don't save a permission record that is new, if it was also marked for deletion\n permission.TransactionGroup = tg;\n if (!await permission.Save()) { \n // validation errors come back here\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);\n\n LogError('Error saving permission record in the transaction group: ' + permission.LatestResult.CompleteMessage); \n return false;\n }\n }\n }\n\n // now save the existing permissions\n for (const permission of this.resourcePermissions) {\n // make sure not in the delete array\n if (!this._pendingDeletes.includes(permission)) {\n permission.TransactionGroup = tg;\n if (!await permission.Save()) { \n // validation errors come back here\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);\n\n LogError('Error saving permission record in the transaction group: ' + permission.LatestResult.CompleteMessage);\n return false;\n }\n }\n }\n\n // now save the changes\n if (await tg.Submit()) {\n this._Loading = false;\n this._pendingDeletes = [];\n this._pendingAdds = [];\n const engine = this.GetEngine();\n await engine.RefreshAllItems(); // refresh the permissions cache\n return true;\n }\n else {\n // we had an error, show the user via SharedService\n this._Loading = false;\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', );\n \n LogError('Error saving permissions in the transaction group');\n return false;\n }\n }\n\n protected GetEngine(): ResourcePermissionEngine {\n return <ResourcePermissionEngine>ResourcePermissionEngine.GetProviderInstance(this.ProviderToUse, ResourcePermissionEngine);\n }\n}\n","<div class=\"container\">\n @if(_Loading) {\n <mj-loading [showText]=\"false\" size=\"medium\"></mj-loading>\n }\n @if(ShowSaveButton) {\n <button mjButton (click)=\"SavePermissions()\">Save</button>\n }\n <div class=\"table-container\">\n @if(AllowAddPermissions) {\n <div class=\"add-permission-section\">\n <span class=\"add-permission-label\">Add Permission</span>\n <mj-dropdown\n [Data]=\"PermissionTypes\"\n [(ngModel)]=\"SelectedType\"\n style=\"width: 100px;\">\n </mj-dropdown>\n @if (SelectedType === 'User') {\n <mj-dropdown\n [Data]=\"AllUsers\"\n [(ngModel)]=\"SelectedUser\"\n TextField=\"Name\"\n ValueField=\"ID\"\n style=\"width: 225px;\">\n </mj-dropdown>\n }\n @else if (SelectedType === 'Role') {\n <mj-dropdown\n [Data]=\"AllRoles\"\n [(ngModel)]=\"SelectedRole\"\n TextField=\"Name\"\n ValueField=\"ID\"\n style=\"width: 150px;\">\n </mj-dropdown>\n }\n @else {\n SelectedType: {{ SelectedType }}\n }\n @if (ShowPermissionLevels) {\n <mj-dropdown\n [Data]=\"PermissionLevels\"\n [(ngModel)]=\"SelectedPermissionLevel\"\n style=\"width: 100px;\">\n </mj-dropdown>\n }\n <button mjButton (click)=\"addPermission()\" [disabled]=\"permissionAlreadyExists()\" [title]=\"permissionAlreadyExists() ? 'This combination of Type/User/Role already exists below' : ''\" >Add</button>\n </div>\n }\n <table class=\"resource-table\">\n <thead>\n <tr>\n <th>Type</th>\n <th>Name</th>\n @if (ShowPermissionLevels) {\n <th>Level</th>\n }\n @if(AllowDeletePermissions) {\n <th>Actions</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (p of resourcePermissions; track p) {\n <tr>\n <td>{{ p.Type }}</td>\n <td>{{ p.Type === 'User' ? p.User : p.Role }}</td>\n @if (ShowPermissionLevels) {\n <td>\n @if (AllowEditPermissions) {\n <mj-dropdown\n [(ngModel)]=\"p.PermissionLevel\"\n [Data]=\"PermissionLevels\"\n style=\"width: 100px;\">\n </mj-dropdown>\n }\n @else {\n {{ p.PermissionLevel }}\n }\n </td>\n }\n @if(AllowDeletePermissions) {\n <td>\n <button mjButton (click)=\"deletePermission(p)\"><span class=\"fa-solid fa-trash-can\"></span></button>\n </td>\n }\n </tr> \n }\n </tbody>\n </table>\n </div>\n</div>\n"]}
1
+ {"version":3,"file":"resource-permissions.component.js","sourceRoot":"","sources":["../../src/lib/resource-permissions.component.ts","../../src/lib/resource-permissions.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAY,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAA4C,MAAM,+BAA+B,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;;ICHrE,gCAA0D;;IAA9C,gCAAkB;;;;IAG9B,iCAA6C;IAA5B,gMAAS,wBAAiB,KAAC;IAAC,oBAAI;IAAA,iBAAS;;;;IAYpD,uCAKwB;IAHtB,iVAA0B;IAI5B,iBAAc;;;IALZ,sCAAiB;IACjB,mDAA0B;;;;IAO5B,uCAKwB;IAHtB,iVAA0B;IAI5B,iBAAc;;;IALZ,sCAAiB;IACjB,mDAA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AA8B,YACrB,SACD,SACE;YAAA,oBAAI;YAAA,iBAAK;YACb,2BAAI;YAAA,qBAAI;YAAA,iBAAK;YACb,4FAA4B;YAG5B,4FAA6B;YAIjC,AADE,iBAAK,EACC;YACR,8BAAO;YACL,qHAwBC;YAIT,AADE,AADE,AADE,iBAAQ,EACF,EACJ,EACF;;YAxFJ,cAEC;YAFD,uCAEC;YACD,cAEC;YAFD,6CAEC;YAEC,eAsCC;YAtCD,kDAsCC;YAMK,eAEC;YAFD,oDAEC;YACD,cAEC;YAFD,sDAEC;YAIH,eAwBC;YAxBD,sCAwBC;;;iFDpEI,4BAA4B;cANxC,SAAS;6BACI,KAAK,YACP,yBAAyB;;kBAQlC,KAAK;;kBAIL,KAAK;;kBAML,KAAK;;kBAKL,KAAK;;kBAKL,KAAK;;kBAIL,KAAK;;kBAIL,KAAK;;kBAIL,KAAK;;kBAKL,KAAK;;kBAKL,KAAK;;kBAML,KAAK;;kBAML,KAAK;;kFA1DK,4BAA4B","sourcesContent":["import { AfterViewInit, Component, Input } from '@angular/core';\nimport { LogError, RoleInfo, RunView } from '@memberjunction/core';\nimport { ResourcePermissionEngine, MJResourcePermissionEntity, MJUserEntity } from '@memberjunction/core-entities';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { MJNotificationService } from '@memberjunction/ng-notifications';\n\n/**\n * Visual component used to display and manage permissions for a resource. You can wrap this in a dialog or display anywhere else within\n * an Angular application or component.\n */\n@Component({\n standalone: false,\n selector: 'mj-resource-permissions',\n templateUrl: './resource-permissions.component.html',\n styleUrls: ['./resource-permissions.component.css']\n})\nexport class ResourcePermissionsComponent extends BaseAngularComponent implements AfterViewInit {\n /**\n * Required: the ID of the resource type record for the specified resource that the permissions are being set for.\n */\n @Input() ResourceTypeID!: string;\n /**\n * Required: the record ID of the resource that the permissions are being set for.\n */ \n @Input() ResourceRecordID!: string;\n /**\n * If set to true, the component will show a Save button to the user and persist the changes to the \n * database when the user clicks the Save button. By default this is off to allow users of the component\n * to wrap the component as desired, and handle the save themselves.\n */\n @Input() ShowSaveButton: boolean = false;\n /**\n * If set to true, the component will show the permission levels to the user. By default this is on. If you have \n * a Resource Type or run-time use case where levels are not relevant, you can turn this off.\n */\n @Input() ShowPermissionLevels: boolean = true;\n /**\n * By default, this component will not show any error messages to the user. \n * If you want to show error messages to the user, set this to true. The component will always throw exceptions when error occur internally.\n */\n @Input() ShowUserErrorMessages: boolean = false;\n /**\n * Allows you to determine if the user is able to add new permissions for the resource.\n */\n @Input() AllowAddPermissions: boolean = true;\n /**\n * Allows you to determine if the user is able to edit existing permissions for the resource.\n */\n @Input() AllowEditPermissions: boolean = true;\n /**\n * Allows you to determine if the user is able to delete existing permissions for the resource.\n */\n @Input() AllowDeletePermissions: boolean = true;\n\n /**\n * List of possible permission levels that can be set for the resource. An array of strings, defaults to ['View', 'Edit', 'Owner']\n */\n @Input() PermissionLevels = ['View', 'Edit', 'Owner']; // these are the possible permission levels\n\n /**\n * Specifies the types of permissions the UI will allow settings for. An array of strings, defaults to ['User', 'Role']\n */\n @Input() PermissionTypes = ['User', 'Role'];\n\n /**\n * This optional input allows you to exclude certain roles from the list of roles that can be selected for permissions. If existing permissions have been created with roles that are in this list they will still be displayed, \n * but the user will not be able to add new permissions with these roles. This is an array of strings with the NAMES of the roles.\n */\n @Input() ExcludedRoleNames: string[] = [];\n\n /**\n * This optional input allows you to exclude certain users from the list of users that can be selected for permissions. If existing permissions have been created with users that are in this list they will still be displayed, \n * but the user will not be able to add new permissions with these users. This is an array of strings with EMAILS.\n */\n @Input() ExcludedUserEmails: string[] = [];\n\n public AllUsers: MJUserEntity[] = [];\n public AllRoles: RoleInfo[] = [];\n\n public SelectedUser: MJUserEntity | null = null;\n public SelectedRole: RoleInfo | null = null;\n public SelectedType: 'User' | 'Role' = 'Role';\n public SelectedPermissionLevel: 'View' | 'Edit' | 'Owner' = 'View';\n\n public _Loading: boolean = false;\n\n public async UpdateResourceRecordID(ResourceRecordID: string) {\n this.ResourceRecordID = ResourceRecordID;\n // now go through all of our permissions and update the ResourceRecordID\n for (const permission of this.resourcePermissions) {\n permission.ResourceRecordID = ResourceRecordID\n }\n }\n\n public resourcePermissions: MJResourcePermissionEntity[] = [];\n async ngAfterViewInit() {\n if (!this.ResourceTypeID || !this.ResourceRecordID) {\n throw new Error('ResourceTypeID and ResourceRecordID must be set');\n }\n\n this._Loading = true;\n // load up the current permissions for the specified ResourceTypeID and ResourceRecordID\n const engine = this.GetEngine();\n await engine.Config(false, this.ProviderToUse.CurrentUser, this.ProviderToUse);\n // now we can get the permissions for the specified resource\n const allResourcePermissions = engine.GetResourcePermissions(this.ResourceTypeID, this.ResourceRecordID);\n this.resourcePermissions = allResourcePermissions.filter((p) => p.Status === 'Approved'); // only include approved permissions in the UI, we don't show requested, rejected, revoked permissions here, just suppress them.\n \n const p = this.ProviderToUse;\n const rv = RunView.FromMetadataProvider(p)\n const result = await rv.RunView<MJUserEntity>({\n EntityName: \"MJ: Users\",\n ResultType: \"entity_object\",\n OrderBy: \"Name\",\n ExtraFilter: \"IsActive=1\"\n });\n // filter out any users that are in the ExcludedUserEmails list\n this.AllUsers = result.Results.filter((u) => !this.ExcludedUserEmails.includes(u.Email));\n // filter out any roles that are in the ExcludedRoleNames list\n this.AllRoles = p.Roles.filter((r) => !this.ExcludedRoleNames.includes(r.Name));\n\n if (this.AllUsers.length > 0)\n this.SelectedUser = this.AllUsers[0];\n if (this.AllRoles.length > 0)\n this.SelectedRole = this.AllRoles[0];\n\n this._Loading = false;\n }\n\n private _pendingDeletes: MJResourcePermissionEntity[] = [];\n public deletePermission(permission: MJResourcePermissionEntity) {\n this._pendingDeletes.push(permission);\n this.resourcePermissions = this.resourcePermissions.filter((p) => p !== permission);\n }\n\n private _pendingAdds: MJResourcePermissionEntity[] = [];\n public async addPermission() {\n const p = this.ProviderToUse;\n const permission = await p.GetEntityObject<MJResourcePermissionEntity>(\"MJ: Resource Permissions\", p.CurrentUser);\n permission.ResourceTypeID = this.ResourceTypeID;\n permission.ResourceRecordID = this.ResourceRecordID;\n permission.Type = this.SelectedType;\n permission.Status = 'Approved';\n permission.PermissionLevel = this.SelectedPermissionLevel;\n if (this.SelectedType === 'User' && this.SelectedUser) {\n permission.UserID = this.SelectedUser.ID;\n permission.Set(\"User\", this.SelectedUser.Name);// set the virtual field for display purposes\n }\n else if (this.SelectedType === 'Role' && this.SelectedRole) { \n permission.RoleID = this.SelectedRole.ID;\n permission.Set(\"Role\", this.SelectedRole.Name); // set the virtual field for display purposes\n }\n else {\n LogError('Invalid permission type or missing user/role');\n return;\n }\n this.resourcePermissions.push(permission);\n }\n\n public permissionAlreadyExists(): boolean {\n // check to see if the selection that the user currently has in place for the combination of TYPE + either USER or ROLE already exists\n // in our list of permissions\n for (const permission of this.resourcePermissions) {\n if (permission.Type === this.SelectedType) {\n if (this.SelectedType === 'User' && UUIDsEqual(permission.UserID, this.SelectedUser?.ID)) {\n return true;\n }\n else if (this.SelectedType === 'Role' && UUIDsEqual(permission.RoleID, this.SelectedRole?.ID)) {\n return true;\n }\n }\n }\n\n // if we get here, then the permission does not already exist\n return false;\n }\n\n public async SavePermissions(): Promise<boolean> {\n // first delete any permissions that were marked for deletion\n this._Loading = true;\n const p = this.ProviderToUse;\n const tg = await p.CreateTransactionGroup();\n for (const permission of this._pendingDeletes) {\n if (permission.IsSaved) {\n // only delete records previously saved, sometimes a user adds a new permission and deletes it before saving it\n permission.TransactionGroup = tg;\n if (!await permission.Delete()) { // we use await here because the promise will resolve before the actual save occurs --- the internals will not call the network until tg.Submit() below\n // validation errors come back here\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);\n\n LogError('Error deleting permission record in the transaction group: ' + permission.LatestResult.CompleteMessage);\n return false;\n } \n } \n }\n\n // next add new permissions by saving them in the transaction group\n for (const permission of this._pendingAdds) {\n if (this._pendingDeletes.includes(permission)) {\n // don't save a permission record that is new, if it was also marked for deletion\n permission.TransactionGroup = tg;\n if (!await permission.Save()) { \n // validation errors come back here\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);\n\n LogError('Error saving permission record in the transaction group: ' + permission.LatestResult.CompleteMessage); \n return false;\n }\n }\n }\n\n // now save the existing permissions\n for (const permission of this.resourcePermissions) {\n // make sure not in the delete array\n if (!this._pendingDeletes.includes(permission)) {\n permission.TransactionGroup = tg;\n if (!await permission.Save()) { \n // validation errors come back here\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);\n\n LogError('Error saving permission record in the transaction group: ' + permission.LatestResult.CompleteMessage);\n return false;\n }\n }\n }\n\n // now save the changes\n if (await tg.Submit()) {\n this._Loading = false;\n this._pendingDeletes = [];\n this._pendingAdds = [];\n const engine = this.GetEngine();\n await engine.RefreshAllItems(); // refresh the permissions cache\n return true;\n }\n else {\n // we had an error, show the user via SharedService\n this._Loading = false;\n if (this.ShowUserErrorMessages)\n MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', );\n \n LogError('Error saving permissions in the transaction group');\n return false;\n }\n }\n\n protected GetEngine(): ResourcePermissionEngine {\n return <ResourcePermissionEngine>ResourcePermissionEngine.GetProviderInstance(this.ProviderToUse, ResourcePermissionEngine);\n }\n}\n","<div class=\"container\">\n @if(_Loading) {\n <mj-loading [showText]=\"false\" size=\"medium\"></mj-loading>\n }\n @if(ShowSaveButton) {\n <button mjButton (click)=\"SavePermissions()\">Save</button>\n }\n <div class=\"table-container\">\n @if(AllowAddPermissions) {\n <div class=\"add-permission-section\">\n <span class=\"add-permission-label\">Add Permission</span>\n <mj-dropdown\n [Data]=\"PermissionTypes\"\n [(ngModel)]=\"SelectedType\"\n style=\"width: 100px;\">\n </mj-dropdown>\n @if (SelectedType === 'User') {\n <mj-dropdown\n [Data]=\"AllUsers\"\n [(ngModel)]=\"SelectedUser\"\n TextField=\"Name\"\n ValueField=\"ID\"\n style=\"width: 225px;\">\n </mj-dropdown>\n }\n @else if (SelectedType === 'Role') {\n <mj-dropdown\n [Data]=\"AllRoles\"\n [(ngModel)]=\"SelectedRole\"\n TextField=\"Name\"\n ValueField=\"ID\"\n style=\"width: 150px;\">\n </mj-dropdown>\n }\n @else {\n SelectedType: {{ SelectedType }}\n }\n @if (ShowPermissionLevels) {\n <mj-dropdown\n [Data]=\"PermissionLevels\"\n [(ngModel)]=\"SelectedPermissionLevel\"\n style=\"width: 100px;\">\n </mj-dropdown>\n }\n <button mjButton (click)=\"addPermission()\" [disabled]=\"permissionAlreadyExists()\" [title]=\"permissionAlreadyExists() ? 'This combination of Type/User/Role already exists below' : ''\" >Add</button>\n </div>\n }\n <table class=\"resource-table\">\n <thead>\n <tr>\n <th>Type</th>\n <th>Name</th>\n @if (ShowPermissionLevels) {\n <th>Level</th>\n }\n @if(AllowDeletePermissions) {\n <th>Actions</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (p of resourcePermissions; track p) {\n <tr>\n <td>{{ p.Type }}</td>\n <td>{{ p.Type === 'User' ? p.User : p.Role }}</td>\n @if (ShowPermissionLevels) {\n <td>\n @if (AllowEditPermissions) {\n <mj-dropdown\n [(ngModel)]=\"p.PermissionLevel\"\n [Data]=\"PermissionLevels\"\n style=\"width: 100px;\">\n </mj-dropdown>\n }\n @else {\n {{ p.PermissionLevel }}\n }\n </td>\n }\n @if(AllowDeletePermissions) {\n <td>\n <button mjButton (click)=\"deletePermission(p)\"><span class=\"fa-solid fa-trash-can\"></span></button>\n </td>\n }\n </tr> \n }\n </tbody>\n </table>\n </div>\n</div>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-resource-permissions",
3
- "version": "5.24.0",
3
+ "version": "5.26.0",
4
4
  "description": "MemberJunction: Generic Angular components for displaying/editing permissions for a resource",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -27,15 +27,15 @@
27
27
  "@angular/router": "21.1.3"
28
28
  },
29
29
  "dependencies": {
30
- "@memberjunction/core": "5.24.0",
31
- "@memberjunction/core-entities": "5.24.0",
32
- "@memberjunction/global": "5.24.0",
33
- "@memberjunction/ng-base-types": "5.24.0",
34
- "@memberjunction/ng-container-directives": "5.24.0",
35
- "@memberjunction/ng-generic-dialog": "5.24.0",
36
- "@memberjunction/ng-notifications": "5.24.0",
37
- "@memberjunction/ng-shared-generic": "5.24.0",
38
- "@memberjunction/ng-ui-components": "5.24.0",
30
+ "@memberjunction/core": "5.26.0",
31
+ "@memberjunction/core-entities": "5.26.0",
32
+ "@memberjunction/global": "5.26.0",
33
+ "@memberjunction/ng-base-types": "5.26.0",
34
+ "@memberjunction/ng-container-directives": "5.26.0",
35
+ "@memberjunction/ng-generic-dialog": "5.26.0",
36
+ "@memberjunction/ng-notifications": "5.26.0",
37
+ "@memberjunction/ng-shared-generic": "5.26.0",
38
+ "@memberjunction/ng-ui-components": "5.26.0",
39
39
  "ag-grid-angular": "^35.0.1",
40
40
  "ag-grid-community": "^35.0.1",
41
41
  "tslib": "^2.8.1"