@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,12 +1,12 @@
|
|
|
1
|
-
import { DynamicReportComponent } from '../generic/dynamic-report';
|
|
2
|
-
import { SkipData } from './ask-skip.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SkipDynamicReportComponent {
|
|
5
|
-
theReport: DynamicReportComponent;
|
|
6
|
-
SkipData: SkipData | undefined;
|
|
7
|
-
ConversationID: number | null;
|
|
8
|
-
ConversationName: string | null;
|
|
9
|
-
ConversationDetailID: number | null;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkipDynamicReportComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkipDynamicReportComponent, "app-skip-dynamic-report", never, { "SkipData": "SkipData"; "ConversationID": "ConversationID"; "ConversationName": "ConversationName"; "ConversationDetailID": "ConversationDetailID"; }, {}, never, never, false, never>;
|
|
12
|
-
}
|
|
1
|
+
import { DynamicReportComponent } from '../generic/dynamic-report';
|
|
2
|
+
import { SkipData } from './ask-skip.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SkipDynamicReportComponent {
|
|
5
|
+
theReport: DynamicReportComponent;
|
|
6
|
+
SkipData: SkipData | undefined;
|
|
7
|
+
ConversationID: number | null;
|
|
8
|
+
ConversationName: string | null;
|
|
9
|
+
ConversationDetailID: number | null;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkipDynamicReportComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkipDynamicReportComponent, "app-skip-dynamic-report", never, { "SkipData": { "alias": "SkipData"; "required": false; }; "ConversationID": { "alias": "ConversationID"; "required": false; }; "ConversationName": { "alias": "ConversationName"; "required": false; }; "ConversationDetailID": { "alias": "ConversationDetailID"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
const _c0 = ["theReport"];
|
|
4
|
-
export class SkipDynamicReportComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.ConversationID = null;
|
|
7
|
-
this.ConversationName = null;
|
|
8
|
-
this.ConversationDetailID = null;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
SkipDynamicReportComponent.ɵfac = function SkipDynamicReportComponent_Factory(t) { return new (t || SkipDynamicReportComponent)(); };
|
|
12
|
-
SkipDynamicReportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SkipDynamicReportComponent, selectors: [["app-skip-dynamic-report"]], viewQuery: function SkipDynamicReportComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13
|
-
i0.ɵɵviewQuery(_c0, 5);
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
let _t;
|
|
16
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.theReport = _t.first);
|
|
17
|
-
} }, inputs: { SkipData: "SkipData", ConversationID: "ConversationID", ConversationName: "ConversationName", ConversationDetailID: "ConversationDetailID" }, decls: 3, vars: 5, consts: [[1, "skip-dynamic-report-container"], [3, "SkipData", "ConversationID", "ConversationName", "ConversationDetailID", "ShowCreateReportButton"], ["theReport", ""]], template: function SkipDynamicReportComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
19
|
-
i0.ɵɵelement(1, "app-dynamic-report", 1, 2);
|
|
20
|
-
i0.ɵɵelementEnd();
|
|
21
|
-
} if (rf & 2) {
|
|
22
|
-
i0.ɵɵadvance(
|
|
23
|
-
i0.ɵɵproperty("SkipData", ctx.SkipData)("ConversationID", ctx.ConversationID)("ConversationName", ctx.ConversationName)("ConversationDetailID", ctx.ConversationDetailID)("ShowCreateReportButton", true);
|
|
24
|
-
} }, styles: [".report-tab-title[_ngcontent-%COMP%] { margin-left: 10px;}", ".skip-dynamic-report-container[_ngcontent-%COMP%] {\n display: block;\n height: 450px;\n width: 90%;\n margin-right: 20px;\n }"] });
|
|
25
|
-
(
|
|
26
|
-
type: Component,
|
|
1
|
+
import { Component, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
const _c0 = ["theReport"];
|
|
4
|
+
export class SkipDynamicReportComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.ConversationID = null;
|
|
7
|
+
this.ConversationName = null;
|
|
8
|
+
this.ConversationDetailID = null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
SkipDynamicReportComponent.ɵfac = function SkipDynamicReportComponent_Factory(t) { return new (t || SkipDynamicReportComponent)(); };
|
|
12
|
+
SkipDynamicReportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SkipDynamicReportComponent, selectors: [["app-skip-dynamic-report"]], viewQuery: function SkipDynamicReportComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13
|
+
i0.ɵɵviewQuery(_c0, 5);
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
let _t;
|
|
16
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.theReport = _t.first);
|
|
17
|
+
} }, inputs: { SkipData: "SkipData", ConversationID: "ConversationID", ConversationName: "ConversationName", ConversationDetailID: "ConversationDetailID" }, decls: 3, vars: 5, consts: [[1, "skip-dynamic-report-container"], [3, "SkipData", "ConversationID", "ConversationName", "ConversationDetailID", "ShowCreateReportButton"], ["theReport", ""]], template: function SkipDynamicReportComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
19
|
+
i0.ɵɵelement(1, "app-dynamic-report", 1, 2);
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
i0.ɵɵadvance();
|
|
23
|
+
i0.ɵɵproperty("SkipData", ctx.SkipData)("ConversationID", ctx.ConversationID)("ConversationName", ctx.ConversationName)("ConversationDetailID", ctx.ConversationDetailID)("ShowCreateReportButton", true);
|
|
24
|
+
} }, styles: [".report-tab-title[_ngcontent-%COMP%] { margin-left: 10px;}", ".skip-dynamic-report-container[_ngcontent-%COMP%] {\n display: block;\n height: 450px;\n width: 90%;\n margin-right: 20px;\n }"] });
|
|
25
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SkipDynamicReportComponent, [{
|
|
26
|
+
type: Component,
|
|
27
27
|
args: [{ selector: 'app-skip-dynamic-report', template: `
|
|
28
28
|
<div class='skip-dynamic-report-container'>
|
|
29
29
|
<app-dynamic-report #theReport
|
|
@@ -34,16 +34,17 @@ SkipDynamicReportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
34
34
|
[ShowCreateReportButton]="true"
|
|
35
35
|
></app-dynamic-report>
|
|
36
36
|
</div>
|
|
37
|
-
`, styles: [".report-tab-title { margin-left: 10px;}", ".skip-dynamic-report-container {\n display: block;\n height: 450px;\n width: 90%;\n margin-right: 20px;\n }"] }]
|
|
38
|
-
}], null, { theReport: [{
|
|
39
|
-
type: ViewChild,
|
|
40
|
-
args: ['theReport', { static: false }]
|
|
41
|
-
}], SkipData: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], ConversationID: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], ConversationName: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], ConversationDetailID: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}] }); })();
|
|
37
|
+
`, styles: [".report-tab-title { margin-left: 10px;}", ".skip-dynamic-report-container {\n display: block;\n height: 450px;\n width: 90%;\n margin-right: 20px;\n }"] }]
|
|
38
|
+
}], null, { theReport: [{
|
|
39
|
+
type: ViewChild,
|
|
40
|
+
args: ['theReport', { static: false }]
|
|
41
|
+
}], SkipData: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], ConversationID: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], ConversationName: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], ConversationDetailID: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}] }); })();
|
|
50
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SkipDynamicReportComponent, { className: "SkipDynamicReportComponent", filePath: "src\\lib\\ask-skip\\skip-dynamic-report-wrapper.ts", lineNumber: 28 }); })();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MJAuthBase } from '@memberjunction/ng-auth-services';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AuthButtonComponent implements OnInit {
|
|
5
|
-
document: Document;
|
|
6
|
-
authBase: MJAuthBase;
|
|
7
|
-
constructor(document: Document, authBase: MJAuthBase);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
logout(): Promise<void>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthButtonComponent, "app-auth-button", never, {}, {}, never, never, false, never>;
|
|
12
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MJAuthBase } from '@memberjunction/ng-auth-services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AuthButtonComponent implements OnInit {
|
|
5
|
+
document: Document;
|
|
6
|
+
authBase: MJAuthBase;
|
|
7
|
+
constructor(document: Document, authBase: MJAuthBase);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
logout(): Promise<void>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthButtonComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthButtonComponent, "app-auth-button", never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -1,43 +1,44 @@
|
|
|
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, Inject } from '@angular/core';
|
|
11
|
-
import { DOCUMENT } from '@angular/common';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "@memberjunction/ng-auth-services";
|
|
14
|
-
export class AuthButtonComponent {
|
|
15
|
-
// Inject the authentication service into your component through the constructor
|
|
16
|
-
constructor(document, authBase) {
|
|
17
|
-
this.document = document;
|
|
18
|
-
this.authBase = authBase;
|
|
19
|
-
}
|
|
20
|
-
ngOnInit() {
|
|
21
|
-
}
|
|
22
|
-
logout() {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
this.authBase.logout();
|
|
25
|
-
localStorage.removeItem('auth');
|
|
26
|
-
localStorage.removeItem('claims');
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
AuthButtonComponent.ɵfac = function AuthButtonComponent_Factory(t) { return new (t || AuthButtonComponent)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i1.MJAuthBase)); };
|
|
31
|
-
AuthButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AuthButtonComponent, selectors: [["app-auth-button"]], decls: 2, vars: 0, consts: [[3, "click"]], template: function AuthButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
33
|
-
i0.ɵɵlistener("click", function AuthButtonComponent_Template_button_click_0_listener() { return ctx.authBase.login(); });
|
|
34
|
-
i0.ɵɵtext(1, " Log in\n");
|
|
35
|
-
i0.ɵɵelementEnd();
|
|
36
|
-
} } });
|
|
37
|
-
(
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{ selector: 'app-auth-button', template: "<!-- <ng-container *ngIf=\"authBase.authenticated; else loggedOut\">\r\n <button (click)=\"logout()\">\r\n Log out\r\n </button>\r\n</ng-container> -->\r\n<!-- <ng-template> -->\r\n<button (click)=\"authBase.login()\">\r\n Log in\r\n</button>\r\n<!-- </ng-template> -->\r\n" }]
|
|
40
|
-
}],
|
|
41
|
-
type: Inject,
|
|
42
|
-
args: [DOCUMENT]
|
|
43
|
-
}] }, { type: i1.MJAuthBase }]
|
|
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, Inject } from '@angular/core';
|
|
11
|
+
import { DOCUMENT } from '@angular/common';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@memberjunction/ng-auth-services";
|
|
14
|
+
export class AuthButtonComponent {
|
|
15
|
+
// Inject the authentication service into your component through the constructor
|
|
16
|
+
constructor(document, authBase) {
|
|
17
|
+
this.document = document;
|
|
18
|
+
this.authBase = authBase;
|
|
19
|
+
}
|
|
20
|
+
ngOnInit() {
|
|
21
|
+
}
|
|
22
|
+
logout() {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
this.authBase.logout();
|
|
25
|
+
localStorage.removeItem('auth');
|
|
26
|
+
localStorage.removeItem('claims');
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
AuthButtonComponent.ɵfac = function AuthButtonComponent_Factory(t) { return new (t || AuthButtonComponent)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i1.MJAuthBase)); };
|
|
31
|
+
AuthButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AuthButtonComponent, selectors: [["app-auth-button"]], decls: 2, vars: 0, consts: [[3, "click"]], template: function AuthButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
33
|
+
i0.ɵɵlistener("click", function AuthButtonComponent_Template_button_click_0_listener() { return ctx.authBase.login(); });
|
|
34
|
+
i0.ɵɵtext(1, " Log in\n");
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
} } });
|
|
37
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthButtonComponent, [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{ selector: 'app-auth-button', template: "<!-- <ng-container *ngIf=\"authBase.authenticated; else loggedOut\">\r\n <button (click)=\"logout()\">\r\n Log out\r\n </button>\r\n</ng-container> -->\r\n<!-- <ng-template> -->\r\n<button (click)=\"authBase.login()\">\r\n Log in\r\n</button>\r\n<!-- </ng-template> -->\r\n" }]
|
|
40
|
+
}], () => [{ type: Document, decorators: [{
|
|
41
|
+
type: Inject,
|
|
42
|
+
args: [DOCUMENT]
|
|
43
|
+
}] }, { type: i1.MJAuthBase }], null); })();
|
|
44
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AuthButtonComponent, { className: "AuthButtonComponent", filePath: "src\\lib\\auth-button\\auth-button.component.ts", lineNumber: 10 }); })();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { DashboardEntity } from '@memberjunction/core-entities';
|
|
3
|
-
import { SharedService } from '../../shared/shared.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DashboardBrowserComponent {
|
|
6
|
-
private router;
|
|
7
|
-
private sharedService;
|
|
8
|
-
dashboards: DashboardEntity[];
|
|
9
|
-
showLoader: boolean;
|
|
10
|
-
constructor(router: Router, sharedService: SharedService);
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
LoadData(): Promise<void>;
|
|
13
|
-
itemClick(item: DashboardEntity): void;
|
|
14
|
-
addNew(): Promise<void>;
|
|
15
|
-
deleteItem(item: DashboardEntity): Promise<void>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardBrowserComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardBrowserComponent, "app-dashboard-browser", never, {}, {}, never, never, false, never>;
|
|
18
|
-
}
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { DashboardEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import { SharedService } from '../../shared/shared.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DashboardBrowserComponent {
|
|
6
|
+
private router;
|
|
7
|
+
private sharedService;
|
|
8
|
+
dashboards: DashboardEntity[];
|
|
9
|
+
showLoader: boolean;
|
|
10
|
+
constructor(router: Router, sharedService: SharedService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
LoadData(): Promise<void>;
|
|
13
|
+
itemClick(item: DashboardEntity): void;
|
|
14
|
+
addNew(): Promise<void>;
|
|
15
|
+
deleteItem(item: DashboardEntity): Promise<void>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardBrowserComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardBrowserComponent, "app-dashboard-browser", never, {}, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -1,117 +1,117 @@
|
|
|
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, RunView } from '@memberjunction/core';
|
|
12
|
-
import { DashboardConfigDetails } from '../single-dashboard/single-dashboard.component';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "@angular/router";
|
|
15
|
-
import * as i2 from "../../shared/shared.service";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
dashboardEntity.
|
|
56
|
-
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
this.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
DashboardBrowserComponent.ɵ
|
|
107
|
-
|
|
108
|
-
i0.ɵɵ
|
|
109
|
-
i0.ɵɵ
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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, RunView } from '@memberjunction/core';
|
|
12
|
+
import { DashboardConfigDetails } from '../single-dashboard/single-dashboard.component';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "@angular/router";
|
|
15
|
+
import * as i2 from "../../shared/shared.service";
|
|
16
|
+
export class DashboardBrowserComponent {
|
|
17
|
+
constructor(router, sharedService) {
|
|
18
|
+
this.router = router;
|
|
19
|
+
this.sharedService = sharedService;
|
|
20
|
+
this.dashboards = [];
|
|
21
|
+
this.showLoader = false;
|
|
22
|
+
}
|
|
23
|
+
ngOnInit() {
|
|
24
|
+
this.LoadData();
|
|
25
|
+
}
|
|
26
|
+
LoadData() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
this.showLoader = true;
|
|
29
|
+
const md = new Metadata();
|
|
30
|
+
const rv = new RunView();
|
|
31
|
+
const result = yield rv.RunView({
|
|
32
|
+
EntityName: 'Dashboards',
|
|
33
|
+
ExtraFilter: `UserID=${md.CurrentUser.ID}`
|
|
34
|
+
});
|
|
35
|
+
if (result && result.Success) {
|
|
36
|
+
this.dashboards = result.Results;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.dashboards = [];
|
|
40
|
+
}
|
|
41
|
+
this.showLoader = false;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
itemClick(item) {
|
|
45
|
+
if (item) {
|
|
46
|
+
this.router.navigate(['resource', 'dashboard', item.ID]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
addNew() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
this.showLoader = true;
|
|
52
|
+
const metadata = new Metadata();
|
|
53
|
+
let dashboardEntity = yield metadata.GetEntityObject('Dashboards');
|
|
54
|
+
dashboardEntity.NewRecord();
|
|
55
|
+
dashboardEntity.UserID = metadata.CurrentUser.ID;
|
|
56
|
+
let dashboardCount = this.dashboards.length;
|
|
57
|
+
let nameSuffix = dashboardCount > 0 ? `${dashboardCount + 1}` : "";
|
|
58
|
+
dashboardEntity.Name = "New Dashboard " + nameSuffix;
|
|
59
|
+
let defaultConfigDetails = new DashboardConfigDetails();
|
|
60
|
+
const config = {
|
|
61
|
+
columns: defaultConfigDetails.columns,
|
|
62
|
+
rowHeight: defaultConfigDetails.rowHeight,
|
|
63
|
+
resizable: defaultConfigDetails.resizable,
|
|
64
|
+
reorderable: defaultConfigDetails.reorderable,
|
|
65
|
+
items: []
|
|
66
|
+
};
|
|
67
|
+
const configJSON = JSON.stringify(config);
|
|
68
|
+
dashboardEntity.UIConfigDetails = configJSON;
|
|
69
|
+
const result = yield dashboardEntity.Save();
|
|
70
|
+
if (result) {
|
|
71
|
+
this.dashboards.push(dashboardEntity);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
this.sharedService.CreateSimpleNotification("Error creating new dashboard entity", "error");
|
|
75
|
+
}
|
|
76
|
+
this.showLoader = false;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
deleteItem(item) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
this.showLoader = true;
|
|
82
|
+
if (item && item.ID && item.ID > 0) {
|
|
83
|
+
const md = new Metadata();
|
|
84
|
+
let dashboardEntity = yield md.GetEntityObject('Dashboards');
|
|
85
|
+
let loadResult = yield dashboardEntity.Load(item.ID);
|
|
86
|
+
if (loadResult) {
|
|
87
|
+
let deleteResult = yield dashboardEntity.Delete();
|
|
88
|
+
if (deleteResult) {
|
|
89
|
+
//todo - change these to use the shared
|
|
90
|
+
this.sharedService.CreateSimpleNotification(`successfully deleted dashboard record ${item.ID}`, "info");
|
|
91
|
+
this.dashboards = this.dashboards.filter(i => i.ID != item.ID);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this.sharedService.CreateSimpleNotification(`Unable to delete dashboard record ${item.ID}`, "error");
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
this.sharedService.CreateSimpleNotification(`unable to fetch dashboard record ${item.ID}`, "error");
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
this.showLoader = false;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
DashboardBrowserComponent.ɵfac = function DashboardBrowserComponent_Factory(t) { return new (t || DashboardBrowserComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
106
|
+
DashboardBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DashboardBrowserComponent, selectors: [["app-dashboard-browser"]], decls: 1, vars: 2, consts: [["title", "Dashboards", "itemType", "dashboard", 3, "items", "showLoader", "itemClickEvent", "addButtonClickEvent", "deleteButtonClickEvent"]], template: function DashboardBrowserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
107
|
+
i0.ɵɵelementStart(0, "app-generic-browse-list", 0);
|
|
108
|
+
i0.ɵɵlistener("itemClickEvent", function DashboardBrowserComponent_Template_app_generic_browse_list_itemClickEvent_0_listener($event) { return ctx.itemClick($event); })("addButtonClickEvent", function DashboardBrowserComponent_Template_app_generic_browse_list_addButtonClickEvent_0_listener() { return ctx.addNew(); })("deleteButtonClickEvent", function DashboardBrowserComponent_Template_app_generic_browse_list_deleteButtonClickEvent_0_listener($event) { return ctx.deleteItem($event); });
|
|
109
|
+
i0.ɵɵelementEnd();
|
|
110
|
+
} if (rf & 2) {
|
|
111
|
+
i0.ɵɵproperty("items", ctx.dashboards)("showLoader", ctx.showLoader);
|
|
112
|
+
} }, styles: [".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 }"] });
|
|
113
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DashboardBrowserComponent, [{
|
|
114
|
+
type: Component,
|
|
115
|
+
args: [{ selector: 'app-dashboard-browser', template: "<app-generic-browse-list title=\"Dashboards\" itemType=\"dashboard\" [items]=\"dashboards\" (itemClickEvent)=\"itemClick($event)\" (addButtonClickEvent)=\"addNew()\" (deleteButtonClickEvent)=\"deleteItem($event)\" [showLoader]=\"showLoader\">\r\n\r\n</app-generic-browse-list>", styles: ["\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 "] }]
|
|
116
|
+
}], () => [{ type: i1.Router }, { type: i2.SharedService }], null); })();
|
|
117
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DashboardBrowserComponent, { className: "DashboardBrowserComponent", filePath: "src\\lib\\dashboard-browser-component\\dashboard-browser.component.ts", lineNumber: 13 }); })();
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { ApplicationInfo } from '@memberjunction/core';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { ApplicationInfo } from '@memberjunction/core';
|
|
3
|
+
import { SharedService } from '../../public-api';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DataBrowserComponent {
|
|
6
|
+
sharedService: SharedService;
|
|
7
|
+
private router;
|
|
8
|
+
showLoader: boolean;
|
|
9
|
+
applications: ApplicationInfo[];
|
|
10
|
+
constructor(sharedService: SharedService, router: Router);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
LoadData(): Promise<void>;
|
|
13
|
+
appItemClick(info: ApplicationInfo): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataBrowserComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataBrowserComponent, "app-data-browser", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|