@memberjunction/ng-explorer-core 1.8.1 → 2.1.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/app-routing.module.d.ts +4 -0
- package/dist/app-routing.module.d.ts.map +1 -1
- package/dist/app-routing.module.js +60 -3
- package/dist/generic/Events.types.d.ts +13 -0
- package/dist/generic/Events.types.d.ts.map +1 -1
- package/dist/generic/Events.types.js +6 -0
- package/dist/generic/Item.types.d.ts +5 -5
- package/dist/lib/app-view/application-view.component.d.ts +4 -2
- package/dist/lib/app-view/application-view.component.d.ts.map +1 -1
- package/dist/lib/app-view/application-view.component.js +31 -33
- package/dist/lib/base-browser-component/base-browser-component.d.ts +2 -1
- package/dist/lib/base-browser-component/base-browser-component.d.ts.map +1 -1
- package/dist/lib/base-browser-component/base-browser-component.js +7 -5
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts +3 -0
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts.map +1 -1
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +21 -6
- package/dist/lib/data-browser-component/data-browser.component.d.ts +2 -2
- package/dist/lib/data-browser-component/data-browser.component.d.ts.map +1 -1
- package/dist/lib/data-browser-component/data-browser.component.js +23 -9
- package/dist/lib/expansion-panel-component/expansion-panel-component.js +4 -4
- package/dist/lib/favorites/favorites.component.d.ts.map +1 -1
- package/dist/lib/favorites/favorites.component.js +11 -4
- package/dist/lib/files/files.component.d.ts +3 -1
- package/dist/lib/files/files.component.d.ts.map +1 -1
- package/dist/lib/files/files.component.js +20 -5
- package/dist/lib/generic-browser-list/generic-browser-list.component.d.ts +9 -5
- 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 +21 -21
- package/dist/lib/header/header.component.d.ts.map +1 -1
- package/dist/lib/header/header.component.js +3 -13
- package/dist/lib/home-component/home.component.d.ts +5 -2
- package/dist/lib/home-component/home.component.d.ts.map +1 -1
- package/dist/lib/home-component/home.component.js +49 -51
- package/dist/lib/list-view/list-view.component.d.ts.map +1 -1
- package/dist/lib/list-view/list-view.component.js +15 -3
- package/dist/lib/navigation/navigation.component.d.ts +2 -2
- package/dist/lib/navigation/navigation.component.d.ts.map +1 -1
- package/dist/lib/navigation/navigation.component.js +55 -27
- package/dist/lib/query-browser-component/query-browser.component.d.ts.map +1 -1
- package/dist/lib/query-browser-component/query-browser.component.js +17 -5
- package/dist/lib/report-browser-component/report-browser.component.d.ts.map +1 -1
- package/dist/lib/report-browser-component/report-browser.component.js +15 -3
- package/dist/lib/resource-wrappers/view-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/view-resource.component.js +4 -3
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +1 -1
- package/dist/lib/single-dashboard/single-dashboard.component.js +1 -1
- package/dist/lib/single-list-detail/single-list-detail.component.d.ts +14 -4
- package/dist/lib/single-list-detail/single-list-detail.component.d.ts.map +1 -1
- package/dist/lib/single-list-detail/single-list-detail.component.js +232 -120
- package/dist/lib/single-query/single-query.component.d.ts +1 -1
- package/dist/lib/single-report/single-report.component.d.ts +1 -1
- package/dist/lib/single-search-result/single-search-result.component.js +1 -1
- package/dist/lib/single-view/single-view.component.d.ts +1 -1
- package/dist/lib/single-view/single-view.component.js +1 -1
- package/dist/lib/user-notifications/user-notifications.component.js +2 -2
- package/package.json +18 -18
|
@@ -12,7 +12,7 @@ import { TreeItem } from '../../generic/Item.types';
|
|
|
12
12
|
import { MJTabStripComponent, TabClosedEvent, TabContextMenuEvent, TabEvent } from '@memberjunction/ng-tabstrip';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export interface Tab {
|
|
15
|
-
id?:
|
|
15
|
+
id?: string;
|
|
16
16
|
label?: string;
|
|
17
17
|
icon?: string;
|
|
18
18
|
data?: any;
|
|
@@ -133,7 +133,7 @@ export declare class NavigationComponent implements OnInit, OnDestroy, AfterView
|
|
|
133
133
|
protected loadLists(): Promise<void>;
|
|
134
134
|
protected loadFiles(): Promise<void>;
|
|
135
135
|
protected loadApplications(md: Metadata): Promise<void>;
|
|
136
|
-
protected loadResourceType(key: string, resourceType: string, path: string, currentUserID:
|
|
136
|
+
protected loadResourceType(key: string, resourceType: string, path: string, currentUserID: string): Promise<void>;
|
|
137
137
|
setDrawerConfig(): void;
|
|
138
138
|
toggle(): void;
|
|
139
139
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationComponent, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.component.d.ts","sourceRoot":"","sources":["../../../src/lib/navigation/navigation.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,EAAE,SAAS,EAA6B,aAAa,EAAE,SAAS,EAAS,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACnK,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAA2C,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"navigation.component.d.ts","sourceRoot":"","sources":["../../../src/lib/navigation/navigation.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,EAAE,SAAS,EAA6B,aAAa,EAAE,SAAS,EAAS,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACnK,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAA2C,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAoC,oBAAoB,EAAoC,UAAU,EAAE,MAAM,sBAAsB,CA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,oBAAoB,GAAG,IAAI;IA8B3E,cAAc,IAAI,GAAG,GAAG,IAAI;IAQ5B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI1C,WAAW;IAUJ,cAAc,CAAC,EAAE,EAAE,iBAAiB,GAAG,IAAI;IAalD,SAAS,KAAK,cAAc,IAAI,MAAM,CAKrC;IAED,SAAS,KAAK,cAAc,CAAC,KAAK,EAAE,MAAM,EAGzC;IAEM,yBAAyB,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAUlE,sBAAsB,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAehE,OAAO;YA2BC,UAAU;cAgER,QAAQ,CAAC,EAAE,EAAE,QAAQ;cAWrB,QAAQ,CAAC,EAAE,EAAE,QAAQ;cAWrB,YAAY,CAAC,EAAE,EAAE,QAAQ;cAWzB,SAAS;cAWT,SAAS;cAqBT,gBAAgB,CAAC,EAAE,EAAE,QAAQ;cAW7B,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;IAkBhG,eAAe;IAWf,MAAM;yCAvnCF,mBAAmB;2CAAnB,mBAAmB;CA4nC/B"}
|
|
@@ -461,7 +461,7 @@ export class NavigationComponent {
|
|
|
461
461
|
const rv = new RunView();
|
|
462
462
|
const workspaceParams = {
|
|
463
463
|
EntityName: "Workspaces",
|
|
464
|
-
ExtraFilter: `UserID
|
|
464
|
+
ExtraFilter: `UserID='${md.CurrentUser.ID}'`,
|
|
465
465
|
OrderBy: "__mj_UpdatedAt DESC", // by default get the workspace that was most recently updated
|
|
466
466
|
ResultType: "entity_object" /*we want entity objects back so that we can modify them as needed*/
|
|
467
467
|
};
|
|
@@ -480,16 +480,18 @@ export class NavigationComponent {
|
|
|
480
480
|
}
|
|
481
481
|
if (!this.workSpace)
|
|
482
482
|
throw new Error('Error loading workspace');
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
483
|
+
if (this.workSpace.IsSaved) {
|
|
484
|
+
const workspaceItemParams = {
|
|
485
|
+
EntityName: "Workspace Items",
|
|
486
|
+
ExtraFilter: `WorkspaceID='${this.workSpace.ID}'`,
|
|
487
|
+
OrderBy: "Sequence ASC", // get them in order
|
|
488
|
+
ResultType: "entity_object" /*we want entity objects back so that we can modify them as needed*/
|
|
489
|
+
};
|
|
490
|
+
const workspaceItems = yield rv.RunView(workspaceItemParams);
|
|
491
|
+
if (workspaceItems.Success) {
|
|
492
|
+
this.workSpaceItems = workspaceItems.Results;
|
|
493
|
+
yield this.LoadWorkspaceItems();
|
|
494
|
+
}
|
|
493
495
|
}
|
|
494
496
|
}
|
|
495
497
|
else
|
|
@@ -603,10 +605,19 @@ export class NavigationComponent {
|
|
|
603
605
|
this.loader = true;
|
|
604
606
|
const existingTab = this.findExistingTab(data);
|
|
605
607
|
if (existingTab) {
|
|
608
|
+
// merge the data that we are provided with in terms of its raw query params with the existing tab
|
|
609
|
+
// override existing values in the data.Configuration.___rawQueryParams from keys in the data.Configuration.___rawQueryParams
|
|
610
|
+
existingTab.data.Configuration.___rawQueryParams = Object.assign(Object.assign({}, existingTab.data.Configuration.___rawQueryParams), data.Configuration.___rawQueryParams);
|
|
606
611
|
const index = this.tabs.indexOf(existingTab);
|
|
612
|
+
// next, before we set the active tab, we need to merge the query params that we have for this tab with the query params that we have for the tab that we're about to select
|
|
613
|
+
// when the app first loads there won't be any query params for the tabs, but as we navigate around and the tabs get selected, we'll cache the query params for each tab
|
|
614
|
+
const tqp = this.tabQueryParams['tab_' + (index + 1)];
|
|
615
|
+
if (tqp)
|
|
616
|
+
this.tabQueryParams['tab_' + (index + 1)] = Object.assign(Object.assign({}, tqp), existingTab.data.Configuration.___rawQueryParams);
|
|
617
|
+
else
|
|
618
|
+
this.tabQueryParams['tab_' + (index + 1)] = existingTab.data.Configuration.___rawQueryParams;
|
|
607
619
|
// add one because the HOME tab is not in the tabs array but it IS part of our tab structure
|
|
608
620
|
this.activeTabIndex = index + 1;
|
|
609
|
-
//this.tabstrip.selectTab(this.activeTabIndex);
|
|
610
621
|
this.scrollIntoView();
|
|
611
622
|
if (existingTab.label)
|
|
612
623
|
this.setAppTitle(existingTab.label);
|
|
@@ -616,7 +627,7 @@ export class NavigationComponent {
|
|
|
616
627
|
}
|
|
617
628
|
else {
|
|
618
629
|
const newTab = {
|
|
619
|
-
id:
|
|
630
|
+
id: "", // initially blank but will be changed to the WorkspaceItem ID once we save it
|
|
620
631
|
data: data,
|
|
621
632
|
labelLoading: true,
|
|
622
633
|
contentLoading: false,
|
|
@@ -665,7 +676,7 @@ export class NavigationComponent {
|
|
|
665
676
|
let url = '/resource';
|
|
666
677
|
switch (rt === null || rt === void 0 ? void 0 : rt.Name.toLowerCase().trim()) {
|
|
667
678
|
case 'user views':
|
|
668
|
-
if (data.ResourceRecordID
|
|
679
|
+
if (data.ResourceRecordID) {
|
|
669
680
|
url += `/view/${data.ResourceRecordID}`;
|
|
670
681
|
}
|
|
671
682
|
else if ((_a = data.Configuration) === null || _a === void 0 ? void 0 : _a.Entity) {
|
|
@@ -712,15 +723,18 @@ export class NavigationComponent {
|
|
|
712
723
|
const [path, existingQuery] = url.split('?');
|
|
713
724
|
// Create a URLSearchParams object from the existing query params
|
|
714
725
|
const queryParams = new URLSearchParams(existingQuery);
|
|
715
|
-
// Your cached query params, assuming it's an object like { key1: 'value1', key2: 'value2' }
|
|
716
726
|
const tabIndex = this.tabs.indexOf(tab) + 1; // we add 1 Because the HOME tab is not in the array so we have to offset by 1 here for our data structure
|
|
717
|
-
let cachedQueryParams = this.tabQueryParams['tab_' + tabIndex];
|
|
727
|
+
let cachedQueryParams = this.tabQueryParams['tab_' + tabIndex];
|
|
718
728
|
if (!cachedQueryParams) {
|
|
719
729
|
// there is a case when we are first loading and cached query params might have been stuffed into a 'tab_-1' key because at the time activeTabIndex wasn't yet known. So we need to check for that
|
|
720
730
|
cachedQueryParams = this.tabQueryParams['tab_-1'];
|
|
721
731
|
if (cachedQueryParams) {
|
|
722
732
|
delete this.tabQueryParams['tab_-1']; // remove it from the -1 key
|
|
723
|
-
this.tabQueryParams['tab_' + tabIndex]
|
|
733
|
+
const tqp = this.tabQueryParams['tab_' + tabIndex];
|
|
734
|
+
if (tqp)
|
|
735
|
+
this.tabQueryParams['tab_' + tabIndex] = Object.assign(Object.assign({}, tqp), cachedQueryParams); // merge it with the existing key if it exists
|
|
736
|
+
else
|
|
737
|
+
this.tabQueryParams['tab_' + tabIndex] = Object.assign({}, cachedQueryParams); // stuff it into the correct key
|
|
724
738
|
}
|
|
725
739
|
}
|
|
726
740
|
if (cachedQueryParams) {
|
|
@@ -754,8 +768,9 @@ export class NavigationComponent {
|
|
|
754
768
|
const resource = new resourceReg.SubClass();
|
|
755
769
|
return yield resource.GetResourceDisplayName(data);
|
|
756
770
|
}
|
|
757
|
-
else
|
|
771
|
+
else {
|
|
758
772
|
return `Workspace Item ${data.ID}`;
|
|
773
|
+
}
|
|
759
774
|
});
|
|
760
775
|
}
|
|
761
776
|
GetWorkspaceItemIconClass(data) {
|
|
@@ -765,8 +780,9 @@ export class NavigationComponent {
|
|
|
765
780
|
const resource = new resourceReg.SubClass();
|
|
766
781
|
return yield resource.GetResourceIconClass(data);
|
|
767
782
|
}
|
|
768
|
-
else
|
|
783
|
+
else {
|
|
769
784
|
return '';
|
|
785
|
+
}
|
|
770
786
|
});
|
|
771
787
|
}
|
|
772
788
|
/**
|
|
@@ -817,13 +833,13 @@ export class NavigationComponent {
|
|
|
817
833
|
const md = new Metadata();
|
|
818
834
|
let wsItem;
|
|
819
835
|
if (!tab.workspaceItem) {
|
|
820
|
-
wsItem =
|
|
821
|
-
if (tab.data.ID &&
|
|
836
|
+
wsItem = yield md.GetEntityObject('Workspace Items');
|
|
837
|
+
if (tab.data.ID && tab.data.ID.length > 0)
|
|
822
838
|
yield wsItem.Load(tab.data.ID);
|
|
823
839
|
else {
|
|
824
840
|
wsItem.NewRecord();
|
|
825
841
|
wsItem.Name = tab.data.Name ? tab.data.Name : tab.data.ResourceType + ' Record:' + tab.data.ResourceRecordID;
|
|
826
|
-
wsItem.
|
|
842
|
+
wsItem.WorkspaceID = this.workSpace.ID;
|
|
827
843
|
wsItem.ResourceTypeID = (_a = tab.data) === null || _a === void 0 ? void 0 : _a.ResourceTypeID;
|
|
828
844
|
}
|
|
829
845
|
tab.workspaceItem = wsItem;
|
|
@@ -899,7 +915,7 @@ export class NavigationComponent {
|
|
|
899
915
|
const index = this.tabs.indexOf(tab);
|
|
900
916
|
if (index >= 0)
|
|
901
917
|
this.tabs.splice(index, 1);
|
|
902
|
-
if (!tab.workspaceItem && tab.id && tab.id > 0) {
|
|
918
|
+
if (!tab.workspaceItem && tab.id && tab.id.length > 0) {
|
|
903
919
|
// we lazy load the workspaceItem entity objects, so we load it here so we can delete it below, but only when it wasn't already loaded
|
|
904
920
|
const md = new Metadata();
|
|
905
921
|
tab.workspaceItem = (yield md.GetEntityObject('Workspace Items'));
|
|
@@ -1006,7 +1022,22 @@ export class NavigationComponent {
|
|
|
1006
1022
|
LoadDrawer() {
|
|
1007
1023
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
1024
|
const md = new Metadata();
|
|
1025
|
+
//make sure SharedService_resourceTypes is populated first
|
|
1026
|
+
yield SharedService.RefreshData(true);
|
|
1009
1027
|
this.drawerItems.length = 0; // clear the array
|
|
1028
|
+
const items = md.VisibleExplorerNavigationItems.filter(item => item.ShowInNavigationDrawer);
|
|
1029
|
+
items.forEach(item => {
|
|
1030
|
+
const drawerItem = {
|
|
1031
|
+
id: item.ID,
|
|
1032
|
+
selected: false,
|
|
1033
|
+
text: item.Name,
|
|
1034
|
+
path: item.Route,
|
|
1035
|
+
icon: item.IconCSSClass
|
|
1036
|
+
};
|
|
1037
|
+
this.drawerItems.push(drawerItem);
|
|
1038
|
+
});
|
|
1039
|
+
this.loading = false;
|
|
1040
|
+
return;
|
|
1010
1041
|
// the Drawer configuraion has the following sections:
|
|
1011
1042
|
/*
|
|
1012
1043
|
* Home - a simple view that shows all the other options - dashboards, reports, data, etc, and ALSO shows Favorites and Most Recently Used Records
|
|
@@ -1022,8 +1053,6 @@ export class NavigationComponent {
|
|
|
1022
1053
|
yield this.loadSkip(md);
|
|
1023
1054
|
// Data
|
|
1024
1055
|
yield this.loadApplications(md);
|
|
1025
|
-
//make sure SharedService_resourceTypes is populated first
|
|
1026
|
-
yield SharedService.RefreshData();
|
|
1027
1056
|
// Dashboards
|
|
1028
1057
|
yield this.loadResourceType('Dashboards', 'Dashboards', '/dashboards', md.CurrentUser.ID);
|
|
1029
1058
|
// Reports
|
|
@@ -1036,7 +1065,6 @@ export class NavigationComponent {
|
|
|
1036
1065
|
yield this.loadLists();
|
|
1037
1066
|
// Settings
|
|
1038
1067
|
yield this.loadSettings(md);
|
|
1039
|
-
this.loading = false;
|
|
1040
1068
|
});
|
|
1041
1069
|
}
|
|
1042
1070
|
loadSkip(md) {
|
|
@@ -1198,7 +1226,7 @@ NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Navigat
|
|
|
1198
1226
|
args: [DrawerComponent, { static: false }]
|
|
1199
1227
|
}], mjTabStrip: [{
|
|
1200
1228
|
type: ViewChild,
|
|
1201
|
-
args: ['mjTabstrip']
|
|
1229
|
+
args: ['mjTabstrip', { static: false }]
|
|
1202
1230
|
}], drawerWrapper: [{
|
|
1203
1231
|
type: ViewChild,
|
|
1204
1232
|
args: ['drawerWrapper', { static: false }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/query-browser-component/query-browser.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"query-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/query-browser-component/query-browser.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAA2B,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;;AAKnE,qBAMa,qBAAsB,SAAQ,oBAAoB;IAEjD,OAAO,CAAC,MAAM;IAAU,OAAO,CAAC,KAAK;IAAkB,OAAO,CAAC,aAAa;gBAApE,MAAM,EAAE,MAAM,EAAU,KAAK,EAAE,cAAc,EAAU,aAAa,EAAE,aAAa;IAajG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBxB,SAAS,CAAC,IAAI,EAAE,IAAI;IAWpB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI;yCAlDvD,qBAAqB;2CAArB,qBAAqB;CA0DjC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
8
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
9
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8,13 +14,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
14
|
});
|
|
9
15
|
};
|
|
10
16
|
import { Component } from '@angular/core';
|
|
17
|
+
import { BaseNavigationComponent } from '@memberjunction/ng-shared';
|
|
11
18
|
import { BaseBrowserComponent } from '../base-browser-component/base-browser-component';
|
|
12
19
|
import { LogStatus, Metadata } from '@memberjunction/core';
|
|
20
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
13
21
|
import * as i0 from "@angular/core";
|
|
14
22
|
import * as i1 from "@angular/router";
|
|
15
23
|
import * as i2 from "@memberjunction/ng-shared";
|
|
16
24
|
import * as i3 from "../generic-browser-list/generic-browser-list.component";
|
|
17
|
-
|
|
25
|
+
let QueryBrowserComponent = class QueryBrowserComponent extends BaseBrowserComponent {
|
|
18
26
|
constructor(router, route, sharedService) {
|
|
19
27
|
var _a;
|
|
20
28
|
super();
|
|
@@ -37,9 +45,9 @@ export class QueryBrowserComponent extends BaseBrowserComponent {
|
|
|
37
45
|
this.route.paramMap.subscribe((params) => __awaiter(this, void 0, void 0, function* () {
|
|
38
46
|
this.selectedFolderID = Number(params.get('folderID')) || null;
|
|
39
47
|
const md = new Metadata();
|
|
40
|
-
let categoryFilter = this.selectedFolderID ? `CategoryID = ${this.selectedFolderID}` : `CategoryID IS NULL`;
|
|
48
|
+
let categoryFilter = this.selectedFolderID ? `CategoryID = '${this.selectedFolderID}'` : `CategoryID IS NULL`;
|
|
41
49
|
let resourceFilter = `${categoryFilter}`;
|
|
42
|
-
let resourceCategoryFilter = this.selectedFolderID ? `ParentID = ${this.selectedFolderID}` : `ParentID IS NULL`;
|
|
50
|
+
let resourceCategoryFilter = this.selectedFolderID ? `ParentID = '${this.selectedFolderID}'` : `ParentID IS NULL`;
|
|
43
51
|
LogStatus("resourceFilter: " + resourceFilter + " category filter: " + resourceCategoryFilter);
|
|
44
52
|
yield this.LoadData({
|
|
45
53
|
sortItemsAfterLoad: true,
|
|
@@ -67,7 +75,7 @@ export class QueryBrowserComponent extends BaseBrowserComponent {
|
|
|
67
75
|
let query = item.Data;
|
|
68
76
|
this.router.navigate(['resource', this.routeNameSingular, query.ID], { queryParams: { edit: true } });
|
|
69
77
|
}
|
|
70
|
-
}
|
|
78
|
+
};
|
|
71
79
|
QueryBrowserComponent.ɵfac = function QueryBrowserComponent_Factory(t) { return new (t || QueryBrowserComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
72
80
|
QueryBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryBrowserComponent, selectors: [["mj-query-browser"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 5, consts: [["title", "Queries", "itemType", "query", "iconName", "data", "addText", "Create New Query", "ItemEntityName", "Queries", "CategoryEntityName", "Query Categories", 3, "itemClickEvent", "AfterAddFolderEvent", "AfterAddItemEvent", "AfterDeleteItemEvent", "AfterDeleteFolderEvent", "viewModeChangeEvent", "BeforeUpdateItemEvent", "items", "selectedFolderID", "showLoader", "disableAddButton", "disableEditButton"]], template: function QueryBrowserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
73
81
|
i0.ɵɵelementStart(0, "app-generic-browser-list", 0);
|
|
@@ -76,8 +84,12 @@ QueryBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Query
|
|
|
76
84
|
} if (rf & 2) {
|
|
77
85
|
i0.ɵɵproperty("items", ctx.items)("selectedFolderID", ctx.selectedFolderID)("showLoader", ctx.showLoader)("disableAddButton", true)("disableEditButton", true);
|
|
78
86
|
} }, dependencies: [i3.GenericBrowserListComponent], styles: [".k-card-body[_ngcontent-%COMP%] {\n height: 80px;\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}"] });
|
|
87
|
+
QueryBrowserComponent = __decorate([
|
|
88
|
+
RegisterClass(BaseNavigationComponent, 'Queries')
|
|
89
|
+
], QueryBrowserComponent);
|
|
90
|
+
export { QueryBrowserComponent };
|
|
79
91
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryBrowserComponent, [{
|
|
80
92
|
type: Component,
|
|
81
93
|
args: [{ selector: 'mj-query-browser', template: "<app-generic-browser-list \ntitle=\"Queries\" \nitemType=\"query\"\niconName=\"data\" \n[items]=\"items\"\naddText=\"Create New Query\"\nItemEntityName=\"Queries\"\nCategoryEntityName=\"Query Categories\"\n(itemClickEvent)=\"itemClick($event)\"\n(AfterAddFolderEvent)=\"onEvent($event)\"\n(AfterAddItemEvent)=\"onEvent($event)\"\n(AfterDeleteItemEvent)=\"onEvent($event)\"\n(AfterDeleteFolderEvent)=\"onEvent($event)\"\n[selectedFolderID]=\"selectedFolderID\"\n[showLoader]=\"showLoader\"\n[disableAddButton]=\"true\"\n[disableEditButton]=\"true\"\n(viewModeChangeEvent)=\"onViewModeChange($event)\"\n(BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n/>", styles: [".k-card-body {\n height: 80px;\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"] }]
|
|
82
94
|
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], null); })();
|
|
83
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryBrowserComponent, { className: "QueryBrowserComponent", filePath: "src/lib/query-browser-component/query-browser.component.ts", lineNumber:
|
|
95
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryBrowserComponent, { className: "QueryBrowserComponent", filePath: "src/lib/query-browser-component/query-browser.component.ts", lineNumber: 17 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/report-browser-component/report-browser.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,
|
|
1
|
+
{"version":3,"file":"report-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/report-browser-component/report-browser.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAA2B,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;;AAGnE,qBAMa,sBAAuB,SAAQ,oBAAoB;IAIlD,OAAO,CAAC,MAAM;IAAU,OAAO,CAAC,KAAK;IAAkB,OAAO,CAAC,aAAa;IAHjF,OAAO,EAAE,YAAY,EAAE,CAAM;IAC7B,UAAU,EAAE,OAAO,CAAS;gBAEf,MAAM,EAAE,MAAM,EAAU,KAAK,EAAE,cAAc,EAAU,aAAa,EAAE,aAAa;IAajG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAOxB,SAAS,CAAC,IAAI,EAAE,IAAI;IAWpB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI;yCAnCvD,sBAAsB;2CAAtB,sBAAsB;CA2ClC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
8
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
9
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,11 +15,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
15
|
};
|
|
10
16
|
import { Component } from '@angular/core';
|
|
11
17
|
import { BaseBrowserComponent } from '../base-browser-component/base-browser-component';
|
|
18
|
+
import { BaseNavigationComponent } from '@memberjunction/ng-shared';
|
|
19
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
12
20
|
import * as i0 from "@angular/core";
|
|
13
21
|
import * as i1 from "@angular/router";
|
|
14
22
|
import * as i2 from "@memberjunction/ng-shared";
|
|
15
23
|
import * as i3 from "../generic-browser-list/generic-browser-list.component";
|
|
16
|
-
|
|
24
|
+
let ReportBrowserComponent = class ReportBrowserComponent extends BaseBrowserComponent {
|
|
17
25
|
constructor(router, route, sharedService) {
|
|
18
26
|
var _a;
|
|
19
27
|
super();
|
|
@@ -55,7 +63,7 @@ export class ReportBrowserComponent extends BaseBrowserComponent {
|
|
|
55
63
|
let report = item.Data;
|
|
56
64
|
this.router.navigate(['resource', this.routeNameSingular, report.ID], { queryParams: { edit: true } });
|
|
57
65
|
}
|
|
58
|
-
}
|
|
66
|
+
};
|
|
59
67
|
ReportBrowserComponent.ɵfac = function ReportBrowserComponent_Factory(t) { return new (t || ReportBrowserComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
60
68
|
ReportBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReportBrowserComponent, selectors: [["mj-report-browser"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 5, consts: [["title", "Reports", "itemType", "report", "iconName", "graph", "addText", "Create New Report", "ItemEntityName", "Reports", "CategoryEntityName", "Report Categories", 3, "itemClickEvent", "AfterAddFolderEvent", "AfterAddItemEvent", "AfterDeleteItemEvent", "AfterDeleteFolderEvent", "viewModeChangeEvent", "BeforeUpdateItemEvent", "items", "selectedFolderID", "showLoader", "disableAddButton", "disableEditButton"]], template: function ReportBrowserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
61
69
|
i0.ɵɵelementStart(0, "app-generic-browser-list", 0);
|
|
@@ -64,8 +72,12 @@ ReportBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Repo
|
|
|
64
72
|
} if (rf & 2) {
|
|
65
73
|
i0.ɵɵproperty("items", ctx.items)("selectedFolderID", ctx.selectedFolderID)("showLoader", ctx.showLoader)("disableAddButton", true)("disableEditButton", true);
|
|
66
74
|
} }, dependencies: [i3.GenericBrowserListComponent], styles: [".k-card-body[_ngcontent-%COMP%] {\n height: 80px;\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}"] });
|
|
75
|
+
ReportBrowserComponent = __decorate([
|
|
76
|
+
RegisterClass(BaseNavigationComponent, 'Reports')
|
|
77
|
+
], ReportBrowserComponent);
|
|
78
|
+
export { ReportBrowserComponent };
|
|
67
79
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReportBrowserComponent, [{
|
|
68
80
|
type: Component,
|
|
69
81
|
args: [{ selector: 'mj-report-browser', template: "<app-generic-browser-list \ntitle=\"Reports\"\nitemType=\"report\"\niconName=\"graph\" \n[items]=\"items\"\naddText=\"Create New Report\"\nItemEntityName=\"Reports\"\nCategoryEntityName=\"Report Categories\" \n(itemClickEvent)=\"itemClick($event)\"\n(AfterAddFolderEvent)=\"onEvent($event)\"\n(AfterAddItemEvent)=\"onEvent($event)\"\n(AfterDeleteItemEvent)=\"onEvent($event)\"\n(AfterDeleteFolderEvent)=\"onEvent($event)\"\n[selectedFolderID]=\"selectedFolderID\"\n[showLoader]=\"showLoader\"\n[disableAddButton]=\"true\"\n[disableEditButton]=\"true\"\n(viewModeChangeEvent)=\"onViewModeChange($event)\"\n(BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n/>\n<!-- creation of reports are disabled because they need a conversation ID before theyre made -->", styles: [".k-card-body {\n height: 80px;\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"] }]
|
|
70
82
|
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], null); })();
|
|
71
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReportBrowserComponent, { className: "ReportBrowserComponent", filePath: "src/lib/report-browser-component/report-browser.component.ts", lineNumber:
|
|
83
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReportBrowserComponent, { className: "ReportBrowserComponent", filePath: "src/lib/report-browser-component/report-browser.component.ts", lineNumber: 16 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-resource.component.d.ts","sourceRoot":"","sources":["../../../src/lib/resource-wrappers/view-resource.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;;AAIhF,wBAAgB,gBAAgB,SAE/B;AAED,qBAUa,gBAAiB,SAAQ,qBAAqB;IACjD,sBAAsB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"view-resource.component.d.ts","sourceRoot":"","sources":["../../../src/lib/resource-wrappers/view-resource.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;;AAIhF,wBAAgB,gBAAgB,SAE/B;AAED,qBAUa,gBAAiB,SAAQ,qBAAqB;IACjD,sBAAsB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAc3D,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;yCAftD,gBAAgB;2CAAhB,gBAAgB;CAkB5B"}
|
|
@@ -27,16 +27,17 @@ let UserViewResource = class UserViewResource extends BaseResourceComponent {
|
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
var _a, _b, _c;
|
|
29
29
|
const md = new Metadata();
|
|
30
|
-
if (data.ResourceRecordID
|
|
30
|
+
if (data.ResourceRecordID) {
|
|
31
31
|
let compositeKey = new CompositeKey([{ FieldName: "ID", Value: data.ResourceRecordID }]);
|
|
32
32
|
const name = yield md.GetEntityRecordName('User Views', compositeKey);
|
|
33
|
-
return name ? name :
|
|
33
|
+
return name ? name : `View: ${data.ResourceRecordID}`;
|
|
34
34
|
}
|
|
35
35
|
else if (((_a = data.Configuration) === null || _a === void 0 ? void 0 : _a.Entity) && ((_b = data.Configuration) === null || _b === void 0 ? void 0 : _b.Entity.length) > 0) {
|
|
36
36
|
return `${(_c = data.Configuration) === null || _c === void 0 ? void 0 : _c.Entity} [Dynamic${data.Configuration.ExtraFilter ? ' - Filtered' : ' - All'}]`;
|
|
37
37
|
}
|
|
38
|
-
else
|
|
38
|
+
else {
|
|
39
39
|
return 'User Views [Error]';
|
|
40
|
+
}
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
GetResourceIconClass(data) {
|
|
@@ -132,7 +132,7 @@ export class AddItemComponent {
|
|
|
132
132
|
this.showloader = true;
|
|
133
133
|
this.selectedReport = null;
|
|
134
134
|
const rv = new RunView();
|
|
135
|
-
const reports = yield rv.RunView({ EntityName: this.resourceType.Entity, ExtraFilter:
|
|
135
|
+
const reports = yield rv.RunView({ EntityName: this.resourceType.Entity, ExtraFilter: `UserID='${this.md.CurrentUser.ID}'` });
|
|
136
136
|
if (reports.Success) {
|
|
137
137
|
this.Reports = reports.Results;
|
|
138
138
|
}
|
|
@@ -181,7 +181,7 @@ export class SingleDashboardComponent {
|
|
|
181
181
|
const md = new Metadata();
|
|
182
182
|
let uiConfig = { items: [] };
|
|
183
183
|
this.dashboardEntity = yield md.GetEntityObject('Dashboards');
|
|
184
|
-
if (this.ResourceData.ResourceRecordID && this.ResourceData.ResourceRecordID > 0) {
|
|
184
|
+
if (this.ResourceData.ResourceRecordID && this.ResourceData.ResourceRecordID.length > 0) {
|
|
185
185
|
yield this.dashboardEntity.Load(this.ResourceData.ResourceRecordID);
|
|
186
186
|
// now we have loaded and we need to get the UIConfigDetails
|
|
187
187
|
const raw = this.dashboardEntity.UIConfigDetails;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { BaseEntity } from '@memberjunction/core';
|
|
4
|
+
import { UserViewEntity } from '@memberjunction/core-entities';
|
|
4
5
|
import { SharedService } from '@memberjunction/ng-shared';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class SingleListDetailComponent implements OnInit {
|
|
@@ -9,17 +10,26 @@ export declare class SingleListDetailComponent implements OnInit {
|
|
|
9
10
|
private sharedService;
|
|
10
11
|
private listRecord;
|
|
11
12
|
showLoader: boolean;
|
|
12
|
-
|
|
13
|
+
sourceGridData: BaseEntity[];
|
|
14
|
+
filteredGridData: BaseEntity[];
|
|
13
15
|
listName: string;
|
|
14
16
|
showAddDialog: boolean;
|
|
15
17
|
showAddLoader: boolean;
|
|
16
|
-
userViews:
|
|
17
|
-
|
|
18
|
+
userViews: UserViewEntity[] | null;
|
|
19
|
+
private _resizeDebounceTime;
|
|
20
|
+
private filterItemsSubject;
|
|
21
|
+
private filter;
|
|
22
|
+
userViewsToAdd: UserViewEntity[];
|
|
18
23
|
constructor(router: Router, route: ActivatedRoute, sharedService: SharedService);
|
|
19
24
|
ngOnInit(): Promise<void>;
|
|
25
|
+
private loadList;
|
|
20
26
|
toggleAddDialog(show: boolean): Promise<void>;
|
|
21
|
-
addTolist(): Promise<void>;
|
|
22
27
|
private loadEntityViews;
|
|
28
|
+
addTolist(): Promise<void>;
|
|
29
|
+
onKeyup(Value: string): void;
|
|
30
|
+
private filterItems;
|
|
31
|
+
addViewToSelectedList(view: UserViewEntity): void;
|
|
32
|
+
removeViewFromSelectedList(view: UserViewEntity): void;
|
|
23
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SingleListDetailComponent, never>;
|
|
24
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<SingleListDetailComponent, "mj-list-detail", never, {}, {}, never, never, false, never>;
|
|
25
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-list-detail.component.d.ts","sourceRoot":"","sources":["../../../src/lib/single-list-detail/single-list-detail.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"single-list-detail.component.d.ts","sourceRoot":"","sources":["../../../src/lib/single-list-detail/single-list-detail.component.ts"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