@memberjunction/ng-resource-permissions 2.20.1 → 2.20.2
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.
|
@@ -47,6 +47,7 @@ export declare class ResourcePermissionsComponent extends BaseAngularComponent i
|
|
|
47
47
|
SelectedRole: RoleInfo | null;
|
|
48
48
|
SelectedType: 'User' | 'Role';
|
|
49
49
|
SelectedPermissionLevel: 'View' | 'Edit' | 'Owner';
|
|
50
|
+
_Loading: boolean;
|
|
50
51
|
UpdateResourceRecordID(ResourceRecordID: string): Promise<void>;
|
|
51
52
|
resourcePermissions: ResourcePermissionEntity[];
|
|
52
53
|
ngAfterViewInit(): Promise<void>;
|
|
@@ -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,EAAG,MAAM,CAAC;IACnC;;;;OAIG;IACM,cAAc,EAAE,OAAO,CAAS;IACzC;;;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;IAGzC,gBAAgB,WAA6B;IAE7C,eAAe,WAAoB;IAEnC,QAAQ,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EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAU;IAE5D,QAAQ,EAAE,OAAO,CAAS;IAEpB,sBAAsB,CAAC,gBAAgB,EAAE,MAAM;IAQrD,mBAAmB,EAAE,wBAAwB,EAAE,CAAM;IACtD,eAAe;IAgCrB,OAAO,CAAC,eAAe,CAAkC;IAClD,gBAAgB,CAAC,UAAU,EAAE,wBAAwB;IAK5D,OAAO,CAAC,YAAY,CAAkC;IACzC,aAAa;IAuBnB,uBAAuB,IAAI,OAAO;IAkB5B,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAwEhD,SAAS,CAAC,SAAS,IAAI,wBAAwB;yCAjNpC,4BAA4B;2CAA5B,4BAA4B;CAoNxC"}
|
|
@@ -16,53 +16,57 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
import * as i1 from "@angular/forms";
|
|
17
17
|
import * as i2 from "@progress/kendo-angular-buttons";
|
|
18
18
|
import * as i3 from "@progress/kendo-angular-dropdowns";
|
|
19
|
+
import * as i4 from "@progress/kendo-angular-indicators";
|
|
19
20
|
function ResourcePermissionsComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
i0.ɵɵelement(0, "kendo-loader");
|
|
22
|
+
} }
|
|
23
|
+
function ResourcePermissionsComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
20
24
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21
25
|
i0.ɵɵelementStart(0, "button", 5);
|
|
22
|
-
i0.ɵɵlistener("click", function
|
|
26
|
+
i0.ɵɵlistener("click", function ResourcePermissionsComponent_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SavePermissions()); });
|
|
23
27
|
i0.ɵɵtext(1, "Save");
|
|
24
28
|
i0.ɵɵelementEnd();
|
|
25
29
|
} }
|
|
26
|
-
function
|
|
30
|
+
function ResourcePermissionsComponent_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
27
31
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
28
32
|
i0.ɵɵelementStart(0, "kendo-dropdownlist", 11);
|
|
29
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
33
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ResourcePermissionsComponent_Conditional_4_Conditional_4_Template_kendo_dropdownlist_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.SelectedUser, $event) || (ctx_r1.SelectedUser = $event); return i0.ɵɵresetView($event); });
|
|
30
34
|
i0.ɵɵelementEnd();
|
|
31
35
|
} if (rf & 2) {
|
|
32
36
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
33
37
|
i0.ɵɵproperty("data", ctx_r1.AllUsers);
|
|
34
38
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SelectedUser);
|
|
35
39
|
} }
|
|
36
|
-
function
|
|
40
|
+
function ResourcePermissionsComponent_Conditional_4_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
37
41
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
38
42
|
i0.ɵɵelementStart(0, "kendo-dropdownlist", 12);
|
|
39
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
43
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ResourcePermissionsComponent_Conditional_4_Conditional_5_Template_kendo_dropdownlist_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.SelectedRole, $event) || (ctx_r1.SelectedRole = $event); return i0.ɵɵresetView($event); });
|
|
40
44
|
i0.ɵɵelementEnd();
|
|
41
45
|
} if (rf & 2) {
|
|
42
46
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
43
47
|
i0.ɵɵproperty("data", ctx_r1.AllRoles);
|
|
44
48
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SelectedRole);
|
|
45
49
|
} }
|
|
46
|
-
function
|
|
50
|
+
function ResourcePermissionsComponent_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
47
51
|
i0.ɵɵtext(0);
|
|
48
52
|
} if (rf & 2) {
|
|
49
53
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
50
54
|
i0.ɵɵtextInterpolate1(" SelectedType: ", ctx_r1.SelectedType, " ");
|
|
51
55
|
} }
|
|
52
|
-
function
|
|
56
|
+
function ResourcePermissionsComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
53
57
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
54
58
|
i0.ɵɵelementStart(0, "div", 3)(1, "span", 6);
|
|
55
59
|
i0.ɵɵtext(2, "Add Permission");
|
|
56
60
|
i0.ɵɵelementEnd();
|
|
57
61
|
i0.ɵɵelementStart(3, "kendo-dropdownlist", 7);
|
|
58
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
62
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ResourcePermissionsComponent_Conditional_4_Template_kendo_dropdownlist_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.SelectedType, $event) || (ctx_r1.SelectedType = $event); return i0.ɵɵresetView($event); });
|
|
59
63
|
i0.ɵɵelementEnd();
|
|
60
|
-
i0.ɵɵtemplate(4,
|
|
64
|
+
i0.ɵɵtemplate(4, ResourcePermissionsComponent_Conditional_4_Conditional_4_Template, 1, 2, "kendo-dropdownlist", 8)(5, ResourcePermissionsComponent_Conditional_4_Conditional_5_Template, 1, 2, "kendo-dropdownlist", 9)(6, ResourcePermissionsComponent_Conditional_4_Conditional_6_Template, 1, 1);
|
|
61
65
|
i0.ɵɵelementStart(7, "kendo-dropdownlist", 7);
|
|
62
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
66
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ResourcePermissionsComponent_Conditional_4_Template_kendo_dropdownlist_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.SelectedPermissionLevel, $event) || (ctx_r1.SelectedPermissionLevel = $event); return i0.ɵɵresetView($event); });
|
|
63
67
|
i0.ɵɵelementEnd();
|
|
64
68
|
i0.ɵɵelementStart(8, "button", 10);
|
|
65
|
-
i0.ɵɵlistener("click", function
|
|
69
|
+
i0.ɵɵlistener("click", function ResourcePermissionsComponent_Conditional_4_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.addPermission()); });
|
|
66
70
|
i0.ɵɵtext(9, "Add");
|
|
67
71
|
i0.ɵɵelementEnd()();
|
|
68
72
|
} if (rf & 2) {
|
|
@@ -78,15 +82,15 @@ function ResourcePermissionsComponent_Conditional_3_Template(rf, ctx) { if (rf &
|
|
|
78
82
|
i0.ɵɵadvance();
|
|
79
83
|
i0.ɵɵproperty("disabled", ctx_r1.permissionAlreadyExists())("title", ctx_r1.permissionAlreadyExists() ? "This combination of Type/User/Role already exists below" : "");
|
|
80
84
|
} }
|
|
81
|
-
function
|
|
85
|
+
function ResourcePermissionsComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
82
86
|
i0.ɵɵelementStart(0, "th");
|
|
83
87
|
i0.ɵɵtext(1, "Actions");
|
|
84
88
|
i0.ɵɵelementEnd();
|
|
85
89
|
} }
|
|
86
|
-
function
|
|
90
|
+
function ResourcePermissionsComponent_For_17_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
87
91
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
88
92
|
i0.ɵɵelementStart(0, "kendo-dropdownlist", 14);
|
|
89
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
93
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ResourcePermissionsComponent_For_17_Conditional_6_Template_kendo_dropdownlist_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const p_r7 = i0.ɵɵnextContext().$implicit; i0.ɵɵtwoWayBindingSet(p_r7.PermissionLevel, $event) || (p_r7.PermissionLevel = $event); return i0.ɵɵresetView($event); });
|
|
90
94
|
i0.ɵɵelementEnd();
|
|
91
95
|
} if (rf & 2) {
|
|
92
96
|
const p_r7 = i0.ɵɵnextContext().$implicit;
|
|
@@ -94,20 +98,20 @@ function ResourcePermissionsComponent_For_16_Conditional_6_Template(rf, ctx) { i
|
|
|
94
98
|
i0.ɵɵtwoWayProperty("ngModel", p_r7.PermissionLevel);
|
|
95
99
|
i0.ɵɵproperty("data", ctx_r1.permissionLevels);
|
|
96
100
|
} }
|
|
97
|
-
function
|
|
101
|
+
function ResourcePermissionsComponent_For_17_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
98
102
|
i0.ɵɵtext(0);
|
|
99
103
|
} if (rf & 2) {
|
|
100
104
|
const p_r7 = i0.ɵɵnextContext().$implicit;
|
|
101
105
|
i0.ɵɵtextInterpolate1(" ", p_r7.PermissionLevel, " ");
|
|
102
106
|
} }
|
|
103
|
-
function
|
|
107
|
+
function ResourcePermissionsComponent_For_17_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
104
108
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
105
109
|
i0.ɵɵelementStart(0, "td")(1, "button", 5);
|
|
106
|
-
i0.ɵɵlistener("click", function
|
|
110
|
+
i0.ɵɵlistener("click", function ResourcePermissionsComponent_For_17_Conditional_8_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r8); const p_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.deletePermission(p_r7)); });
|
|
107
111
|
i0.ɵɵelement(2, "span", 15);
|
|
108
112
|
i0.ɵɵelementEnd()();
|
|
109
113
|
} }
|
|
110
|
-
function
|
|
114
|
+
function ResourcePermissionsComponent_For_17_Template(rf, ctx) { if (rf & 1) {
|
|
111
115
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
112
116
|
i0.ɵɵtext(2);
|
|
113
117
|
i0.ɵɵelementEnd();
|
|
@@ -115,9 +119,9 @@ function ResourcePermissionsComponent_For_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
115
119
|
i0.ɵɵtext(4);
|
|
116
120
|
i0.ɵɵelementEnd();
|
|
117
121
|
i0.ɵɵelementStart(5, "td");
|
|
118
|
-
i0.ɵɵtemplate(6,
|
|
122
|
+
i0.ɵɵtemplate(6, ResourcePermissionsComponent_For_17_Conditional_6_Template, 1, 2, "kendo-dropdownlist", 13)(7, ResourcePermissionsComponent_For_17_Conditional_7_Template, 1, 1);
|
|
119
123
|
i0.ɵɵelementEnd();
|
|
120
|
-
i0.ɵɵtemplate(8,
|
|
124
|
+
i0.ɵɵtemplate(8, ResourcePermissionsComponent_For_17_Conditional_8_Template, 3, 0, "td");
|
|
121
125
|
i0.ɵɵelementEnd();
|
|
122
126
|
} if (rf & 2) {
|
|
123
127
|
const p_r7 = ctx.$implicit;
|
|
@@ -170,6 +174,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
170
174
|
this.SelectedRole = null;
|
|
171
175
|
this.SelectedType = 'Role';
|
|
172
176
|
this.SelectedPermissionLevel = 'View';
|
|
177
|
+
this._Loading = false;
|
|
173
178
|
this.resourcePermissions = [];
|
|
174
179
|
this._pendingDeletes = [];
|
|
175
180
|
this._pendingAdds = [];
|
|
@@ -188,6 +193,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
188
193
|
if (!this.ResourceTypeID || !this.ResourceRecordID) {
|
|
189
194
|
throw new Error('ResourceTypeID and ResourceRecordID must be set');
|
|
190
195
|
}
|
|
196
|
+
this._Loading = true;
|
|
191
197
|
// load up the current permissions for the specified ResourceTypeID and ResourceRecordID
|
|
192
198
|
const engine = this.GetEngine();
|
|
193
199
|
yield engine.Config(false, this.ProviderToUse.CurrentUser, this.ProviderToUse);
|
|
@@ -208,6 +214,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
208
214
|
this.SelectedUser = this.AllUsers[0];
|
|
209
215
|
if (this.AllRoles.length > 0)
|
|
210
216
|
this.SelectedRole = this.AllRoles[0];
|
|
217
|
+
this._Loading = false;
|
|
211
218
|
});
|
|
212
219
|
}
|
|
213
220
|
deletePermission(permission) {
|
|
@@ -258,13 +265,14 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
258
265
|
SavePermissions() {
|
|
259
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
260
267
|
// first delete any permissions that were marked for deletion
|
|
268
|
+
this._Loading = true;
|
|
261
269
|
const p = this.ProviderToUse;
|
|
262
270
|
const tg = yield p.CreateTransactionGroup();
|
|
263
271
|
for (const permission of this._pendingDeletes) {
|
|
264
272
|
if (permission.IsSaved) {
|
|
265
273
|
// only delete records previously saved, sometimes a user adds a new permission and deletes it before saving it
|
|
266
274
|
permission.TransactionGroup = tg;
|
|
267
|
-
if (!permission.Delete()) { //
|
|
275
|
+
if (!(yield 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
|
|
268
276
|
// validation errors come back here
|
|
269
277
|
if (this.ShowUserErrorMessages)
|
|
270
278
|
MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);
|
|
@@ -278,7 +286,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
278
286
|
if (this._pendingDeletes.includes(permission)) {
|
|
279
287
|
// don't save a permission record that is new, if it was also marked for deletion
|
|
280
288
|
permission.TransactionGroup = tg;
|
|
281
|
-
if (!permission.Save()) { // no await
|
|
289
|
+
if (!permission.Save()) { // no await on saves, use tg.Submit() below
|
|
282
290
|
// validation errors come back here
|
|
283
291
|
if (this.ShowUserErrorMessages)
|
|
284
292
|
MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);
|
|
@@ -292,7 +300,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
292
300
|
// make sure not in the delete array
|
|
293
301
|
if (!this._pendingDeletes.includes(permission)) {
|
|
294
302
|
permission.TransactionGroup = tg;
|
|
295
|
-
if (!permission.Save()) { // no await
|
|
303
|
+
if (!permission.Save()) { // no await on saves, use tg.Submit() below
|
|
296
304
|
// validation errors come back here
|
|
297
305
|
if (this.ShowUserErrorMessages)
|
|
298
306
|
MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error', 2500);
|
|
@@ -303,6 +311,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
303
311
|
}
|
|
304
312
|
// now save the changes
|
|
305
313
|
if (yield tg.Submit()) {
|
|
314
|
+
this._Loading = false;
|
|
306
315
|
this._pendingDeletes = [];
|
|
307
316
|
this._pendingAdds = [];
|
|
308
317
|
const engine = this.GetEngine();
|
|
@@ -311,6 +320,7 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
311
320
|
}
|
|
312
321
|
else {
|
|
313
322
|
// we had an error, show the user via SharedService
|
|
323
|
+
this._Loading = false;
|
|
314
324
|
if (this.ShowUserErrorMessages)
|
|
315
325
|
MJNotificationService.Instance.CreateSimpleNotification('Error saving permissions', 'error');
|
|
316
326
|
LogError('Error saving permissions in the transaction group');
|
|
@@ -323,38 +333,40 @@ export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
|
323
333
|
}
|
|
324
334
|
}
|
|
325
335
|
ResourcePermissionsComponent.ɵfac = /*@__PURE__*/ (() => { let ɵResourcePermissionsComponent_BaseFactory; return function ResourcePermissionsComponent_Factory(t) { return (ɵResourcePermissionsComponent_BaseFactory || (ɵResourcePermissionsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ResourcePermissionsComponent)))(t || ResourcePermissionsComponent); }; })();
|
|
326
|
-
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:
|
|
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) {
|
|
327
337
|
i0.ɵɵelementStart(0, "div", 0);
|
|
328
|
-
i0.ɵɵtemplate(1, ResourcePermissionsComponent_Conditional_1_Template, 2, 0, "button", 1);
|
|
329
|
-
i0.ɵɵelementStart(
|
|
330
|
-
i0.ɵɵtemplate(
|
|
331
|
-
i0.ɵɵelementStart(
|
|
332
|
-
i0.ɵɵtext(
|
|
338
|
+
i0.ɵɵtemplate(1, ResourcePermissionsComponent_Conditional_1_Template, 1, 0, "kendo-loader")(2, ResourcePermissionsComponent_Conditional_2_Template, 2, 0, "button", 1);
|
|
339
|
+
i0.ɵɵelementStart(3, "div", 2);
|
|
340
|
+
i0.ɵɵtemplate(4, ResourcePermissionsComponent_Conditional_4_Template, 10, 7, "div", 3);
|
|
341
|
+
i0.ɵɵelementStart(5, "table", 4)(6, "thead")(7, "tr")(8, "th");
|
|
342
|
+
i0.ɵɵtext(9, "Type");
|
|
333
343
|
i0.ɵɵelementEnd();
|
|
334
|
-
i0.ɵɵelementStart(
|
|
335
|
-
i0.ɵɵtext(
|
|
344
|
+
i0.ɵɵelementStart(10, "th");
|
|
345
|
+
i0.ɵɵtext(11, "Name");
|
|
336
346
|
i0.ɵɵelementEnd();
|
|
337
|
-
i0.ɵɵelementStart(
|
|
338
|
-
i0.ɵɵtext(
|
|
347
|
+
i0.ɵɵelementStart(12, "th");
|
|
348
|
+
i0.ɵɵtext(13, "Level");
|
|
339
349
|
i0.ɵɵelementEnd();
|
|
340
|
-
i0.ɵɵtemplate(
|
|
350
|
+
i0.ɵɵtemplate(14, ResourcePermissionsComponent_Conditional_14_Template, 2, 0, "th");
|
|
341
351
|
i0.ɵɵelementEnd()();
|
|
342
|
-
i0.ɵɵelementStart(
|
|
343
|
-
i0.ɵɵrepeaterCreate(
|
|
352
|
+
i0.ɵɵelementStart(15, "tbody");
|
|
353
|
+
i0.ɵɵrepeaterCreate(16, ResourcePermissionsComponent_For_17_Template, 9, 4, "tr", null, i0.ɵɵrepeaterTrackByIdentity);
|
|
344
354
|
i0.ɵɵelementEnd()()()();
|
|
345
355
|
} if (rf & 2) {
|
|
346
356
|
i0.ɵɵadvance();
|
|
347
|
-
i0.ɵɵconditional(ctx.
|
|
357
|
+
i0.ɵɵconditional(ctx._Loading ? 1 : -1);
|
|
358
|
+
i0.ɵɵadvance();
|
|
359
|
+
i0.ɵɵconditional(ctx.ShowSaveButton ? 2 : -1);
|
|
348
360
|
i0.ɵɵadvance(2);
|
|
349
|
-
i0.ɵɵconditional(ctx.AllowAddPermissions ?
|
|
361
|
+
i0.ɵɵconditional(ctx.AllowAddPermissions ? 4 : -1);
|
|
350
362
|
i0.ɵɵadvance(10);
|
|
351
|
-
i0.ɵɵconditional(ctx.AllowDeletePermissions ?
|
|
363
|
+
i0.ɵɵconditional(ctx.AllowDeletePermissions ? 14 : -1);
|
|
352
364
|
i0.ɵɵadvance(2);
|
|
353
365
|
i0.ɵɵrepeater(ctx.resourcePermissions);
|
|
354
|
-
} }, dependencies: [i1.NgControlStatus, i1.NgModel, i2.ButtonComponent, i3.DropDownListComponent], 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}"] });
|
|
366
|
+
} }, 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}"] });
|
|
355
367
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ResourcePermissionsComponent, [{
|
|
356
368
|
type: Component,
|
|
357
|
-
args: [{ selector: 'mj-resource-permissions', template: "<div class=\"container\">\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}"] }]
|
|
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}"] }]
|
|
358
370
|
}], null, { ResourceTypeID: [{
|
|
359
371
|
type: Input
|
|
360
372
|
}], ResourceRecordID: [{
|
|
@@ -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,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,AAPA,4GAA4B,qEAOrB;IAGT,iBAAK;IACL,wFAA6B;IAK/B,iBAAK;;;;IAnBC,eAAY;IAAZ,+BAAY;IACZ,eAAyC;IAAzC,kEAAyC;IAE3C,eASC;IATD,qDASC;IAEH,eAIC;IAJD,wDAIC;;
|
|
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,mDAA0B;IAG5B,cAoBC;IApBD,6FAoBC;IAEC,eAAyB;I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AC;YACf,CAAC;QACH,CAAC;KAAA;IAES,SAAS;QACjB,OAAiC,wBAAwB,CAAC,mBAAmB,CAAC,IAAI,CAAC,aAAa,EAAE,wBAAwB,CAAC,CAAC;IAC9H,CAAC;;+RAnNU,4BAA4B,SAA5B,4BAA4B;+EAA5B,4BAA4B;QCfzC,8BAAuB;QAIrB,AAHA,2FAAe,2EAGM;QAGrB,8BAA6B;QAC3B,sFAA0B;QAwCpB,AADF,AADF,AADF,gCAA8B,YACrB,SACD,SACE;QAAA,oBAAI;QAAA,iBAAK;QACb,2BAAI;QAAA,qBAAI;QAAA,iBAAK;QACb,2BAAI;QAAA,sBAAK;QAAA,iBAAK;QACd,mFAA6B;QAIjC,AADE,iBAAK,EACC;QACR,8BAAO;QACL,qHAsBC;QAIT,AADE,AADE,AADE,iBAAQ,EACF,EACJ,EACF;;QAlFJ,cAEC;QAFD,uCAEC;QACD,cAEC;QAFD,6CAEC;QAEC,eAoCC;QApCD,kDAoCC;QAOK,gBAEC;QAFD,sDAEC;QAIH,eAsBC;QAtBD,sCAsBC;;iFDhEI,4BAA4B;cALxC,SAAS;2BACE,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-resource-permissions",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.2",
|
|
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.
|
|
29
|
-
"@memberjunction/core": "2.20.
|
|
30
|
-
"@memberjunction/core-entities": "2.20.
|
|
31
|
-
"@memberjunction/ng-container-directives": "2.20.
|
|
32
|
-
"@memberjunction/ng-notifications": "2.20.
|
|
33
|
-
"@memberjunction/ng-generic-dialog": "2.20.
|
|
34
|
-
"@memberjunction/ng-base-types": "2.20.
|
|
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",
|
|
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",
|