@memberjunction/ng-explorer-settings 0.9.9 → 0.9.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.
@@ -0,0 +1,33 @@
1
+ import { ViewContainerRef, EventEmitter } from '@angular/core';
2
+ import { BaseEntity } from '@memberjunction/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EntityFormDialog {
5
+ /**
6
+ * The title of the dialog
7
+ */
8
+ Title: string;
9
+ ShowSaveButton: boolean;
10
+ ShowCancelButton: boolean;
11
+ Width: number;
12
+ Height: number;
13
+ Mode: 'complete' | 'section';
14
+ SectionName: string;
15
+ Record: BaseEntity | null;
16
+ /**
17
+ * If true, when the user clicks the Save button, the Record will be saved. Only applicable if ShowSaveButton is true.
18
+ */
19
+ HandleSave: boolean;
20
+ /**
21
+ * If true, when the user clicks the Cancel button, the Record will be reverted to its original state. Only applicable if ShowCancelButton is true.
22
+ */
23
+ AutoRevertOnCancel: boolean;
24
+ close: EventEmitter<'Save' | 'Cancel'>;
25
+ private _visible;
26
+ set Visible(val: boolean);
27
+ get Visible(): boolean;
28
+ container: ViewContainerRef;
29
+ showForm(): void;
30
+ closeWindow(status: 'Save' | 'Cancel'): Promise<void>;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityFormDialog, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityFormDialog, "mj-entity-form-dialog", never, { "Title": { "alias": "Title"; "required": false; }; "ShowSaveButton": { "alias": "ShowSaveButton"; "required": false; }; "ShowCancelButton": { "alias": "ShowCancelButton"; "required": false; }; "Width": { "alias": "Width"; "required": false; }; "Height": { "alias": "Height"; "required": false; }; "Mode": { "alias": "Mode"; "required": false; }; "SectionName": { "alias": "SectionName"; "required": false; }; "Record": { "alias": "Record"; "required": false; }; "HandleSave": { "alias": "HandleSave"; "required": false; }; "AutoRevertOnCancel": { "alias": "AutoRevertOnCancel"; "required": false; }; "Visible": { "alias": "Visible"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
33
+ }
@@ -0,0 +1,183 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { Component, Input, Output, ViewChild, ViewContainerRef, EventEmitter } from '@angular/core';
11
+ import { SharedService } from '@memberjunction/ng-shared';
12
+ import { MJGlobal } from '@memberjunction/global';
13
+ import { BaseFormComponent, BaseFormSectionComponent } from '@memberjunction/ng-base-forms';
14
+ import * as i0 from "@angular/core";
15
+ import * as i1 from "@angular/common";
16
+ import * as i2 from "@progress/kendo-angular-dialog";
17
+ import * as i3 from "@progress/kendo-angular-buttons";
18
+ const _c0 = ["dynamicFormContainer"];
19
+ function EntityFormDialog_kendo_dialog_0_ng_template_1_Template(rf, ctx) { }
20
+ function EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_button_1_Template(rf, ctx) { if (rf & 1) {
21
+ const _r7 = i0.ɵɵgetCurrentView();
22
+ i0.ɵɵelementStart(0, "button", 6);
23
+ i0.ɵɵlistener("click", function EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r6.closeWindow("Save")); });
24
+ i0.ɵɵtext(1, "Save");
25
+ i0.ɵɵelementEnd();
26
+ } }
27
+ function EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_button_2_Template(rf, ctx) { if (rf & 1) {
28
+ const _r9 = i0.ɵɵgetCurrentView();
29
+ i0.ɵɵelementStart(0, "button", 7);
30
+ i0.ɵɵlistener("click", function EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r8.closeWindow("Cancel")); });
31
+ i0.ɵɵtext(1, "Cancel");
32
+ i0.ɵɵelementEnd();
33
+ } }
34
+ function EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_Template(rf, ctx) { if (rf & 1) {
35
+ i0.ɵɵelementStart(0, "kendo-dialog-actions");
36
+ i0.ɵɵtemplate(1, EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_button_1_Template, 2, 0, "button", 4)(2, EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_button_2_Template, 2, 0, "button", 5);
37
+ i0.ɵɵelementEnd();
38
+ } if (rf & 2) {
39
+ const ctx_r3 = i0.ɵɵnextContext(2);
40
+ i0.ɵɵadvance();
41
+ i0.ɵɵproperty("ngIf", ctx_r3.ShowSaveButton);
42
+ i0.ɵɵadvance();
43
+ i0.ɵɵproperty("ngIf", ctx_r3.ShowCancelButton);
44
+ } }
45
+ function EntityFormDialog_kendo_dialog_0_Template(rf, ctx) { if (rf & 1) {
46
+ const _r11 = i0.ɵɵgetCurrentView();
47
+ i0.ɵɵelementStart(0, "kendo-dialog", 1);
48
+ i0.ɵɵlistener("close", function EntityFormDialog_kendo_dialog_0_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.closeWindow("Cancel")); });
49
+ i0.ɵɵtemplate(1, EntityFormDialog_kendo_dialog_0_ng_template_1_Template, 0, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(3, EntityFormDialog_kendo_dialog_0_kendo_dialog_actions_3_Template, 3, 2, "kendo-dialog-actions", 3);
50
+ i0.ɵɵelementEnd();
51
+ } if (rf & 2) {
52
+ const ctx_r0 = i0.ɵɵnextContext();
53
+ i0.ɵɵproperty("title", ctx_r0.Title)("width", ctx_r0.Width)("height", ctx_r0.Height);
54
+ i0.ɵɵadvance(3);
55
+ i0.ɵɵproperty("ngIf", ctx_r0.ShowSaveButton || ctx_r0.ShowCancelButton);
56
+ } }
57
+ export class EntityFormDialog {
58
+ constructor() {
59
+ /**
60
+ * The title of the dialog
61
+ */
62
+ this.Title = '';
63
+ this.ShowSaveButton = true;
64
+ this.ShowCancelButton = true;
65
+ this.Width = 800;
66
+ this.Height = 600;
67
+ this.Mode = 'complete';
68
+ this.SectionName = '';
69
+ this.Record = null;
70
+ /**
71
+ * If true, when the user clicks the Save button, the Record will be saved. Only applicable if ShowSaveButton is true.
72
+ */
73
+ this.HandleSave = true;
74
+ /**
75
+ * If true, when the user clicks the Cancel button, the Record will be reverted to its original state. Only applicable if ShowCancelButton is true.
76
+ */
77
+ this.AutoRevertOnCancel = true;
78
+ this.close = new EventEmitter();
79
+ this._visible = false;
80
+ }
81
+ set Visible(val) {
82
+ this._visible = val;
83
+ if (val) {
84
+ Promise.resolve().then(() => {
85
+ // At this point, the DOM should be updated, and `this.container` should be available.
86
+ this.showForm();
87
+ });
88
+ }
89
+ }
90
+ get Visible() {
91
+ return this._visible;
92
+ }
93
+ showForm() {
94
+ var _a, _b;
95
+ if (!this.container)
96
+ throw new Error('Container not found');
97
+ if (!this.Record)
98
+ throw new Error('Record is a required property');
99
+ // Ensure the container is clear before inserting a new component
100
+ this.container.clear();
101
+ // here we want to grab the right type of object to instantiate based on the settings either mode of complete or section
102
+ // if section, we grab a sub-class of BaseFormSectionComponent, if complete, we grab a sub-class of the BaseForComponent class
103
+ let reg;
104
+ if (this.Mode === 'complete') {
105
+ reg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseFormComponent, (_a = this.Record) === null || _a === void 0 ? void 0 : _a.EntityInfo.Name);
106
+ }
107
+ else {
108
+ reg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseFormSectionComponent, ((_b = this.Record) === null || _b === void 0 ? void 0 : _b.EntityInfo.Name) + '.' + this.SectionName);
109
+ }
110
+ if (reg && reg.SubClass) {
111
+ // we have our class registration
112
+ const component = this.container.createComponent(reg.SubClass);
113
+ if (this.Record && component.instance instanceof BaseFormSectionComponent) {
114
+ component.instance.record = this.Record;
115
+ component.instance.EditMode = true;
116
+ }
117
+ else if (this.Record && component.instance instanceof BaseFormComponent) {
118
+ component.instance.record = this.Record;
119
+ component.instance.EditMode = true;
120
+ }
121
+ }
122
+ }
123
+ closeWindow(status) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ this.Visible = false;
126
+ if (this.Record) {
127
+ if (this.HandleSave && status === 'Save') {
128
+ if (!(yield this.Record.Save())) {
129
+ SharedService.Instance.CreateSimpleNotification(`Error saving ${this.Record.EntityInfo.Name} record, rolling back changes`, 'error');
130
+ this.Record.Revert();
131
+ }
132
+ }
133
+ if (this.AutoRevertOnCancel && status === 'Cancel') {
134
+ this.Record.Revert();
135
+ }
136
+ }
137
+ this.close.emit(status);
138
+ });
139
+ }
140
+ }
141
+ EntityFormDialog.ɵfac = function EntityFormDialog_Factory(t) { return new (t || EntityFormDialog)(); };
142
+ EntityFormDialog.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntityFormDialog, selectors: [["mj-entity-form-dialog"]], viewQuery: function EntityFormDialog_Query(rf, ctx) { if (rf & 1) {
143
+ i0.ɵɵviewQuery(_c0, 5, ViewContainerRef);
144
+ } if (rf & 2) {
145
+ let _t;
146
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
147
+ } }, inputs: { Title: "Title", ShowSaveButton: "ShowSaveButton", ShowCancelButton: "ShowCancelButton", Width: "Width", Height: "Height", Mode: "Mode", SectionName: "SectionName", Record: "Record", HandleSave: "HandleSave", AutoRevertOnCancel: "AutoRevertOnCancel", Visible: "Visible" }, outputs: { close: "close" }, decls: 1, vars: 1, consts: [[3, "title", "width", "height", "close", 4, "ngIf"], [3, "title", "width", "height", "close"], ["dynamicFormContainer", ""], [4, "ngIf"], ["kendoButton", "", "themeColor", "primary", 3, "click", 4, "ngIf"], ["kendoButton", "", 3, "click", 4, "ngIf"], ["kendoButton", "", "themeColor", "primary", 3, "click"], ["kendoButton", "", 3, "click"]], template: function EntityFormDialog_Template(rf, ctx) { if (rf & 1) {
148
+ i0.ɵɵtemplate(0, EntityFormDialog_kendo_dialog_0_Template, 4, 4, "kendo-dialog", 0);
149
+ } if (rf & 2) {
150
+ i0.ɵɵproperty("ngIf", ctx.Visible);
151
+ } }, dependencies: [i1.NgIf, i2.DialogComponent, i2.DialogActionsComponent, i3.ButtonComponent] });
152
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntityFormDialog, [{
153
+ type: Component,
154
+ args: [{ selector: 'mj-entity-form-dialog', template: "<kendo-dialog *ngIf=\"Visible\" \r\n [title]=\"Title\" \r\n [width]=\"Width\"\r\n [height]=\"Height\"\r\n (close)=\"closeWindow('Cancel')\" >\r\n <ng-template #dynamicFormContainer></ng-template>\r\n <kendo-dialog-actions *ngIf=\"ShowSaveButton || ShowCancelButton\">\r\n <button *ngIf=\"ShowSaveButton\" kendoButton (click)=\"closeWindow('Save')\" themeColor=\"primary\">Save</button>\r\n <button *ngIf=\"ShowCancelButton\" kendoButton (click)=\"closeWindow('Cancel')\">Cancel</button>\r\n </kendo-dialog-actions>\r\n</kendo-dialog>" }]
155
+ }], null, { Title: [{
156
+ type: Input
157
+ }], ShowSaveButton: [{
158
+ type: Input
159
+ }], ShowCancelButton: [{
160
+ type: Input
161
+ }], Width: [{
162
+ type: Input
163
+ }], Height: [{
164
+ type: Input
165
+ }], Mode: [{
166
+ type: Input
167
+ }], SectionName: [{
168
+ type: Input
169
+ }], Record: [{
170
+ type: Input
171
+ }], HandleSave: [{
172
+ type: Input
173
+ }], AutoRevertOnCancel: [{
174
+ type: Input
175
+ }], close: [{
176
+ type: Output
177
+ }], Visible: [{
178
+ type: Input
179
+ }], container: [{
180
+ type: ViewChild,
181
+ args: ['dynamicFormContainer', { read: ViewContainerRef }]
182
+ }] }); })();
183
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EntityFormDialog, { className: "EntityFormDialog", filePath: "src\\lib\\entity-form-dialog\\entity-form-dialog.component.ts", lineNumber: 15 }); })();
@@ -0,0 +1,17 @@
1
+ import { ViewContainerRef, EventEmitter } from '@angular/core';
2
+ import { BaseEntity } from '@memberjunction/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EntityFormWindow {
5
+ Mode: 'complete' | 'section';
6
+ SectionName: string;
7
+ Record: BaseEntity | null;
8
+ close: EventEmitter<void>;
9
+ private _visible;
10
+ set Visible(val: boolean);
11
+ get Visible(): boolean;
12
+ container: ViewContainerRef;
13
+ showForm(): void;
14
+ closeWindow(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityFormWindow, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityFormWindow, "mj-entity-form-window", never, { "Mode": { "alias": "Mode"; "required": false; }; "SectionName": { "alias": "SectionName"; "required": false; }; "Record": { "alias": "Record"; "required": false; }; "Visible": { "alias": "Visible"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
17
+ }
@@ -0,0 +1,99 @@
1
+ import { Component, Input, Output, ViewChild, ViewContainerRef, EventEmitter } from '@angular/core';
2
+ import { MJGlobal } from '@memberjunction/global';
3
+ import { BaseFormComponent, BaseFormSectionComponent } from '@memberjunction/ng-base-forms';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common";
6
+ import * as i2 from "@progress/kendo-angular-dialog";
7
+ const _c0 = ["dynamicFormContainer"];
8
+ function EntityFormWindow_div_0_ng_template_2_Template(rf, ctx) { }
9
+ function EntityFormWindow_div_0_Template(rf, ctx) { if (rf & 1) {
10
+ const _r4 = i0.ɵɵgetCurrentView();
11
+ i0.ɵɵelementStart(0, "div")(1, "kendo-window", 1);
12
+ i0.ɵɵlistener("close", function EntityFormWindow_div_0_Template_kendo_window_close_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.closeWindow()); });
13
+ i0.ɵɵtemplate(2, EntityFormWindow_div_0_ng_template_2_Template, 0, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
14
+ i0.ɵɵelementEnd()();
15
+ } }
16
+ export class EntityFormWindow {
17
+ constructor() {
18
+ this.Mode = 'complete';
19
+ this.SectionName = '';
20
+ this.Record = null;
21
+ this.close = new EventEmitter();
22
+ this._visible = false;
23
+ }
24
+ set Visible(val) {
25
+ this._visible = val;
26
+ if (val) {
27
+ Promise.resolve().then(() => {
28
+ // At this point, the DOM should be updated, and `this.container` should be available.
29
+ this.showForm();
30
+ });
31
+ }
32
+ }
33
+ get Visible() {
34
+ return this._visible;
35
+ }
36
+ showForm() {
37
+ var _a, _b;
38
+ if (!this.container)
39
+ throw new Error('Container not found');
40
+ if (!this.Record)
41
+ throw new Error('Record is a required property');
42
+ // Ensure the container is clear before inserting a new component
43
+ this.container.clear();
44
+ // here we want to grab the right type of object to instantiate based on the settings either mode of complete or section
45
+ // if section, we grab a sub-class of BaseFormSectionComponent, if complete, we grab a sub-class of the BaseForComponent class
46
+ let reg;
47
+ if (this.Mode === 'complete') {
48
+ reg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseFormComponent, (_a = this.Record) === null || _a === void 0 ? void 0 : _a.EntityInfo.Name);
49
+ }
50
+ else {
51
+ reg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseFormSectionComponent, ((_b = this.Record) === null || _b === void 0 ? void 0 : _b.EntityInfo.Name) + '.' + this.SectionName);
52
+ }
53
+ if (reg && reg.SubClass) {
54
+ // we have our class registration
55
+ const component = this.container.createComponent(reg.SubClass);
56
+ if (this.Record && component.instance instanceof BaseFormSectionComponent) {
57
+ component.instance.record = this.Record;
58
+ component.instance.EditMode = true;
59
+ }
60
+ else if (this.Record && component.instance instanceof BaseFormComponent) {
61
+ component.instance.record = this.Record;
62
+ component.instance.EditMode = true;
63
+ }
64
+ }
65
+ }
66
+ closeWindow() {
67
+ this.Visible = false;
68
+ this.close.emit();
69
+ }
70
+ }
71
+ EntityFormWindow.ɵfac = function EntityFormWindow_Factory(t) { return new (t || EntityFormWindow)(); };
72
+ EntityFormWindow.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntityFormWindow, selectors: [["mj-entity-form-window"]], viewQuery: function EntityFormWindow_Query(rf, ctx) { if (rf & 1) {
73
+ i0.ɵɵviewQuery(_c0, 5, ViewContainerRef);
74
+ } if (rf & 2) {
75
+ let _t;
76
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
77
+ } }, inputs: { Mode: "Mode", SectionName: "SectionName", Record: "Record", Visible: "Visible" }, outputs: { close: "close" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["title", "the window!", 3, "close"], ["dynamicFormContainer", ""]], template: function EntityFormWindow_Template(rf, ctx) { if (rf & 1) {
78
+ i0.ɵɵtemplate(0, EntityFormWindow_div_0_Template, 4, 0, "div", 0);
79
+ } if (rf & 2) {
80
+ i0.ɵɵproperty("ngIf", ctx.Visible);
81
+ } }, dependencies: [i1.NgIf, i2.WindowComponent] });
82
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntityFormWindow, [{
83
+ type: Component,
84
+ args: [{ selector: 'mj-entity-form-window', template: "<div *ngIf=\"Visible\">\r\n <kendo-window title=\"the window!\" (close)=\"closeWindow()\" >\r\n <ng-template #dynamicFormContainer></ng-template>\r\n </kendo-window>\r\n</div>" }]
85
+ }], null, { Mode: [{
86
+ type: Input
87
+ }], SectionName: [{
88
+ type: Input
89
+ }], Record: [{
90
+ type: Input
91
+ }], close: [{
92
+ type: Output
93
+ }], Visible: [{
94
+ type: Input
95
+ }], container: [{
96
+ type: ViewChild,
97
+ args: ['dynamicFormContainer', { read: ViewContainerRef }]
98
+ }] }); })();
99
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EntityFormWindow, { className: "EntityFormWindow", filePath: "src\\lib\\entity-form-window\\entity-form-window.component.ts", lineNumber: 15 }); })();
@@ -1,21 +1,26 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./single-role/single-role.component";
3
3
  import * as i2 from "./settings/settings.component";
