@memberjunction/ng-explorer-core 0.9.79 → 0.9.116
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/ask-skip/ask-skip.component.d.ts +87 -86
- package/dist/lib/ask-skip/ask-skip.component.js +615 -580
- package/dist/lib/ask-skip/skip-dynamic-report-wrapper.d.ts +12 -12
- package/dist/lib/ask-skip/skip-dynamic-report-wrapper.js +40 -39
- package/dist/lib/auth-button/auth-button.component.d.ts +12 -12
- package/dist/lib/auth-button/auth-button.component.js +44 -43
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts +18 -18
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +118 -117
- package/dist/lib/data-browser-component/data-browser.component.d.ts +16 -14
- package/dist/lib/data-browser-component/data-browser.component.js +96 -91
- package/dist/lib/favorites/favorites.component.d.ts +14 -14
- package/dist/lib/favorites/favorites.component.js +114 -114
- package/dist/lib/generic/base-form-component.d.ts +76 -76
- package/dist/lib/generic/base-form-component.js +436 -436
- package/dist/lib/generic/base-form-section-component.d.ts +6 -6
- package/dist/lib/generic/base-form-section-component.js +9 -9
- package/dist/lib/generic/base-record-component.d.ts +6 -6
- package/dist/lib/generic/base-record-component.js +15 -15
- package/dist/lib/generic/base-resource-component.d.ts +34 -34
- package/dist/lib/generic/base-resource-component.js +75 -75
- package/dist/lib/generic/dynamic-chart.d.ts +33 -33
- package/dist/lib/generic/dynamic-chart.js +236 -235
- package/dist/lib/generic/dynamic-grid.d.ts +25 -25
- package/dist/lib/generic/dynamic-grid.js +120 -119
- package/dist/lib/generic/dynamic-report.d.ts +38 -38
- package/dist/lib/generic/dynamic-report.js +353 -347
- package/dist/lib/generic/form-toolbar.d.ts +7 -7
- package/dist/lib/generic/form-toolbar.js +85 -89
- package/dist/lib/generic/resource-container-component.d.ts +25 -25
- package/dist/lib/generic/resource-container-component.js +104 -103
- package/dist/lib/generic/section-loader-component.d.ts +17 -17
- package/dist/lib/generic/section-loader-component.js +66 -65
- package/dist/lib/generic-browse-list/generic-browse-list.component.d.ts +26 -24
- package/dist/lib/generic-browse-list/generic-browse-list.component.js +145 -143
- package/dist/lib/guards/auth-guard.service.d.ts +11 -11
- package/dist/lib/guards/auth-guard.service.js +24 -24
- package/dist/lib/guards/entities.guard.d.ts +3 -3
- package/dist/lib/guards/entities.guard.js +38 -38
- package/dist/lib/header/MSFT_UserImageService.d.ts +11 -11
- package/dist/lib/header/MSFT_UserImageService.js +23 -23
- package/dist/lib/header/header.component.d.ts +51 -51
- package/dist/lib/header/header.component.js +220 -208
- package/dist/lib/home-component/home.component.d.ts +11 -9
- package/dist/lib/home-component/home.component.js +77 -54
- package/dist/lib/join-grid/join-grid.component.d.ts +30 -30
- package/dist/lib/join-grid/join-grid.component.js +222 -225
- package/dist/lib/navigation/navigation.component.d.ts +104 -103
- package/dist/lib/navigation/navigation.component.js +1026 -1004
- package/dist/lib/query-browser-component/query-browser.component.d.ts +14 -0
- package/dist/lib/query-browser-component/query-browser.component.js +56 -0
- package/dist/lib/report-browser-component/report-browser.component.d.ts +14 -14
- package/dist/lib/report-browser-component/report-browser.component.js +56 -55
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +8 -8
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +51 -50
- package/dist/lib/resource-wrappers/query-resource.component.d.ts +10 -0
- package/dist/lib/resource-wrappers/query-resource.component.js +55 -0
- package/dist/lib/resource-wrappers/record-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/record-resource.component.js +71 -70
- package/dist/lib/resource-wrappers/report-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/report-resource.component.js +55 -54
- package/dist/lib/resource-wrappers/resource-wrappers-loader.d.ts +1 -1
- package/dist/lib/resource-wrappers/resource-wrappers-loader.js +14 -12
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/search-results-resource.component.js +52 -51
- package/dist/lib/resource-wrappers/view-resource.component.d.ts +8 -8
- package/dist/lib/resource-wrappers/view-resource.component.js +61 -60
- package/dist/lib/settings/settings.component.d.ts +5 -5
- package/dist/lib/settings/settings.component.js +15 -14
- package/dist/lib/single-application/single-application.component.d.ts +20 -20
- package/dist/lib/single-application/single-application.component.js +113 -113
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.d.ts +28 -28
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +210 -212
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.d.ts +13 -13
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +60 -59
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.d.ts +26 -26
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +170 -169
- package/dist/lib/single-dashboard/single-dashboard.component.d.ts +75 -75
- package/dist/lib/single-dashboard/single-dashboard.component.js +464 -456
- package/dist/lib/single-entity/single-entity.component.d.ts +33 -33
- package/dist/lib/single-entity/single-entity.component.js +258 -252
- package/dist/lib/single-query/single-query.component.d.ts +16 -0
- package/dist/lib/single-query/single-query.component.js +70 -0
- package/dist/lib/single-record/single-record.component.d.ts +21 -21
- package/dist/lib/single-record/single-record.component.js +95 -95
- package/dist/lib/single-report/single-report.component.d.ts +21 -22
- package/dist/lib/single-report/single-report.component.js +89 -87
- package/dist/lib/single-search-result/single-search-result.component.d.ts +15 -15
- package/dist/lib/single-search-result/single-search-result.component.js +61 -60
- package/dist/lib/single-view/single-view.component.d.ts +38 -38
- package/dist/lib/single-view/single-view.component.js +201 -201
- package/dist/lib/user-notifications/user-notifications.component.d.ts +32 -32
- package/dist/lib/user-notifications/user-notifications.component.js +282 -282
- package/dist/lib/user-profile/user-profile.component.d.ts +10 -10
- package/dist/lib/user-profile/user-profile.component.js +42 -41
- package/dist/lib/user-view-properties/view-properties-dialog.component.d.ts +71 -71
- package/dist/lib/user-view-properties/view-properties-dialog.component.js +594 -581
- package/dist/module.d.ts +65 -65
- package/dist/module.js +328 -338
- package/dist/public-api.d.ts +42 -47
- package/dist/public-api.js +45 -50
- package/dist/shared/shared.service.d.ts +94 -92
- package/dist/shared/shared.service.js +324 -318
- package/dist/shared/urlPipe.d.ts +7 -7
- package/dist/shared/urlPipe.js +16 -16
- package/package.json +24 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseFormComponent } from './base-form-component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormToolbarComponent {
|
|
4
|
-
form: BaseFormComponent;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormToolbarComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormToolbarComponent, "mj-form-toolbar", never, { "form": "form"; }, {}, never, never, false, never>;
|
|
7
|
-
}
|
|
1
|
+
import { BaseFormComponent } from './base-form-component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormToolbarComponent {
|
|
4
|
+
form: BaseFormComponent;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormToolbarComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormToolbarComponent, "mj-form-toolbar", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -1,88 +1,83 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@progress/kendo-angular-buttons";
|
|
5
|
-
import * as i3 from "@memberjunction/ng-record-changes";
|
|
6
|
-
function FormToolbarComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
8
|
-
i0.ɵɵelementStart(0, "button", 2);
|
|
9
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.form.StartEditMode()); });
|
|
10
|
-
i0.ɵɵtext(1, "Edit Record");
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
12
|
-
} }
|
|
13
|
-
function FormToolbarComponent_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
15
|
-
i0.ɵɵelementStart(0, "button", 2);
|
|
16
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.form.SaveRecord(true)); });
|
|
17
|
-
i0.ɵɵtext(1, "Save Record");
|
|
18
|
-
i0.ɵɵelementEnd();
|
|
19
|
-
} }
|
|
20
|
-
function FormToolbarComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
22
|
-
i0.ɵɵelementStart(0, "button", 2);
|
|
23
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.form.CancelEdit()); });
|
|
24
|
-
i0.ɵɵtext(1, "Cancel");
|
|
25
|
-
i0.ɵɵelementEnd();
|
|
26
|
-
} }
|
|
27
|
-
function FormToolbarComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
29
|
-
i0.ɵɵelementStart(0, "button", 2);
|
|
30
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.form.RemoveFavorite()); });
|
|
31
|
-
i0.ɵɵtext(1, "Remove Favorite");
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
} }
|
|
34
|
-
function FormToolbarComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
36
|
-
i0.ɵɵelementStart(0, "button", 2);
|
|
37
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.form.MakeFavorite()); });
|
|
38
|
-
i0.ɵɵtext(1, "Make Favorite");
|
|
39
|
-
i0.ɵɵelementEnd();
|
|
40
|
-
} }
|
|
41
|
-
function FormToolbarComponent_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
-
const _r18 = i0.ɵɵgetCurrentView();
|
|
43
|
-
i0.ɵɵelementStart(0, "button", 2);
|
|
44
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.form.handleHistoryDialog()); });
|
|
45
|
-
i0.ɵɵtext(1, "History");
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
47
|
-
} }
|
|
48
|
-
function FormToolbarComponent_mj_record_changes_7_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
const _r20 = i0.ɵɵgetCurrentView();
|
|
50
|
-
i0.ɵɵelementStart(0, "mj-record-changes", 3);
|
|
51
|
-
i0.ɵɵlistener("dialogClosed", function FormToolbarComponent_mj_record_changes_7_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r19.form.handleHistoryDialog()); });
|
|
52
|
-
i0.ɵɵelementEnd();
|
|
53
|
-
} if (rf & 2) {
|
|
54
|
-
const ctx_r6 = i0.ɵɵnextContext();
|
|
55
|
-
i0.ɵɵproperty("record", ctx_r6.form.record);
|
|
56
|
-
} }
|
|
57
|
-
export class FormToolbarComponent {
|
|
58
|
-
}
|
|
59
|
-
FormToolbarComponent.ɵfac = function FormToolbarComponent_Factory(t) { return new (t || FormToolbarComponent)(); };
|
|
60
|
-
FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { form: "form" }, decls: 8, vars: 7, consts: [["kendoButton", "", 3, "click", 4, "ngIf"], [3, "record", "dialogClosed", 4, "ngIf"], ["kendoButton", "", 3, "click"], [3, "record", "dialogClosed"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
61
|
-
i0.ɵɵtemplate(0, FormToolbarComponent_button_0_Template, 2, 0, "button", 0);
|
|
62
|
-
i0.ɵɵ
|
|
63
|
-
i0.ɵɵtemplate(
|
|
64
|
-
|
|
65
|
-
i0.ɵɵ
|
|
66
|
-
i0.ɵɵ
|
|
67
|
-
i0.ɵɵ
|
|
68
|
-
i0.ɵɵ
|
|
69
|
-
|
|
70
|
-
i0.ɵɵ
|
|
71
|
-
i0.ɵɵ
|
|
72
|
-
i0.ɵɵ
|
|
73
|
-
i0.ɵɵ
|
|
74
|
-
i0.ɵɵ
|
|
75
|
-
i0.ɵɵ
|
|
76
|
-
i0.ɵɵ
|
|
77
|
-
i0.ɵɵ
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
i0.ɵɵadvance(2);
|
|
82
|
-
i0.ɵɵproperty("ngIf", ctx.form.isHistoryDialogOpen);
|
|
83
|
-
} }, dependencies: [i1.NgIf, i2.Button, i3.RecordChangesComponent], styles: ["button[_ngcontent-%COMP%] { margin-right: 10px; }"] });
|
|
84
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormToolbarComponent, [{
|
|
85
|
-
type: Component,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@progress/kendo-angular-buttons";
|
|
5
|
+
import * as i3 from "@memberjunction/ng-record-changes";
|
|
6
|
+
function FormToolbarComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
8
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
9
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.form.StartEditMode()); });
|
|
10
|
+
i0.ɵɵtext(1, "Edit Record");
|
|
11
|
+
i0.ɵɵelementEnd();
|
|
12
|
+
} }
|
|
13
|
+
function FormToolbarComponent_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
15
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
16
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.form.SaveRecord(true)); });
|
|
17
|
+
i0.ɵɵtext(1, "Save Record");
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
} }
|
|
20
|
+
function FormToolbarComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
22
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
23
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.form.CancelEdit()); });
|
|
24
|
+
i0.ɵɵtext(1, "Cancel");
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
} }
|
|
27
|
+
function FormToolbarComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
29
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
30
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.form.RemoveFavorite()); });
|
|
31
|
+
i0.ɵɵtext(1, "Remove Favorite");
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
} }
|
|
34
|
+
function FormToolbarComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
36
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
37
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.form.MakeFavorite()); });
|
|
38
|
+
i0.ɵɵtext(1, "Make Favorite");
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
} }
|
|
41
|
+
function FormToolbarComponent_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
43
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
44
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.form.handleHistoryDialog()); });
|
|
45
|
+
i0.ɵɵtext(1, "History");
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
} }
|
|
48
|
+
function FormToolbarComponent_mj_record_changes_7_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
50
|
+
i0.ɵɵelementStart(0, "mj-record-changes", 3);
|
|
51
|
+
i0.ɵɵlistener("dialogClosed", function FormToolbarComponent_mj_record_changes_7_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r19.form.handleHistoryDialog()); });
|
|
52
|
+
i0.ɵɵelementEnd();
|
|
53
|
+
} if (rf & 2) {
|
|
54
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
55
|
+
i0.ɵɵproperty("record", ctx_r6.form.record);
|
|
56
|
+
} }
|
|
57
|
+
export class FormToolbarComponent {
|
|
58
|
+
}
|
|
59
|
+
FormToolbarComponent.ɵfac = function FormToolbarComponent_Factory(t) { return new (t || FormToolbarComponent)(); };
|
|
60
|
+
FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { form: "form" }, decls: 8, vars: 7, consts: [["kendoButton", "", 3, "click", 4, "ngIf"], [3, "record", "dialogClosed", 4, "ngIf"], ["kendoButton", "", 3, "click"], [3, "record", "dialogClosed"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
61
|
+
i0.ɵɵtemplate(0, FormToolbarComponent_button_0_Template, 2, 0, "button", 0)(1, FormToolbarComponent_button_1_Template, 2, 0, "button", 0)(2, FormToolbarComponent_button_2_Template, 2, 0, "button", 0)(3, FormToolbarComponent_button_3_Template, 2, 0, "button", 0)(4, FormToolbarComponent_button_4_Template, 2, 0, "button", 0)(5, FormToolbarComponent_button_5_Template, 2, 0, "button", 0);
|
|
62
|
+
i0.ɵɵelement(6, "hr");
|
|
63
|
+
i0.ɵɵtemplate(7, FormToolbarComponent_mj_record_changes_7_Template, 1, 1, "mj-record-changes", 1);
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
i0.ɵɵproperty("ngIf", !ctx.form.EditMode && ctx.form.UserCanEdit);
|
|
66
|
+
i0.ɵɵadvance();
|
|
67
|
+
i0.ɵɵproperty("ngIf", ctx.form.EditMode);
|
|
68
|
+
i0.ɵɵadvance();
|
|
69
|
+
i0.ɵɵproperty("ngIf", ctx.form.EditMode);
|
|
70
|
+
i0.ɵɵadvance();
|
|
71
|
+
i0.ɵɵproperty("ngIf", ctx.form.FavoriteInitDone && ctx.form.IsFavorite);
|
|
72
|
+
i0.ɵɵadvance();
|
|
73
|
+
i0.ɵɵproperty("ngIf", ctx.form.FavoriteInitDone && !ctx.form.IsFavorite);
|
|
74
|
+
i0.ɵɵadvance();
|
|
75
|
+
i0.ɵɵproperty("ngIf", ctx.form.EntityInfo == null ? null : ctx.form.EntityInfo.TrackRecordChanges);
|
|
76
|
+
i0.ɵɵadvance(2);
|
|
77
|
+
i0.ɵɵproperty("ngIf", ctx.form.isHistoryDialogOpen);
|
|
78
|
+
} }, dependencies: [i1.NgIf, i2.ButtonComponent, i3.RecordChangesComponent], styles: ["button[_ngcontent-%COMP%] { margin-right: 10px; }"] });
|
|
79
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormToolbarComponent, [{
|
|
80
|
+
type: Component,
|
|
86
81
|
args: [{ selector: 'mj-form-toolbar', template: `
|
|
87
82
|
<button kendoButton *ngIf="!this.form.EditMode && this.form.UserCanEdit" (click)="this.form.StartEditMode()">Edit Record</button>
|
|
88
83
|
<button kendoButton *ngIf="this.form.EditMode" (click)="this.form.SaveRecord(true)">Save Record</button>
|
|
@@ -92,7 +87,8 @@ FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormTo
|
|
|
92
87
|
<button kendoButton *ngIf="this.form.EntityInfo?.TrackRecordChanges" (click)="this.form.handleHistoryDialog()">History</button>
|
|
93
88
|
<hr />
|
|
94
89
|
<mj-record-changes *ngIf="this.form.isHistoryDialogOpen" [record]="this.form.record" (dialogClosed)="this.form.handleHistoryDialog()"></mj-record-changes>
|
|
95
|
-
`, styles: ["button { margin-right: 10px; }"] }]
|
|
96
|
-
}], null, { form: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}] }); })();
|
|
90
|
+
`, styles: ["button { margin-right: 10px; }"] }]
|
|
91
|
+
}], null, { form: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}] }); })();
|
|
94
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormToolbarComponent, { className: "FormToolbarComponent", filePath: "src\\lib\\generic\\form-toolbar.ts", lineNumber: 19 }); })();
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { SharedService } from '
|
|
3
|
-
import { Container } from '@memberjunction/ng-container-directives';
|
|
4
|
-
import { BaseEntity } from '@memberjunction/core';
|
|
5
|
-
import { ResourceData } from '
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ResourceContainerComponent implements OnChanges {
|
|
8
|
-
sharedService: SharedService;
|
|
9
|
-
Data: ResourceData;
|
|
10
|
-
isVisible: boolean;
|
|
11
|
-
ResourceRecordSaved: EventEmitter<BaseEntity>;
|
|
12
|
-
ContentLoadingStarted: EventEmitter<ResourceContainerComponent>;
|
|
13
|
-
ContentLoadingComplete: EventEmitter<ResourceContainerComponent>;
|
|
14
|
-
private _loadStarted;
|
|
15
|
-
get LoadStarted(): boolean;
|
|
16
|
-
private _loadComplete;
|
|
17
|
-
get LoadComplete(): boolean;
|
|
18
|
-
resourceContainer: Container;
|
|
19
|
-
private _loaded;
|
|
20
|
-
constructor(sharedService: SharedService);
|
|
21
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
-
loadComponent(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceContainerComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceContainerComponent, "app-resource", never, { "Data": "Data"; "isVisible": "isVisible"; }, { "ResourceRecordSaved": "ResourceRecordSaved"; "ContentLoadingStarted": "ContentLoadingStarted"; "ContentLoadingComplete": "ContentLoadingComplete"; }, never, never, false, never>;
|
|
25
|
-
}
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { SharedService } from '@memberjunction/ng-shared';
|
|
3
|
+
import { Container } from '@memberjunction/ng-container-directives';
|
|
4
|
+
import { BaseEntity } from '@memberjunction/core';
|
|
5
|
+
import { ResourceData } from '@memberjunction/ng-shared';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ResourceContainerComponent implements OnChanges {
|
|
8
|
+
sharedService: SharedService;
|
|
9
|
+
Data: ResourceData;
|
|
10
|
+
isVisible: boolean;
|
|
11
|
+
ResourceRecordSaved: EventEmitter<BaseEntity>;
|
|
12
|
+
ContentLoadingStarted: EventEmitter<ResourceContainerComponent>;
|
|
13
|
+
ContentLoadingComplete: EventEmitter<ResourceContainerComponent>;
|
|
14
|
+
private _loadStarted;
|
|
15
|
+
get LoadStarted(): boolean;
|
|
16
|
+
private _loadComplete;
|
|
17
|
+
get LoadComplete(): boolean;
|
|
18
|
+
resourceContainer: Container;
|
|
19
|
+
private _loaded;
|
|
20
|
+
constructor(sharedService: SharedService);
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
loadComponent(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceContainerComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceContainerComponent, "app-resource", never, { "Data": { "alias": "Data"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, { "ResourceRecordSaved": "ResourceRecordSaved"; "ContentLoadingStarted": "ContentLoadingStarted"; "ContentLoadingComplete": "ContentLoadingComplete"; }, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -1,103 +1,104 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
-
import { Container } from '@memberjunction/ng-container-directives';
|
|
3
|
-
import { LogError } from '@memberjunction/core';
|
|
4
|
-
import { MJGlobal } from '@memberjunction/global';
|
|
5
|
-
import { BaseResourceComponent } from '
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "
|
|
8
|
-
import * as i2 from "@memberjunction/ng-container-directives";
|
|
9
|
-
function ResourceContainerComponent_ng_template_0_Template(rf, ctx) { }
|
|
10
|
-
export class ResourceContainerComponent {
|
|
11
|
-
get LoadStarted() {
|
|
12
|
-
return this._loadStarted;
|
|
13
|
-
}
|
|
14
|
-
get LoadComplete() {
|
|
15
|
-
return this._loadComplete;
|
|
16
|
-
}
|
|
17
|
-
constructor(sharedService) {
|
|
18
|
-
this.sharedService = sharedService;
|
|
19
|
-
this.isVisible = false;
|
|
20
|
-
this.ResourceRecordSaved = new EventEmitter();
|
|
21
|
-
this.ContentLoadingStarted = new EventEmitter();
|
|
22
|
-
this.ContentLoadingComplete = new EventEmitter();
|
|
23
|
-
this._loadStarted = false;
|
|
24
|
-
this._loadComplete = false;
|
|
25
|
-
this._loaded = false;
|
|
26
|
-
}
|
|
27
|
-
ngOnChanges(changes) {
|
|
28
|
-
if (changes['isVisible']) {
|
|
29
|
-
const previousValue = changes['isVisible'].previousValue;
|
|
30
|
-
const currentValue = changes['isVisible'].currentValue;
|
|
31
|
-
if (previousValue !== currentValue) {
|
|
32
|
-
// visible state has changed
|
|
33
|
-
if (!this._loaded && currentValue) {
|
|
34
|
-
// first time we are loading this resource, so go ahead and load whatever our component type is
|
|
35
|
-
this.loadComponent();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
loadComponent() {
|
|
41
|
-
try {
|
|
42
|
-
this._loaded = true;
|
|
43
|
-
const resourceReg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseResourceComponent, this.Data.ResourceType);
|
|
44
|
-
if (!resourceReg) {
|
|
45
|
-
throw new Error(`Unable to find resource registration for ${this.Data.ResourceType}`);
|
|
46
|
-
}
|
|
47
|
-
const viewContainerRef = this.resourceContainer.viewContainerRef;
|
|
48
|
-
if (!viewContainerRef) {
|
|
49
|
-
throw new Error(`Unable to find viewContainerRef`);
|
|
50
|
-
}
|
|
51
|
-
viewContainerRef.clear();
|
|
52
|
-
const componentRef = viewContainerRef.createComponent(resourceReg.SubClass);
|
|
53
|
-
componentRef.instance.LoadCompleteEvent = () => {
|
|
54
|
-
this._loadComplete = true;
|
|
55
|
-
this.ContentLoadingComplete.emit(this);
|
|
56
|
-
};
|
|
57
|
-
componentRef.instance.ResourceRecordSavedEvent = (resourceRecordEntity) => {
|
|
58
|
-
// bubble up the event
|
|
59
|
-
this.ResourceRecordSaved.emit(resourceRecordEntity);
|
|
60
|
-
};
|
|
61
|
-
componentRef.instance.Data = this.Data;
|
|
62
|
-
// do this right away since we have started
|
|
63
|
-
this.ContentLoadingStarted.emit(this);
|
|
64
|
-
// AND - wire up the event because we might start again in the future - example dashboards where a user can change the dashboard and add items etc
|
|
65
|
-
componentRef.instance.LoadStartedEvent = () => {
|
|
66
|
-
this._loadStarted = true;
|
|
67
|
-
this.ContentLoadingStarted.emit(this);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
catch (e) {
|
|
71
|
-
LogError(e);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
ResourceContainerComponent.ɵfac = function ResourceContainerComponent_Factory(t) { return new (t || ResourceContainerComponent)(i0.ɵɵdirectiveInject(i1.SharedService)); };
|
|
76
|
-
ResourceContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourceContainerComponent, selectors: [["app-resource"]], viewQuery: function ResourceContainerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
77
|
-
i0.ɵɵviewQuery(Container, 7);
|
|
78
|
-
} if (rf & 2) {
|
|
79
|
-
let _t;
|
|
80
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resourceContainer = _t.first);
|
|
81
|
-
} }, inputs: { Data: "Data", isVisible: "isVisible" }, outputs: { ResourceRecordSaved: "ResourceRecordSaved", ContentLoadingStarted: "ContentLoadingStarted", ContentLoadingComplete: "ContentLoadingComplete" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 0, consts: [["mjContainer", "", "mjFillContainer", ""]], template: function ResourceContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
-
i0.ɵɵtemplate(0, ResourceContainerComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
83
|
-
} }, dependencies: [i2.FillContainer, i2.Container], encapsulation: 2 });
|
|
84
|
-
(
|
|
85
|
-
type: Component,
|
|
86
|
-
args: [{
|
|
87
|
-
selector: 'app-resource',
|
|
88
|
-
template: `<ng-template mjContainer mjFillContainer></ng-template>`,
|
|
89
|
-
}]
|
|
90
|
-
}],
|
|
91
|
-
type: Input
|
|
92
|
-
}], isVisible: [{
|
|
93
|
-
type: Input
|
|
94
|
-
}], ResourceRecordSaved: [{
|
|
95
|
-
type: Output
|
|
96
|
-
}], ContentLoadingStarted: [{
|
|
97
|
-
type: Output
|
|
98
|
-
}], ContentLoadingComplete: [{
|
|
99
|
-
type: Output
|
|
100
|
-
}], resourceContainer: [{
|
|
101
|
-
type: ViewChild,
|
|
102
|
-
args: [Container, { static: true }]
|
|
103
|
-
}] }); })();
|
|
1
|
+
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
+
import { Container } from '@memberjunction/ng-container-directives';
|
|
3
|
+
import { LogError } from '@memberjunction/core';
|
|
4
|
+
import { MJGlobal } from '@memberjunction/global';
|
|
5
|
+
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@memberjunction/ng-shared";
|
|
8
|
+
import * as i2 from "@memberjunction/ng-container-directives";
|
|
9
|
+
function ResourceContainerComponent_ng_template_0_Template(rf, ctx) { }
|
|
10
|
+
export class ResourceContainerComponent {
|
|
11
|
+
get LoadStarted() {
|
|
12
|
+
return this._loadStarted;
|
|
13
|
+
}
|
|
14
|
+
get LoadComplete() {
|
|
15
|
+
return this._loadComplete;
|
|
16
|
+
}
|
|
17
|
+
constructor(sharedService) {
|
|
18
|
+
this.sharedService = sharedService;
|
|
19
|
+
this.isVisible = false;
|
|
20
|
+
this.ResourceRecordSaved = new EventEmitter();
|
|
21
|
+
this.ContentLoadingStarted = new EventEmitter();
|
|
22
|
+
this.ContentLoadingComplete = new EventEmitter();
|
|
23
|
+
this._loadStarted = false;
|
|
24
|
+
this._loadComplete = false;
|
|
25
|
+
this._loaded = false;
|
|
26
|
+
}
|
|
27
|
+
ngOnChanges(changes) {
|
|
28
|
+
if (changes['isVisible']) {
|
|
29
|
+
const previousValue = changes['isVisible'].previousValue;
|
|
30
|
+
const currentValue = changes['isVisible'].currentValue;
|
|
31
|
+
if (previousValue !== currentValue) {
|
|
32
|
+
// visible state has changed
|
|
33
|
+
if (!this._loaded && currentValue) {
|
|
34
|
+
// first time we are loading this resource, so go ahead and load whatever our component type is
|
|
35
|
+
this.loadComponent();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
loadComponent() {
|
|
41
|
+
try {
|
|
42
|
+
this._loaded = true;
|
|
43
|
+
const resourceReg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseResourceComponent, this.Data.ResourceType);
|
|
44
|
+
if (!resourceReg) {
|
|
45
|
+
throw new Error(`Unable to find resource registration for ${this.Data.ResourceType}`);
|
|
46
|
+
}
|
|
47
|
+
const viewContainerRef = this.resourceContainer.viewContainerRef;
|
|
48
|
+
if (!viewContainerRef) {
|
|
49
|
+
throw new Error(`Unable to find viewContainerRef`);
|
|
50
|
+
}
|
|
51
|
+
viewContainerRef.clear();
|
|
52
|
+
const componentRef = viewContainerRef.createComponent(resourceReg.SubClass);
|
|
53
|
+
componentRef.instance.LoadCompleteEvent = () => {
|
|
54
|
+
this._loadComplete = true;
|
|
55
|
+
this.ContentLoadingComplete.emit(this);
|
|
56
|
+
};
|
|
57
|
+
componentRef.instance.ResourceRecordSavedEvent = (resourceRecordEntity) => {
|
|
58
|
+
// bubble up the event
|
|
59
|
+
this.ResourceRecordSaved.emit(resourceRecordEntity);
|
|
60
|
+
};
|
|
61
|
+
componentRef.instance.Data = this.Data;
|
|
62
|
+
// do this right away since we have started
|
|
63
|
+
this.ContentLoadingStarted.emit(this);
|
|
64
|
+
// AND - wire up the event because we might start again in the future - example dashboards where a user can change the dashboard and add items etc
|
|
65
|
+
componentRef.instance.LoadStartedEvent = () => {
|
|
66
|
+
this._loadStarted = true;
|
|
67
|
+
this.ContentLoadingStarted.emit(this);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
catch (e) {
|
|
71
|
+
LogError(e);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
ResourceContainerComponent.ɵfac = function ResourceContainerComponent_Factory(t) { return new (t || ResourceContainerComponent)(i0.ɵɵdirectiveInject(i1.SharedService)); };
|
|
76
|
+
ResourceContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourceContainerComponent, selectors: [["app-resource"]], viewQuery: function ResourceContainerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
77
|
+
i0.ɵɵviewQuery(Container, 7);
|
|
78
|
+
} if (rf & 2) {
|
|
79
|
+
let _t;
|
|
80
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resourceContainer = _t.first);
|
|
81
|
+
} }, inputs: { Data: "Data", isVisible: "isVisible" }, outputs: { ResourceRecordSaved: "ResourceRecordSaved", ContentLoadingStarted: "ContentLoadingStarted", ContentLoadingComplete: "ContentLoadingComplete" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 0, consts: [["mjContainer", "", "mjFillContainer", ""]], template: function ResourceContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
i0.ɵɵtemplate(0, ResourceContainerComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
83
|
+
} }, dependencies: [i2.FillContainer, i2.Container], encapsulation: 2 });
|
|
84
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ResourceContainerComponent, [{
|
|
85
|
+
type: Component,
|
|
86
|
+
args: [{
|
|
87
|
+
selector: 'app-resource',
|
|
88
|
+
template: `<ng-template mjContainer mjFillContainer></ng-template>`,
|
|
89
|
+
}]
|
|
90
|
+
}], () => [{ type: i1.SharedService }], { Data: [{
|
|
91
|
+
type: Input
|
|
92
|
+
}], isVisible: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], ResourceRecordSaved: [{
|
|
95
|
+
type: Output
|
|
96
|
+
}], ContentLoadingStarted: [{
|
|
97
|
+
type: Output
|
|
98
|
+
}], ContentLoadingComplete: [{
|
|
99
|
+
type: Output
|
|
100
|
+
}], resourceContainer: [{
|
|
101
|
+
type: ViewChild,
|
|
102
|
+
args: [Container, { static: true }]
|
|
103
|
+
}] }); })();
|
|
104
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResourceContainerComponent, { className: "ResourceContainerComponent", filePath: "src\\lib\\generic\\resource-container-component.ts", lineNumber: 12 }); })();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { OnDestroy, ViewContainerRef, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { BaseEntity } from '@memberjunction/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SectionLoaderComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
5
|
-
Entity: string;
|
|
6
|
-
Section: string;
|
|
7
|
-
record: BaseEntity;
|
|
8
|
-
EditMode: boolean;
|
|
9
|
-
container: ViewContainerRef;
|
|
10
|
-
private _sectionObj;
|
|
11
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
private loadComponent;
|
|
14
|
-
ngOnDestroy(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SectionLoaderComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionLoaderComponent, "mj-form-section", never, { "Entity": "Entity"; "Section": "Section"; "record": "record"; "EditMode": "EditMode"; }, {}, never, never, false, never>;
|
|
17
|
-
}
|
|
1
|
+
import { OnDestroy, ViewContainerRef, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BaseEntity } from '@memberjunction/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SectionLoaderComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
5
|
+
Entity: string;
|
|
6
|
+
Section: string;
|
|
7
|
+
record: BaseEntity;
|
|
8
|
+
EditMode: boolean;
|
|
9
|
+
container: ViewContainerRef;
|
|
10
|
+
private _sectionObj;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
ngAfterViewInit(): void;
|
|
13
|
+
private loadComponent;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionLoaderComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionLoaderComponent, "mj-form-section", never, { "Entity": { "alias": "Entity"; "required": false; }; "Section": { "alias": "Section"; "required": false; }; "record": { "alias": "record"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|