@memberjunction/ng-explorer-settings 1.0.9 → 1.0.11
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/application-entities-grid/application-entities-grid.component.d.ts +0 -2
- package/dist/lib/application-entities-grid/application-entities-grid.component.js +0 -2
- package/dist/lib/module.d.ts +8 -9
- package/dist/lib/module.js +5 -10
- package/dist/lib/single-application/single-application.component.d.ts +0 -2
- package/dist/lib/single-application/single-application.component.js +1 -3
- package/dist/lib/single-role/single-role.component.d.ts +0 -2
- package/dist/lib/single-role/single-role.component.js +8 -12
- package/dist/lib/single-user/single-user.component.d.ts +0 -2
- package/dist/lib/single-user/single-user.component.js +14 -19
- package/dist/lib/user-roles-grid/user-roles-grid.component.d.ts +0 -2
- package/dist/lib/user-roles-grid/user-roles-grid.component.js +1 -3
- package/package.json +12 -12
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
3
2
|
import { ApplicationEntity, ApplicationEntityEntity, EntityEntity } from '@memberjunction/core-entities';
|
|
4
3
|
import { Router } from '@angular/router';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -35,7 +34,6 @@ export declare class ApplicationEntitiesGridComponent implements OnInit, OnChang
|
|
|
35
34
|
* The user record we are working with, required if Mode is 'Entities'
|
|
36
35
|
*/
|
|
37
36
|
EntityRecord: EntityEntity | null;
|
|
38
|
-
kendoSVGIcon: typeof kendoSVGIcon;
|
|
39
37
|
constructor(router: Router);
|
|
40
38
|
ngOnInit(): void;
|
|
41
39
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -15,7 +15,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
15
15
|
};
|
|
16
16
|
import { Component, Input } from '@angular/core';
|
|
17
17
|
import { BaseEntity, Metadata, RunView } from '@memberjunction/core';
|
|
18
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
19
18
|
import { ApplicationEntityEntity } from '@memberjunction/core-entities';
|
|
20
19
|
import { RegisterClass } from '@memberjunction/global';
|
|
21
20
|
import * as i0 from "@angular/core";
|
|
@@ -162,7 +161,6 @@ export class ApplicationEntitiesGridComponent {
|
|
|
162
161
|
* The user record we are working with, required if Mode is 'Entities'
|
|
163
162
|
*/
|
|
164
163
|
this.EntityRecord = null;
|
|
165
|
-
this.kendoSVGIcon = kendoSVGIcon;
|
|
166
164
|
}
|
|
167
165
|
ngOnInit() {
|
|
168
166
|
this.Refresh();
|
package/dist/lib/module.d.ts
CHANGED
|
@@ -13,16 +13,15 @@ import * as i11 from "@progress/kendo-angular-excel-export";
|
|
|
13
13
|
import * as i12 from "@memberjunction/ng-compare-records";
|
|
14
14
|
import * as i13 from "@memberjunction/ng-container-directives";
|
|
15
15
|
import * as i14 from "@progress/kendo-angular-buttons";
|
|
16
|
-
import * as i15 from "@progress/kendo-angular-
|
|
17
|
-
import * as i16 from "@
|
|
18
|
-
import * as i17 from "@memberjunction/ng-
|
|
19
|
-
import * as i18 from "@memberjunction/ng-
|
|
20
|
-
import * as i19 from "@
|
|
21
|
-
import * as i20 from "@
|
|
22
|
-
import * as i21 from "@memberjunction/ng-
|
|
23
|
-
import * as i22 from "@memberjunction/ng-simple-record-list";
|
|
16
|
+
import * as i15 from "@progress/kendo-angular-dropdowns";
|
|
17
|
+
import * as i16 from "@memberjunction/ng-entity-permissions";
|
|
18
|
+
import * as i17 from "@memberjunction/ng-tabstrip";
|
|
19
|
+
import * as i18 from "@memberjunction/ng-entity-form-dialog";
|
|
20
|
+
import * as i19 from "@progress/kendo-angular-indicators";
|
|
21
|
+
import * as i20 from "@memberjunction/ng-user-view-grid";
|
|
22
|
+
import * as i21 from "@memberjunction/ng-simple-record-list";
|
|
24
23
|
export declare class ExplorerSettingsModule {
|
|
25
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExplorerSettingsModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ExplorerSettingsModule, [typeof i1.SingleRoleComponent, typeof i2.SettingsComponent, typeof i3.UserRolesGridComponent, typeof i4.SingleUserComponent, typeof i5.SingleApplicationComponent, typeof i6.ApplicationEntitiesGridComponent], [typeof i7.CommonModule, typeof i8.GridModule, typeof i9.FormsModule, typeof i10.DialogsModule, typeof i11.ExcelExportModule, typeof i12.CompareRecordsModule, typeof i13.ContainerDirectivesModule, typeof i14.ButtonsModule, typeof i15.
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ExplorerSettingsModule, [typeof i1.SingleRoleComponent, typeof i2.SettingsComponent, typeof i3.UserRolesGridComponent, typeof i4.SingleUserComponent, typeof i5.SingleApplicationComponent, typeof i6.ApplicationEntitiesGridComponent], [typeof i7.CommonModule, typeof i8.GridModule, typeof i9.FormsModule, typeof i10.DialogsModule, typeof i11.ExcelExportModule, typeof i12.CompareRecordsModule, typeof i13.ContainerDirectivesModule, typeof i14.ButtonsModule, typeof i15.DropDownsModule, typeof i16.EntityPermissionsModule, typeof i17.MJTabStripModule, typeof i10.DialogsModule, typeof i18.EntityFormDialogModule, typeof i19.IndicatorsModule, typeof i20.UserViewGridModule, typeof i21.SimpleRecordListModule], [typeof i1.SingleRoleComponent, typeof i2.SettingsComponent, typeof i3.UserRolesGridComponent, typeof i4.SingleUserComponent, typeof i5.SingleApplicationComponent, typeof i6.ApplicationEntitiesGridComponent]>;
|
|
27
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<ExplorerSettingsModule>;
|
|
28
27
|
}
|
package/dist/lib/module.js
CHANGED
|
@@ -6,7 +6,6 @@ import { GridModule } from '@progress/kendo-angular-grid';
|
|
|
6
6
|
import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
|
|
7
7
|
import { DialogsModule } from "@progress/kendo-angular-dialog";
|
|
8
8
|
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
9
|
-
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
10
9
|
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
11
10
|
import { IndicatorsModule } from '@progress/kendo-angular-indicators';
|
|
12
11
|
import { CompareRecordsModule } from '@memberjunction/ng-compare-records';
|
|
@@ -25,11 +24,10 @@ import { MJTabStripModule } from '@memberjunction/ng-tabstrip';
|
|
|
25
24
|
import * as i0 from "@angular/core";
|
|
26
25
|
import * as i1 from "@angular/common";
|
|
27
26
|
import * as i2 from "@memberjunction/ng-container-directives";
|
|
28
|
-
import * as i3 from "@
|
|
29
|
-
import * as i4 from "@memberjunction/ng-
|
|
30
|
-
import * as i5 from "@memberjunction/ng-
|
|
31
|
-
import * as i6 from "@
|
|
32
|
-
import * as i7 from "@progress/kendo-angular-indicators";
|
|
27
|
+
import * as i3 from "@memberjunction/ng-entity-permissions";
|
|
28
|
+
import * as i4 from "@memberjunction/ng-tabstrip";
|
|
29
|
+
import * as i5 from "@memberjunction/ng-entity-form-dialog";
|
|
30
|
+
import * as i6 from "@progress/kendo-angular-indicators";
|
|
33
31
|
export class ExplorerSettingsModule {
|
|
34
32
|
}
|
|
35
33
|
ExplorerSettingsModule.ɵfac = function ExplorerSettingsModule_Factory(t) { return new (t || ExplorerSettingsModule)(); };
|
|
@@ -42,7 +40,6 @@ ExplorerSettingsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [C
|
|
|
42
40
|
CompareRecordsModule,
|
|
43
41
|
ContainerDirectivesModule,
|
|
44
42
|
ButtonsModule,
|
|
45
|
-
IconsModule,
|
|
46
43
|
DropDownsModule,
|
|
47
44
|
EntityPermissionsModule,
|
|
48
45
|
MJTabStripModule,
|
|
@@ -71,7 +68,6 @@ ExplorerSettingsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [C
|
|
|
71
68
|
CompareRecordsModule,
|
|
72
69
|
ContainerDirectivesModule,
|
|
73
70
|
ButtonsModule,
|
|
74
|
-
IconsModule,
|
|
75
71
|
DropDownsModule,
|
|
76
72
|
EntityPermissionsModule,
|
|
77
73
|
MJTabStripModule,
|
|
@@ -104,7 +100,6 @@ ExplorerSettingsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [C
|
|
|
104
100
|
CompareRecordsModule,
|
|
105
101
|
ContainerDirectivesModule,
|
|
106
102
|
ButtonsModule,
|
|
107
|
-
IconsModule,
|
|
108
103
|
DropDownsModule,
|
|
109
104
|
EntityPermissionsModule,
|
|
110
105
|
MJTabStripModule,
|
|
@@ -118,4 +113,4 @@ ExplorerSettingsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [C
|
|
|
118
113
|
SingleUserComponent,
|
|
119
114
|
SingleApplicationComponent,
|
|
120
115
|
ApplicationEntitiesGridComponent] }); })();
|
|
121
|
-
i0.ɵɵsetComponentScope(SingleRoleComponent, [i1.NgIf, i2.FillContainer, i3.
|
|
116
|
+
i0.ɵɵsetComponentScope(SingleRoleComponent, [i1.NgIf, i2.FillContainer, i3.EntityPermissionsGridComponent, i4.MJTabStripComponent, i4.MJTabBodyComponent, i4.MJTabComponent, i5.EntityFormDialog, i6.LoaderComponent, UserRolesGridComponent], []);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
3
2
|
import { ApplicationEntity } from '@memberjunction/core-entities';
|
|
4
3
|
import { EntityFormDialog } from '@memberjunction/ng-entity-form-dialog';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -10,7 +9,6 @@ export declare class SingleApplicationComponent implements OnInit {
|
|
|
10
9
|
gridHeight: number;
|
|
11
10
|
isLoading: boolean;
|
|
12
11
|
Record: ApplicationEntity | null;
|
|
13
|
-
kendoSVGIcon: typeof kendoSVGIcon;
|
|
14
12
|
showEntityEditingForm: boolean;
|
|
15
13
|
constructor(cdRef: ChangeDetectorRef);
|
|
16
14
|
ngOnInit(): void;
|
|
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
11
11
|
import { Metadata } from '@memberjunction/core';
|
|
12
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
import * as i1 from "@angular/common";
|
|
15
14
|
import * as i2 from "@memberjunction/ng-container-directives";
|
|
@@ -66,7 +65,6 @@ export class SingleApplicationComponent {
|
|
|
66
65
|
this.gridHeight = 750;
|
|
67
66
|
this.isLoading = false;
|
|
68
67
|
this.Record = null;
|
|
69
|
-
this.kendoSVGIcon = kendoSVGIcon;
|
|
70
68
|
this.showEntityEditingForm = false;
|
|
71
69
|
}
|
|
72
70
|
ngOnInit() {
|
|
@@ -133,4 +131,4 @@ SingleApplicationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
133
131
|
type: ViewChild,
|
|
134
132
|
args: ['entityForm']
|
|
135
133
|
}] }); })();
|
|
136
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleApplicationComponent, { className: "SingleApplicationComponent", filePath: "src/lib/single-application/single-application.component.ts", lineNumber:
|
|
134
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleApplicationComponent, { className: "SingleApplicationComponent", filePath: "src/lib/single-application/single-application.component.ts", lineNumber: 13 }); })();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
3
2
|
import { RoleEntity, UserRoleEntity } from '@memberjunction/core-entities';
|
|
4
3
|
import { EntityFormDialog } from '@memberjunction/ng-entity-form-dialog';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -24,7 +23,6 @@ export declare class SingleRoleComponent implements OnInit {
|
|
|
24
23
|
gridHeight: number;
|
|
25
24
|
isLoading: boolean;
|
|
26
25
|
RoleRecord: RoleEntity | null;
|
|
27
|
-
kendoSVGIcon: typeof kendoSVGIcon;
|
|
28
26
|
showEntityEditingForm: boolean;
|
|
29
27
|
constructor(cdRef: ChangeDetectorRef);
|
|
30
28
|
ngOnInit(): void;
|
|
@@ -15,7 +15,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
15
15
|
};
|
|
16
16
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
17
17
|
import { BaseEntity, Metadata } from '@memberjunction/core';
|
|
18
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
19
18
|
import { UserRoleEntity } from '@memberjunction/core-entities';
|
|
20
19
|
import { RegisterClass } from '@memberjunction/global';
|
|
21
20
|
import * as i0 from "@angular/core";
|
|
@@ -36,8 +35,8 @@ function SingleRoleComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
36
35
|
i0.ɵɵelementEnd();
|
|
37
36
|
i0.ɵɵelementStart(5, "td");
|
|
38
37
|
i0.ɵɵtext(6);
|
|
39
|
-
i0.ɵɵelementStart(7, "
|
|
40
|
-
i0.ɵɵlistener("click", function
|
|
38
|
+
i0.ɵɵelementStart(7, "span", 5);
|
|
39
|
+
i0.ɵɵlistener("click", function SingleRoleComponent_Conditional_2_Template_span_click_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.EditRecord()); });
|
|
41
40
|
i0.ɵɵelementEnd()()();
|
|
42
41
|
i0.ɵɵelementStart(8, "tr")(9, "th", 4);
|
|
43
42
|
i0.ɵɵtext(10, "Description");
|
|
@@ -72,10 +71,8 @@ function SingleRoleComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
72
71
|
} if (rf & 2) {
|
|
73
72
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
74
73
|
i0.ɵɵadvance(6);
|
|
75
|
-
i0.ɵɵtextInterpolate1("", ctx_r1.RoleRecord.Name, " ");
|
|
76
|
-
i0.ɵɵadvance();
|
|
77
|
-
i0.ɵɵproperty("icon", ctx_r1.kendoSVGIcon("pencil"));
|
|
78
|
-
i0.ɵɵadvance(5);
|
|
74
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.RoleRecord.Name, " ");
|
|
75
|
+
i0.ɵɵadvance(6);
|
|
79
76
|
i0.ɵɵtextInterpolate(ctx_r1.RoleRecord.Description);
|
|
80
77
|
i0.ɵɵadvance(5);
|
|
81
78
|
i0.ɵɵtextInterpolate(ctx_r1.RoleRecord.DirectoryID);
|
|
@@ -131,7 +128,6 @@ export class SingleRoleComponent {
|
|
|
131
128
|
this.gridHeight = 750;
|
|
132
129
|
this.isLoading = false;
|
|
133
130
|
this.RoleRecord = null;
|
|
134
|
-
this.kendoSVGIcon = kendoSVGIcon;
|
|
135
131
|
this.showEntityEditingForm = false;
|
|
136
132
|
}
|
|
137
133
|
ngOnInit() {
|
|
@@ -172,9 +168,9 @@ SingleRoleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleR
|
|
|
172
168
|
} if (rf & 2) {
|
|
173
169
|
let _t;
|
|
174
170
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.entityFormComponent = _t.first);
|
|
175
|
-
} }, inputs: { RoleName: "RoleName" }, decls: 5, vars: 8, consts: [["mjFillContainer", "", 1, "wrapper"], ["SectionName", "details", "Mode", "section", 3, "Record", "Visible", "AutoRevertOnCancel", "HandleSave", "Width", "Height", "close"], ["entityForm", ""], [1, "role-info-table"], ["scope", "row"], [1, "
|
|
171
|
+
} }, inputs: { RoleName: "RoleName" }, decls: 5, vars: 8, consts: [["mjFillContainer", "", 1, "wrapper"], ["SectionName", "details", "Mode", "section", 3, "Record", "Visible", "AutoRevertOnCancel", "HandleSave", "Width", "Height", "close"], ["entityForm", ""], [1, "role-info-table"], ["scope", "row"], [1, "fa-solid", "fa-pen-to-square", 3, "click"], ["mjFillContainer", "", 3, "bottomMargin"], ["Mode", "Roles", 3, "RoleName", "RoleRecord"], ["Mode", "Role", "mjFillContainer", "", 3, "RoleName", 4, "ngIf"], ["Mode", "Role", "mjFillContainer", "", 3, "RoleName"]], template: function SingleRoleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
176
172
|
i0.ɵɵelementStart(0, "div", 0);
|
|
177
|
-
i0.ɵɵtemplate(1, SingleRoleComponent_Conditional_1_Template, 1, 0, "kendo-loader")(2, SingleRoleComponent_Conditional_2_Template, 32,
|
|
173
|
+
i0.ɵɵtemplate(1, SingleRoleComponent_Conditional_1_Template, 1, 0, "kendo-loader")(2, SingleRoleComponent_Conditional_2_Template, 32, 8);
|
|
178
174
|
i0.ɵɵelementEnd();
|
|
179
175
|
i0.ɵɵelementStart(3, "mj-entity-form-dialog", 1, 2);
|
|
180
176
|
i0.ɵɵlistener("close", function SingleRoleComponent_Template_mj_entity_form_dialog_close_3_listener($event) { return ctx.onEntityFormClosed($event); });
|
|
@@ -189,11 +185,11 @@ SingleRoleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleR
|
|
|
189
185
|
} }, styles: [".wrapper[_ngcontent-%COMP%] {\n display: block;\n}\n\nbutton[_ngcontent-%COMP%] {\n margin-left: 5px;\n margin-top: 5px;\n width: 125px;\n}\n\n\n\n.role-name[_ngcontent-%COMP%] {\n font-weight: bold;\n font-size: 20px;\n margin-left: 5px;\n margin-top: 5px;\n}\n\n.role-info-table[_ngcontent-%COMP%] {\n width: 100%; \n\n border-collapse: collapse; \n\n margin-bottom: 10px;\n}\n\n.role-info-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n width: 150px; \n\n font-weight: bold; \n\n text-align: left; \n\n padding: 8px; \n\n border: none; \n\n background-color: transparent; \n\n}\n\n.role-info-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n text-align: left; \n\n padding: 8px; \n\n border: none; \n\n background-color: transparent; \n\n overflow: hidden; \n\n text-overflow: ellipsis; \n\n}\n\n\n\n.edit-icon[_ngcontent-%COMP%] {\n margin-left: 20px; \n vertical-align: middle;;\n cursor: pointer; \n\n}\n\n.edit-icon[_ngcontent-%COMP%]:hover {\n fill: #007bff; \n\n}"] });
|
|
190
186
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleRoleComponent, [{
|
|
191
187
|
type: Component,
|
|
192
|
-
args: [{ selector: 'mj-single-role', template: "<div mjFillContainer class=\"wrapper\">\n @if(isLoading) {\n <kendo-loader></kendo-loader> \n }\n @if(!isLoading && RoleRecord) {\n <table class=\"role-info-table\">\n <tbody>\n <tr>\n <th scope=\"row\">Role</th>\n <td
|
|
188
|
+
args: [{ selector: 'mj-single-role', template: "<div mjFillContainer class=\"wrapper\">\n @if(isLoading) {\n <kendo-loader></kendo-loader> \n }\n @if(!isLoading && RoleRecord) {\n <table class=\"role-info-table\">\n <tbody>\n <tr>\n <th scope=\"row\">Role</th>\n <td>\n {{RoleRecord.Name}}\n <span class=\"fa-solid fa-pen-to-square\" (click)=\"EditRecord()\"></span>\n </td>\n </tr>\n <tr>\n <th scope=\"row\">Description</th>\n <td>{{RoleRecord.Description}}</td>\n </tr>\n <tr>\n <th scope=\"row\">Directory ID</th>\n <td>{{RoleRecord.DirectoryID}}</td>\n </tr>\n <tr>\n <th scope=\"row\">SQL Name</th>\n <td>{{RoleRecord.SQLName}}</td>\n </tr>\n </tbody>\n </table> \n\n <mj-tabstrip mjFillContainer [bottomMargin]=\"150\">\n <mj-tab>\n Users\n </mj-tab>\n <mj-tab-body>\n <mj-user-roles-grid Mode=\"Roles\" [RoleName]=\"RoleName\" [RoleRecord]=\"RoleRecord\"></mj-user-roles-grid>\n </mj-tab-body>\n\n <mj-tab>\n Entity Permissions\n </mj-tab>\n <mj-tab-body>\n <mj-entity-permissions-grid *ngIf=\"RoleRecord && RoleRecord.Name\" Mode=\"Role\" [RoleName]=\"RoleRecord.Name\" mjFillContainer></mj-entity-permissions-grid>\n </mj-tab-body>\n </mj-tabstrip>\n }\n</div>\n \n<mj-entity-form-dialog #entityForm \n [Record]=\"RoleRecord\" \n SectionName=\"details\" \n Mode=\"section\" \n [Visible]=\"showEntityEditingForm\" \n [AutoRevertOnCancel]=\"true\"\n [HandleSave]=\"true\"\n [Width]=\"550\"\n [Height]=\"450\"\n (close)=\"onEntityFormClosed($event)\">\n</mj-entity-form-dialog>\n", styles: [".wrapper {\n display: block;\n}\n\nbutton {\n margin-left: 5px;\n margin-top: 5px;\n width: 125px;\n}\n\n\n\n.role-name {\n font-weight: bold;\n font-size: 20px;\n margin-left: 5px;\n margin-top: 5px;\n}\n\n.role-info-table {\n width: 100%; /* Take up the full width of the container */\n border-collapse: collapse; /* For a cleaner look */\n margin-bottom: 10px;\n}\n\n.role-info-table th {\n width: 150px; /* Adjust this fixed width as needed */\n font-weight: bold; /* Make header labels bold */\n text-align: left; /* Align text to the left */\n padding: 8px; /* Add some padding for spacing */\n border: none; /* Removes the borders */\n background-color: transparent; /* Removes any background color */\n}\n\n.role-info-table td {\n text-align: left; /* Align text to the left */\n padding: 8px; /* Add some padding for spacing */\n border: none; /* Removes the borders */\n background-color: transparent; /* Removes any background color */\n overflow: hidden; /* Prevents content from overflowing */\n text-overflow: ellipsis; /* Adds an ellipsis if the text overflows */\n}\n\n/* Style for SVG icon */\n.edit-icon {\n margin-left: 20px; \n vertical-align: middle;;\n cursor: pointer; /* Changes the cursor to a pointer */\n}\n\n.edit-icon:hover {\n fill: #007bff; /* Changes the color on hover, set to the color you prefer */\n}"] }]
|
|
193
189
|
}], () => [{ type: i0.ChangeDetectorRef }], { RoleName: [{
|
|
194
190
|
type: Input
|
|
195
191
|
}], entityFormComponent: [{
|
|
196
192
|
type: ViewChild,
|
|
197
193
|
args: ['entityForm']
|
|
198
194
|
}] }); })();
|
|
199
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleRoleComponent, { className: "SingleRoleComponent", filePath: "src/lib/single-role/single-role.component.ts", lineNumber:
|
|
195
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleRoleComponent, { className: "SingleRoleComponent", filePath: "src/lib/single-role/single-role.component.ts", lineNumber: 48 }); })();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { RunViewParams } from '@memberjunction/core';
|
|
3
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
4
3
|
import { UserEntity } from '@memberjunction/core-entities';
|
|
5
4
|
import { EntityFormDialog } from '@memberjunction/ng-entity-form-dialog';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,7 +11,6 @@ export declare class SingleUserComponent implements OnInit {
|
|
|
12
11
|
isLoading: boolean;
|
|
13
12
|
UserRecord: UserEntity | null;
|
|
14
13
|
UserViewsParams: RunViewParams | undefined;
|
|
15
|
-
kendoSVGIcon: typeof kendoSVGIcon;
|
|
16
14
|
showEntityEditingForm: boolean;
|
|
17
15
|
constructor(cdRef: ChangeDetectorRef);
|
|
18
16
|
ngOnInit(): void;
|
|
@@ -9,16 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
11
11
|
import { Metadata } from '@memberjunction/core';
|
|
12
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
import * as i1 from "@angular/common";
|
|
15
14
|
import * as i2 from "@memberjunction/ng-container-directives";
|
|
16
|
-
import * as i3 from "@
|
|
17
|
-
import * as i4 from "@memberjunction/ng-
|
|
18
|
-
import * as i5 from "@
|
|
19
|
-
import * as i6 from "@
|
|
20
|
-
import * as i7 from "
|
|
21
|
-
import * as i8 from "../user-roles-grid/user-roles-grid.component";
|
|
15
|
+
import * as i3 from "@memberjunction/ng-tabstrip";
|
|
16
|
+
import * as i4 from "@memberjunction/ng-entity-form-dialog";
|
|
17
|
+
import * as i5 from "@progress/kendo-angular-indicators";
|
|
18
|
+
import * as i6 from "@memberjunction/ng-user-view-grid";
|
|
19
|
+
import * as i7 from "../user-roles-grid/user-roles-grid.component";
|
|
22
20
|
const _c0 = ["entityForm"];
|
|
23
21
|
function SingleUserComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
24
22
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -38,8 +36,8 @@ function SingleUserComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
38
36
|
i0.ɵɵelementEnd();
|
|
39
37
|
i0.ɵɵelementStart(6, "td");
|
|
40
38
|
i0.ɵɵtext(7);
|
|
41
|
-
i0.ɵɵelementStart(8, "
|
|
42
|
-
i0.ɵɵlistener("click", function
|
|
39
|
+
i0.ɵɵelementStart(8, "span", 6);
|
|
40
|
+
i0.ɵɵlistener("click", function SingleUserComponent_div_2_Template_span_click_8_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.EditRecord()); });
|
|
43
41
|
i0.ɵɵelementEnd()()();
|
|
44
42
|
i0.ɵɵelementStart(9, "tr")(10, "th", 5);
|
|
45
43
|
i0.ɵɵtext(11, "First Name");
|
|
@@ -92,10 +90,8 @@ function SingleUserComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
92
90
|
} if (rf & 2) {
|
|
93
91
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
94
92
|
i0.ɵɵadvance(7);
|
|
95
|
-
i0.ɵɵ
|
|
96
|
-
i0.ɵɵadvance();
|
|
97
|
-
i0.ɵɵproperty("icon", ctx_r1.kendoSVGIcon("pencil"));
|
|
98
|
-
i0.ɵɵadvance(5);
|
|
93
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.UserRecord.Name, " ");
|
|
94
|
+
i0.ɵɵadvance(6);
|
|
99
95
|
i0.ɵɵtextInterpolate(ctx_r1.UserRecord.FirstName);
|
|
100
96
|
i0.ɵɵadvance(5);
|
|
101
97
|
i0.ɵɵtextInterpolate(ctx_r1.UserRecord.LastName);
|
|
@@ -120,7 +116,6 @@ export class SingleUserComponent {
|
|
|
120
116
|
this.gridHeight = 750;
|
|
121
117
|
this.isLoading = false;
|
|
122
118
|
this.UserRecord = null;
|
|
123
|
-
this.kendoSVGIcon = kendoSVGIcon;
|
|
124
119
|
this.showEntityEditingForm = false;
|
|
125
120
|
}
|
|
126
121
|
ngOnInit() {
|
|
@@ -157,9 +152,9 @@ SingleUserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleU
|
|
|
157
152
|
} if (rf & 2) {
|
|
158
153
|
let _t;
|
|
159
154
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.entityFormComponent = _t.first);
|
|
160
|
-
} }, inputs: { UserID: "UserID" }, decls: 5, vars: 8, consts: [["mjFillContainer", ""], [4, "ngIf"], ["SectionName", "details", "Mode", "section", 3, "Record", "Visible", "AutoRevertOnCancel", "HandleSave", "Width", "Height", "close"], ["entityForm", ""], [1, "info-table"], ["scope", "row"], [1, "
|
|
155
|
+
} }, inputs: { UserID: "UserID" }, decls: 5, vars: 8, consts: [["mjFillContainer", ""], [4, "ngIf"], ["SectionName", "details", "Mode", "section", 3, "Record", "Visible", "AutoRevertOnCancel", "HandleSave", "Width", "Height", "close"], ["entityForm", ""], [1, "info-table"], ["scope", "row"], [1, "fa-solid", "fa-pen-to-square", 3, "click"], [3, "TabSelected"], ["Mode", "Users", 3, "UserID", "UserRecord"], [1, "content"], [3, "Params", 4, "ngIf"], [3, "Params"]], template: function SingleUserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
161
156
|
i0.ɵɵelementStart(0, "div", 0);
|
|
162
|
-
i0.ɵɵtemplate(1, SingleUserComponent_div_1_Template, 2, 0, "div", 1)(2, SingleUserComponent_div_2_Template, 49,
|
|
157
|
+
i0.ɵɵtemplate(1, SingleUserComponent_div_1_Template, 2, 0, "div", 1)(2, SingleUserComponent_div_2_Template, 49, 11, "div", 1);
|
|
163
158
|
i0.ɵɵelementEnd();
|
|
164
159
|
i0.ɵɵelementStart(3, "mj-entity-form-dialog", 2, 3);
|
|
165
160
|
i0.ɵɵlistener("close", function SingleUserComponent_Template_mj_entity_form_dialog_close_3_listener($event) { return ctx.onEntityFormClosed($event); });
|
|
@@ -171,14 +166,14 @@ SingleUserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleU
|
|
|
171
166
|
i0.ɵɵproperty("ngIf", !ctx.isLoading && ctx.UserRecord);
|
|
172
167
|
i0.ɵɵadvance();
|
|
173
168
|
i0.ɵɵproperty("Record", ctx.UserRecord)("Visible", ctx.showEntityEditingForm)("AutoRevertOnCancel", true)("HandleSave", true)("Width", 550)("Height", 450);
|
|
174
|
-
} }, dependencies: [i1.NgIf, i2.FillContainer, i3.
|
|
169
|
+
} }, dependencies: [i1.NgIf, i2.FillContainer, i3.MJTabStripComponent, i3.MJTabBodyComponent, i3.MJTabComponent, i4.EntityFormDialog, i5.LoaderComponent, i6.UserViewGridComponent, i7.UserRolesGridComponent], styles: ["button[_ngcontent-%COMP%] {\n margin-left: 5px;\n margin-top: 5px;\n width: 125px;\n}\n\n\n\n.name[_ngcontent-%COMP%] {\n font-weight: bold;\n font-size: 20px;\n margin-left: 5px;\n margin-top: 5px;\n}\n\n.info-table[_ngcontent-%COMP%] {\n width: 100%; \n\n border-collapse: collapse; \n\n margin-bottom: 10px;\n}\n\n.info-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n width: 150px; \n\n font-weight: bold; \n\n text-align: left; \n\n padding: 8px; \n\n border: none; \n\n background-color: transparent; \n\n}\n\n.info-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n text-align: left; \n\n padding: 8px; \n\n border: none; \n\n background-color: transparent; \n\n overflow: hidden; \n\n text-overflow: ellipsis; \n\n}\n\n\n\n.edit-icon[_ngcontent-%COMP%] {\n margin-left: 20px; \n vertical-align: middle;;\n cursor: pointer; \n\n}\n\n.edit-icon[_ngcontent-%COMP%]:hover {\n fill: #007bff; \n\n}"] });
|
|
175
170
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleUserComponent, [{
|
|
176
171
|
type: Component,
|
|
177
|
-
args: [{ selector: 'mj-single-user', template: "<div mjFillContainer>\n <div *ngIf=\"isLoading\"><kendo-loader></kendo-loader></div>\n <div *ngIf=\"!isLoading && UserRecord\">\n <table class=\"info-table\">\n <tbody>\n <tr>\n <th scope=\"row\">User</th>\n <td
|
|
172
|
+
args: [{ selector: 'mj-single-user', template: "<div mjFillContainer>\n <div *ngIf=\"isLoading\"><kendo-loader></kendo-loader></div>\n <div *ngIf=\"!isLoading && UserRecord\">\n <table class=\"info-table\">\n <tbody>\n <tr>\n <th scope=\"row\">User</th>\n <td>\n {{UserRecord.Name}}\n <span class=\"fa-solid fa-pen-to-square\" (click)=\"EditRecord()\"></span>\n </td>\n </tr>\n <tr>\n <th scope=\"row\">First Name</th>\n <td>{{UserRecord.FirstName}}</td>\n </tr>\n <tr>\n <th scope=\"row\">Last Name</th>\n <td>{{UserRecord.LastName}}</td>\n </tr>\n <tr>\n <th scope=\"row\">Title</th>\n <td>{{UserRecord.Title}}</td>\n </tr>\n <tr>\n <th scope=\"row\">Email</th>\n <td>{{UserRecord.Email}}</td>\n </tr>\n <tr>\n <th scope=\"row\">Type</th>\n <td>{{UserRecord.Type}}</td>\n </tr>\n <tr>\n <th scope=\"row\">Is Active</th>\n <td>{{UserRecord.IsActive}}</td>\n </tr>\n </tbody>\n </table> \n <mj-tabstrip>\n <mj-tab [TabSelected]=\"true\">\n Roles\n </mj-tab>\n <mj-tab-body>\n <mj-user-roles-grid Mode=\"Users\" [UserID]=\"UserID\" [UserRecord]=\"UserRecord\"></mj-user-roles-grid>\n </mj-tab-body>\n\n <mj-tab>\n Views\n </mj-tab> \n <mj-tab-body> \n <div class=\"content\">\n <mj-user-view-grid *ngIf=\"UserViewsParams\" [Params]=\"UserViewsParams\"></mj-user-view-grid>\n </div>\n </mj-tab-body>\n </mj-tabstrip>\n </div>\n</div>\n\n\n<mj-entity-form-dialog #entityForm \n [Record]=\"UserRecord\" \n SectionName=\"details\" \n Mode=\"section\" \n [Visible]=\"showEntityEditingForm\" \n [AutoRevertOnCancel]=\"true\"\n [HandleSave]=\"true\"\n [Width]=\"550\"\n [Height]=\"450\"\n (close)=\"onEntityFormClosed($event)\">\n</mj-entity-form-dialog>\n", styles: ["button {\n margin-left: 5px;\n margin-top: 5px;\n width: 125px;\n}\n\n\n\n.name {\n font-weight: bold;\n font-size: 20px;\n margin-left: 5px;\n margin-top: 5px;\n}\n\n.info-table {\n width: 100%; /* Take up the full width of the container */\n border-collapse: collapse; /* For a cleaner look */\n margin-bottom: 10px;\n}\n\n.info-table th {\n width: 150px; /* Adjust this fixed width as needed */\n font-weight: bold; /* Make header labels bold */\n text-align: left; /* Align text to the left */\n padding: 8px; /* Add some padding for spacing */\n border: none; /* Removes the borders */\n background-color: transparent; /* Removes any background color */\n}\n\n.info-table td {\n text-align: left; /* Align text to the left */\n padding: 8px; /* Add some padding for spacing */\n border: none; /* Removes the borders */\n background-color: transparent; /* Removes any background color */\n overflow: hidden; /* Prevents content from overflowing */\n text-overflow: ellipsis; /* Adds an ellipsis if the text overflows */\n}\n\n/* Style for SVG icon */\n.edit-icon {\n margin-left: 20px; \n vertical-align: middle;;\n cursor: pointer; /* Changes the cursor to a pointer */\n}\n\n.edit-icon:hover {\n fill: #007bff; /* Changes the color on hover, set to the color you prefer */\n}"] }]
|
|
178
173
|
}], () => [{ type: i0.ChangeDetectorRef }], { UserID: [{
|
|
179
174
|
type: Input
|
|
180
175
|
}], entityFormComponent: [{
|
|
181
176
|
type: ViewChild,
|
|
182
177
|
args: ['entityForm']
|
|
183
178
|
}] }); })();
|
|
184
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleUserComponent, { className: "SingleUserComponent", filePath: "src/lib/single-user/single-user.component.ts", lineNumber:
|
|
179
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleUserComponent, { className: "SingleUserComponent", filePath: "src/lib/single-user/single-user.component.ts", lineNumber: 13 }); })();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
3
2
|
import { RoleEntity, UserEntity } from '@memberjunction/core-entities';
|
|
4
3
|
import { Router } from '@angular/router';
|
|
5
4
|
import { UserRoleEntity_Ext } from '../single-role/single-role.component';
|
|
@@ -25,7 +24,6 @@ export declare class UserRolesGridComponent implements OnInit, OnChanges {
|
|
|
25
24
|
* The user record we are working with, required if Mode is 'Users'
|
|
26
25
|
*/
|
|
27
26
|
UserRecord: UserEntity | null;
|
|
28
|
-
kendoSVGIcon: typeof kendoSVGIcon;
|
|
29
27
|
constructor(router: Router);
|
|
30
28
|
ngOnInit(): void;
|
|
31
29
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Component, Input } from '@angular/core';
|
|
11
11
|
import { Metadata, RunView } from '@memberjunction/core';
|
|
12
|
-
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
import * as i1 from "@angular/router";
|
|
15
14
|
import * as i2 from "@angular/common";
|
|
@@ -124,7 +123,6 @@ export class UserRolesGridComponent {
|
|
|
124
123
|
* The user record we are working with, required if Mode is 'Users'
|
|
125
124
|
*/
|
|
126
125
|
this.UserRecord = null;
|
|
127
|
-
this.kendoSVGIcon = kendoSVGIcon;
|
|
128
126
|
}
|
|
129
127
|
ngOnInit() {
|
|
130
128
|
this.Refresh();
|
|
@@ -317,4 +315,4 @@ UserRolesGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: User
|
|
|
317
315
|
}], UserRecord: [{
|
|
318
316
|
type: Input
|
|
319
317
|
}] }); })();
|
|
320
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserRolesGridComponent, { className: "UserRolesGridComponent", filePath: "src/lib/user-roles-grid/user-roles-grid.component.ts", lineNumber:
|
|
318
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserRolesGridComponent, { className: "UserRolesGridComponent", filePath: "src/lib/user-roles-grid/user-roles-grid.component.ts", lineNumber: 15 }); })();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-explorer-settings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "MemberJunction: Reusable Angular components for the settings section of the MJ Explorer App",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"@angular/router": "~17.2.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/core-entities": "^1.0.
|
|
29
|
-
"@memberjunction/global": "^1.0.
|
|
30
|
-
"@memberjunction/core": "^1.0.
|
|
31
|
-
"@memberjunction/ng-container-directives": "^1.0.
|
|
32
|
-
"@memberjunction/ng-shared": "^1.0.
|
|
33
|
-
"@memberjunction/ng-entity-permissions": "^1.0.
|
|
34
|
-
"@memberjunction/ng-base-forms": "^1.0.
|
|
35
|
-
"@memberjunction/ng-entity-form-dialog": "^1.0.
|
|
36
|
-
"@memberjunction/ng-user-view-grid": "^1.0.
|
|
37
|
-
"@memberjunction/ng-simple-record-list": "^1.0.
|
|
38
|
-
"@memberjunction/ng-tabstrip": "^1.0.
|
|
28
|
+
"@memberjunction/core-entities": "^1.0.11",
|
|
29
|
+
"@memberjunction/global": "^1.0.11",
|
|
30
|
+
"@memberjunction/core": "^1.0.11",
|
|
31
|
+
"@memberjunction/ng-container-directives": "^1.0.11",
|
|
32
|
+
"@memberjunction/ng-shared": "^1.0.11",
|
|
33
|
+
"@memberjunction/ng-entity-permissions": "^1.0.11",
|
|
34
|
+
"@memberjunction/ng-base-forms": "^1.0.11",
|
|
35
|
+
"@memberjunction/ng-entity-form-dialog": "^1.0.11",
|
|
36
|
+
"@memberjunction/ng-user-view-grid": "^1.0.11",
|
|
37
|
+
"@memberjunction/ng-simple-record-list": "^1.0.11",
|
|
38
|
+
"@memberjunction/ng-tabstrip": "^1.0.11",
|
|
39
39
|
"@progress/kendo-angular-dropdowns": "~15.1.0",
|
|
40
40
|
"@progress/kendo-angular-grid": "~15.1.0",
|
|
41
41
|
"@progress/kendo-angular-buttons": "~15.1.0",
|