4
- import * as i3 from "./roles-list/roles-list.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@progress/kendo-angular-grid";
7
- import * as i6 from "@angular/forms";
8
- import * as i7 from "@progress/kendo-angular-dialog";
9
- import * as i8 from "@progress/kendo-angular-excel-export";
10
- import * as i9 from "@memberjunction/ng-compare-records";
11
- import * as i10 from "@memberjunction/ng-container-directives";
12
- import * as i11 from "@progress/kendo-angular-buttons";
13
- import * as i12 from "@progress/kendo-angular-icons";
14
- import * as i13 from "@progress/kendo-angular-dropdowns";
15
- import * as i14 from "@memberjunction/ng-entity-permissions";
16
- import * as i15 from "@progress/kendo-angular-layout";
4
+ import * as i3 from "./user-roles-grid/user-roles-grid.component";
5
+ import * as i4 from "./single-user/single-user.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@progress/kendo-angular-grid";
8
+ import * as i7 from "@angular/forms";
9
+ import * as i8 from "@progress/kendo-angular-dialog";
10
+ import * as i9 from "@progress/kendo-angular-excel-export";
11
+ import * as i10 from "@memberjunction/ng-compare-records";
12
+ import * as i11 from "@memberjunction/ng-container-directives";
13
+ import * as i12 from "@progress/kendo-angular-buttons";
14
+ import * as i13 from "@progress/kendo-angular-icons";
15
+ import * as i14 from "@progress/kendo-angular-dropdowns";
16
+ import * as i15 from "@memberjunction/ng-entity-permissions";
17
+ import * as i16 from "@progress/kendo-angular-layout";
18
+ import * as i17 from "@memberjunction/ng-entity-form-dialog";
19
+ import * as i18 from "@progress/kendo-angular-indicators";
20
+ import * as i19 from "@memberjunction/ng-user-view-grid";
21
+ import * as i20 from "@memberjunction/ng-simple-record-list";
17
22
  export declare class ExplorerSettingsModule {
18
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ExplorerSettingsModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<ExplorerSettingsModule, [typeof i1.SingleRoleComponent, typeof i2.SettingsComponent, typeof i3.RolesListComponent], [typeof i4.CommonModule, typeof i5.GridModule, typeof i6.FormsModule, typeof i7.DialogsModule, typeof i8.ExcelExportModule, typeof i9.CompareRecordsModule, typeof i10.ContainerDirectivesModule, typeof i11.ButtonsModule, typeof i12.IconsModule, typeof i13.DropDownsModule, typeof i14.EntityPermissionsModule, typeof i15.TabStripModule], [typeof i1.SingleRoleComponent, typeof i2.SettingsComponent, typeof i3.RolesListComponent]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ExplorerSettingsModule, [typeof i1.SingleRoleComponent, typeof i2.SettingsComponent, typeof i3.UserRolesGridComponent, typeof i4.SingleUserComponent], [typeof i5.CommonModule, typeof i6.GridModule, typeof i7.FormsModule, typeof i8.DialogsModule, typeof i9.ExcelExportModule, typeof i10.CompareRecordsModule, typeof i11.ContainerDirectivesModule, typeof i12.ButtonsModule, typeof i13.IconsModule, typeof i14.DropDownsModule, typeof i15.EntityPermissionsModule, typeof i16.TabStripModule, typeof i8.DialogsModule, typeof i17.EntityFormDialogModule, typeof i18.IndicatorsModule, typeof i19.UserViewGridModule, typeof i20.SimpleRecordListModule], [typeof i1.SingleRoleComponent, typeof i2.SettingsComponent, typeof i3.UserRolesGridComponent, typeof i4.SingleUserComponent]>;
20
25
  static ɵinj: i0.ɵɵInjectorDeclaration<ExplorerSettingsModule>;
21
26
  }
