@memberjunction/ng-resource-permissions 2.20.2 → 2.20.3

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.
@@ -39,8 +39,24 @@ export declare class ResourcePermissionsComponent extends BaseAngularComponent i
39
39
  * Allows you to determine if the user is able to delete existing permissions for the resource.
40
40
  */
41
41
  AllowDeletePermissions: boolean;
42
- permissionLevels: string[];
43
- permissionTypes: string[];
42
+ /**
43
+ * List of possible permission levels that can be set for the resource. An array of strings, defaults to ['View', 'Edit', 'Owner']
44
+ */
45
+ PermissionLevels: string[];
46
+ /**
47
+ * Specifies the types of permissions the UI will allow settings for. An array of strings, defaults to ['User', 'Role']
48
+ */
49
+ PermissionTypes: string[];
50
+ /**
51
+ * 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,
52
+ * 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.
53
+ */
54
+ ExcludedRoleNames: string[];
55
+ /**
56
+ * 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,
57
+ * but the user will not be able to add new permissions with these users. This is an array of strings with EMAILS.
58
+ */
59
+ ExcludedUserEmails: string[];
44
60
  AllUsers: UserEntity[];
45
61
  AllRoles: RoleInfo[];
46
62
  SelectedUser: UserEntity | null;
@@ -59,6 +75,6 @@ export declare class ResourcePermissionsComponent extends BaseAngularComponent i
59
75
  SavePermissions(): Promise<boolean>;
60
76
  protected GetEngine(): ResourcePermissionEngine;
61
77
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourcePermissionsComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<ResourcePermissionsComponent, "mj-resource-permissions", never, { "ResourceTypeID": { "alias": "ResourceTypeID"; "required": false; }; "ResourceRecordID": { "alias": "ResourceRecordID"; "required": false; }; "ShowSaveButton": { "alias": "ShowSaveButton"; "required": false; }; "ShowUserErrorMessages": { "alias": "ShowUserErrorMessages"; "required": false; }; "AllowAddPermissions": { "alias": "AllowAddPermissions"; "required": false; }; "AllowEditPermissions": { "alias": "AllowEditPermissions"; "required": false; }; "AllowDeletePermissions": { "alias": "AllowDeletePermissions"; "required": false; }; }, {}, never, never, false, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResourcePermissionsComponent, "mj-resource-permissions", never, { "ResourceTypeID": { "alias": "ResourceTypeID"; "required": false; }; "ResourceRecordID": { "alias": "ResourceRecordID"; "required": false; }; "ShowSaveButton": { "alias": "ShowSaveButton"; "required": false; }; "ShowUserErrorMessages": { "alias": "ShowUserErrorMessages"; "required": false; }; "AllowAddPermissions": { "alias": "AllowAddPermissions"; "required": false; }; "AllowEditPermissions": { "alias": "AllowEditPermissions"; "required": false; }; "AllowDeletePermissions": { "alias": "AllowDeletePermissions"; "required": false; }; "PermissionLevels": { "alias": "PermissionLevels"; "required": false; }; "PermissionTypes": { "alias": "PermissionTypes"; "required": false; }; "ExcludedRoleNames": { "alias": "ExcludedRoleNames"; "required": false; }; "ExcludedUserEmails": { "alias": "ExcludedUserEmails"; "required": false; }; }, {}, never, never, false, never>;
63
79
  }
64
80
  //# sourceMappingURL=resource-permissions.component.d.ts.map
