@memberjunction/ng-explorer-core 0.9.78 → 0.9.96
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 +117 -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 +55 -0
- package/dist/lib/report-browser-component/report-browser.component.d.ts +14 -14
- package/dist/lib/report-browser-component/report-browser.component.js +55 -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 +22 -22
- package/dist/lib/single-report/single-report.component.js +88 -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 +591 -581
- package/dist/module.d.ts +69 -65
- package/dist/module.js +356 -338
- package/dist/public-api.d.ts +46 -47
- package/dist/public-api.js +49 -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 +23 -15
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class SettingsComponent {
|
|
4
|
-
}
|
|
5
|
-
SettingsComponent.ɵfac = function SettingsComponent_Factory(t) { return new (t || SettingsComponent)(); };
|
|
6
|
-
SettingsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SettingsComponent, selectors: [["app-settings"]], decls: 2, vars: 0, template: function SettingsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
-
i0.ɵɵelementStart(0, "div");
|
|
8
|
-
i0.ɵɵtext(1, " MemberJunction Explorer - User Settings - Coming Soon...\n");
|
|
9
|
-
i0.ɵɵelementEnd();
|
|
10
|
-
} } });
|
|
11
|
-
(
|
|
12
|
-
type: Component,
|
|
13
|
-
args: [{ selector: 'app-settings', template: "<div>\n MemberJunction Explorer - User Settings - Coming Soon...\n</div>" }]
|
|
14
|
-
}], null, null); })();
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class SettingsComponent {
|
|
4
|
+
}
|
|
5
|
+
SettingsComponent.ɵfac = function SettingsComponent_Factory(t) { return new (t || SettingsComponent)(); };
|
|
6
|
+
SettingsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SettingsComponent, selectors: [["app-settings"]], decls: 2, vars: 0, template: function SettingsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
i0.ɵɵelementStart(0, "div");
|
|
8
|
+
i0.ɵɵtext(1, " MemberJunction Explorer - User Settings - Coming Soon...\n");
|
|
9
|
+
i0.ɵɵelementEnd();
|
|
10
|
+
} } });
|
|
11
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SettingsComponent, [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{ selector: 'app-settings', template: "<div>\n MemberJunction Explorer - User Settings - Coming Soon...\n</div>" }]
|
|
14
|
+
}], null, null); })();
|
|
15
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SettingsComponent, { className: "SettingsComponent", filePath: "src\\lib\\settings\\settings.component.ts", lineNumber: 8 }); })();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { ApplicationEntityInfo } from '@memberjunction/core';
|
|
4
|
-
import { UserFavoriteEntity } from '@memberjunction/core-entities';
|
|
5
|
-
import { SharedService } from '../../shared/shared.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SingleApplicationComponent implements OnInit {
|
|
8
|
-
private router;
|
|
9
|
-
private route;
|
|
10
|
-
private sharedService;
|
|
11
|
-
constructor(router: Router, route: ActivatedRoute, sharedService: SharedService);
|
|
12
|
-
appName: string;
|
|
13
|
-
appDescription: string;
|
|
14
|
-
appEntities: ApplicationEntityInfo[];
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
entityItemClick(info: ApplicationEntityInfo): void;
|
|
17
|
-
favoriteItemClick(fav: UserFavoriteEntity): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SingleApplicationComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SingleApplicationComponent, "app-single-application", never, {}, {}, never, never, false, never>;
|
|
20
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { ApplicationEntityInfo } from '@memberjunction/core';
|
|
4
|
+
import { UserFavoriteEntity } from '@memberjunction/core-entities';
|
|
5
|
+
import { SharedService } from '../../shared/shared.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SingleApplicationComponent implements OnInit {
|
|
8
|
+
private router;
|
|
9
|
+
private route;
|
|
10
|
+
private sharedService;
|
|
11
|
+
constructor(router: Router, route: ActivatedRoute, sharedService: SharedService);
|
|
12
|
+
appName: string;
|
|
13
|
+
appDescription: string;
|
|
14
|
+
appEntities: ApplicationEntityInfo[];
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
entityItemClick(info: ApplicationEntityInfo): void;
|
|
17
|
+
favoriteItemClick(fav: UserFavoriteEntity): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SingleApplicationComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SingleApplicationComponent, "app-single-application", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -1,113 +1,113 @@
|
|
|
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 } from '@angular/core';
|
|
11
|
-
import { Metadata } from '@memberjunction/core';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "@angular/router";
|
|
14
|
-
import * as i2 from "../../shared/shared.service";
|
|
15
|
-
import * as i3 from "@progress/kendo-angular-listview";
|
|
16
|
-
import * as i4 from "../favorites/favorites.component";
|
|
17
|
-
function SingleApplicationComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵelementStart(0, "div", 10)(1, "div", 11);
|
|
19
|
-
i0.ɵɵelement(2, "span", 12);
|
|
20
|
-
i0.ɵɵtext(3);
|
|
21
|
-
i0.ɵɵelementEnd();
|
|
22
|
-
i0.ɵɵelementStart(4, "div", 13);
|
|
23
|
-
i0.ɵɵtext(5);
|
|
24
|
-
i0.ɵɵelementEnd()();
|
|
25
|
-
} if (rf & 2) {
|
|
26
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
27
|
-
i0.ɵɵadvance(3);
|
|
28
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.appName, " - Entities ");
|
|
29
|
-
i0.ɵɵadvance(2);
|
|
30
|
-
i0.ɵɵtextInterpolate(ctx_r0.appEntities.length);
|
|
31
|
-
} }
|
|
32
|
-
function SingleApplicationComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
34
|
-
i0.ɵɵelementStart(0, "div", 14);
|
|
35
|
-
i0.ɵɵlistener("click", function SingleApplicationComponent_ng_template_12_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const dataItem_r2 = restoredCtx.dataItem; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.entityItemClick(dataItem_r2)); });
|
|
36
|
-
i0.ɵɵtext(1);
|
|
37
|
-
i0.ɵɵelementEnd();
|
|
38
|
-
} if (rf & 2) {
|
|
39
|
-
const dataItem_r2 = ctx.dataItem;
|
|
40
|
-
i0.ɵɵadvance(
|
|
41
|
-
i0.ɵɵtextInterpolate1(" ", dataItem_r2.Entity, " ");
|
|
42
|
-
} }
|
|
43
|
-
export class SingleApplicationComponent {
|
|
44
|
-
constructor(router, route, sharedService) {
|
|
45
|
-
this.router = router;
|
|
46
|
-
this.route = route;
|
|
47
|
-
this.sharedService = sharedService;
|
|
48
|
-
this.appName = '';
|
|
49
|
-
this.appDescription = '';
|
|
50
|
-
this.appEntities = [];
|
|
51
|
-
}
|
|
52
|
-
ngOnInit() {
|
|
53
|
-
this.route.paramMap.subscribe((params) => __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const appName = params.get('appName');
|
|
55
|
-
// Perform any necessary actions with the ViewID, such as fetching data
|
|
56
|
-
if (appName) {
|
|
57
|
-
this.appName = appName;
|
|
58
|
-
const md = new Metadata();
|
|
59
|
-
const app = md.Applications.find(a => a.Name == appName);
|
|
60
|
-
if (app) {
|
|
61
|
-
this.appDescription = app.Description;
|
|
62
|
-
this.appEntities = app.ApplicationEntities;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
67
|
-
entityItemClick(info) {
|
|
68
|
-
if (info) {
|
|
69
|
-
const paramsArray = ['entity', info.Entity];
|
|
70
|
-
this.router.navigate(paramsArray);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
favoriteItemClick(fav) {
|
|
74
|
-
if (fav) {
|
|
75
|
-
if (fav.Entity === 'User Views') {
|
|
76
|
-
// opening a view, different route
|
|
77
|
-
this.router.navigate(['resource', 'view', fav.RecordID]);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
this.router.navigate(['resource', 'record', fav.RecordID], { queryParams: { Entity: fav.Entity } });
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
SingleApplicationComponent.ɵfac = function SingleApplicationComponent_Factory(t) { return new (t || SingleApplicationComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
86
|
-
SingleApplicationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleApplicationComponent, selectors: [["app-single-application"]], decls: 14, vars: 3, consts: [[1, "card-container"], [1, "card-header-entity"], [1, "title-wrap"], [1, "k-icon", "k-i-information"], [1, "main-area"], [1, "list-view", "entity-list", 3, "data"], [1, "entity-wrap"], ["kendoListViewHeaderTemplate", ""], ["kendoListViewItemTemplate", ""], [1, "favorites-list"], [1, "header"], [1, "head-tag"], [1, "k-icon", "k-i-data"], [1, "count"], [1, "list-item", 3, "click"]], template: function SingleApplicationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1");
|
|
88
|
-
i0.ɵɵtext(4);
|
|
89
|
-
i0.ɵɵelementEnd();
|
|
90
|
-
i0.ɵɵelementStart(5, "p");
|
|
91
|
-
i0.ɵɵelement(6, "span", 3);
|
|
92
|
-
i0.ɵɵtext(7);
|
|
93
|
-
i0.ɵɵelementEnd()()();
|
|
94
|
-
i0.ɵɵelementStart(8, "div", 4)(9, "kendo-listview", 5);
|
|
95
|
-
i0.ɵɵelementContainerStart(10, 6);
|
|
96
|
-
i0.ɵɵtemplate(11, SingleApplicationComponent_ng_template_11_Template, 6, 2, "ng-template", 7);
|
|
97
|
-
i0.ɵɵ
|
|
98
|
-
i0.ɵɵ
|
|
99
|
-
i0.ɵɵ
|
|
100
|
-
i0.ɵɵ
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
i0.ɵɵ
|
|
104
|
-
i0.ɵɵ
|
|
105
|
-
i0.ɵɵ
|
|
106
|
-
i0.ɵɵ
|
|
107
|
-
i0.ɵɵ
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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 } from '@angular/core';
|
|
11
|
+
import { Metadata } from '@memberjunction/core';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@angular/router";
|
|
14
|
+
import * as i2 from "../../shared/shared.service";
|
|
15
|
+
import * as i3 from "@progress/kendo-angular-listview";
|
|
16
|
+
import * as i4 from "../favorites/favorites.component";
|
|
17
|
+
function SingleApplicationComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "div", 11);
|
|
19
|
+
i0.ɵɵelement(2, "span", 12);
|
|
20
|
+
i0.ɵɵtext(3);
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
i0.ɵɵelementStart(4, "div", 13);
|
|
23
|
+
i0.ɵɵtext(5);
|
|
24
|
+
i0.ɵɵelementEnd()();
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
27
|
+
i0.ɵɵadvance(3);
|
|
28
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.appName, " - Entities ");
|
|
29
|
+
i0.ɵɵadvance(2);
|
|
30
|
+
i0.ɵɵtextInterpolate(ctx_r0.appEntities.length);
|
|
31
|
+
} }
|
|
32
|
+
function SingleApplicationComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
34
|
+
i0.ɵɵelementStart(0, "div", 14);
|
|
35
|
+
i0.ɵɵlistener("click", function SingleApplicationComponent_ng_template_12_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const dataItem_r2 = restoredCtx.dataItem; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.entityItemClick(dataItem_r2)); });
|
|
36
|
+
i0.ɵɵtext(1);
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
} if (rf & 2) {
|
|
39
|
+
const dataItem_r2 = ctx.dataItem;
|
|
40
|
+
i0.ɵɵadvance();
|
|
41
|
+
i0.ɵɵtextInterpolate1(" ", dataItem_r2.Entity, " ");
|
|
42
|
+
} }
|
|
43
|
+
export class SingleApplicationComponent {
|
|
44
|
+
constructor(router, route, sharedService) {
|
|
45
|
+
this.router = router;
|
|
46
|
+
this.route = route;
|
|
47
|
+
this.sharedService = sharedService;
|
|
48
|
+
this.appName = '';
|
|
49
|
+
this.appDescription = '';
|
|
50
|
+
this.appEntities = [];
|
|
51
|
+
}
|
|
52
|
+
ngOnInit() {
|
|
53
|
+
this.route.paramMap.subscribe((params) => __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const appName = params.get('appName');
|
|
55
|
+
// Perform any necessary actions with the ViewID, such as fetching data
|
|
56
|
+
if (appName) {
|
|
57
|
+
this.appName = appName;
|
|
58
|
+
const md = new Metadata();
|
|
59
|
+
const app = md.Applications.find(a => a.Name == appName);
|
|
60
|
+
if (app) {
|
|
61
|
+
this.appDescription = app.Description;
|
|
62
|
+
this.appEntities = app.ApplicationEntities;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
entityItemClick(info) {
|
|
68
|
+
if (info) {
|
|
69
|
+
const paramsArray = ['entity', info.Entity];
|
|
70
|
+
this.router.navigate(paramsArray);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
favoriteItemClick(fav) {
|
|
74
|
+
if (fav) {
|
|
75
|
+
if (fav.Entity === 'User Views') {
|
|
76
|
+
// opening a view, different route
|
|
77
|
+
this.router.navigate(['resource', 'view', fav.RecordID]);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.router.navigate(['resource', 'record', fav.RecordID], { queryParams: { Entity: fav.Entity } });
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
SingleApplicationComponent.ɵfac = function SingleApplicationComponent_Factory(t) { return new (t || SingleApplicationComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
86
|
+
SingleApplicationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleApplicationComponent, selectors: [["app-single-application"]], decls: 14, vars: 3, consts: [[1, "card-container"], [1, "card-header-entity"], [1, "title-wrap"], [1, "k-icon", "k-i-information"], [1, "main-area"], [1, "list-view", "entity-list", 3, "data"], [1, "entity-wrap"], ["kendoListViewHeaderTemplate", ""], ["kendoListViewItemTemplate", ""], [1, "favorites-list"], [1, "header"], [1, "head-tag"], [1, "k-icon", "k-i-data"], [1, "count"], [1, "list-item", 3, "click"]], template: function SingleApplicationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1");
|
|
88
|
+
i0.ɵɵtext(4);
|
|
89
|
+
i0.ɵɵelementEnd();
|
|
90
|
+
i0.ɵɵelementStart(5, "p");
|
|
91
|
+
i0.ɵɵelement(6, "span", 3);
|
|
92
|
+
i0.ɵɵtext(7);
|
|
93
|
+
i0.ɵɵelementEnd()()();
|
|
94
|
+
i0.ɵɵelementStart(8, "div", 4)(9, "kendo-listview", 5);
|
|
95
|
+
i0.ɵɵelementContainerStart(10, 6);
|
|
96
|
+
i0.ɵɵtemplate(11, SingleApplicationComponent_ng_template_11_Template, 6, 2, "ng-template", 7)(12, SingleApplicationComponent_ng_template_12_Template, 2, 1, "ng-template", 8);
|
|
97
|
+
i0.ɵɵelementContainerEnd();
|
|
98
|
+
i0.ɵɵelementEnd();
|
|
99
|
+
i0.ɵɵelement(13, "app-favorites", 9);
|
|
100
|
+
i0.ɵɵelementEnd()();
|
|
101
|
+
} if (rf & 2) {
|
|
102
|
+
i0.ɵɵadvance(4);
|
|
103
|
+
i0.ɵɵtextInterpolate(ctx.appName);
|
|
104
|
+
i0.ɵɵadvance(3);
|
|
105
|
+
i0.ɵɵtextInterpolate1(" ", ctx.appDescription, "");
|
|
106
|
+
i0.ɵɵadvance(2);
|
|
107
|
+
i0.ɵɵproperty("data", ctx.appEntities);
|
|
108
|
+
} }, dependencies: [i3.ItemTemplateDirective, i3.HeaderTemplateDirective, i3.ListViewComponent, i4.FavoritesComponent], styles: [".entity-list[_ngcontent-%COMP%] {\r\n width: 500px;\r\n }\r\n .favorites-list[_ngcontent-%COMP%] {\r\n width: 400px;\r\n }", ".main-area[_ngcontent-%COMP%] {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n gap: 24px;\r\n padding: 24px 0;\r\n}\r\n.list-view[_ngcontent-%COMP%] {\r\n padding: 16px;\r\n min-width: 300px;\r\n border-radius: 4px;\r\n background: #FAFAFA;\r\n border: none;\r\n}\r\n .list-view .k-listview-header, .list-view .k-listview-footer {\r\n border: none;\r\n}\r\n .list-view .k-listview-content {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 4px;\r\n background: #fff;\r\n padding: 16px;\r\n}\r\n\r\n.header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n height: auto;\r\n margin:0;\r\n}\r\n\r\n.header[_ngcontent-%COMP%] {\r\n color: #424242;\r\n margin-bottom: 16px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\nfont-size: 16px;\r\nfont-style: normal;\r\nfont-weight: 400;\r\nline-height: 20px;\r\n}\r\n\r\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\r\n width: 24px;\r\n height: 24px;\r\n min-width: 24px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 10px;\r\n background: rgba(0, 0, 0, 0.08);\r\n border-radius: 50%;\r\n}\r\n.footer[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n margin-top: 16px;\r\n}\r\n\r\n.list-item[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n cursor: pointer;\r\n margin: 4px;\r\n}\r\n.card-container[_ngcontent-%COMP%] {\r\n margin: 0;\r\n padding: 0;\r\n box-shadow: none;\r\n}\r\n.card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n}\r\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n }\r\n\r\n \r\n\r\n\r\n \r\n .view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\r\n color: #ff6358;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 48px;\r\n margin-bottom: 0;\r\n }\r\n .card-container[_ngcontent-%COMP%] {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n }\r\n .main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\r\n display: flex;\r\n gap: 20px;\r\n }"] });
|
|
109
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleApplicationComponent, [{
|
|
110
|
+
type: Component,
|
|
111
|
+
args: [{ selector: 'app-single-application', template: "<div class=\"card-container\">\r\n <div class=\"card-header-entity\">\r\n <div class=\"title-wrap\">\r\n <h1>{{appName}}</h1>\r\n <p><span class=\"k-icon k-i-information\"></span> {{appDescription}}</p>\r\n </div>\r\n</div>\r\n <div class=\"main-area\">\r\n <kendo-listview\r\n [data]=\"appEntities\"\r\n class=\"list-view entity-list\"\r\n >\r\n <ng-container class=\"entity-wrap\">\r\n <ng-template kendoListViewHeaderTemplate>\r\n <div class=\"header\"> \r\n <div class=\"head-tag\">\r\n <span class=\"k-icon k-i-data\"></span>\r\n {{appName}} - Entities\r\n </div>\r\n <div class=\"count\">{{appEntities.length}}</div>\r\n </div>\r\n </ng-template>\r\n <ng-template kendoListViewItemTemplate let-dataItem=\"dataItem\">\r\n <div class=\"list-item\" (click)=\"entityItemClick(dataItem)\">\r\n {{dataItem.Entity}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </kendo-listview>\r\n\r\n <app-favorites class=\"favorites-list\"></app-favorites>\r\n </div>\r\n</div>\r\n", styles: [" .entity-list {\r\n width: 500px;\r\n }\r\n .favorites-list {\r\n width: 400px;\r\n }", "\r\n.main-area {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n gap: 24px;\r\n padding: 24px 0;\r\n}\r\n.list-view {\r\n padding: 16px;\r\n min-width: 300px;\r\n border-radius: 4px;\r\n background: #FAFAFA;\r\n border: none;\r\n}\r\n::ng-deep .list-view .k-listview-header, \r\n::ng-deep .list-view .k-listview-footer {\r\n border: none;\r\n}\r\n::ng-deep .list-view .k-listview-content {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 4px;\r\n background: #fff;\r\n padding: 16px;\r\n}\r\n\r\n.header,\r\n.footer {\r\n color: #424242;\r\n font-size: 16px;\r\n height: auto;\r\n margin:0;\r\n}\r\n\r\n.header {\r\n color: #424242;\r\n margin-bottom: 16px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.header .head-tag {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\nfont-size: 16px;\r\nfont-style: normal;\r\nfont-weight: 400;\r\nline-height: 20px;\r\n}\r\n\r\n.header .count {\r\n width: 24px;\r\n height: 24px;\r\n min-width: 24px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 10px;\r\n background: rgba(0, 0, 0, 0.08);\r\n border-radius: 50%;\r\n}\r\n.footer {\r\n font-size: 14px;\r\n margin-top: 16px;\r\n}\r\n\r\n.list-item {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n cursor: pointer;\r\n margin: 4px;\r\n}\r\n.card-container {\r\n margin: 0;\r\n padding: 0;\r\n box-shadow: none;\r\n}\r\n.card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n}\r\n.card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n }\r\n\r\n \r\n\r\n\r\n \r\n .view-card .view-icon {\r\n color: #ff6358;\r\n }\r\n .card-wrapper {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper .k-card-body {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper .view-card {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card .btn-wrapper {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body .view-card-content h5 {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body .view-card-content p {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 48px;\r\n margin-bottom: 0;\r\n }\r\n .card-container {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n }\r\n .main-area .card-list {\r\n display: flex;\r\n gap: 20px;\r\n }\r\n "] }]
|
|
112
|
+
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], null); })();
|
|
113
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleApplicationComponent, { className: "SingleApplicationComponent", filePath: "src\\lib\\single-application\\single-application.component.ts", lineNumber: 12 }); })();
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ResourceTypeEntity } from '@memberjunction/core-entities';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AddItemComponent implements OnInit {
|
|
5
|
-
onClose: EventEmitter<any>;
|
|
6
|
-
selectedResource: ResourceTypeEntity | null;
|
|
7
|
-
showloader: boolean;
|
|
8
|
-
resourceType: any;
|
|
9
|
-
selectedEntity: any;
|
|
10
|
-
selectedView: any;
|
|
11
|
-
selectedReport: any;
|
|
12
|
-
Entities: any[];
|
|
13
|
-
Views: any[];
|
|
14
|
-
Reports: any[];
|
|
15
|
-
get ResourceTypes(): any[];
|
|
16
|
-
private md;
|
|
17
|
-
constructor();
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
onResourceTypeChange(event: any): Promise<void>;
|
|
20
|
-
getViews(): Promise<void>;
|
|
21
|
-
getReports(): Promise<void>;
|
|
22
|
-
onEntityChange(event: any): void;
|
|
23
|
-
onViewChange(event: any): void;
|
|
24
|
-
addItem(): void;
|
|
25
|
-
closeDialog(): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddItemComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddItemComponent, "app-add-item-dialog", never, { "selectedResource": "selectedResource"; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
28
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ResourceTypeEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddItemComponent implements OnInit {
|
|
5
|
+
onClose: EventEmitter<any>;
|
|
6
|
+
selectedResource: ResourceTypeEntity | null;
|
|
7
|
+
showloader: boolean;
|
|
8
|
+
resourceType: any;
|
|
9
|
+
selectedEntity: any;
|
|
10
|
+
selectedView: any;
|
|
11
|
+
selectedReport: any;
|
|
12
|
+
Entities: any[];
|
|
13
|
+
Views: any[];
|
|
14
|
+
Reports: any[];
|
|
15
|
+
get ResourceTypes(): any[];
|
|
16
|
+
private md;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
onResourceTypeChange(event: any): Promise<void>;
|
|
20
|
+
getViews(): Promise<void>;
|
|
21
|
+
getReports(): Promise<void>;
|
|
22
|
+
onEntityChange(event: any): void;
|
|
23
|
+
onViewChange(event: any): void;
|
|
24
|
+
addItem(): void;
|
|
25
|
+
closeDialog(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddItemComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddItemComponent, "app-add-item-dialog", never, { "selectedResource": { "alias": "selectedResource"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
28
|
+
}
|