@@ -12,10 +12,22 @@ import { FormsModule } from '@angular/forms';
12
12
  import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
13
13
  import { SingleRoleComponent } from './single-role/single-role.component';
14
14
  import { SettingsComponent } from './settings/settings.component';
15
- import { RolesListComponent } from './roles-list/roles-list.component';
16
15
  import { EntityPermissionsModule } from '@memberjunction/ng-entity-permissions';
17
16
  import { TabStripModule } from '@progress/kendo-angular-layout';
17
+ import { EntityFormDialogModule } from '@memberjunction/ng-entity-form-dialog';
18
+ import { UserRolesGridComponent } from './user-roles-grid/user-roles-grid.component';
19
+ import { IndicatorsModule } from '@progress/kendo-angular-indicators';
20
+ import { SingleUserComponent } from './single-user/single-user.component';
21
+ import { UserViewGridModule } from '@memberjunction/ng-user-view-grid';
22
+ import { SimpleRecordListModule } from '@memberjunction/ng-simple-record-list';
18
23
  import * as i0 from "@angular/core";
24
+ import * as i1 from "@angular/common";
25
+ import * as i2 from "@memberjunction/ng-container-directives";
26
+ import * as i3 from "@progress/kendo-angular-icons";
27
+ import * as i4 from "@memberjunction/ng-entity-permissions";
28
+ import * as i5 from "@progress/kendo-angular-layout";
29
+ import * as i6 from "@memberjunction/ng-entity-form-dialog";
30
+ import * as i7 from "@progress/kendo-angular-indicators";
19
31
  export class ExplorerSettingsModule {
20
32
  }