@@ -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,wBAAwB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAGrE;;;GAGG;AACH,qBAKa,4BAA6B,SAAQ,oBAAqB,YAAW,aAAa;IAC7F;;OAEG;IACM,cAAc,EAAG,MAAM,CAAC;IACjC;;OAEG;IACM,gBAAgB,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BAAwB;yCApOpC,4BAA4B;2CAA5B,4BAA4B;CAuOxC"}
@@ -72,12 +72,12 @@ function ResourcePermissionsComponent_Conditional_4_Template(rf, ctx) { if (rf &
72
72
  } if (rf & 2) {
73
73
  const ctx_r1 = i0.ɵɵnextContext();
74
74
  i0.ɵɵadvance(3);
75
- i0.ɵɵproperty("data", ctx_r1.permissionTypes);
75
+ i0.ɵɵproperty("data", ctx_r1.PermissionTypes);
76
76
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SelectedType);
77
77
  i0.ɵɵadvance();
78
78
  i0.ɵɵconditional(ctx_r1.SelectedType === "User" ? 4 : ctx_r1.SelectedType === "Role" ? 5 : 6);
79
79
  i0.ɵɵadvance(3);
80
- i0.ɵɵproperty("data", ctx_r1.permissionLevels);
80
+ i0.ɵɵproperty("data", ctx_r1.PermissionLevels);
81
81
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SelectedPermissionLevel);
82
82
  i0.ɵɵadvance();
83
83
  i0.ɵɵproperty("disabled", ctx_r1.permissionAlreadyExists())("title", ctx_r1.permissionAlreadyExists() ? "This combination of Type/User/Role already exists below" : "");
@@ -96,7 +96,7 @@ function ResourcePermissionsComponent_For_17_Conditional_6_Template(rf, ctx) { i
96
96
  const p_r7 = i0.ɵɵnextContext().$implicit;
97
97
  const ctx_r1 = i0.ɵɵnextContext();
98
98
  i0.ɵɵtwoWayProperty("ngModel", p_r7.PermissionLevel);
99
- i0.ɵɵproperty("data", ctx_r1.permissionLevels);
99
+ i0.ɵɵproperty("data", ctx_r1.PermissionLevels);
100
100
  } }
101
101
  function ResourcePermissionsComponent_For_17_Conditional_7_Template(rf, ctx) { if (rf & 1) {
102
102
  i0.ɵɵtext(0);
@@ -165,9 +165,24 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
165
165
  * Allows you to determine if the user is able to delete existing permissions for the resource.
166
166
  */
167
167
  this.AllowDeletePermissions = true;
168
- // Define permission levels
169
- this.permissionLevels = ['View', 'Edit', 'Owner']; // these are the possible permission levels
170
- this.permissionTypes = ['User', 'Role'];
168
+ /**
169
+ * List of possible permission levels that can be set for the resource. An array of strings, defaults to ['View', 'Edit', 'Owner']
170
+ */
171
+ this.PermissionLevels = ['View', 'Edit', 'Owner']; // these are the possible permission levels
172
+ /**
173
+ * Specifies the types of permissions the UI will allow settings for. An array of strings, defaults to ['User', 'Role']
174
+ */
175
+ this.PermissionTypes = ['User', 'Role'];
176
+ /**
177
+ * 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,
178
+ * 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.
179
+ */
180
+ this.ExcludedRoleNames = [];
181
+ /**
182
+ * 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,
183
+ * but the user will not be able to add new permissions with these users. This is an array of strings with EMAILS.
184
+ */
185
+ this.ExcludedUserEmails = [];
171
186
  this.AllUsers = [];
172
187
  this.AllRoles = [];
173
188
  this.SelectedUser = null;
@@ -208,8 +223,10 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
208
223
  OrderBy: "Name",
209
224
  ExtraFilter: "IsActive=1"
210
225
  });
211
- this.AllUsers = result.Results;
212
- this.AllRoles = p.Roles;
226
+ // filter out any users that are in the ExcludedUserEmails list
227
+ this.AllUsers = result.Results.filter((u) => !this.ExcludedUserEmails.includes(u.Email));
228
+ // filter out any roles that are in the ExcludedRoleNames list
229
+ this.AllRoles = p.Roles.filter((r) => !this.ExcludedRoleNames.includes(r.Name));
213
230
  if (this.AllUsers.length > 0)
214
231
  this.SelectedUser = this.AllUsers[0];
215
232
  if (this.AllRoles.length > 0)
@@ -333,7 +350,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
333
350
  }
334
351
  }
335
352
  ResourcePermissionsComponent.ɵfac = /*@__PURE__*/ (() => { let ɵResourcePermissionsComponent_BaseFactory; return function ResourcePermissionsComponent_Factory(t) { return (ɵResourcePermissionsComponent_BaseFactory || (ɵResourcePermissionsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ResourcePermissionsComponent)))(t || ResourcePermissionsComponent); }; })();
