@memberjunction/ng-resource-permissions 2.18.1 → 2.18.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.
- package/dist/lib/available-resources.component.d.ts +2 -1
- package/dist/lib/available-resources.component.d.ts.map +1 -1
- package/dist/lib/available-resources.component.js +10 -8
- package/dist/lib/available-resources.component.js.map +1 -1
- package/dist/lib/request-access.component.d.ts +2 -1
- package/dist/lib/request-access.component.d.ts.map +1 -1
- package/dist/lib/request-access.component.js +10 -8
- package/dist/lib/request-access.component.js.map +1 -1
- package/dist/lib/resource-permissions.component.d.ts +2 -1
- package/dist/lib/resource-permissions.component.d.ts.map +1 -1
- package/dist/lib/resource-permissions.component.js +14 -12
- package/dist/lib/resource-permissions.component.js.map +1 -1
- package/package.json +8 -7
|
@@ -2,13 +2,14 @@ import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { EntityFieldInfo, UserInfo } from '@memberjunction/core';
|
|
3
3
|
import { ResourcePermissionEntity } from '@memberjunction/core-entities';
|
|
4
4
|
import { ResourceData } from '@memberjunction/core-entities';
|
|
5
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
5
6
|
import { SelectionEvent } from '@progress/kendo-angular-grid';
|
|
6
7
|
import { GridComponent } from '@progress/kendo-angular-grid';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* This component displays a list of available resources for a user for a specific Resource Type.
|
|
10
11
|
*/
|
|
11
|
-
export declare class AvailableResourcesComponent implements AfterViewInit {
|
|
12
|
+
export declare class AvailableResourcesComponent extends BaseAngularComponent implements AfterViewInit {
|
|
12
13
|
User: UserInfo;
|
|
13
14
|
ResourceTypeID: string;
|
|
14
15
|
ResourceExtraFilter?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"available-resources.component.d.ts","sourceRoot":"","sources":["../../src/lib/available-resources.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,YAAY,EAA4B,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"available-resources.component.d.ts","sourceRoot":"","sources":["../../src/lib/available-resources.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,YAAY,EAA4B,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,eAAe,EAAW,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAA4B,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;;AAE7D;;GAEG;AACH,qBAKa,2BAA6B,SAAQ,oBAAqB,YAAW,aAAa;IAClF,IAAI,EAAG,QAAQ,CAAC;IAChB,cAAc,EAAG,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,QAAQ,GAAG,UAAU,CAAY;IAEzD;;OAEG;IACM,YAAY,EAAE,MAAM,CAAM;IAE1B,iBAAiB,EAAE,YAAY,EAAE,CAAM;IACtC,gBAAgB,+BAAsC;IAEzD,mBAAmB,EAAE,MAAM,EAAE,CAAM;IACnC,gBAAgB,EAAE,eAAe,EAAE,CAAM;IAEpB,aAAa,EAAG,aAAa,CAAC;IACnD,iBAAiB,CAAC,CAAC,EAAE,cAAc;IAcnC,mBAAmB,EAAE,wBAAwB,EAAE,CAAM;IACrD,SAAS,EAAE,YAAY,EAAE,CAAM;IAChC,eAAe;IAIrB;;OAEG;IACU,OAAO;yCAzCX,2BAA2B;2CAA3B,2BAA2B;CAgGvC"}
|
|
@@ -8,9 +8,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
11
|
-
import {
|
|
11
|
+
import { RunView } from '@memberjunction/core';
|
|
12
12
|
import { ResourcePermissionEngine } from '@memberjunction/core-entities';
|
|
13
13
|
import { ResourceData } from '@memberjunction/core-entities';
|
|
14
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
import * as i1 from "@progress/kendo-angular-grid";
|
|
16
17
|
const _c0 = ["resourcesGrid"];
|
|
@@ -50,8 +51,9 @@ function AvailableResourcesComponent_Conditional_1_Template(rf, ctx) { if (rf &
|
|
|
50
51
|
/**
|
|
51
52
|
* This component displays a list of available resources for a user for a specific Resource Type.
|
|
52
53
|
*/
|
|
53
|
-
export class AvailableResourcesComponent {
|
|
54
|
+
export class AvailableResourcesComponent extends BaseAngularComponent {
|
|
54
55
|
constructor() {
|
|
56
|
+
super(...arguments);
|
|
55
57
|
this.SelectionMode = 'Single';
|
|
56
58
|
/**
|
|
57
59
|
* Optional, comma-delimited list of field names to provide extra columns here to display in the grid. These columns will be displayed after the Name of the resource
|
|
@@ -99,11 +101,11 @@ export class AvailableResourcesComponent {
|
|
|
99
101
|
const rt = ResourcePermissionEngine.Instance.ResourceTypes.find(rt => rt.ID === this.ResourceTypeID);
|
|
100
102
|
if (!rt || !rt.EntityID)
|
|
101
103
|
throw new Error(`Resource Type ${this.ResourceTypeID} not found`);
|
|
102
|
-
const
|
|
103
|
-
const entity =
|
|
104
|
+
const p = this.ProviderToUse;
|
|
105
|
+
const entity = p.Entities.find(e => e.ID === rt.EntityID);
|
|
104
106
|
if (!entity || !entity.NameField)
|
|
105
107
|
throw new Error(`Entity ${rt.EntityID} not found, or no Name field defined`);
|
|
106
|
-
const rv = new RunView();
|
|
108
|
+
const rv = new RunView(this.RunViewToUse);
|
|
107
109
|
const nameField = entity.NameField;
|
|
108
110
|
if (this.ExtraColumns && this.ExtraColumns.length > 0) {
|
|
109
111
|
/// split the comma delim string and for each item find it in the EntityFields collection
|
|
@@ -137,13 +139,13 @@ export class AvailableResourcesComponent {
|
|
|
137
139
|
});
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
|
-
AvailableResourcesComponent.ɵfac = function AvailableResourcesComponent_Factory(t) { return
|
|
142
|
+
AvailableResourcesComponent.ɵfac = /*@__PURE__*/ (() => { let ɵAvailableResourcesComponent_BaseFactory; return function AvailableResourcesComponent_Factory(t) { return (ɵAvailableResourcesComponent_BaseFactory || (ɵAvailableResourcesComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AvailableResourcesComponent)))(t || AvailableResourcesComponent); }; })();
|
|
141
143
|
AvailableResourcesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AvailableResourcesComponent, selectors: [["mj-available-resources"]], viewQuery: function AvailableResourcesComponent_Query(rf, ctx) { if (rf & 1) {
|
|
142
144
|
i0.ɵɵviewQuery(_c0, 5);
|
|
143
145
|
} if (rf & 2) {
|
|
144
146
|
let _t;
|
|
145
147
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resourcesGrid = _t.first);
|
|
146
|
-
} }, inputs: { User: "User", ResourceTypeID: "ResourceTypeID", ResourceExtraFilter: "ResourceExtraFilter", SelectionMode: "SelectionMode", ExtraColumns: "ExtraColumns", SelectedResources: "SelectedResources" }, outputs: { SelectionChanged: "SelectionChanged" }, decls: 2, vars: 1, consts: [["resourcesGrid", ""], [1, "container"], ["kendoGridSelectBy", "ResourceRecordID", 2, "width", "100%", "max-height", "400px", 3, "data", "selectable", "selectedKeys"], ["kendoGridSelectBy", "ResourceRecordID", 2, "width", "100%", "max-height", "400px", 3, "selectionChange", "selectedKeysChange", "data", "selectable", "selectedKeys"], ["field", "Name", "title", "Name", 3, "width"], [3, "title"], ["kendoGridCellTemplate", ""]], template: function AvailableResourcesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
148
|
+
} }, inputs: { User: "User", ResourceTypeID: "ResourceTypeID", ResourceExtraFilter: "ResourceExtraFilter", SelectionMode: "SelectionMode", ExtraColumns: "ExtraColumns", SelectedResources: "SelectedResources" }, outputs: { SelectionChanged: "SelectionChanged" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [["resourcesGrid", ""], [1, "container"], ["kendoGridSelectBy", "ResourceRecordID", 2, "width", "100%", "max-height", "400px", 3, "data", "selectable", "selectedKeys"], ["kendoGridSelectBy", "ResourceRecordID", 2, "width", "100%", "max-height", "400px", 3, "selectionChange", "selectedKeysChange", "data", "selectable", "selectedKeys"], ["field", "Name", "title", "Name", 3, "width"], [3, "title"], ["kendoGridCellTemplate", ""]], template: function AvailableResourcesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
147
149
|
i0.ɵɵelementStart(0, "div", 1);
|
|
148
150
|
i0.ɵɵtemplate(1, AvailableResourcesComponent_Conditional_1_Template, 5, 6, "kendo-grid", 2);
|
|
149
151
|
i0.ɵɵelementEnd();
|
|
@@ -172,5 +174,5 @@ AvailableResourcesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
172
174
|
type: ViewChild,
|
|
173
175
|
args: ['resourcesGrid']
|
|
174
176
|
}] }); })();
|
|
175
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AvailableResourcesComponent, { className: "AvailableResourcesComponent", filePath: "src/lib/available-resources.component.ts", lineNumber:
|
|
177
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AvailableResourcesComponent, { className: "AvailableResourcesComponent", filePath: "src/lib/available-resources.component.ts", lineNumber: 17 }); })();
|
|
176
178
|
//# sourceMappingURL=available-resources.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"available-resources.component.js","sourceRoot":"","sources":["../../src/lib/available-resources.component.ts","../../src/lib/available-resources.component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAiB,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAmB,
|
|
1
|
+
{"version":3,"file":"available-resources.component.js","sourceRoot":"","sources":["../../src/lib/available-resources.component.ts","../../src/lib/available-resources.component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAiB,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAmB,OAAO,EAAY,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAA4B,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;;;;;ICa7C,YACJ;;;;IADI,uEACJ;;;IAHJ,4CAAmD;IAC/C,gHAAgD;IAGpD,iBAAoB;;;IAJD,gDAA+B;;;;IAb1D,wCAQG;IAJC,6NAAmB,gCAAyB,KAAC;IAG7C,wVAAsC;IAEtC,uCACoB;IAEpB,4IAMC;IACL,iBAAa;;;IAhBT,AADA,uCAAkB,mHACuE;IAIzF,+DAAsC;IAEO,eAAa;IAAb,2BAAa;IAG1D,cAMC;IAND,sCAMC;;ADZb;;GAEG;AAMH,MAAM,OAAO,2BAA6B,SAAQ,oBAAoB;IALtE;;QASa,kBAAa,GAA0B,QAAQ,CAAC;QAEzD;;WAEG;QACM,iBAAY,GAAW,EAAE,CAAC;QAE1B,sBAAiB,GAAmB,EAAE,CAAC;QACtC,qBAAgB,GAAG,IAAI,YAAY,EAAkB,CAAC;QAEzD,wBAAmB,GAAa,EAAE,CAAC;QACnC,qBAAgB,GAAsB,EAAE,CAAC;QAiBzC,wBAAmB,GAA+B,EAAE,CAAC;QACrD,cAAS,GAAmB,EAAE,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AwB;gBAKvB,IAAI;kBAAZ,KAAK;YACG,cAAc;kBAAtB,KAAK;YACG,mBAAmB;kBAA3B,KAAK;YACG,aAAa;kBAArB,KAAK;YAKG,YAAY;kBAApB,KAAK;YAEG,iBAAiB;kBAAzB,KAAK;YACI,gBAAgB;kBAAzB,MAAM;YAKqB,aAAa;kBAAxC,SAAS;mBAAC,eAAe;;kFAjBjB,2BAA2B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ResourcePermissionEntity, ResourceTypeEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Use this component to display to the user the ability to request access to a resource they do not own and do not currently have permission to access
|
|
6
7
|
*/
|
|
7
|
-
export declare class RequestResourceAccessComponent implements OnInit {
|
|
8
|
+
export declare class RequestResourceAccessComponent extends BaseAngularComponent implements OnInit {
|
|
8
9
|
/**
|
|
9
10
|
* The name of the resource type that the user is requesting access to
|
|
10
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-access.component.d.ts","sourceRoot":"","sources":["../../src/lib/request-access.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,MAAM,eAAe,CAAC;AAE/E,OAAO,EAA4B,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;;
|
|
1
|
+
{"version":3,"file":"request-access.component.d.ts","sourceRoot":"","sources":["../../src/lib/request-access.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,MAAM,eAAe,CAAC;AAE/E,OAAO,EAA4B,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACvH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAGrE;;GAEG;AACH,qBAKa,8BAAgC,SAAQ,oBAAqB,YAAW,MAAM;IACvF;;OAEG;IACM,YAAY,EAAG,MAAM,CAAC;IAE/B;;OAEG;IACM,YAAY,EAAE,MAAM,CAAI;IACjC;;OAEG;IACM,gBAAgB,EAAG,MAAM,CAAC;IAEnC;;OAEG;IACM,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAU;IAE7D;;OAEG;IACM,2BAA2B,EAAE,OAAO,CAAQ;IAE3C,eAAe,yCAAgD;IAEzE;;OAEG;IACI,kBAAkB,EAAG,kBAAkB,CAAC;IACxC,YAAY,EAAE,OAAO,CAAS;IAE/B,QAAQ;IASD,aAAa;yCA1CjB,8BAA8B;2CAA9B,8BAA8B;CA+D1C"}
|
|
@@ -8,8 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
11
|
-
import { LogError
|
|
11
|
+
import { LogError } from '@memberjunction/core';
|
|
12
12
|
import { ResourcePermissionEngine } from '@memberjunction/core-entities';
|
|
13
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
13
14
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
import * as i1 from "@angular/forms";
|
|
@@ -59,8 +60,9 @@ function RequestResourceAccessComponent_Conditional_11_Template(rf, ctx) { if (r
|
|
|
59
60
|
/**
|
|
60
61
|
* Use this component to display to the user the ability to request access to a resource they do not own and do not currently have permission to access
|
|
61
62
|
*/
|
|
62
|
-
export class RequestResourceAccessComponent {
|
|
63
|
+
export class RequestResourceAccessComponent extends BaseAngularComponent {
|
|
63
64
|
constructor() {
|
|
65
|
+
super(...arguments);
|
|
64
66
|
/**
|
|
65
67
|
* Optional, the name of the resource that the user is requesting access to that will be displayed to the user
|
|
66
68
|
*/
|
|
@@ -88,13 +90,13 @@ export class RequestResourceAccessComponent {
|
|
|
88
90
|
}
|
|
89
91
|
requestAccess() {
|
|
90
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
-
const
|
|
92
|
-
const permission = yield
|
|
93
|
+
const p = this.ProviderToUse;
|
|
94
|
+
const permission = yield p.GetEntityObject("Resource Permissions", p.CurrentUser);
|
|
93
95
|
permission.ResourceTypeID = this.ResourceTypeObject.ID;
|
|
94
96
|
permission.ResourceRecordID = this.ResourceRecordID;
|
|
95
97
|
permission.Status = 'Requested';
|
|
96
98
|
permission.Type = 'User';
|
|
97
|
-
permission.UserID =
|
|
99
|
+
permission.UserID = p.CurrentUser.ID;
|
|
98
100
|
permission.PermissionLevel = this.PermissionLevel;
|
|
99
101
|
if (yield permission.Save()) {
|
|
100
102
|
// worked, fire the event.
|
|
@@ -110,8 +112,8 @@ export class RequestResourceAccessComponent {
|
|
|
110
112
|
});
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
|
-
RequestResourceAccessComponent.ɵfac = function RequestResourceAccessComponent_Factory(t) { return
|
|
114
|
-
RequestResourceAccessComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RequestResourceAccessComponent, selectors: [["mj-request-resource-access"]], inputs: { ResourceType: "ResourceType", ResourceName: "ResourceName", ResourceRecordID: "ResourceRecordID", PermissionLevel: "PermissionLevel", ShowPermissionLevelDropdown: "ShowPermissionLevelDropdown" }, outputs: { AccessRequested: "AccessRequested" }, decls: 12, vars: 5, consts: [[1, "request-access-container"], [1, "request-icon"], [1, "fas", "fa-lock"], [1, "request-info"], [1, "request-actions"], ["for", "permissionLevel"], [3, "ngModelChange", "ngModel"], ["value", "View"], ["value", "Edit"], ["value", "Owner"], ["kendoButton", "", 1, "request-button", 3, "click"], [1, "fas", "fa-paper-plane"]], template: function RequestResourceAccessComponent_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
+
RequestResourceAccessComponent.ɵfac = /*@__PURE__*/ (() => { let ɵRequestResourceAccessComponent_BaseFactory; return function RequestResourceAccessComponent_Factory(t) { return (ɵRequestResourceAccessComponent_BaseFactory || (ɵRequestResourceAccessComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RequestResourceAccessComponent)))(t || RequestResourceAccessComponent); }; })();
|
|
116
|
+
RequestResourceAccessComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RequestResourceAccessComponent, selectors: [["mj-request-resource-access"]], inputs: { ResourceType: "ResourceType", ResourceName: "ResourceName", ResourceRecordID: "ResourceRecordID", PermissionLevel: "PermissionLevel", ShowPermissionLevelDropdown: "ShowPermissionLevelDropdown" }, outputs: { AccessRequested: "AccessRequested" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 5, consts: [[1, "request-access-container"], [1, "request-icon"], [1, "fas", "fa-lock"], [1, "request-info"], [1, "request-actions"], ["for", "permissionLevel"], [3, "ngModelChange", "ngModel"], ["value", "View"], ["value", "Edit"], ["value", "Owner"], ["kendoButton", "", 1, "request-button", 3, "click"], [1, "fas", "fa-paper-plane"]], template: function RequestResourceAccessComponent_Template(rf, ctx) { if (rf & 1) {
|
|
115
117
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
116
118
|
i0.ɵɵelement(2, "i", 2);
|
|
117
119
|
i0.ɵɵelementEnd();
|
|
@@ -151,5 +153,5 @@ RequestResourceAccessComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
151
153
|
}], AccessRequested: [{
|
|
152
154
|
type: Output
|
|
153
155
|
}] }); })();
|
|
154
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RequestResourceAccessComponent, { className: "RequestResourceAccessComponent", filePath: "src/lib/request-access.component.ts", lineNumber:
|
|
156
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RequestResourceAccessComponent, { className: "RequestResourceAccessComponent", filePath: "src/lib/request-access.component.ts", lineNumber: 15 }); })();
|
|
155
157
|
//# sourceMappingURL=request-access.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-access.component.js","sourceRoot":"","sources":["../../src/lib/request-access.component.ts","../../src/lib/request-access.component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"request-access.component.js","sourceRoot":"","sources":["../../src/lib/request-access.component.ts","../../src/lib/request-access.component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAY,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAgD,MAAM,+BAA+B,CAAC;AACvH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;ICIjE,yBAAG;IAAC,mGAAkF;IAAA,iBAAI;;;IAG1F,0BAAI;IAAA,+CAA+B;IAAA,iBAAK;IACxC,yBAAG;IAAC,2EAA0D;IAAA,iBAAI;;;;IAI9D,AADJ,4BAAM,eAC2B;IAAA,iCAAiB;IAAA,iBAAQ;IACtD,iCAAwC;IAAhC,sUAA+B;IACnC,iCAAqB;IAAA,oBAAI;IAAA,iBAAS;IAClC,iCAAqB;IAAA,oBAAI;IAAA,iBAAS;IAClC,iCAAsB;IAAA,qBAAK;IAEnC,AADI,AAD+B,iBAAS,EAC/B,EACN;;;IALK,eAA+B;IAA/B,sDAA+B;;;;IAUvC,AADJ,8BAA6B,iBAC4C;IAA1B,mMAAS,sBAAe,KAAC;IAClE,wBAAkC;IAAC,gCACrC;IACJ,AADI,iBAAS,EACP;;ADxBd;;GAEG;AAM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
|
import { RoleInfo } from '@memberjunction/core';
|
|
3
3
|
import { ResourcePermissionEntity, UserEntity } from '@memberjunction/core-entities';
|
|
4
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ResourcePermissionsComponent implements AfterViewInit {
|
|
6
|
+
export declare class ResourcePermissionsComponent extends BaseAngularComponent implements AfterViewInit {
|
|
6
7
|
ResourceTypeID: string;
|
|
7
8
|
ResourceRecordID: string;
|
|
8
9
|
ShowSaveButton: boolean;
|
|
@@ -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,
|
|
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,EAA4B,wBAAwB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AAGrE,qBAKa,4BAA6B,SAAQ,oBAAqB,YAAW,aAAa;IACpF,cAAc,EAAG,MAAM,CAAC;IACxB,gBAAgB,EAAG,MAAM,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAS;IAChC,qBAAqB,EAAE,OAAO,CAAS;IACvC,mBAAmB,EAAE,OAAO,CAAQ;IACpC,oBAAoB,EAAE,OAAO,CAAQ;IACrC,sBAAsB,EAAE,OAAO,CAAQ;IAGzC,gBAAgB,WAA6B;IAE7C,eAAe,WAAoB;IAEnC,QAAQ,EAAE,UAAU,EAAE,CAAM;IAC5B,QAAQ,EAAE,QAAQ,EAAE,CAAM;IAE1B,YAAY,EAAE,UAAU,GAAG,IAAI,CAAQ;IACvC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAQ;IACrC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAU;IACvC,uBAAuB,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAU;IAEtD,sBAAsB,CAAC,gBAAgB,EAAE,MAAM;IAQrD,mBAAmB,EAAE,wBAAwB,EAAE,CAAM;IACtD,eAAe;IAwBrB,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;yCAvGrC,4BAA4B;2CAA5B,4BAA4B;CAqJxC"}
|
|
@@ -8,8 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Component, Input } from '@angular/core';
|
|
11
|
-
import { LogError,
|
|
11
|
+
import { LogError, RunView } from '@memberjunction/core';
|
|
12
12
|
import { ResourcePermissionEngine } from '@memberjunction/core-entities';
|
|
13
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
13
14
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
import * as i1 from "@angular/forms";
|
|
@@ -130,8 +131,9 @@ function ResourcePermissionsComponent_For_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
130
131
|
i0.ɵɵadvance(2);
|
|
131
132
|
i0.ɵɵconditional(ctx_r1.AllowDeletePermissions ? 8 : -1);
|
|
132
133
|
} }
|
|
133
|
-
export class ResourcePermissionsComponent {
|
|
134
|
+
export class ResourcePermissionsComponent extends BaseAngularComponent {
|
|
134
135
|
constructor() {
|
|
136
|
+
super(...arguments);
|
|
135
137
|
this.ShowSaveButton = false;
|
|
136
138
|
this.ShowUserErrorMessages = false;
|
|
137
139
|
this.AllowAddPermissions = true;
|
|
@@ -166,8 +168,8 @@ export class ResourcePermissionsComponent {
|
|
|
166
168
|
// now we can get the permissions for the specified resource
|
|
167
169
|
const allResourcePermissions = ResourcePermissionEngine.Instance.GetResourcePermissions(this.ResourceTypeID, this.ResourceRecordID);
|
|
168
170
|
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.
|
|
169
|
-
const
|
|
170
|
-
const rv = new RunView();
|
|
171
|
+
const p = this.ProviderToUse;
|
|
172
|
+
const rv = new RunView(p);
|
|
171
173
|
const result = yield rv.RunView({
|
|
172
174
|
EntityName: "Users",
|
|
173
175
|
ResultType: "entity_object",
|
|
@@ -175,7 +177,7 @@ export class ResourcePermissionsComponent {
|
|
|
175
177
|
ExtraFilter: "IsActive=1"
|
|
176
178
|
});
|
|
177
179
|
this.AllUsers = result.Results;
|
|
178
|
-
this.AllRoles =
|
|
180
|
+
this.AllRoles = p.Roles;
|
|
179
181
|
if (this.AllUsers.length > 0)
|
|
180
182
|
this.SelectedUser = this.AllUsers[0];
|
|
181
183
|
if (this.AllRoles.length > 0)
|
|
@@ -188,8 +190,8 @@ export class ResourcePermissionsComponent {
|
|
|
188
190
|
}
|
|
189
191
|
addPermission() {
|
|
190
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
-
const
|
|
192
|
-
const permission = yield
|
|
193
|
+
const p = this.ProviderToUse;
|
|
194
|
+
const permission = yield p.GetEntityObject("Resource Permissions", p.CurrentUser);
|
|
193
195
|
permission.ResourceTypeID = this.ResourceTypeID;
|
|
194
196
|
permission.ResourceRecordID = this.ResourceRecordID;
|
|
195
197
|
permission.Type = this.SelectedType;
|
|
@@ -230,8 +232,8 @@ export class ResourcePermissionsComponent {
|
|
|
230
232
|
SavePermissions() {
|
|
231
233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
232
234
|
// first delete any permissions that were marked for deletion
|
|
233
|
-
const
|
|
234
|
-
const tg = yield
|
|
235
|
+
const p = this.ProviderToUse;
|
|
236
|
+
const tg = yield p.CreateTransactionGroup();
|
|
235
237
|
for (const permission of this._pendingDeletes) {
|
|
236
238
|
if (permission.IsSaved) {
|
|
237
239
|
// only delete records previously saved, sometimes a user adds a new permission and deletes it before saving it
|
|
@@ -272,8 +274,8 @@ export class ResourcePermissionsComponent {
|
|
|
272
274
|
});
|
|
273
275
|
}
|
|
274
276
|
}
|
|
275
|
-
ResourcePermissionsComponent.ɵfac = function ResourcePermissionsComponent_Factory(t) { return
|
|
276
|
-
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" }, decls: 17, vars: 3, 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) {
|
|
277
|
+
ResourcePermissionsComponent.ɵfac = /*@__PURE__*/ (() => { let ɵResourcePermissionsComponent_BaseFactory; return function ResourcePermissionsComponent_Factory(t) { return (ɵResourcePermissionsComponent_BaseFactory || (ɵResourcePermissionsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ResourcePermissionsComponent)))(t || ResourcePermissionsComponent); }; })();
|
|
278
|
+
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: 17, vars: 3, 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) {
|
|
277
279
|
i0.ɵɵelementStart(0, "div", 0);
|
|
278
280
|
i0.ɵɵtemplate(1, ResourcePermissionsComponent_Conditional_1_Template, 2, 0, "button", 1);
|
|
279
281
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -320,5 +322,5 @@ ResourcePermissionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
320
322
|
}], AllowDeletePermissions: [{
|
|
321
323
|
type: Input
|
|
322
324
|
}] }); })();
|
|
323
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResourcePermissionsComponent, { className: "ResourcePermissionsComponent", filePath: "src/lib/resource-permissions.component.ts", lineNumber:
|
|
325
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResourcePermissionsComponent, { className: "ResourcePermissionsComponent", filePath: "src/lib/resource-permissions.component.ts", lineNumber: 12 }); })();
|
|
324
326
|
//# 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,
|
|
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,iCAAgD;IAA5B,gMAAS,wBAAiB,KAAC;IAAC,oBAAI;IAAA,iBAAS;;;;IAYvD,8CAKwB;IAHtB,wVAA0B;IAI5B,iBAAqB;;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Ae,EAAE,CAAC,CAAC,gCAAgC;gBAC3F,OAAO,IAAI,CAAC;YACd,CAAC;iBACI,CAAC;gBACJ,mDAAmD;gBACnD,IAAI,IAAI,CAAC,qBAAqB;oBAC5B,qBAAqB,CAAC,QAAQ,CAAC,wBAAwB,CAAC,0BAA0B,EAAE,OAAO,CAAG,CAAC;gBAEjG,QAAQ,CAAC,mDAAmD,CAAC,CAAC;gBAC9D,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;;+RApJU,4BAA4B,SAA5B,4BAA4B;+EAA5B,4BAA4B;QCXzC,8BAAuB;QACrB,wFAAqB;QAGrB,8BAA6B;QAC3B,sFAA0B;QAwCpB,AADF,AADF,AADF,gCAA8B,YACrB,SACD,SACE;QAAA,oBAAI;QAAA,iBAAK;QACb,0BAAI;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;;QA/EJ,cAEC;QAFD,6CAEC;QAEC,eAoCC;QApCD,kDAoCC;QAOK,gBAEC;QAFD,sDAEC;QAIH,eAsBC;QAtBD,sCAsBC;;iFDjEI,4BAA4B;cALxC,SAAS;2BACE,yBAAyB;gBAK1B,cAAc;kBAAtB,KAAK;YACG,gBAAgB;kBAAxB,KAAK;YACG,cAAc;kBAAtB,KAAK;YACG,qBAAqB;kBAA7B,KAAK;YACG,mBAAmB;kBAA3B,KAAK;YACG,oBAAoB;kBAA5B,KAAK;YACG,sBAAsB;kBAA9B,KAAK;;kFAPK,4BAA4B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-resource-permissions",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.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,12 +25,13 @@
|
|
|
25
25
|
"@angular/router": "18.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/global": "2.18.
|
|
29
|
-
"@memberjunction/core": "2.18.
|
|
30
|
-
"@memberjunction/core-entities": "2.18.
|
|
31
|
-
"@memberjunction/ng-container-directives": "2.18.
|
|
32
|
-
"@memberjunction/ng-notifications": "2.18.
|
|
33
|
-
"@memberjunction/ng-generic-dialog": "2.18.
|
|
28
|
+
"@memberjunction/global": "2.18.2",
|
|
29
|
+
"@memberjunction/core": "2.18.2",
|
|
30
|
+
"@memberjunction/core-entities": "2.18.2",
|
|
31
|
+
"@memberjunction/ng-container-directives": "2.18.2",
|
|
32
|
+
"@memberjunction/ng-notifications": "2.18.2",
|
|
33
|
+
"@memberjunction/ng-generic-dialog": "2.18.2",
|
|
34
|
+
"@memberjunction/ng-base-types": "2.18.2",
|
|
34
35
|
"@progress/kendo-angular-dropdowns": "16.2.0",
|
|
35
36
|
"@progress/kendo-angular-grid": "16.2.0",
|
|
36
37
|
"@progress/kendo-angular-buttons": "16.2.0",
|