21
33
  ExplorerSettingsModule.ɵfac = function ExplorerSettingsModule_Factory(t) { return new (t || ExplorerSettingsModule)(); };
@@ -31,14 +43,20 @@ ExplorerSettingsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [C
31
43
  IconsModule,
32
44
  DropDownsModule,
33
45
  EntityPermissionsModule,
34
- TabStripModule] });
46
+ TabStripModule,
47
+ DialogsModule,
48
+ EntityFormDialogModule,
49
+ IndicatorsModule,
50
+ UserViewGridModule,
51
+ SimpleRecordListModule] });
35
52
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExplorerSettingsModule, [{
36
53
  type: NgModule,
37
54
  args: [{
38
55
  declarations: [
39
56
  SingleRoleComponent,
40
57
  SettingsComponent,
41
- RolesListComponent
58
+ UserRolesGridComponent,
59
+ SingleUserComponent
42
60
  ],
43
61
  imports: [
44
62
  CommonModule,
@@ -52,18 +70,25 @@ ExplorerSettingsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [C
52
70
  IconsModule,
53
71
  DropDownsModule,
54
72
  EntityPermissionsModule,
55
- TabStripModule
73
+ TabStripModule,
74
+ DialogsModule,
75
+ EntityFormDialogModule,
76
+ IndicatorsModule,
77
+ UserViewGridModule,
78
+ SimpleRecordListModule
56
79
  ],
57
80
  exports: [
58
81
  SingleRoleComponent,
59
82
  SettingsComponent,
60
- RolesListComponent
83
+ UserRolesGridComponent,
84
+ SingleUserComponent
61
85
  ]
62
86
  }]
63
87
  }], null, null); })();