336
- ResourcePermissionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourcePermissionsComponent, selectors: [["mj-resource-permissions"]], inputs: { ResourceTypeID: "ResourceTypeID", ResourceRecordID: "ResourceRecordID", ShowSaveButton: "ShowSaveButton", ShowUserErrorMessages: "ShowUserErrorMessages", AllowAddPermissions: "AllowAddPermissions", AllowEditPermissions: "AllowEditPermissions", AllowDeletePermissions: "AllowDeletePermissions" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 4, consts: [[1, "container"], ["kendoButton", ""], [1, "table-container"], [1, "add-permission-section"], [1, "resource-table"], ["kendoButton", "", 3, "click"], [1, "add-permission-label"], [2, "width", "100px", 3, "ngModelChange", "data", "ngModel"], ["textField", "Name", "valueField", "ID", 2, "width", "225px", 3, "data", "ngModel"], ["textField", "Name", "valueField", "ID", 2, "width", "150px", 3, "data", "ngModel"], ["kendoButton", "", 3, "click", "disabled", "title"], ["textField", "Name", "valueField", "ID", 2, "width", "225px", 3, "ngModelChange", "data", "ngModel"], ["textField", "Name", "valueField", "ID", 2, "width", "150px", 3, "ngModelChange", "data", "ngModel"], [2, "width", "100px", 3, "ngModel", "data"], [2, "width", "100px", 3, "ngModelChange", "ngModel", "data"], [1, "fa-solid", "fa-trash-can"]], template: function ResourcePermissionsComponent_Template(rf, ctx) { if (rf & 1) {
353
+ ResourcePermissionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourcePermissionsComponent, selectors: [["mj-resource-permissions"]], inputs: { ResourceTypeID: "ResourceTypeID", ResourceRecordID: "ResourceRecordID", ShowSaveButton: "ShowSaveButton", ShowUserErrorMessages: "ShowUserErrorMessages", AllowAddPermissions: "AllowAddPermissions", AllowEditPermissions: "AllowEditPermissions", AllowDeletePermissions: "AllowDeletePermissions", PermissionLevels: "PermissionLevels", PermissionTypes: "PermissionTypes", ExcludedRoleNames: "ExcludedRoleNames", ExcludedUserEmails: "ExcludedUserEmails" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 4, consts: [[1, "container"], ["kendoButton", ""], [1, "table-container"], [1, "add-permission-section"], [1, "resource-table"], ["kendoButton", "", 3, "click"], [1, "add-permission-label"], [2, "width", "100px", 3, "ngModelChange", "data", "ngModel"], ["textField", "Name", "valueField", "ID", 2, "width", "225px", 3, "data", "ngModel"], ["textField", "Name", "valueField", "ID", 2, "width", "150px", 3, "data", "ngModel"], ["kendoButton", "", 3, "click", "disabled", "title"], ["textField", "Name", "valueField", "ID", 2, "width", "225px", 3, "ngModelChange", "data", "ngModel"], ["textField", "Name", "valueField", "ID", 2, "width", "150px", 3, "ngModelChange", "data", "ngModel"], [2, "width", "100px", 3, "ngModel", "data"], [2, "width", "100px", 3, "ngModelChange", "ngModel", "data"], [1, "fa-solid", "fa-trash-can"]], template: function ResourcePermissionsComponent_Template(rf, ctx) { if (rf & 1) {
337
354
  i0.ɵɵelementStart(0, "div", 0);
338
355
  i0.ɵɵtemplate(1, ResourcePermissionsComponent_Conditional_1_Template, 1, 0, "kendo-loader")(2, ResourcePermissionsComponent_Conditional_2_Template, 2, 0, "button", 1);
339
356
  i0.ɵɵelementStart(3, "div", 2);
@@ -366,7 +383,7 @@ ResourcePermissionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
366
383
  } }, dependencies: [i1.NgControlStatus, i1.NgModel, i2.ButtonComponent, i3.DropDownListComponent, i4.LoaderComponent], styles: ["\n\n.container[_ngcontent-%COMP%] {\n max-width: 100%;\n}\n\n\n\n.table-container[_ngcontent-%COMP%] {\n max-height: 400px; \n\n overflow-y: auto;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n\n\n.resource-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n}\n\n.resource-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] {\n background-color: #f4f4f4;\n font-weight: bold;\n position: sticky;\n top: 0;\n z-index: 1;\n}\n\n.resource-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .resource-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 12px;\n text-align: left;\n border-bottom: 1px solid #ddd;\n}\n\n.resource-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background-color: #f8f8f8;\n}\n\n.resource-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even) {\n background-color: #f9f9f9;\n}\n\n.resource-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover {\n background-color: #f1f1f1;\n}\n\n\n\nbutton.k-button[_ngcontent-%COMP%] {\n background-color: #ff5252;\n color: white;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer;\n}\n\nbutton.k-button[_ngcontent-%COMP%]:hover {\n background-color: #ff1744;\n}\n\n.add-permission-label[_ngcontent-%COMP%] {\n margin-left: 5px;\n margin-right: 5px;\n font-weight: bold;\n}\n\n.add-permission-section[_ngcontent-%COMP%] {\n margin-top: 10px;\n margin-bottom: 10px;\n}"] });
367
384
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ResourcePermissionsComponent, [{
368
385
  type: Component,
369
- args: [{ selector: 'mj-resource-permissions', template: "<div class=\"container\">\n @if(_Loading) {\n <kendo-loader></kendo-loader>\n }\n @if(ShowSaveButton) {\n <button kendoButton (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 <kendo-dropdownlist \n [data]=\"permissionTypes\"\n [(ngModel)]=\"SelectedType\"\n style=\"width: 100px;\">\n </kendo-dropdownlist>\n @if (SelectedType === 'User') {\n <kendo-dropdownlist \n [data]=\"AllUsers\"\n [(ngModel)]=\"SelectedUser\"\n textField=\"Name\"\n valueField=\"ID\"\n style=\"width: 225px;\">\n </kendo-dropdownlist>\n }\n @else if (SelectedType === 'Role') {\n <kendo-dropdownlist \n [data]=\"AllRoles\"\n [(ngModel)]=\"SelectedRole\"\n textField=\"Name\"\n valueField=\"ID\"\n style=\"width: 150px;\">\n </kendo-dropdownlist>\n }\n @else {\n SelectedType: {{ SelectedType }}\n }\n <kendo-dropdownlist \n [data]=\"permissionLevels\"\n [(ngModel)]=\"SelectedPermissionLevel\"\n style=\"width: 100px;\">\n </kendo-dropdownlist>\n <button kendoButton (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 <th>Level</th>\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 <td>\n @if (AllowEditPermissions) {\n <kendo-dropdownlist \n [(ngModel)]=\"p.PermissionLevel\"\n [data]=\"permissionLevels\"\n style=\"width: 100px;\">\n </kendo-dropdownlist>\n }\n @else {\n {{ p.PermissionLevel }}\n }\n </td>\n @if(AllowDeletePermissions) {\n <td>\n <button kendoButton (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", styles: ["/* Container styling */\n.container {\n max-width: 100%;\n}\n\n/* Table container for vertical scrolling */\n.table-container {\n max-height: 400px; /* Adjust as needed */\n overflow-y: auto;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n/* Table styling */\n.resource-table {\n width: 100%;\n border-collapse: collapse;\n}\n\n.resource-table thead {\n background-color: #f4f4f4;\n font-weight: bold;\n position: sticky;\n top: 0;\n z-index: 1;\n}\n\n.resource-table th, .resource-table td {\n padding: 12px;\n text-align: left;\n border-bottom: 1px solid #ddd;\n}\n\n.resource-table th {\n background-color: #f8f8f8;\n}\n\n.resource-table tbody tr:nth-child(even) {\n background-color: #f9f9f9;\n}\n\n.resource-table tbody tr:hover {\n background-color: #f1f1f1;\n}\n\n/* Button styling */\nbutton.k-button {\n background-color: #ff5252;\n color: white;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer;\n}\n\nbutton.k-button:hover {\n background-color: #ff1744;\n}\n\n.add-permission-label {\n margin-left: 5px;\n margin-right: 5px;\n font-weight: bold;\n}\n\n.add-permission-section {\n margin-top: 10px;\n margin-bottom: 10px;\n}"] }]
386
+ args: [{ selector: 'mj-resource-permissions', template: "<div class=\"container\">\n @if(_Loading) {\n <kendo-loader></kendo-loader>\n }\n @if(ShowSaveButton) {\n <button kendoButton (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 <kendo-dropdownlist \n [data]=\"PermissionTypes\"\n [(ngModel)]=\"SelectedType\"\n style=\"width: 100px;\">\n </kendo-dropdownlist>\n @if (SelectedType === 'User') {\n <kendo-dropdownlist \n [data]=\"AllUsers\"\n [(ngModel)]=\"SelectedUser\"\n textField=\"Name\"\n valueField=\"ID\"\n style=\"width: 225px;\">\n </kendo-dropdownlist>\n }\n @else if (SelectedType === 'Role') {\n <kendo-dropdownlist \n [data]=\"AllRoles\"\n [(ngModel)]=\"SelectedRole\"\n textField=\"Name\"\n valueField=\"ID\"\n style=\"width: 150px;\">\n </kendo-dropdownlist>\n }\n @else {\n SelectedType: {{ SelectedType }}\n }\n <kendo-dropdownlist \n [data]=\"PermissionLevels\"\n [(ngModel)]=\"SelectedPermissionLevel\"\n style=\"width: 100px;\">\n </kendo-dropdownlist>\n <button kendoButton (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 <th>Level</th>\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 <td>\n @if (AllowEditPermissions) {\n <kendo-dropdownlist \n [(ngModel)]=\"p.PermissionLevel\"\n [data]=\"PermissionLevels\"\n style=\"width: 100px;\">\n </kendo-dropdownlist>\n }\n @else {\n {{ p.PermissionLevel }}\n }\n </td>\n @if(AllowDeletePermissions) {\n <td>\n <button kendoButton (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", styles: ["/* Container styling */\n.container {\n max-width: 100%;\n}\n\n/* Table container for vertical scrolling */\n.table-container {\n max-height: 400px; /* Adjust as needed */\n overflow-y: auto;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n/* Table styling */\n.resource-table {\n width: 100%;\n border-collapse: collapse;\n}\n\n.resource-table thead {\n background-color: #f4f4f4;\n font-weight: bold;\n position: sticky;\n top: 0;\n z-index: 1;\n}\n\n.resource-table th, .resource-table td {\n padding: 12px;\n text-align: left;\n border-bottom: 1px solid #ddd;\n}\n\n.resource-table th {\n background-color: #f8f8f8;\n}\n\n.resource-table tbody tr:nth-child(even) {\n background-color: #f9f9f9;\n}\n\n.resource-table tbody tr:hover {\n background-color: #f1f1f1;\n}\n\n/* Button styling */\nbutton.k-button {\n background-color: #ff5252;\n color: white;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer;\n}\n\nbutton.k-button:hover {\n background-color: #ff1744;\n}\n\n.add-permission-label {\n margin-left: 5px;\n margin-right: 5px;\n font-weight: bold;\n}\n\n.add-permission-section {\n margin-top: 10px;\n margin-bottom: 10px;\n}"] }]
370
387
  }], null, { ResourceTypeID: [{
371
388
  type: Input
372
389
  }], ResourceRecordID: [{
@@ -381,6 +398,14 @@ ResourcePermissionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
381
398
  type: Input
382
399
  }], AllowDeletePermissions: [{
383
400
  type: Input
401
+ }], PermissionLevels: [{
402
+ type: Input
403
+ }], PermissionTypes: [{
404
+ type: Input
405
+ }], ExcludedRoleNames: [{
406
+ type: Input
407
+ }], ExcludedUserEmails: [{
408
+ type: Input
384
409
  }] }); })();
