@memberjunction/ng-explorer-core 1.6.1 → 1.7.1
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/app-view/application-view.component.d.ts +21 -21
- package/dist/lib/app-view/application-view.component.d.ts.map +1 -1
- package/dist/lib/app-view/application-view.component.js +289 -100
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +1 -1
- package/dist/lib/data-browser-component/data-browser.component.d.ts +9 -3
- package/dist/lib/data-browser-component/data-browser.component.d.ts.map +1 -1
- package/dist/lib/data-browser-component/data-browser.component.js +167 -28
- package/dist/lib/generic-browser-list/generic-browser-list.component.d.ts +4 -1
- package/dist/lib/generic-browser-list/generic-browser-list.component.d.ts.map +1 -1
- package/dist/lib/generic-browser-list/generic-browser-list.component.js +6 -1
- package/dist/lib/header/header.component.d.ts.map +1 -1
- package/dist/lib/header/header.component.js +6 -3
- package/dist/lib/home-component/home.component.js +2 -2
- package/dist/lib/navigation/navigation.component.d.ts +1 -0
- package/dist/lib/navigation/navigation.component.d.ts.map +1 -1
- package/dist/lib/navigation/navigation.component.js +21 -4
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +1 -0
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +5 -0
- package/dist/lib/resource-wrappers/query-resource.component.d.ts +1 -0
- package/dist/lib/resource-wrappers/query-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/query-resource.component.js +5 -0
- package/dist/lib/resource-wrappers/record-resource.component.d.ts +1 -0
- package/dist/lib/resource-wrappers/record-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/record-resource.component.js +15 -0
- package/dist/lib/resource-wrappers/report-resource.component.d.ts +1 -0
- package/dist/lib/resource-wrappers/report-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/report-resource.component.js +5 -0
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +1 -0
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/search-results-resource.component.js +17 -1
- package/dist/lib/resource-wrappers/view-resource.component.d.ts +1 -0
- package/dist/lib/resource-wrappers/view-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/view-resource.component.js +5 -0
- package/dist/lib/single-application/single-application.component.d.ts +2 -1
- package/dist/lib/single-application/single-application.component.d.ts.map +1 -1
- package/dist/lib/single-application/single-application.component.js +6 -6
- package/dist/module.d.ts +2 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +9 -5
- package/package.json +18 -17
|
@@ -65,6 +65,6 @@ DashboardBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: D
|
|
|
65
65
|
} }, dependencies: [i3.GenericBrowserListComponent], styles: [".main-area[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view[_ngcontent-%COMP%] {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n .list-view .k-listview-header, \n .list-view .k-listview-footer {\n border: none;\n}\n .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header[_ngcontent-%COMP%], \n.footer[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header[_ngcontent-%COMP%] {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\n color: var(--sideNav);\n}\n.card-wrapper[_ngcontent-%COMP%] {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}"] });
|
|
66
66
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DashboardBrowserComponent, [{
|
|
67
67
|
type: Component,
|
|
68
|
-
args: [{ selector: 'app-dashboard-browser', template: "<app-generic-browser-list \
|
|
68
|
+
args: [{ selector: 'app-dashboard-browser', template: "<app-generic-browser-list \n title=\"Dashboards\" \n itemType=\"dashboard\" \n iconName=\"aggregateFields\" \n [items]=\"items\" \n addText=\"Create New Dashboard\"\n ItemEntityName=\"Dashboards\"\n resourceName=\"Dashboard\"\n CategoryEntityName=\"Dashboard Categories\"\n (itemClickEvent)=\"itemClick($event)\" \n (AfterAddFolderEvent)=\"onEvent($event)\"\n (AfterAddItemEvent)=\"onEvent($event)\"\n (AfterDeleteItemEvent)=\"onEvent($event)\"\n (AfterDeleteFolderEvent)=\"onEvent($event)\"\n (BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n [selectedFolderID]=\"selectedFolderID\"\n [showLoader]=\"showLoader\"\n [displayAsGrid]=\"displayAsGrid\"\n (viewModeChangeEvent)=\"onViewModeChange($event)\"\n/>\n", styles: ["\n.main-area {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n::ng-deep .list-view .k-listview-header, \n::ng-deep .list-view .k-listview-footer {\n border: none;\n}\n::ng-deep .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header,\n.footer {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header .head-tag {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header .count {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card .view-icon {\n color: var(--sideNav);\n}\n.card-wrapper {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper .k-card-body {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper .view-card {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card .btn-wrapper {\n display: flex;\n align-items: center;\n}\n\n.k-card-body .view-card-content h5 {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body .view-card-content p {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area .card-list {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}\n"] }]
|
|
69
69
|
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], null); })();
|
|
70
70
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DashboardBrowserComponent, { className: "DashboardBrowserComponent", filePath: "src/lib/dashboard-browser-component/dashboard-browser.component.ts", lineNumber: 15 }); })();
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { Router } from '@angular/router';
|
|
2
|
-
import {
|
|
2
|
+
import { ApplicationEntity } from '@memberjunction/core-entities';
|
|
3
3
|
import { SharedService } from '@memberjunction/ng-shared';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DataBrowserComponent {
|
|
6
6
|
sharedService: SharedService;
|
|
7
7
|
private router;
|
|
8
8
|
showLoader: boolean;
|
|
9
|
-
|
|
9
|
+
AllApplications: ApplicationEntity[];
|
|
10
|
+
SelectedApplications: ApplicationEntity[];
|
|
11
|
+
UnselectedApplications: ApplicationEntity[];
|
|
10
12
|
constructor(sharedService: SharedService, router: Router);
|
|
11
13
|
ngOnInit(): void;
|
|
12
14
|
LoadData(): Promise<void>;
|
|
13
|
-
appItemClick(info:
|
|
15
|
+
appItemClick(info: ApplicationEntity): void;
|
|
16
|
+
AppSelectionDialogVisible: boolean;
|
|
17
|
+
ShowAppSelectionDialog(): Promise<void>;
|
|
18
|
+
GoHome(event: Event): Promise<void>;
|
|
19
|
+
OnAppSelectionDialogClosed(save: Boolean): Promise<void>;
|
|
14
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataBrowserComponent, never>;
|
|
15
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<DataBrowserComponent, "app-data-browser", never, {}, {}, never, never, false, never>;
|
|
16
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/data-browser-component/data-browser.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"data-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/data-browser-component/data-browser.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,EAAE,iBAAiB,EAAyB,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;;AAE1D,qBAKa,oBAAoB;IAOZ,aAAa,EAAE,aAAa;IAAE,OAAO,CAAC,MAAM;IANxD,UAAU,EAAE,OAAO,CAAQ;IAE3B,eAAe,EAAE,iBAAiB,EAAE,CAAM;IAC1C,oBAAoB,EAAE,iBAAiB,EAAE,CAAM;IAC/C,sBAAsB,EAAE,iBAAiB,EAAE,CAAM;gBAErC,aAAa,EAAE,aAAa,EAAU,MAAM,EAAE,MAAM;IAEvE,QAAQ,IAAI,IAAI;IAGV,QAAQ;IA4BP,YAAY,CAAC,IAAI,EAAE,iBAAiB;IAMpC,yBAAyB,EAAE,OAAO,CAAS;IAC5C,sBAAsB;IAItB,MAAM,CAAC,KAAK,EAAE,KAAK;IAMnB,0BAA0B,CAAC,IAAI,EAAE,OAAO;yCAzDnC,oBAAoB;2CAApB,oBAAoB;CAmHhC"}
|
|
@@ -8,48 +8,78 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Component } from '@angular/core';
|
|
11
|
-
import { Metadata } from '@memberjunction/core';
|
|
11
|
+
import { Metadata, RunView } from '@memberjunction/core';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
import * as i1 from "@memberjunction/ng-shared";
|
|
14
14
|
import * as i2 from "@angular/router";
|
|
15
15
|
import * as i3 from "@angular/common";
|
|
16
16
|
import * as i4 from "@progress/kendo-angular-indicators";
|
|
17
|
-
import * as i5 from "@progress/kendo-angular-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
import * as i5 from "@progress/kendo-angular-buttons";
|
|
18
|
+
import * as i6 from "@progress/kendo-angular-layout";
|
|
19
|
+
import * as i7 from "@memberjunction/ng-record-selector";
|
|
20
|
+
function DataBrowserComponent_kendo_loader_16_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
i0.ɵɵelement(0, "kendo-loader", 16);
|
|
20
22
|
} }
|
|
21
|
-
function
|
|
23
|
+
function DataBrowserComponent_div_17_div_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelement(0, "span", 23);
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const app_r2 = i0.ɵɵnextContext().$implicit;
|
|
27
|
+
i0.ɵɵproperty("ngClass", app_r2.Icon + " icon");
|
|
28
|
+
} }
|
|
29
|
+
function DataBrowserComponent_div_17_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
22
30
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23
|
-
i0.ɵɵelementStart(0, "div",
|
|
24
|
-
i0.ɵɵlistener("click", function
|
|
25
|
-
i0.ɵɵelementStart(
|
|
26
|
-
i0.ɵɵ
|
|
31
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
32
|
+
i0.ɵɵlistener("click", function DataBrowserComponent_div_17_div_1_Template_div_click_0_listener() { const app_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.appItemClick(app_r2)); });
|
|
33
|
+
i0.ɵɵelementStart(1, "kendo-card", 21)(2, "kendo-card-body")(3, "div", 22);
|
|
34
|
+
i0.ɵɵtemplate(4, DataBrowserComponent_div_17_div_1_Conditional_4_Template, 1, 1, "span", 23);
|
|
35
|
+
i0.ɵɵelementStart(5, "h2", 24);
|
|
36
|
+
i0.ɵɵtext(6);
|
|
27
37
|
i0.ɵɵelementEnd();
|
|
28
|
-
i0.ɵɵelementStart(
|
|
29
|
-
i0.ɵɵtext(
|
|
38
|
+
i0.ɵɵelementStart(7, "p", 25);
|
|
39
|
+
i0.ɵɵtext(8);
|
|
30
40
|
i0.ɵɵelementEnd()()()()();
|
|
31
41
|
} if (rf & 2) {
|
|
32
42
|
const app_r2 = ctx.$implicit;
|
|
33
|
-
i0.ɵɵadvance(
|
|
43
|
+
i0.ɵɵadvance(4);
|
|
44
|
+
i0.ɵɵconditional(app_r2.Icon && app_r2.Icon.length > 0 ? 4 : -1);
|
|
45
|
+
i0.ɵɵadvance(2);
|
|
34
46
|
i0.ɵɵtextInterpolate(app_r2.Name);
|
|
35
47
|
i0.ɵɵadvance(2);
|
|
36
48
|
i0.ɵɵtextInterpolate(app_r2.Description);
|
|
37
49
|
} }
|
|
38
|
-
function
|
|
39
|
-
i0.ɵɵ
|
|
40
|
-
i0.ɵɵ
|
|
50
|
+
function DataBrowserComponent_div_17_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
52
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
53
|
+
i0.ɵɵlistener("click", function DataBrowserComponent_div_17_Conditional_2_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.ShowAppSelectionDialog()); });
|
|
54
|
+
i0.ɵɵelementStart(1, "kendo-card", 21)(2, "kendo-card-body")(3, "div", 22);
|
|
55
|
+
i0.ɵɵelement(4, "span", 11);
|
|
56
|
+
i0.ɵɵelementStart(5, "h2", 24);
|
|
57
|
+
i0.ɵɵtext(6, "Select Apps");
|
|
58
|
+
i0.ɵɵelementEnd();
|
|
59
|
+
i0.ɵɵelementStart(7, "p", 25);
|
|
60
|
+
i0.ɵɵtext(8, "No apps selected yet, click here to add some");
|
|
61
|
+
i0.ɵɵelementEnd()()()()();
|
|
62
|
+
} }
|
|
63
|
+
function DataBrowserComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
65
|
+
i0.ɵɵtemplate(1, DataBrowserComponent_div_17_div_1_Template, 9, 3, "div", 18)(2, DataBrowserComponent_div_17_Conditional_2_Template, 9, 0, "div", 19);
|
|
41
66
|
i0.ɵɵelementEnd();
|
|
42
67
|
} if (rf & 2) {
|
|
43
68
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
44
69
|
i0.ɵɵadvance();
|
|
45
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.
|
|
70
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.SelectedApplications);
|
|
71
|
+
i0.ɵɵadvance();
|
|
72
|
+
i0.ɵɵconditional(ctx_r2.SelectedApplications.length === 0 && !ctx_r2.showLoader ? 2 : -1);
|
|
46
73
|
} }
|
|
47
74
|
export class DataBrowserComponent {
|
|
48
75
|
constructor(sharedService, router) {
|
|
49
76
|
this.sharedService = sharedService;
|
|
50
77
|
this.router = router;
|
|
51
78
|
this.showLoader = true;
|
|
52
|
-
this.
|
|
79
|
+
this.AllApplications = [];
|
|
80
|
+
this.SelectedApplications = [];
|
|
81
|
+
this.UnselectedApplications = [];
|
|
82
|
+
this.AppSelectionDialogVisible = false;
|
|
53
83
|
}
|
|
54
84
|
ngOnInit() {
|
|
55
85
|
this.LoadData();
|
|
@@ -57,8 +87,27 @@ export class DataBrowserComponent {
|
|
|
57
87
|
LoadData() {
|
|
58
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
89
|
this.showLoader = true;
|
|
60
|
-
const
|
|
61
|
-
|
|
90
|
+
const rv = new RunView();
|
|
91
|
+
const results = yield rv.RunView({
|
|
92
|
+
EntityName: 'Applications',
|
|
93
|
+
ResultType: 'entity_object'
|
|
94
|
+
});
|
|
95
|
+
if (results && results.Success) {
|
|
96
|
+
this.AllApplications = results.Results;
|
|
97
|
+
}
|
|
98
|
+
const userApps = yield rv.RunView({
|
|
99
|
+
EntityName: 'User Applications',
|
|
100
|
+
ResultType: 'entity_object',
|
|
101
|
+
ExtraFilter: `UserID = ${new Metadata().CurrentUser.ID}`,
|
|
102
|
+
OrderBy: 'Sequence'
|
|
103
|
+
});
|
|
104
|
+
if (userApps && userApps.Success) {
|
|
105
|
+
const apps = userApps.Results.map(ua => this.AllApplications.find(a => a.ID === ua.ApplicationID && ua.IsActive)).filter(a => a); // filter out null entries
|
|
106
|
+
if (!apps.some(a => !a))
|
|
107
|
+
this.SelectedApplications = apps; // forced typecast as we know now that all are non-null
|
|
108
|
+
// now populate the unselected applications
|
|
109
|
+
this.UnselectedApplications = this.AllApplications.filter(a => !this.SelectedApplications.some(sa => sa.ID === a.ID));
|
|
110
|
+
}
|
|
62
111
|
this.showLoader = false;
|
|
63
112
|
});
|
|
64
113
|
}
|
|
@@ -67,23 +116,113 @@ export class DataBrowserComponent {
|
|
|
67
116
|
this.router.navigate(['app', info.Name]);
|
|
68
117
|
}
|
|
69
118
|
}
|
|
119
|
+
ShowAppSelectionDialog() {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
this.AppSelectionDialogVisible = true;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
GoHome(event) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
event.preventDefault();
|
|
127
|
+
// tell the router to go to /home
|
|
128
|
+
this.router.navigate(['home']);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
OnAppSelectionDialogClosed(save) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
this.AppSelectionDialogVisible = false;
|
|
134
|
+
// now we need to process the changes if the user hit save
|
|
135
|
+
if (save) {
|
|
136
|
+
// we need to basically make sure the User Applications entity for this user maps to the set of selected Applications in the order selected as well
|
|
137
|
+
const md = new Metadata();
|
|
138
|
+
const rv = new RunView();
|
|
139
|
+
const userApps = yield rv.RunView({
|
|
140
|
+
EntityName: 'User Applications',
|
|
141
|
+
ExtraFilter: `UserID=${md.CurrentUser.ID}`,
|
|
142
|
+
ResultType: 'entity_object',
|
|
143
|
+
OrderBy: 'Sequence',
|
|
144
|
+
});
|
|
145
|
+
// userApps.results is the current DB state, we need to now compare it to the SelectedApplications array
|
|
146
|
+
// and if there are changes either update sequence values or set IsActive=false for records that are not selected anyomre. We
|
|
147
|
+
// don't ever actually delete existing UserApplication records becaue we want to retain the UserApplicationEntities in case the
|
|
148
|
+
// user selects the app again in the future
|
|
149
|
+
const existingUserApps = userApps.Results;
|
|
150
|
+
const userAppsToSave = [];
|
|
151
|
+
// first we need to update the sequence values for the selected applications
|
|
152
|
+
for (let index = 0; index < this.SelectedApplications.length; index++) {
|
|
153
|
+
const app = this.SelectedApplications[index];
|
|
154
|
+
const existing = existingUserApps.find(ua => ua.ApplicationID === app.ID);
|
|
155
|
+
if (existing) {
|
|
156
|
+
existing.IsActive = true;
|
|
157
|
+
existing.Sequence = index;
|
|
158
|
+
userAppsToSave.push(existing);
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
// this is a new app that the user has selected
|
|
162
|
+
const newApp = yield md.GetEntityObject("User Applications");
|
|
163
|
+
newApp.ApplicationID = app.ID;
|
|
164
|
+
newApp.UserID = md.CurrentUser.ID;
|
|
165
|
+
newApp.Sequence = index;
|
|
166
|
+
userAppsToSave.push(newApp);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
// now we need to set IsActive=false for any records that are not selected anymore
|
|
170
|
+
for (let index = 0; index < existingUserApps.length; index++) {
|
|
171
|
+
const existing = existingUserApps[index];
|
|
172
|
+
if (!this.SelectedApplications.some(sa => sa.ID === existing.ApplicationID)) {
|
|
173
|
+
existing.IsActive = false;
|
|
174
|
+
userAppsToSave.push(existing);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
// finally, we need to submit a single transaction so we have one server round trip to commit all this good stuff
|
|
178
|
+
const tg = yield md.CreateTransactionGroup();
|
|
179
|
+
for (let index = 0; index < userAppsToSave.length; index++) {
|
|
180
|
+
const ua = userAppsToSave[index];
|
|
181
|
+
ua.TransactionGroup = tg;
|
|
182
|
+
ua.Save(); // no await since we are in a transaction group
|
|
183
|
+
}
|
|
184
|
+
if (!(yield tg.Submit())) {
|
|
185
|
+
// the data doesn't need to be updated when we are succesful because we're all bound to the same data which is cool
|
|
186
|
+
// but in this case we need to notify the user it failed
|
|
187
|
+
this.sharedService.CreateSimpleNotification('There was an error saving your application selections. Please try again later or notify a system administrator.', "error", 3500);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
70
192
|
}
|
|
71
193
|
DataBrowserComponent.ɵfac = function DataBrowserComponent_Factory(t) { return new (t || DataBrowserComponent)(i0.ɵɵdirectiveInject(i1.SharedService), i0.ɵɵdirectiveInject(i2.Router)); };
|
|
72
|
-
DataBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataBrowserComponent, selectors: [["app-data-browser"]], decls:
|
|
73
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "
|
|
74
|
-
i0.ɵɵ
|
|
194
|
+
DataBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataBrowserComponent, selectors: [["app-data-browser"]], decls: 18, vars: 6, consts: [[1, "data-browser-container"], [1, "card-header-entity"], [1, "title-wrap"], [1, "title-wrap-inner"], [1, "breadcrumb", 3, "click"], [1, "fa-solid", "fa-house", "home-icon"], [1, "breadcrumb-separator"], [1, "fa-solid", "fa-chevron-right"], [1, "breadcrumb-end"], [1, "config-button"], ["kendoButton", "", 3, "click"], [1, "fa-solid", "fa-gear"], ["DisplayField", "Name", "DisplayIconField", "Icon", 3, "DialogClosed", "AvailableRecords", "SelectedRecords", "UnselectedRecords", "DialogVisible"], [1, "main-area"], ["type", "converging-spinner", 4, "ngIf"], ["class", "card-list k-d-flex k-flex-row k-h-full k-flex-wrap", 4, "ngIf"], ["type", "converging-spinner"], [1, "card-list", "k-d-flex", "k-flex-row", "k-h-full", "k-flex-wrap"], ["class", "card-item", 3, "click", 4, "ngFor", "ngForOf"], [1, "card-item"], [1, "card-item", 3, "click"], [1, "card-wrapper"], [1, "view-card-content", "k-cursor-pointer"], [3, "ngClass"], ["kendoCardTitle", ""], ["kendoCardSubtitle", ""]], template: function DataBrowserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
195
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "span", 4);
|
|
196
|
+
i0.ɵɵlistener("click", function DataBrowserComponent_Template_span_click_4_listener($event) { return ctx.GoHome($event); });
|
|
197
|
+
i0.ɵɵelement(5, "span", 5);
|
|
198
|
+
i0.ɵɵtext(6, "Home ");
|
|
199
|
+
i0.ɵɵelementEnd();
|
|
200
|
+
i0.ɵɵelementStart(7, "span", 6);
|
|
201
|
+
i0.ɵɵelement(8, "span", 7);
|
|
202
|
+
i0.ɵɵelementEnd();
|
|
203
|
+
i0.ɵɵelementStart(9, "span", 8);
|
|
204
|
+
i0.ɵɵtext(10, "Applications");
|
|
205
|
+
i0.ɵɵelementEnd()()();
|
|
206
|
+
i0.ɵɵelementStart(11, "div", 9)(12, "button", 10);
|
|
207
|
+
i0.ɵɵlistener("click", function DataBrowserComponent_Template_button_click_12_listener() { return ctx.ShowAppSelectionDialog(); });
|
|
208
|
+
i0.ɵɵelement(13, "span", 11);
|
|
209
|
+
i0.ɵɵelementEnd();
|
|
210
|
+
i0.ɵɵelementStart(14, "mj-record-selector-dialog", 12);
|
|
211
|
+
i0.ɵɵlistener("DialogClosed", function DataBrowserComponent_Template_mj_record_selector_dialog_DialogClosed_14_listener($event) { return ctx.OnAppSelectionDialogClosed($event); });
|
|
75
212
|
i0.ɵɵelementEnd()()();
|
|
76
|
-
i0.ɵɵelementStart(
|
|
77
|
-
i0.ɵɵtemplate(
|
|
213
|
+
i0.ɵɵelementStart(15, "div", 13);
|
|
214
|
+
i0.ɵɵtemplate(16, DataBrowserComponent_kendo_loader_16_Template, 1, 0, "kendo-loader", 14)(17, DataBrowserComponent_div_17_Template, 3, 2, "div", 15);
|
|
78
215
|
i0.ɵɵelementEnd()();
|
|
79
216
|
} if (rf & 2) {
|
|
80
|
-
i0.ɵɵadvance(
|
|
217
|
+
i0.ɵɵadvance(14);
|
|
218
|
+
i0.ɵɵproperty("AvailableRecords", ctx.AllApplications)("SelectedRecords", ctx.SelectedApplications)("UnselectedRecords", ctx.UnselectedApplications)("DialogVisible", ctx.AppSelectionDialogVisible);
|
|
219
|
+
i0.ɵɵadvance(2);
|
|
81
220
|
i0.ɵɵproperty("ngIf", ctx.showLoader);
|
|
82
221
|
i0.ɵɵadvance();
|
|
83
222
|
i0.ɵɵproperty("ngIf", !ctx.showLoader);
|
|
84
|
-
} }, dependencies: [i3.NgForOf, i3.NgIf, i4.LoaderComponent, i5.CardComponent,
|
|
223
|
+
} }, dependencies: [i3.NgClass, i3.NgForOf, i3.NgIf, i4.LoaderComponent, i5.ButtonComponent, i6.CardComponent, i6.CardBodyComponent, i6.CardTitleDirective, i6.CardSubtitleDirective, i7.RecordSelectorDialogComponent], styles: [".data-browser-container[_ngcontent-%COMP%] {\n padding: 15px;\n}\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] {\n background: #fff;\n border-radius: 10px;\n height: 200px;\n border: 3px solid transparent;\n}\n\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%]:hover {\n border: 3px solid var(--border-active);\n box-shadow: 0px 0px 20px 0px rgba(60, 73, 99, 0.2);\n\n }\n .main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%]:hover .view-card-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n color: var(--border-active);\n }\n .view-card-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 36px;\n text-align: center;\n line-height: 42px;\n font-weight: 500;\n color: var(--text-darked);\n }\n .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n text-align: center;\n font-size: 18px;\n line-height: 28px;\n color: var(--text-darked);\n }\n \n.view-card-content[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] {\n position: absolute;\n top: 20px; \n left: 20px; \n font-size: 32px;\n}\n.card-list[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] {\n position: relative; \n}\n\n .card-wrapper[_ngcontent-%COMP%] {\n height: 100%;\n border: none;\n }\n .card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center; \n align-items: center;\n }\n\n .card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.title-wrap[_ngcontent-%COMP%] {\n flex-grow: 1;\n font-size: 24px;\n}\n.title-wrap-inner[_ngcontent-%COMP%] {\n display: block;\n}\n\n.breadcrumb[_ngcontent-%COMP%] {\n color: darkblue;\n cursor: pointer;\n display: inline;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.breadcrumb-end[_ngcontent-%COMP%] {\n display: inline;\n margin-left: 5px;\n}\n\n.breadcrumb-separator[_ngcontent-%COMP%] {\n font-size: 14px;\n display: inline;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.home-icon[_ngcontent-%COMP%] {\n margin-right: 5px;\n font-size: 18px;\n vertical-align: middle;\n}\n\n.config-button[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}", ".main-area[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view[_ngcontent-%COMP%] {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n .list-view .k-listview-header, \n .list-view .k-listview-footer {\n border: none;\n}\n .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header[_ngcontent-%COMP%], \n.footer[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header[_ngcontent-%COMP%] {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\n color: var(--sideNav);\n}\n.card-wrapper[_ngcontent-%COMP%] {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}"] });
|
|
85
224
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataBrowserComponent, [{
|
|
86
225
|
type: Component,
|
|
87
|
-
args: [{ selector: 'app-data-browser', template: "<div class=\"data-browser-container\">\n <div class=\"card-header-entity\">\n <div class=\"title-wrap\">\n <
|
|
226
|
+
args: [{ selector: 'app-data-browser', template: "<div class=\"data-browser-container\">\n <div class=\"card-header-entity\">\n <div class=\"title-wrap\">\n <div class=\"title-wrap-inner\">\n <span class=\"breadcrumb\" (click)=\"GoHome($event)\">\n <span class=\"fa-solid fa-house home-icon\"></span>Home\n </span>\n <span class=\"breadcrumb-separator\"><span class=\"fa-solid fa-chevron-right\"></span></span>\n <span class=\"breadcrumb-end\">Applications</span>\n </div>\n </div>\n <div class=\"config-button\">\n <button kendoButton (click)=\"ShowAppSelectionDialog()\"><span class=\"fa-solid fa-gear\"></span></button>\n <mj-record-selector-dialog [AvailableRecords]=\"AllApplications\" \n [SelectedRecords]=\"SelectedApplications\" \n [UnselectedRecords]=\"UnselectedApplications\"\n [DialogVisible]=\"AppSelectionDialogVisible\"\n DisplayField=\"Name\"\n DisplayIconField=\"Icon\"\n (DialogClosed)=\"OnAppSelectionDialogClosed($event)\">\n </mj-record-selector-dialog>\n </div>\n </div>\n <div class=\"main-area\"> \n <kendo-loader *ngIf=\"showLoader\" type=\"converging-spinner\" ></kendo-loader>\n <div class=\"card-list k-d-flex k-flex-row k-h-full k-flex-wrap\" *ngIf=\"!showLoader\">\n <div class=\"card-item\" *ngFor=\"let app of SelectedApplications\" (click)=\"appItemClick(app)\">\n <kendo-card class=\"card-wrapper\">\n <kendo-card-body>\n <div class=\"view-card-content k-cursor-pointer\">\n @if (app.Icon && app.Icon.length > 0) {\n <span [ngClass]=\"app.Icon + ' icon'\"></span>\n }\n <h2 kendoCardTitle>{{ app.Name }}</h2>\n <p kendoCardSubtitle>{{ app.Description }}</p>\n </div>\n </kendo-card-body>\n </kendo-card>\n </div>\n @if (SelectedApplications.length === 0 && !showLoader) {\n <div class=\"card-item\" (click)=\"ShowAppSelectionDialog()\">\n <kendo-card class=\"card-wrapper\">\n <kendo-card-body>\n <div class=\"view-card-content k-cursor-pointer\">\n <span class=\"fa-solid fa-gear\"></span>\n <h2 kendoCardTitle>Select Apps</h2>\n <p kendoCardSubtitle>No apps selected yet, click here to add some</p>\n </div>\n </kendo-card-body>\n </kendo-card>\n </div>\n }\n </div>\n </div>\n</div>", styles: [".data-browser-container {\n padding: 15px;\n}\n.main-area .card-list .card-item {\n background: #fff;\n border-radius: 10px;\n height: 200px;\n border: 3px solid transparent;\n}\n\n.main-area .card-list .card-item:hover {\n border: 3px solid var(--border-active);\n box-shadow: 0px 0px 20px 0px rgba(60, 73, 99, 0.2);\n\n }\n .main-area .card-list .card-item:hover .view-card-content h2 {\n color: var(--border-active);\n }\n .view-card-content h2 {\n font-size: 36px;\n text-align: center;\n line-height: 42px;\n font-weight: 500;\n color: var(--text-darked);\n }\n .view-card-content p {\n text-align: center;\n font-size: 18px;\n line-height: 28px;\n color: var(--text-darked);\n }\n \n.view-card-content .icon {\n position: absolute;\n top: 20px; \n left: 20px; \n font-size: 32px;\n}\n.card-list .card-item {\n position: relative; \n}\n\n .card-wrapper {\n height: 100%;\n border: none;\n }\n .card-wrapper .k-card-body {\n display: flex;\n justify-content: center; \n align-items: center;\n }\n\n .card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.title-wrap {\n flex-grow: 1;\n font-size: 24px;\n}\n.title-wrap-inner {\n display: block;\n}\n\n.breadcrumb {\n color: darkblue;\n cursor: pointer;\n display: inline;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.breadcrumb-end {\n display: inline;\n margin-left: 5px;\n}\n\n.breadcrumb-separator {\n font-size: 14px;\n display: inline;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.home-icon {\n margin-right: 5px;\n font-size: 18px;\n vertical-align: middle;\n}\n\n.config-button {\n display: flex;\n align-items: center;\n}", "\n.main-area {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n::ng-deep .list-view .k-listview-header, \n::ng-deep .list-view .k-listview-footer {\n border: none;\n}\n::ng-deep .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header,\n.footer {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header .head-tag {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header .count {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card .view-icon {\n color: var(--sideNav);\n}\n.card-wrapper {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper .k-card-body {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper .view-card {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card .btn-wrapper {\n display: flex;\n align-items: center;\n}\n\n.k-card-body .view-card-content h5 {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body .view-card-content p {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area .card-list {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}\n"] }]
|
|
88
227
|
}], () => [{ type: i1.SharedService }, { type: i2.Router }], null); })();
|
|
89
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataBrowserComponent, { className: "DataBrowserComponent", filePath: "src/lib/data-browser-component/data-browser.component.ts", lineNumber:
|
|
228
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataBrowserComponent, { className: "DataBrowserComponent", filePath: "src/lib/data-browser-component/data-browser.component.ts", lineNumber: 12 }); })();
|
|
@@ -63,6 +63,9 @@ export declare class GenericBrowserListComponent implements OnInit {
|
|
|
63
63
|
private resourceTypes;
|
|
64
64
|
private createNewRecordName;
|
|
65
65
|
entityObjectName: string;
|
|
66
|
+
/**
|
|
67
|
+
* Data for the create button dropdown
|
|
68
|
+
*/
|
|
66
69
|
createButtonDropdownData: {
|
|
67
70
|
text: string;
|
|
68
71
|
}[];
|
|
@@ -94,6 +97,6 @@ export declare class GenericBrowserListComponent implements OnInit {
|
|
|
94
97
|
toggleCreateFolderView(visible?: boolean): void;
|
|
95
98
|
getIconForResourceType(item: Item): string;
|
|
96
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericBrowserListComponent, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GenericBrowserListComponent, "app-generic-browser-list", never, { "showLoader": { "alias": "showLoader"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "title": { "alias": "title"; "required": false; }; "items": { "alias": "items"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "disableAddButton": { "alias": "disableAddButton"; "required": false; }; "disableEditButton": { "alias": "disableEditButton"; "required": false; }; "addText": { "alias": "addText"; "required": false; }; "backText": { "alias": "backText"; "required": false; }; "ItemEntityName": { "alias": "ItemEntityName"; "required": false; }; "CategoryEntityName": { "alias": "CategoryEntityName"; "required": false; }; "selectedFolderID": { "alias": "selectedFolderID"; "required": false; }; "showNotifications": { "alias": "showNotifications"; "required": false; }; "categoryEntityID": { "alias": "categoryEntityID"; "required": false; }; "displayAsGrid": { "alias": "displayAsGrid"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "viewingResource": { "alias": "viewingResource"; "required": false; }; "displayItemsAsList": { "alias": "displayItemsAsList"; "required": false; }; }, { "BeforeAddFolderEvent": "BeforeAddFolderEvent"; "BeforeAddItemEvent": "BeforeAddItemEvent"; "BeforeDeleteFolderEvent": "BeforeDeleteFolderEvent"; "BeforeDeleteItemEvent": "BeforeDeleteItemEvent"; "BeforeUpdateFolderEvent": "BeforeUpdateFolderEvent"; "BeforeUpdateItemEvent": "BeforeUpdateItemEvent"; "AfterAddFolderEvent": "AfterAddFolderEvent"; "AfterAddItemEvent": "AfterAddItemEvent"; "AfterDeleteFolderEvent": "AfterDeleteFolderEvent"; "AfterDeleteItemEvent": "AfterDeleteItemEvent"; "AfterUpdateFolderEvent": "AfterUpdateFolderEvent"; "AfterUpdateItemEvent": "AfterUpdateItemEvent"; "itemClickEvent": "itemClickEvent"; "backButtonClickEvent": "backButtonClickEvent"; "viewModeChangeEvent": "viewModeChangeEvent"; }, never, never, false, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericBrowserListComponent, "app-generic-browser-list", never, { "showLoader": { "alias": "showLoader"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "title": { "alias": "title"; "required": false; }; "items": { "alias": "items"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "disableAddButton": { "alias": "disableAddButton"; "required": false; }; "disableEditButton": { "alias": "disableEditButton"; "required": false; }; "addText": { "alias": "addText"; "required": false; }; "backText": { "alias": "backText"; "required": false; }; "ItemEntityName": { "alias": "ItemEntityName"; "required": false; }; "CategoryEntityName": { "alias": "CategoryEntityName"; "required": false; }; "selectedFolderID": { "alias": "selectedFolderID"; "required": false; }; "showNotifications": { "alias": "showNotifications"; "required": false; }; "categoryEntityID": { "alias": "categoryEntityID"; "required": false; }; "displayAsGrid": { "alias": "displayAsGrid"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "viewingResource": { "alias": "viewingResource"; "required": false; }; "displayItemsAsList": { "alias": "displayItemsAsList"; "required": false; }; "createButtonDropdownData": { "alias": "createButtonDropdownData"; "required": false; }; }, { "BeforeAddFolderEvent": "BeforeAddFolderEvent"; "BeforeAddItemEvent": "BeforeAddItemEvent"; "BeforeDeleteFolderEvent": "BeforeDeleteFolderEvent"; "BeforeDeleteItemEvent": "BeforeDeleteItemEvent"; "BeforeUpdateFolderEvent": "BeforeUpdateFolderEvent"; "BeforeUpdateItemEvent": "BeforeUpdateItemEvent"; "AfterAddFolderEvent": "AfterAddFolderEvent"; "AfterAddItemEvent": "AfterAddItemEvent"; "AfterDeleteFolderEvent": "AfterDeleteFolderEvent"; "AfterDeleteItemEvent": "AfterDeleteItemEvent"; "AfterUpdateFolderEvent": "AfterUpdateFolderEvent"; "AfterUpdateItemEvent": "AfterUpdateItemEvent"; "itemClickEvent": "itemClickEvent"; "backButtonClickEvent": "backButtonClickEvent"; "viewModeChangeEvent": "viewModeChangeEvent"; }, never, never, false, never>;
|
|
98
101
|
}
|
|
99
102
|
//# sourceMappingURL=generic-browser-list.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-browser-list.component.d.ts","sourceRoot":"","sources":["../../../src/lib/generic-browser-list/generic-browser-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAqB,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAU,IAAI,EAAa,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAa,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,qBAAqB,EAAc,MAAM,4BAA4B,CAAC;AAEjV,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;;AAElF,qBAKa,2BAA4B,YAAW,MAAM;
|
|
1
|
+
{"version":3,"file":"generic-browser-list.component.d.ts","sourceRoot":"","sources":["../../../src/lib/generic-browser-list/generic-browser-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAqB,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAU,IAAI,EAAa,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAa,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,qBAAqB,EAAc,MAAM,4BAA4B,CAAC;AAEjV,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;;AAElF,qBAKa,2BAA4B,YAAW,MAAM;IA0ErC,aAAa,EAAE,aAAa;IAzEhB,mBAAmB,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAE1E,UAAU,EAAE,OAAO,CAAQ;IAC3B,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAM;IAC/B,KAAK,EAAE,GAAG,EAAE,CAAM;IAClB,QAAQ,EAAE,MAAM,CAAU;IAC1B,gBAAgB,EAAE,OAAO,CAAS;IAClC,iBAAiB,EAAE,OAAO,CAAS;IACnC,OAAO,EAAE,MAAM,CAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAa;IAC7B,cAAc,EAAE,MAAM,CAAM;IAC5B,kBAAkB,EAAE,MAAM,CAAM;IAChC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACvC,iBAAiB,EAAE,OAAO,CAAQ;IAClC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACvC,aAAa,EAAE,OAAO,CAAS;IAC/B,YAAY,EAAE,MAAM,CAAc;IAClD;;;;OAIG;IACa,eAAe,EAAE,OAAO,CAAS;IACjD;;;OAGG;IACa,kBAAkB,EAAE,OAAO,CAAS;IAInC,oBAAoB,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAA4C;IACpG,kBAAkB,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAA0C;IAC9F,uBAAuB,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAA+C;IAC7G,qBAAqB,EAAE,YAAY,CAAC,qBAAqB,CAAC,CAA6C;IACvG,uBAAuB,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAA+C;IAC7G,qBAAqB,EAAE,YAAY,CAAC,qBAAqB,CAAC,CAA6C;IAGvG,mBAAmB,EAAE,YAAY,CAAC,mBAAmB,CAAC,CAA2C;IACjG,iBAAiB,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAyC;IAC3F,sBAAsB,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAA8C;IAC1G,oBAAoB,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAA4C;IACpG,sBAAsB,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAA8C;IAC1G,oBAAoB,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAA4C;IAEpG,cAAc,EAAE,YAAY,CAAC,GAAG,CAAC,CAA2B;IAC5D,oBAAoB,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;IACpE,mBAAmB,EAAE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC,CAAuC;IAE1G,OAAO,CAAC,mBAAmB,CAAe;IAC1C,OAAO,CAAC,sBAAsB,CAAe;IAC7C,OAAO,CAAC,kBAAkB,CAA+B;IACzD,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,WAAW,CAAuB;IACnC,YAAY,EAAE,IAAI,GAAG,IAAI,CAAQ;IACjC,kBAAkB,EAAE,OAAO,CAAS;IACpC,oBAAoB,EAAE,OAAO,CAAS;IACtC,wBAAwB,EAAE,OAAO,CAAS;IACjD,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,aAAa,CAA4B;IACjD,OAAO,CAAC,mBAAmB,CAAoB;IAExC,gBAAgB,EAAE,MAAM,CAAM;IAErC;;OAEG;IACa,wBAAwB;;QAEtC;gBAEiB,aAAa,EAAE,aAAa;IAMlC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAgC/B,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAI9C,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAQ1B,iBAAiB;IAIX,wBAAwB;IAgCxB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAiD7B,UAAU,CAAC,IAAI,EAAE,IAAI;IA6BrB,mBAAmB,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;YA0BxD,YAAY;YA2CZ,cAAc;YAuCd,sBAAsB;IAWpC,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,QAAQ;IAST,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAKpC,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAKzB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/C,OAAO,CAAC,WAAW;IAgBN,iBAAiB,CAAC,IAAI,EAAE,GAAG;IAYjC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAuBpB,mBAAmB,CAAC,IAAI,EAAE;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB9D,kBAAkB,IAAI,IAAI;IAI1B,gBAAgB,IAAI,MAAM;IAI1B,sBAAsB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI;IAS/C,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;yCA5dtC,2BAA2B;2CAA3B,2BAA2B;CA6evC"}
|
|
@@ -218,6 +218,9 @@ export class GenericBrowserListComponent {
|
|
|
218
218
|
this.resourceTypes = [];
|
|
219
219
|
this.createNewRecordName = "Record";
|
|
220
220
|
this.entityObjectName = "";
|
|
221
|
+
/**
|
|
222
|
+
* Data for the create button dropdown
|
|
223
|
+
*/
|
|
221
224
|
this.createButtonDropdownData = [
|
|
222
225
|
{ text: "Folder" },
|
|
223
226
|
];
|
|
@@ -585,7 +588,7 @@ GenericBrowserListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
585
588
|
} if (rf & 2) {
|
|
586
589
|
let _t;
|
|
587
590
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.entityFormDialogRef = _t.first);
|
|
588
|
-
} }, inputs: { showLoader: "showLoader", itemType: "itemType", title: "title", items: "items", iconName: "iconName", disableAddButton: "disableAddButton", disableEditButton: "disableEditButton", addText: "addText", backText: "backText", ItemEntityName: "ItemEntityName", CategoryEntityName: "CategoryEntityName", selectedFolderID: "selectedFolderID", showNotifications: "showNotifications", categoryEntityID: "categoryEntityID", displayAsGrid: "displayAsGrid", resourceName: "resourceName", viewingResource: "viewingResource", displayItemsAsList: "displayItemsAsList" }, outputs: { BeforeAddFolderEvent: "BeforeAddFolderEvent", BeforeAddItemEvent: "BeforeAddItemEvent", BeforeDeleteFolderEvent: "BeforeDeleteFolderEvent", BeforeDeleteItemEvent: "BeforeDeleteItemEvent", BeforeUpdateFolderEvent: "BeforeUpdateFolderEvent", BeforeUpdateItemEvent: "BeforeUpdateItemEvent", AfterAddFolderEvent: "AfterAddFolderEvent", AfterAddItemEvent: "AfterAddItemEvent", AfterDeleteFolderEvent: "AfterDeleteFolderEvent", AfterDeleteItemEvent: "AfterDeleteItemEvent", AfterUpdateFolderEvent: "AfterUpdateFolderEvent", AfterUpdateItemEvent: "AfterUpdateItemEvent", itemClickEvent: "itemClickEvent", backButtonClickEvent: "backButtonClickEvent", viewModeChangeEvent: "viewModeChangeEvent" }, decls: 27, vars: 9, consts: [["searchInput", ""], ["entityFormDialog", ""], [1, "generic-browser-list-container"], [1, "main-fav-wrapper"], [1, "title-wrapper"], [1, "title-flex-display"], ["title", "Folder", 1, "title-folder", "fa-regular", "fa-folder", "fa-2xl"], ["themeColor", "info", 1, "custom-dropdwn", 3, "itemClick", "data"], [1, "fa-solid", "fa-plus"], [1, "search"], ["type", "text", "placeholder", "Search", "size", "large", "rounded", "large", "fillMode", "solid", 3, "keyup", "clearButton"], ["kendoTextBoxPrefixTemplate", "", 3, "showSeparator"], [1, "filter-wrapper"], ["kendobutton", "", 1, "cursor-pointer", "grid-btn", "btn-cmn", 3, "click"], [1, "fa-solid", "fa-bars"], ["kendobutton", "", 1, "cursor-pointer", "active", "btn-cmn", 3, "click"], [1, "fa-solid", "fa-table-cells-large"], [1, "main-area"], ["type", "converging-spinner", 4, "ngIf"], ["class", "dialog-wrapper", "title", "Confirm", 3, "minWidth", "width", "close", 4, "ngIf"], ["title", "Create new Folder", "class", "dialog-wrapper", 3, "minWidth", "width", "close", 4, "ngIf"], ["Mode", "complete"], [1, "fa-solid", "fa-magnifying-glass", "margin-left-small"], ["type", "converging-spinner"], [3, "kendoGridBinding"], [1, "card-list", "k-d-flex", "k-flex-row", "k-h-full", "k-flex-wrap"], [3, "cellClick", "kendoGridBinding"], ["field", "Name", "title", "Name"], ["field", "Size", "title", "Size"], ["field", "LastOpened", "title", "Last Opened"], ["field", "ModifiedBy", "title", "Modified By"], ["title", ""], ["kendoGridCellTemplate", ""], [1, "grid-wrapper"], [1, "list-btn"], [1, "list-btn", 3, "click"], [1, "fa-regular", "fa-trash-can"], [1, "fa-regular", "fa-pen-to-square"], [1, "card-wrapper", "cursor-pointer"], [1, "list-item-icon"], [3, "click"], [3, "title", "ngClass"], [1, "padding-top-small"], ["kendoCardTitle", ""], ["kendoCardSubtitle", ""], ["title", "Confirm", 1, "dialog-wrapper", 3, "close", "minWidth", "width"], [1, "k-m-7.5", "k-text-center"], [1, "popup-actions-btn"], ["kendoButton", "", "themeColor", "info", 1, "cancel-btn", 3, "click"], ["kendoButton", "", "fillMode", "outline", "themeColor", "info", 1, "yes-btn", 3, "click"], ["title", "Create new Folder", 1, "dialog-wrapper", 3, "close", "minWidth", "width"], ["placeholder", "Enter a folder name", 3, "valueChange"]], template: function GenericBrowserListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
591
|
+
} }, inputs: { showLoader: "showLoader", itemType: "itemType", title: "title", items: "items", iconName: "iconName", disableAddButton: "disableAddButton", disableEditButton: "disableEditButton", addText: "addText", backText: "backText", ItemEntityName: "ItemEntityName", CategoryEntityName: "CategoryEntityName", selectedFolderID: "selectedFolderID", showNotifications: "showNotifications", categoryEntityID: "categoryEntityID", displayAsGrid: "displayAsGrid", resourceName: "resourceName", viewingResource: "viewingResource", displayItemsAsList: "displayItemsAsList", createButtonDropdownData: "createButtonDropdownData" }, outputs: { BeforeAddFolderEvent: "BeforeAddFolderEvent", BeforeAddItemEvent: "BeforeAddItemEvent", BeforeDeleteFolderEvent: "BeforeDeleteFolderEvent", BeforeDeleteItemEvent: "BeforeDeleteItemEvent", BeforeUpdateFolderEvent: "BeforeUpdateFolderEvent", BeforeUpdateItemEvent: "BeforeUpdateItemEvent", AfterAddFolderEvent: "AfterAddFolderEvent", AfterAddItemEvent: "AfterAddItemEvent", AfterDeleteFolderEvent: "AfterDeleteFolderEvent", AfterDeleteItemEvent: "AfterDeleteItemEvent", AfterUpdateFolderEvent: "AfterUpdateFolderEvent", AfterUpdateItemEvent: "AfterUpdateItemEvent", itemClickEvent: "itemClickEvent", backButtonClickEvent: "backButtonClickEvent", viewModeChangeEvent: "viewModeChangeEvent" }, decls: 27, vars: 9, consts: [["searchInput", ""], ["entityFormDialog", ""], [1, "generic-browser-list-container"], [1, "main-fav-wrapper"], [1, "title-wrapper"], [1, "title-flex-display"], ["title", "Folder", 1, "title-folder", "fa-regular", "fa-folder", "fa-2xl"], ["themeColor", "info", 1, "custom-dropdwn", 3, "itemClick", "data"], [1, "fa-solid", "fa-plus"], [1, "search"], ["type", "text", "placeholder", "Search", "size", "large", "rounded", "large", "fillMode", "solid", 3, "keyup", "clearButton"], ["kendoTextBoxPrefixTemplate", "", 3, "showSeparator"], [1, "filter-wrapper"], ["kendobutton", "", 1, "cursor-pointer", "grid-btn", "btn-cmn", 3, "click"], [1, "fa-solid", "fa-bars"], ["kendobutton", "", 1, "cursor-pointer", "active", "btn-cmn", 3, "click"], [1, "fa-solid", "fa-table-cells-large"], [1, "main-area"], ["type", "converging-spinner", 4, "ngIf"], ["class", "dialog-wrapper", "title", "Confirm", 3, "minWidth", "width", "close", 4, "ngIf"], ["title", "Create new Folder", "class", "dialog-wrapper", 3, "minWidth", "width", "close", 4, "ngIf"], ["Mode", "complete"], [1, "fa-solid", "fa-magnifying-glass", "margin-left-small"], ["type", "converging-spinner"], [3, "kendoGridBinding"], [1, "card-list", "k-d-flex", "k-flex-row", "k-h-full", "k-flex-wrap"], [3, "cellClick", "kendoGridBinding"], ["field", "Name", "title", "Name"], ["field", "Size", "title", "Size"], ["field", "LastOpened", "title", "Last Opened"], ["field", "ModifiedBy", "title", "Modified By"], ["title", ""], ["kendoGridCellTemplate", ""], [1, "grid-wrapper"], [1, "list-btn"], [1, "list-btn", 3, "click"], [1, "fa-regular", "fa-trash-can"], [1, "fa-regular", "fa-pen-to-square"], [1, "card-wrapper", "cursor-pointer"], [1, "list-item-icon"], [3, "click"], [3, "title", "ngClass"], [1, "padding-top-small"], ["kendoCardTitle", ""], ["kendoCardSubtitle", ""], ["title", "Confirm", 1, "dialog-wrapper", 3, "close", "minWidth", "width"], [1, "k-m-7.5", "k-text-center"], [1, "popup-actions-btn"], ["kendoButton", "", "themeColor", "info", 1, "cancel-btn", 3, "click"], ["kendoButton", "", "fillMode", "outline", "themeColor", "info", 1, "yes-btn", 3, "click"], ["title", "Create new Folder", 1, "dialog-wrapper", 3, "close", "minWidth", "width"], ["placeholder", "Enter a folder name", 3, "valueChange"]], template: function GenericBrowserListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
589
592
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
590
593
|
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "div", 4)(3, "div", 5);
|
|
591
594
|
i0.ɵɵtemplate(4, GenericBrowserListComponent_Conditional_4_Template, 1, 0, "span", 6);
|
|
@@ -707,5 +710,7 @@ GenericBrowserListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
707
710
|
type: Output
|
|
708
711
|
}], viewModeChangeEvent: [{
|
|
709
712
|
type: Output
|
|
713
|
+
}], createButtonDropdownData: [{
|
|
714
|
+
type: Input
|
|
710
715
|
}] }); })();
|
|
711
716
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GenericBrowserListComponent, { className: "GenericBrowserListComponent", filePath: "src/lib/generic-browser-list/generic-browser-list.component.ts", lineNumber: 16 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.component.d.ts","sourceRoot":"","sources":["../../../src/lib/header/header.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAqB,UAAU,EAAE,MAAM,EAAS,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"header.component.d.ts","sourceRoot":"","sources":["../../../src/lib/header/header.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAqB,UAAU,EAAE,MAAM,EAAS,MAAM,eAAe,CAAC;AAEtG,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAc,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;AAEvE,qBAKa,eAAgB,YAAW,MAAM;IAkCvB,QAAQ,EAAE,UAAU;IAAS,aAAa,EAAE,aAAa;IAAE,OAAO,CAAC,oBAAoB;IAAwB,OAAO,CAAC,MAAM;IAjCvI,eAAe,EAAG,MAAM,CAAC;IACzB,mBAAmB,EAAG,MAAM,CAAC;IAE/B,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAE7B;IACK,gBAAgB,EAAE,MAAM,CAAe;IACvC,YAAY,EAAE,MAAM,CAAqB;IAC/B,MAAM,oBAAsB;IAEnB,WAAW,EAAG,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAClC,cAAc,EAAG,qBAAqB,CAAA;IAEjE,OAAO,EAAE,MAAM,CAAI;IAEnB,gBAAgB;;;MAA4C;IAC5D,aAAa;;MAAoB;IACjC,MAAM,EAAE,GAAG,CAKhB;IACK,aAAa,MAAkB;IAEtC,IAAW,iBAAiB,IAAI,sBAAsB,EAAE,CAEvD;IAED,IAAW,uBAAuB,IAAI,MAAM,CAE3C;gBAEkB,QAAQ,EAAE,UAAU,EAAS,aAAa,EAAE,aAAa,EAAU,oBAAoB,EAAE,oBAAoB,EAAU,MAAM,EAAE,MAAM;IAEjJ,WAAW,CAAC,KAAK,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC;IAM/C,aAAa,IAAI,IAAI;IAIf,MAAM;IAMN,WAAW,CAAC,KAAK,EAAE,GAAG;IAMtB,iBAAiB,CAAC,KAAK,EAAE,GAAG;IAWlC,kBAAkB,EAAE,GAAG,EAAE,CAAM;IAC/B,cAAc,EAAE,GAAG,CAAC;IACd,QAAQ;YAuBP,sBAAsB;IAepC,OAAO,CAAC,WAAW;IAKZ,QAAQ,CAAC,KAAK,EAAE,GAAG;yCAlHjB,eAAe;2CAAf,eAAe;CA6H3B"}
|
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Component, EventEmitter, Output, ViewChild, Input } from '@angular/core';
|
|
11
|
+
import { take, firstValueFrom } from 'rxjs';
|
|
11
12
|
import { MJEventType, MJGlobal } from '@memberjunction/global';
|
|
12
13
|
import { EventCodes, SharedService } from '@memberjunction/ng-shared';
|
|
13
14
|
import { Metadata, RunView } from '@memberjunction/core';
|
|
@@ -105,8 +106,10 @@ export class HeaderComponent {
|
|
|
105
106
|
const md = new Metadata();
|
|
106
107
|
this.menuItems[0] = md.CurrentUser.FirstLast;
|
|
107
108
|
this.selectedMenuItem = this.menuItems[0];
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
const claims$ = (yield this.authBase.getUserClaims()).pipe(take(1));
|
|
110
|
+
const claims = yield firstValueFrom(claims$);
|
|
111
|
+
if (this.isMicrosoft(claims)) {
|
|
112
|
+
this.msftUserImageService.getPhoto(claims.accessToken).subscribe((blob) => {
|
|
110
113
|
this.userImageURL = URL.createObjectURL(blob);
|
|
111
114
|
this.sharedService.CurrentUserImage = this.userImageURL;
|
|
112
115
|
});
|
|
@@ -211,4 +214,4 @@ HeaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderCompo
|
|
|
211
214
|
type: ViewChild,
|
|
212
215
|
args: [DropDownListComponent]
|
|
213
216
|
}] }); })();
|
|
214
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderComponent, { className: "HeaderComponent", filePath: "src/lib/header/header.component.ts", lineNumber:
|
|
217
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderComponent, { className: "HeaderComponent", filePath: "src/lib/header/header.component.ts", lineNumber: 18 }); })();
|
|
@@ -61,9 +61,9 @@ HomeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HomeComponent
|
|
|
61
61
|
i0.ɵɵelementEnd()()();
|
|
62
62
|
i0.ɵɵelement(35, "app-favorites", 13);
|
|
63
63
|
i0.ɵɵelementEnd()();
|
|
64
|
-
} }, dependencies: [i3.FavoritesComponent], styles: [".home-container[_ngcontent-%COMP%] {\n padding:
|
|
64
|
+
} }, dependencies: [i3.FavoritesComponent], styles: [".home-container[_ngcontent-%COMP%] {\n padding: 15px;\n}\n\n.nav-container[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 24px;\n flex: 1;\n}\n.nav-item[_ngcontent-%COMP%] {\n border: solid 1px lightgray;\n border-radius: 5px;\n background: #fff;\n border-radius: 15px;\n width: 100%;;\n height: auto;\n box-sizing: border-box;\n padding: 25px;\n text-align: left;\n display: flex;\n gap: 26px;\n vertical-align: middle; \n font-size: 20px;\n cursor: pointer;\n}\n.nav-item[_ngcontent-%COMP%] .k-svg-icon[_ngcontent-%COMP%] {\n width: 75px;\n height: 75px;\n color: var(--sky-blue);\n}\n.nav-item[_ngcontent-%COMP%]:hover {\n box-shadow: 0px 0px 20px 0px rgba(60, 73, 99, 0.2);\n}\n\n\n.home-favorites[_ngcontent-%COMP%] {\n width: 500px;\n}\n\n.sky-blue[_ngcontent-%COMP%] {\n color: var(--sky-blue);\n}", ".main-area[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view[_ngcontent-%COMP%] {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n .list-view .k-listview-header, \n .list-view .k-listview-footer {\n border: none;\n}\n .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header[_ngcontent-%COMP%], \n.footer[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header[_ngcontent-%COMP%] {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\n color: var(--sideNav);\n}\n.card-wrapper[_ngcontent-%COMP%] {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}"] });
|
|
65
65
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HomeComponent, [{
|
|
66
66
|
type: Component,
|
|
67
|
-
args: [{ selector: 'app-home', template: "<div class=\"home-container\">\n <div class=\"card-header-entity\">\n <div class=\"title-wrap\">\n <h1>Home</h1>\n </div>\n </div>\n <div class=\"main-area\"> \n <div class=\"nav-container\">\n <div class=\"nav-item\" (click)=\"navigate('askskip')\">\n <span class=\"fa-solid fa-user fa-4x sky-blue\"></span>\n <span>Ask Skip</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('data')\">\n <span class=\"fa-solid fa-table-cells fa-4x sky-blue\"></span>\n <span>Data</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('queries')\">\n <span class=\"fa-solid fa-database fa-4x sky-blue\"></span>\n <span>Queries</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('dashboards')\">\n <span class=\"fa-solid fa-layer-group fa-4x sky-blue\"></span>\n <span>Dashboards</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('reports')\">\n <span class=\"fa-solid fa-chart-line fa-4x sky-blue\"></span>\n <span>Reports</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('lists')\">\n <span class=\"fa-solid fa-list-ul fa-4x sky-blue\"></span>\n <span>Lists</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('settings')\">\n <span class=\"fa-solid fa-gear fa-4x sky-blue\"></span>\n <span>Settings</span>\n </div>\n </div>\n\n <app-favorites class=\"home-favorites\"></app-favorites>\n </div>\n</div>", styles: [".home-container {\n padding:
|
|
67
|
+
args: [{ selector: 'app-home', template: "<div class=\"home-container\">\n <div class=\"card-header-entity\">\n <div class=\"title-wrap\">\n <h1>Home</h1>\n </div>\n </div>\n <div class=\"main-area\"> \n <div class=\"nav-container\">\n <div class=\"nav-item\" (click)=\"navigate('askskip')\">\n <span class=\"fa-solid fa-user fa-4x sky-blue\"></span>\n <span>Ask Skip</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('data')\">\n <span class=\"fa-solid fa-table-cells fa-4x sky-blue\"></span>\n <span>Data</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('queries')\">\n <span class=\"fa-solid fa-database fa-4x sky-blue\"></span>\n <span>Queries</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('dashboards')\">\n <span class=\"fa-solid fa-layer-group fa-4x sky-blue\"></span>\n <span>Dashboards</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('reports')\">\n <span class=\"fa-solid fa-chart-line fa-4x sky-blue\"></span>\n <span>Reports</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('lists')\">\n <span class=\"fa-solid fa-list-ul fa-4x sky-blue\"></span>\n <span>Lists</span>\n </div>\n <div class=\"nav-item\" (click)=\"navigate('settings')\">\n <span class=\"fa-solid fa-gear fa-4x sky-blue\"></span>\n <span>Settings</span>\n </div>\n </div>\n\n <app-favorites class=\"home-favorites\"></app-favorites>\n </div>\n</div>", styles: [".home-container {\n padding: 15px;\n}\n\n.nav-container {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 24px;\n flex: 1;\n}\n.nav-item {\n border: solid 1px lightgray;\n border-radius: 5px;\n background: #fff;\n border-radius: 15px;\n width: 100%;;\n height: auto;\n box-sizing: border-box;\n padding: 25px;\n text-align: left;\n display: flex;\n gap: 26px;\n vertical-align: middle; \n font-size: 20px;\n cursor: pointer;\n}\n.nav-item .k-svg-icon {\n width: 75px;\n height: 75px;\n color: var(--sky-blue);\n}\n.nav-item:hover {\n box-shadow: 0px 0px 20px 0px rgba(60, 73, 99, 0.2);\n}\n\n\n.home-favorites {\n width: 500px;\n}\n\n.sky-blue {\n color: var(--sky-blue);\n}", "\n.main-area {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n::ng-deep .list-view .k-listview-header, \n::ng-deep .list-view .k-listview-footer {\n border: none;\n}\n::ng-deep .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header,\n.footer {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header .head-tag {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header .count {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card .view-icon {\n color: var(--sideNav);\n}\n.card-wrapper {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper .k-card-body {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper .view-card {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card .btn-wrapper {\n display: flex;\n align-items: center;\n}\n\n.k-card-body .view-card-content h5 {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body .view-card-content p {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area .card-list {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}\n"] }]
|
|
68
68
|
}], () => [{ type: i1.SharedService }, { type: i2.Router }], null); })();
|
|
69
69
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HomeComponent, { className: "HomeComponent", filePath: "src/lib/home-component/home.component.ts", lineNumber: 10 }); })();
|