64
88
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ExplorerSettingsModule, { declarations: [SingleRoleComponent,
65
89
  SettingsComponent,
66
- RolesListComponent], imports: [CommonModule,
90
+ UserRolesGridComponent,
91
+ SingleUserComponent], imports: [CommonModule,
67
92
  GridModule,
68
93
  FormsModule,
69
94
  DialogsModule,
@@ -74,6 +99,13 @@ ExplorerSettingsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [C
74
99
  IconsModule,
75
100
  DropDownsModule,
76
101
  EntityPermissionsModule,
77
- TabStripModule], exports: [SingleRoleComponent,
102
+ TabStripModule,
103
+ DialogsModule,
104
+ EntityFormDialogModule,
105
+ IndicatorsModule,
106
+ UserViewGridModule,
107
+ SimpleRecordListModule], exports: [SingleRoleComponent,
78
108
  SettingsComponent,
79
- RolesListComponent] }); })();
109
+ UserRolesGridComponent,
110
+ SingleUserComponent] }); })();
111
+ i0.ɵɵsetComponentScope(SingleRoleComponent, [i1.NgIf, i2.FillContainer, i3.SVGIconComponent, i4.EntityPermissionsGridComponent, i5.TabStripComponent, i5.TabStripTabComponent, i5.TabContentDirective, i6.EntityFormDialog, i7.LoaderComponent, UserRolesGridComponent], []);
@@ -0,0 +1,41 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { BaseEntity } from '@memberjunction/core';
3
+ import { kendoSVGIcon } from '@memberjunction/ng-shared';
4
+ import { Router } from '@angular/router';
5
+ import * as i0 from "@angular/core";
6
+ export declare class RecordListComponent implements OnInit {
7
+ private router;
8
+ EntityName: string;
9
+ Columns: string[];
10
+ SortBy: string;
11
+ AllowDelete: boolean;
12
+ AllowNew: boolean;
13
+ AllowEdit: boolean;
14
+ /**
15
+ * If AllowEdit or AllowNew is true, this is the section name to display for editing a new or existing record.
16
+ */
17
+ EditSectionName: string;
18
+ RecordSelected: EventEmitter<BaseEntity>;
19
+ RecordEdited: EventEmitter<BaseEntity>;
20
+ RecordCreated: EventEmitter<BaseEntity>;
21
+ isLoading: boolean;
22
+ records: BaseEntity[];
23
+ kendoSVGIcon: typeof kendoSVGIcon;
24
+ constructor(router: Router);
25
+ ngOnInit(): void;
26
+ Refresh(): Promise<void>;
27
+ selectRecord(event: MouseEvent | undefined, r: BaseEntity): void;
28
+ deleteRecordDialogVisible: boolean;
29
+ deleteRecordItem: BaseEntity | null;
30
+ deleteRecord(event: MouseEvent, r: BaseEntity): Promise<void>;
31
+ closeDeleteDialog(result: 'Yes' | 'No'): Promise<void>;
32
+ editOrNewRecord: BaseEntity;
33
+ showEditOrNewRecordForm: boolean;
34
+ recordMode: 'new' | 'edit';
35
+ createNewRecord(): Promise<void>;
36
+ editRecord(event: MouseEvent, r: BaseEntity): Promise<void>;
37
+ onEditOrNewRecordFormClosed(result: 'Save' | 'Cancel'): Promise<void>;
38
+ getRecordName(r: BaseEntity): string;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<RecordListComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<RecordListComponent, "mj-record-list", never, { "EntityName": { "alias": "EntityName"; "required": false; }; "Columns": { "alias": "Columns"; "required": false; }; "SortBy": { "alias": "SortBy"; "required": false; }; "AllowDelete": { "alias": "AllowDelete"; "required": false; }; "AllowNew": { "alias": "AllowNew"; "required": false; }; "AllowEdit": { "alias": "AllowEdit"; "required": false; }; "EditSectionName": { "alias": "EditSectionName"; "required": false; }; }, { "RecordSelected": "RecordSelected"; "RecordEdited": "RecordEdited"; "RecordCreated": "RecordCreated"; }, never, never, false, never>;
41
+ }