385
410
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResourcePermissionsComponent, { className: "ResourcePermissionsComponent", filePath: "src/lib/resource-permissions.component.ts", lineNumber: 16 }); })();
386
411
  //# sourceMappingURL=resource-permissions.component.js.map
@@ -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,EAAwC,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;;;ICFrE,+BAA6B;;;;IAG7B,iCAAgD;IAA5B,gMAAS,wBAAiB,KAAC;IAAC,oBAAI;IAAA,iBAAS;;;;IAYvD,8C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yBAAyB;gBAQ1B,cAAc;kBAAtB,KAAK;YAIG,gBAAgB;kBAAxB,KAAK;YAMG,cAAc;kBAAtB,KAAK;YAKG,qBAAqB;kBAA7B,KAAK;YAIG,mBAAmB;kBAA3B,KAAK;YAIG,oBAAoB;kBAA5B,KAAK;YAIG,sBAAsB;kBAA9B,KAAK;;kFA/BK,4BAA4B"}
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,EAAwC,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;;;ICFrE,+BAA6B;;;;IAG7B,iCAAgD;IAA5B,gMAAS,wBAAiB,KAAC;IAAC,oBAAI;IAAA,iBAAS;;;;IAYvD,8CAKwB;IAHtB,wVAA0B;IAI5B,iBAAqB;;;IALnB,sCAAiB;IACjB,mDAA0B;;;;IAO5B,8CAKwB;IAHtB,wVAA0B;IAI5B,iBAAqB;;;IALnB,sCAAiB;IACjB,mDAA0B;;;IAO5B,YACF;;;IADE,kEACF;;;;IA1BA,AADF,8BAAoC,cACC;IAAA,8BAAc;IAAA,iBAAO;IACxD,6CAGwB;IADtB,yUAA0B;IAE5B,iBAAqB;IAmBrB,AATA,AATA,kHAA+B,qGASK,4EAS7B;IAGP,6CAGwB;IADtB,+VAAqC;IAEvC,iBAAqB;IACrB,kCAA2L;IAAvK,gMAAS,sBAAe,KAAC;IAA8I,mBAAG;IAChM,AADgM,iBAAS,EACnM;;;IA/BF,eAAwB;IAAxB,6CAAwB;IACxB,mDAA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B;kBAA7B,KAAK;YAIG,mBAAmB;kBAA3B,KAAK;YAIG,oBAAoB;kBAA5B,KAAK;YAIG,sBAAsB;kBAA9B,KAAK;YAKG,gBAAgB;kBAAxB,KAAK;YAKG,eAAe;kBAAvB,KAAK;YAMG,iBAAiB;kBAAzB,KAAK;YAMG,kBAAkB;kBAA1B,KAAK;;kFArDK,4BAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-resource-permissions",
3
- "version": "2.20.2",
3
+ "version": "2.20.3",
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",
@@ -25,13 +25,13 @@
25
25
  "@angular/router": "18.0.2"
26
26
  },
27
27
  "dependencies": {
28
- "@memberjunction/global": "2.20.2",
29
- "@memberjunction/core": "2.20.2",
30
- "@memberjunction/core-entities": "2.20.2",
31
- "@memberjunction/ng-container-directives": "2.20.2",
32
- "@memberjunction/ng-notifications": "2.20.2",
33
- "@memberjunction/ng-generic-dialog": "2.20.2",
34
- "@memberjunction/ng-base-types": "2.20.2",
28
+ "@memberjunction/global": "2.20.3",
29
+ "@memberjunction/core": "2.20.3",
30
+ "@memberjunction/core-entities": "2.20.3",
31
+ "@memberjunction/ng-container-directives": "2.20.3",
32
+ "@memberjunction/ng-notifications": "2.20.3",
33
+ "@memberjunction/ng-generic-dialog": "2.20.3",
34
+ "@memberjunction/ng-base-types": "2.20.3",
35
35
  "@progress/kendo-angular-dropdowns": "16.2.0",
36
36
  "@progress/kendo-angular-grid": "16.2.0",
37
37
  "@progress/kendo-angular-buttons": "16.2.0",