@memberjunction/ng-explorer-core 2.8.0 → 2.10.0
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 +1 -0
- package/dist/app-routing.module.d.ts.map +1 -1
- package/dist/app-routing.module.js +42 -3
- package/dist/app-routing.module.js.map +1 -1
- package/dist/generic/Item.types.d.ts +12 -0
- package/dist/generic/Item.types.d.ts.map +1 -1
- package/dist/generic/Item.types.js +7 -0
- package/dist/generic/Item.types.js.map +1 -1
- package/dist/lib/app-view/application-view.component.d.ts +6 -8
- package/dist/lib/app-view/application-view.component.d.ts.map +1 -1
- package/dist/lib/app-view/application-view.component.js +47 -30
- package/dist/lib/app-view/application-view.component.js.map +1 -1
- package/dist/lib/base-browser-component/base-browser-component.d.ts.map +1 -1
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts +16 -5
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts.map +1 -1
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +172 -17
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js.map +1 -1
- package/dist/lib/list-view/list-view.component.d.ts +4 -1
- package/dist/lib/list-view/list-view.component.d.ts.map +1 -1
- package/dist/lib/list-view/list-view.component.js +63 -43
- package/dist/lib/list-view/list-view.component.js.map +1 -1
- package/dist/lib/query-browser-component/query-browser.component.d.ts +2 -1
- package/dist/lib/query-browser-component/query-browser.component.d.ts.map +1 -1
- package/dist/lib/query-browser-component/query-browser.component.js +12 -9
- package/dist/lib/query-browser-component/query-browser.component.js.map +1 -1
- package/dist/lib/report-browser-component/report-browser.component.d.ts +2 -1
- package/dist/lib/report-browser-component/report-browser.component.d.ts.map +1 -1
- package/dist/lib/report-browser-component/report-browser.component.js +9 -7
- package/dist/lib/report-browser-component/report-browser.component.js.map +1 -1
- package/dist/lib/resource-browser/resource-browser.component.d.ts +37 -33
- package/dist/lib/resource-browser/resource-browser.component.d.ts.map +1 -1
- package/dist/lib/resource-browser/resource-browser.component.js +466 -432
- package/dist/lib/resource-browser/resource-browser.component.js.map +1 -1
- package/dist/lib/single-view/single-view.component.d.ts +4 -2
- package/dist/lib/single-view/single-view.component.d.ts.map +1 -1
- package/dist/lib/single-view/single-view.component.js +54 -26
- package/dist/lib/single-view/single-view.component.js.map +1 -1
- package/dist/lib/user-notifications/user-notifications.component.d.ts.map +1 -1
- package/dist/lib/user-notifications/user-notifications.component.js +11 -3
- package/dist/lib/user-notifications/user-notifications.component.js.map +1 -1
- package/dist/module.d.ts +2 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +7 -3
- package/dist/module.js.map +1 -1
- package/package.json +22 -22
|
@@ -13,9 +13,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
13
13
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
import { Component } from '@angular/core';
|
|
16
|
+
import { Component, ViewChild } from '@angular/core';
|
|
17
17
|
import { BaseBrowserComponent } from '../base-browser-component/base-browser-component';
|
|
18
18
|
import { BaseNavigationComponent } from '@memberjunction/ng-shared';
|
|
19
|
+
import { ItemType } from '../../generic/Item.types';
|
|
19
20
|
import { Metadata } from '@memberjunction/core';
|
|
20
21
|
import { RegisterClass } from '@memberjunction/global';
|
|
21
22
|
import * as i0 from "@angular/core";
|
|
@@ -29,53 +30,54 @@ import * as i7 from "@progress/kendo-angular-buttons";
|
|
|
29
30
|
import * as i8 from "@progress/kendo-angular-inputs";
|
|
30
31
|
import * as i9 from "@progress/kendo-angular-label";
|
|
31
32
|
import * as i10 from "@progress/kendo-angular-dropdowns";
|
|
32
|
-
import * as i11 from "../
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
import * as i11 from "../resource-browser/resource-browser.component";
|
|
34
|
+
const _c0 = ["resourceBrowserLists"];
|
|
35
|
+
function ListViewComponent_kendo_dialog_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
i0.ɵɵelement(0, "kendo-loader", 4);
|
|
35
37
|
} }
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
i0.ɵɵelementStart(0, "div",
|
|
39
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
38
|
+
function ListViewComponent_kendo_dialog_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
40
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "div", 9)(2, "kendo-label", 10)(3, "kendo-textbox", 11);
|
|
41
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ListViewComponent_kendo_dialog_2_Conditional_2_Template_kendo_textbox_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r2.listName, $event) || (ctx_r2.listName = $event); return i0.ɵɵresetView($event); });
|
|
40
42
|
i0.ɵɵelementEnd()()();
|
|
41
|
-
i0.ɵɵelementStart(4, "div",
|
|
42
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
43
|
+
i0.ɵɵelementStart(4, "div", 9)(5, "kendo-label", 12)(6, "kendo-textarea", 13);
|
|
44
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ListViewComponent_kendo_dialog_2_Conditional_2_Template_kendo_textarea_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r2.listDescription, $event) || (ctx_r2.listDescription = $event); return i0.ɵɵresetView($event); });
|
|
43
45
|
i0.ɵɵelementEnd()()();
|
|
44
|
-
i0.ɵɵelementStart(7, "div",
|
|
45
|
-
i0.ɵɵlistener("filterChange", function
|
|
46
|
+
i0.ɵɵelementStart(7, "div", 9)(8, "kendo-label", 14)(9, "kendo-dropdownlist", 15);
|
|
47
|
+
i0.ɵɵlistener("filterChange", function ListViewComponent_kendo_dialog_2_Conditional_2_Template_kendo_dropdownlist_filterChange_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onFilterChange($event)); })("selectionChange", function ListViewComponent_kendo_dialog_2_Conditional_2_Template_kendo_dropdownlist_selectionChange_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onSelectionChange($event)); });
|
|
46
48
|
i0.ɵɵelementEnd()()()();
|
|
47
49
|
} if (rf & 2) {
|
|
48
|
-
const
|
|
50
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
49
51
|
i0.ɵɵadvance(3);
|
|
50
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
52
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.listName);
|
|
51
53
|
i0.ɵɵadvance(3);
|
|
52
54
|
i0.ɵɵproperty("rows", 3);
|
|
53
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
55
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.listDescription);
|
|
54
56
|
i0.ɵɵadvance(3);
|
|
55
|
-
i0.ɵɵproperty("data",
|
|
57
|
+
i0.ɵɵproperty("data", ctx_r2.entityNames)("filterable", true);
|
|
56
58
|
} }
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
60
|
-
i0.ɵɵlistener("close", function
|
|
61
|
-
i0.ɵɵtemplate(1,
|
|
62
|
-
i0.ɵɵelementStart(3, "kendo-dialog-actions",
|
|
63
|
-
i0.ɵɵlistener("click", function
|
|
59
|
+
function ListViewComponent_kendo_dialog_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
61
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 3);
|
|
62
|
+
i0.ɵɵlistener("close", function ListViewComponent_kendo_dialog_2_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleCreateDialog(false)); });
|
|
63
|
+
i0.ɵɵtemplate(1, ListViewComponent_kendo_dialog_2_Conditional_1_Template, 1, 0, "kendo-loader", 4)(2, ListViewComponent_kendo_dialog_2_Conditional_2_Template, 10, 5, "div", 5);
|
|
64
|
+
i0.ɵɵelementStart(3, "kendo-dialog-actions", 6)(4, "button", 7);
|
|
65
|
+
i0.ɵɵlistener("click", function ListViewComponent_kendo_dialog_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.createList()); });
|
|
64
66
|
i0.ɵɵtext(5, " Create ");
|
|
65
67
|
i0.ɵɵelementEnd();
|
|
66
|
-
i0.ɵɵelementStart(6, "button",
|
|
67
|
-
i0.ɵɵlistener("click", function
|
|
68
|
+
i0.ɵɵelementStart(6, "button", 8);
|
|
69
|
+
i0.ɵɵlistener("click", function ListViewComponent_kendo_dialog_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleCreateDialog(false)); });
|
|
68
70
|
i0.ɵɵtext(7, " Cancel ");
|
|
69
71
|
i0.ɵɵelementEnd()()();
|
|
70
72
|
} if (rf & 2) {
|
|
71
|
-
const
|
|
73
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
72
74
|
i0.ɵɵproperty("minWidth", 250)("width", 650)("height", 550);
|
|
73
75
|
i0.ɵɵadvance();
|
|
74
|
-
i0.ɵɵconditional(
|
|
76
|
+
i0.ɵɵconditional(ctx_r2.showCreateLoader ? 1 : 2);
|
|
75
77
|
i0.ɵɵadvance(3);
|
|
76
|
-
i0.ɵɵproperty("disabled", !
|
|
78
|
+
i0.ɵɵproperty("disabled", !ctx_r2.listName || !ctx_r2.selectedEntity || ctx_r2.showCreateLoader);
|
|
77
79
|
i0.ɵɵadvance(2);
|
|
78
|
-
i0.ɵɵproperty("disabled",
|
|
80
|
+
i0.ɵɵproperty("disabled", ctx_r2.showCreateLoader);
|
|
79
81
|
} }
|
|
80
82
|
let ListViewComponent = class ListViewComponent extends BaseBrowserComponent {
|
|
81
83
|
constructor(router, route, sharedService) {
|
|
@@ -84,6 +86,7 @@ let ListViewComponent = class ListViewComponent extends BaseBrowserComponent {
|
|
|
84
86
|
this.router = router;
|
|
85
87
|
this.route = route;
|
|
86
88
|
this.sharedService = sharedService;
|
|
89
|
+
this.resourceBrowser = null;
|
|
87
90
|
this.showLoader = false;
|
|
88
91
|
this.showCreateLoader = false;
|
|
89
92
|
this.lists = [];
|
|
@@ -92,6 +95,16 @@ let ListViewComponent = class ListViewComponent extends BaseBrowserComponent {
|
|
|
92
95
|
this.sourceEntityNames = [];
|
|
93
96
|
this.entityNames = [];
|
|
94
97
|
this.dropdownItems = [{ text: "List" }];
|
|
98
|
+
this.NewItemOptions = [
|
|
99
|
+
{
|
|
100
|
+
Text: 'New View',
|
|
101
|
+
Description: 'Create a new User View',
|
|
102
|
+
Icon: 'folder',
|
|
103
|
+
Action: () => {
|
|
104
|
+
this.toggleCreateDialog(true);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
];
|
|
95
108
|
//create dialog properties
|
|
96
109
|
this.listName = "";
|
|
97
110
|
this.listDescription = "";
|
|
@@ -128,17 +141,15 @@ let ListViewComponent = class ListViewComponent extends BaseBrowserComponent {
|
|
|
128
141
|
}
|
|
129
142
|
itemClick(item) {
|
|
130
143
|
let dataID = "";
|
|
131
|
-
if (item.Type ===
|
|
144
|
+
if (item.Type === ItemType.Resource) {
|
|
132
145
|
let list = item.Data;
|
|
133
|
-
dataID = list.
|
|
146
|
+
dataID = list.FirstPrimaryKey.Value;
|
|
134
147
|
}
|
|
135
148
|
this.router.navigate(["listdetails", dataID]);
|
|
136
|
-
//super.Navigate(item, this.router, dataID);
|
|
137
149
|
}
|
|
138
150
|
onBeforeUpdateItemEvent(event) { }
|
|
139
151
|
onBeforeAddItemEvent(event) {
|
|
140
152
|
event.Cancel = true;
|
|
141
|
-
console.log("onBeforeAddItemEvent");
|
|
142
153
|
this.toggleCreateDialog(true);
|
|
143
154
|
}
|
|
144
155
|
toggleCreateDialog(show) {
|
|
@@ -186,23 +197,32 @@ let ListViewComponent = class ListViewComponent extends BaseBrowserComponent {
|
|
|
186
197
|
}
|
|
187
198
|
};
|
|
188
199
|
ListViewComponent.ɵfac = function ListViewComponent_Factory(t) { return new (t || ListViewComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
189
|
-
ListViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ListViewComponent, selectors: [["mj-list-view"]],
|
|
190
|
-
i0.ɵɵ
|
|
191
|
-
|
|
200
|
+
ListViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ListViewComponent, selectors: [["mj-list-view"]], viewQuery: function ListViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
201
|
+
i0.ɵɵviewQuery(_c0, 5);
|
|
202
|
+
} if (rf & 2) {
|
|
203
|
+
let _t;
|
|
204
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resourceBrowser = _t.first);
|
|
205
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 6, consts: [["resourceBrowserLists", ""], ["ResourceTypeName", "Lists", "Title", "Lists", "DisplayMode", "Tile", 3, "ResourceSelected", "EditItemEvent", "EnableCategories", "EnableItemEdit", "EnableItemDelete", "CurrentCategoryID", "NewItemOptions"], ["title", "Create New List", 3, "minWidth", "width", "height", "close", 4, "ngIf"], ["title", "Create New List", 3, "close", "minWidth", "width", "height"], ["type", "converging-spinner"], [1, "col-xs-12", "col-sm-6", "example-col"], [1, "popup-actions-btn"], ["kendoButton", "", "themeColor", "info", 1, "cancel-btn", 3, "click", "disabled"], ["kendoButton", "", "fillMode", "outline", "themeColor", "info", 1, "yes-btn", 3, "click", "disabled"], [1, "margin-bottom-20"], ["text", "Name"], ["placeholder", "Enter List Name", 1, "margin-top-10", 3, "ngModelChange", "ngModel"], ["text", "Description"], ["placeholder", "Enter Description", "resizable", "vertical", 1, "margin-top-10", 3, "ngModelChange", "rows", "ngModel"], ["text", "Select an Entity"], [1, "margin-top-10", 3, "filterChange", "selectionChange", "data", "filterable"]], template: function ListViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
206
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
207
|
+
i0.ɵɵelementStart(0, "mj-resource-browser", 1, 0);
|
|
208
|
+
i0.ɵɵlistener("ResourceSelected", function ListViewComponent_Template_mj_resource_browser_ResourceSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.itemClick($event)); })("EditItemEvent", function ListViewComponent_Template_mj_resource_browser_EditItemEvent_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBeforeUpdateItemEvent($event)); });
|
|
192
209
|
i0.ɵɵelementEnd();
|
|
193
|
-
i0.ɵɵtemplate(
|
|
210
|
+
i0.ɵɵtemplate(2, ListViewComponent_kendo_dialog_2_Template, 8, 6, "kendo-dialog", 2);
|
|
194
211
|
} if (rf & 2) {
|
|
195
|
-
i0.ɵɵproperty("
|
|
196
|
-
i0.ɵɵadvance();
|
|
212
|
+
i0.ɵɵproperty("EnableCategories", true)("EnableItemEdit", true)("EnableItemDelete", true)("CurrentCategoryID", ctx.selectedFolderID)("NewItemOptions", ctx.NewItemOptions);
|
|
213
|
+
i0.ɵɵadvance(2);
|
|
197
214
|
i0.ɵɵproperty("ngIf", ctx.showCreateDialog);
|
|
198
|
-
} }, dependencies: [i3.NgIf, i4.NgControlStatus, i4.NgModel, i5.DialogComponent, i5.DialogActionsComponent, i6.LoaderComponent, i7.ButtonComponent, i8.TextAreaComponent, i8.TextBoxComponent, i9.LabelComponent, i10.DropDownListComponent, i11.
|
|
215
|
+
} }, dependencies: [i3.NgIf, i4.NgControlStatus, i4.NgModel, i5.DialogComponent, i5.DialogActionsComponent, i6.LoaderComponent, i7.ButtonComponent, i8.TextAreaComponent, i8.TextBoxComponent, i9.LabelComponent, i10.DropDownListComponent, i11.ResourceBrowserComponent], styles: [".margin-bottom-20[_ngcontent-%COMP%] {\n margin-bottom: 20px;\n}\n\n.margin-top-10[_ngcontent-%COMP%] {\n margin-top: 10px;\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}"] });
|
|
199
216
|
ListViewComponent = __decorate([
|
|
200
217
|
RegisterClass(BaseNavigationComponent, 'Lists')
|
|
201
218
|
], ListViewComponent);
|
|
202
219
|
export { ListViewComponent };
|
|
203
220
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ListViewComponent, [{
|
|
204
221
|
type: Component,
|
|
205
|
-
args: [{ selector: 'mj-list-view', template: "<app-generic-browser-list \ntitle=\"Lists\"\nitemType=\"list\"\niconName=\"graph\" \n[items]=\"items\"\n[extraDropdownOptions]=\"dropdownItems\"\naddText=\"Create New List\"\nItemEntityName=\"Lists\"\nCategoryEntityName=\"List Categories\" \nresourceName = \"List\"\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(viewModeChangeEvent)=\"onViewModeChange($event)\"\n(BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n(BeforeAddItemEvent)=\"onBeforeAddItemEvent($event)\"\n(dropdownOptionClickEvent)=\"onDropdownOptionClick($event)\"\n/>\n<kendo-dialog\ntitle=\"Create New List\"\n*ngIf=\"showCreateDialog\"\n(close)=\"toggleCreateDialog(false)\"\n[minWidth]=\"250\"\n[width]=\"650\"\n[height]=\"550\"\n>\n @if(showCreateLoader){\n <kendo-loader type=\"converging-spinner\"></kendo-loader>\n }\n @else {\n <div class=\"col-xs-12 col-sm-6 example-col\">\n <div class=\"margin-bottom-20\">\n <kendo-label text=\"Name\">\n <kendo-textbox \n class=\"margin-top-10\"\n placeholder=\"Enter List Name\" \n [(ngModel)]=\"listName\">\n </kendo-textbox>\n </kendo-label>\n </div>\n <div class=\"margin-bottom-20\">\n <kendo-label text=\"Description\">\n <kendo-textarea\n class=\"margin-top-10\"\n placeholder=\"Enter Description\"\n [rows]=\"3\"\n resizable=\"vertical\"\n [(ngModel)]=\"listDescription\"\n ></kendo-textarea>\n </kendo-label>\n </div>\n <div class=\"margin-bottom-20\">\n <kendo-label text=\"Select an Entity\">\n <kendo-dropdownlist \n class=\"margin-top-10\"\n [data]=\"entityNames\"\n [filterable]=\"true\"\n (filterChange)=\"onFilterChange($event)\"\n (selectionChange)=\"onSelectionChange($event)\"\n />\n </kendo-label>\n </div>\n </div>\n }\n <kendo-dialog-actions class=\"popup-actions-btn\">\n <button class=\"cancel-btn\" (click)=\"createList()\" [disabled]=\"!listName || !selectedEntity || showCreateLoader\" kendoButton themeColor=\"info\">\n Create\n </button>\n <button class=\"yes-btn\" (click)=\"toggleCreateDialog(false)\" [disabled]=\"showCreateLoader\" kendoButton fillMode=\"outline\" themeColor=\"info\">\n Cancel\n </button>\n </kendo-dialog-actions>\n</kendo-dialog>", styles: [".margin-bottom-20 {\n margin-bottom: 20px;\n}\n\n.margin-top-10 {\n margin-top: 10px;\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"] }]
|
|
206
|
-
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }],
|
|
207
|
-
|
|
222
|
+
args: [{ selector: 'mj-list-view', template: "<mj-resource-browser\n #resourceBrowserLists\n ResourceTypeName=\"Lists\"\n [EnableCategories]=\"true\"\n [EnableItemEdit]=\"true\"\n [EnableItemDelete]=\"true\"\n [CurrentCategoryID]=\"selectedFolderID\"\n Title=\"Lists\"\n DisplayMode=\"Tile\"\n [NewItemOptions]=\"NewItemOptions\"\n (ResourceSelected)=\"itemClick($event)\"\n (EditItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n/>\n<!--\n<app-generic-browser-list \ntitle=\"Lists\"\nitemType=\"list\"\niconName=\"graph\" \n[items]=\"items\"\n[extraDropdownOptions]=\"dropdownItems\"\naddText=\"Create New List\"\nItemEntityName=\"Lists\"\nCategoryEntityName=\"List Categories\" \nresourceName = \"List\"\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(viewModeChangeEvent)=\"onViewModeChange($event)\"\n(BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n(BeforeAddItemEvent)=\"onBeforeAddItemEvent($event)\"\n(dropdownOptionClickEvent)=\"onDropdownOptionClick($event)\"\n/>\n-->\n<kendo-dialog\ntitle=\"Create New List\"\n*ngIf=\"showCreateDialog\"\n(close)=\"toggleCreateDialog(false)\"\n[minWidth]=\"250\"\n[width]=\"650\"\n[height]=\"550\"\n>\n @if(showCreateLoader){\n <kendo-loader type=\"converging-spinner\"></kendo-loader>\n }\n @else {\n <div class=\"col-xs-12 col-sm-6 example-col\">\n <div class=\"margin-bottom-20\">\n <kendo-label text=\"Name\">\n <kendo-textbox \n class=\"margin-top-10\"\n placeholder=\"Enter List Name\" \n [(ngModel)]=\"listName\">\n </kendo-textbox>\n </kendo-label>\n </div>\n <div class=\"margin-bottom-20\">\n <kendo-label text=\"Description\">\n <kendo-textarea\n class=\"margin-top-10\"\n placeholder=\"Enter Description\"\n [rows]=\"3\"\n resizable=\"vertical\"\n [(ngModel)]=\"listDescription\"\n ></kendo-textarea>\n </kendo-label>\n </div>\n <div class=\"margin-bottom-20\">\n <kendo-label text=\"Select an Entity\">\n <kendo-dropdownlist \n class=\"margin-top-10\"\n [data]=\"entityNames\"\n [filterable]=\"true\"\n (filterChange)=\"onFilterChange($event)\"\n (selectionChange)=\"onSelectionChange($event)\"\n />\n </kendo-label>\n </div>\n </div>\n }\n <kendo-dialog-actions class=\"popup-actions-btn\">\n <button class=\"cancel-btn\" (click)=\"createList()\" [disabled]=\"!listName || !selectedEntity || showCreateLoader\" kendoButton themeColor=\"info\">\n Create\n </button>\n <button class=\"yes-btn\" (click)=\"toggleCreateDialog(false)\" [disabled]=\"showCreateLoader\" kendoButton fillMode=\"outline\" themeColor=\"info\">\n Cancel\n </button>\n </kendo-dialog-actions>\n</kendo-dialog>", styles: [".margin-bottom-20 {\n margin-bottom: 20px;\n}\n\n.margin-top-10 {\n margin-top: 10px;\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"] }]
|
|
223
|
+
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], { resourceBrowser: [{
|
|
224
|
+
type: ViewChild,
|
|
225
|
+
args: ['resourceBrowserLists']
|
|
226
|
+
}] }); })();
|
|
227
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ListViewComponent, { className: "ListViewComponent", filePath: "src/lib/list-view/list-view.component.ts", lineNumber: 18 }); })();
|
|
208
228
|
//# sourceMappingURL=list-view.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-view.component.js","sourceRoot":"","sources":["../../../src/lib/list-view/list-view.component.ts","../../../src/lib/list-view/list-view.component.html"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"list-view.component.js","sourceRoot":"","sources":["../../../src/lib/list-view/list-view.component.ts","../../../src/lib/list-view/list-view.component.html"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,EAAE,oBAAoB,EAA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AAC,qBAAqB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;YACtF,CAAC;QACL,CAAC;KAAA;IAEM,cAAc,CAAC,KAAa;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAEM,iBAAiB,CAAC,KAAa;QAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,CAAC,IAAI,IAAI,CAAC;IACjG,CAAC;IAEM,qBAAqB,CAAC,MAAgC;QACzD,IAAG,MAAM,CAAC,IAAI,KAAK,aAAa,EAAC,CAAC;YAC9B,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;;kFA7HQ,iBAAiB;oEAAjB,iBAAiB;;;;;;;QCjB9B,iDAYE;QADE,AADA,6KAAoB,qBAAiB,KAAC,0JACrB,mCAA+B,KAAC;QAXrD,iBAYE;QAyBF,oFAOC;;QAnCG,AAHA,AADA,AADA,AADA,uCAAyB,wBACF,0BACE,2CACa,sCAGL;QA8BpC,eAAsB;QAAtB,2CAAsB;;ADtBV,iBAAiB;IAD7B,aAAa,CAAC,uBAAuB,EAAE,OAAO,CAAC;GACnC,iBAAiB,CA8H7B;;iFA9HY,iBAAiB;cAN7B,SAAS;2BACE,cAAc;gGAOa,eAAe;kBAAjD,SAAS;mBAAC,sBAAsB;;kFAFxB,iBAAiB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { Item } from '../../generic/Item.types';
|
|
2
|
+
import { Item, NewItemOption } from '../../generic/Item.types';
|
|
3
3
|
import { SharedService } from '@memberjunction/ng-shared';
|
|
4
4
|
import { BaseBrowserComponent } from '../base-browser-component/base-browser-component';
|
|
5
5
|
import { BeforeUpdateItemEvent } from '../../generic/Events.types';
|
|
@@ -8,6 +8,7 @@ export declare class QueryBrowserComponent extends BaseBrowserComponent {
|
|
|
8
8
|
private router;
|
|
9
9
|
private route;
|
|
10
10
|
private sharedService;
|
|
11
|
+
NewItemOptions: NewItemOption[];
|
|
11
12
|
constructor(router: Router, route: ActivatedRoute, sharedService: SharedService);
|
|
12
13
|
ngOnInit(): Promise<void>;
|
|
13
14
|
itemClick(item: Item): void;
|
|
@@ -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;
|
|
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,EAAY,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzE,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;IAIjD,OAAO,CAAC,MAAM;IAAU,OAAO,CAAC,KAAK;IAAkB,OAAO,CAAC,aAAa;IAFjF,cAAc,EAAE,aAAa,EAAE,CAAM;gBAExB,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;yCApDvD,qBAAqB;2CAArB,qBAAqB;CA4DjC"}
|
|
@@ -14,6 +14,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
import { Component } from '@angular/core';
|
|
17
|
+
import { ItemType } from '../../generic/Item.types';
|
|
17
18
|
import { BaseNavigationComponent } from '@memberjunction/ng-shared';
|
|
18
19
|
import { BaseBrowserComponent } from '../base-browser-component/base-browser-component';
|
|
19
20
|
import { LogStatus, Metadata } from '@memberjunction/core';
|
|
@@ -21,7 +22,7 @@ import { RegisterClass } from '@memberjunction/global';
|
|
|
21
22
|
import * as i0 from "@angular/core";
|
|
22
23
|
import * as i1 from "@angular/router";
|
|
23
24
|
import * as i2 from "@memberjunction/ng-shared";
|
|
24
|
-
import * as i3 from "../
|
|
25
|
+
import * as i3 from "../resource-browser/resource-browser.component";
|
|
25
26
|
let QueryBrowserComponent = class QueryBrowserComponent extends BaseBrowserComponent {
|
|
26
27
|
constructor(router, route, sharedService) {
|
|
27
28
|
var _a;
|
|
@@ -29,6 +30,7 @@ let QueryBrowserComponent = class QueryBrowserComponent extends BaseBrowserCompo
|
|
|
29
30
|
this.router = router;
|
|
30
31
|
this.route = route;
|
|
31
32
|
this.sharedService = sharedService;
|
|
33
|
+
this.NewItemOptions = [];
|
|
32
34
|
this.pageName = "Queries";
|
|
33
35
|
this.routeName = "queries";
|
|
34
36
|
this.routeNameSingular = "query";
|
|
@@ -63,9 +65,9 @@ let QueryBrowserComponent = class QueryBrowserComponent extends BaseBrowserCompo
|
|
|
63
65
|
//which i dont think is needed
|
|
64
66
|
itemClick(item) {
|
|
65
67
|
let dataID = "";
|
|
66
|
-
if (item.Type ===
|
|
68
|
+
if (item.Type === ItemType.Resource) {
|
|
67
69
|
let query = item.Data;
|
|
68
|
-
dataID = query.
|
|
70
|
+
dataID = query.FirstPrimaryKey.Value;
|
|
69
71
|
}
|
|
70
72
|
super.Navigate(item, this.router, dataID);
|
|
71
73
|
}
|
|
@@ -77,20 +79,21 @@ let QueryBrowserComponent = class QueryBrowserComponent extends BaseBrowserCompo
|
|
|
77
79
|
}
|
|
78
80
|
};
|
|
79
81
|
QueryBrowserComponent.ɵfac = function QueryBrowserComponent_Factory(t) { return new (t || QueryBrowserComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
80
|
-
QueryBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryBrowserComponent, selectors: [["mj-query-browser"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
81
|
-
i0.ɵɵ
|
|
82
|
-
i0.ɵɵ
|
|
82
|
+
QueryBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryBrowserComponent, selectors: [["mj-query-browser"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 5, consts: [["resourceBrowserQueries", ""], ["ResourceTypeName", "Queries", "Title", "Queries", "DisplayMode", "Tile", 3, "ResourceSelected", "EditItemEvent", "EnableCategories", "EnableItemEdit", "EnableItemDelete", "CurrentCategoryID", "NewItemOptions"]], template: function QueryBrowserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
83
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
84
|
+
i0.ɵɵelementStart(0, "mj-resource-browser", 1, 0);
|
|
85
|
+
i0.ɵɵlistener("ResourceSelected", function QueryBrowserComponent_Template_mj_resource_browser_ResourceSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.itemClick($event)); })("EditItemEvent", function QueryBrowserComponent_Template_mj_resource_browser_EditItemEvent_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBeforeUpdateItemEvent($event)); });
|
|
83
86
|
i0.ɵɵelementEnd();
|
|
84
87
|
} if (rf & 2) {
|
|
85
|
-
i0.ɵɵproperty("
|
|
86
|
-
} }, dependencies: [i3.
|
|
88
|
+
i0.ɵɵproperty("EnableCategories", false)("EnableItemEdit", false)("EnableItemDelete", false)("CurrentCategoryID", ctx.selectedFolderID)("NewItemOptions", ctx.NewItemOptions);
|
|
89
|
+
} }, dependencies: [i3.ResourceBrowserComponent], 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
90
|
QueryBrowserComponent = __decorate([
|
|
88
91
|
RegisterClass(BaseNavigationComponent, 'Queries')
|
|
89
92
|
], QueryBrowserComponent);
|
|
90
93
|
export { QueryBrowserComponent };
|
|
91
94
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryBrowserComponent, [{
|
|
92
95
|
type: Component,
|
|
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[disableEditButton]=\"true\"\n(viewModeChangeEvent)=\"onViewModeChange($event)\"\n(BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n
|
|
96
|
+
args: [{ selector: 'mj-query-browser', template: "<mj-resource-browser\n #resourceBrowserQueries\n ResourceTypeName=\"Queries\"\n [EnableCategories]=\"false\"\n [EnableItemEdit]=\"false\"\n [EnableItemDelete]=\"false\"\n [CurrentCategoryID]=\"selectedFolderID\"\n Title=\"Queries\"\n DisplayMode=\"Tile\"\n [NewItemOptions]=\"NewItemOptions\"\n (ResourceSelected)=\"itemClick($event)\"\n (EditItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n/>\n<!--\n<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[disableEditButton]=\"true\"\n(viewModeChangeEvent)=\"onViewModeChange($event)\"\n(BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n/>\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"] }]
|
|
94
97
|
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], null); })();
|
|
95
98
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryBrowserComponent, { className: "QueryBrowserComponent", filePath: "src/lib/query-browser-component/query-browser.component.ts", lineNumber: 17 }); })();
|
|
96
99
|
//# sourceMappingURL=query-browser.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-browser.component.js","sourceRoot":"","sources":["../../../src/lib/query-browser-component/query-browser.component.ts","../../../src/lib/query-browser-component/query-browser.component.html"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"query-browser.component.js","sourceRoot":"","sources":["../../../src/lib/query-browser-component/query-browser.component.ts","../../../src/lib/query-browser-component/query-browser.component.html"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAQ,QAAQ,EAAiB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAiB,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAGxF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAW,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;;;AAQhD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,oBAAoB;IAI7D,YAAoB,MAAc,EAAU,KAAqB,EAAU,aAA4B;;QACrG,KAAK,EAAE,CAAC;QADU,WAAM,GAAN,MAAM,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAgB;QAAU,kBAAa,GAAb,aAAa,CAAe;QAFhG,mBAAc,GAAoB,EAAE,CAAC;QAK1C,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC;QACjC,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAE7C,MAAM,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,0CAAE,YAAY,CAAC,WAAW,CAAC;QAC5E,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAA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CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;IAEM,uBAAuB,CAAC,KAA4B;QACzD,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;QAEpB,IAAI,IAAI,GAAS,KAAK,CAAC,IAAI,CAAC;QAC5B,IAAI,KAAK,GAAgB,IAAI,CAAC,IAAI,CAAC;QAEnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,EAAC,CAAC,CAAC;IACpG,CAAC;;0FA3DU,qBAAqB;wEAArB,qBAAqB;;QChBlC,iDAYE;QADE,AADA,iLAAoB,qBAAiB,KAAC,8JACrB,mCAA+B,KAAC;QAXrD,iBAYE;;QAHE,AAHA,AADA,AADA,AADA,wCAA0B,yBACF,2BACE,2CACY,sCAGL;;ADOxB,qBAAqB;IADjC,aAAa,CAAC,uBAAuB,EAAE,SAAS,CAAC;GACrC,qBAAqB,CA4DjC;;iFA5DY,qBAAqB;cANjC,SAAS;2BACE,kBAAkB;;kFAKjB,qBAAqB"}
|
|
@@ -2,7 +2,7 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
2
2
|
import { ReportEntity } from '@memberjunction/core-entities';
|
|
3
3
|
import { BaseBrowserComponent } from '../base-browser-component/base-browser-component';
|
|
4
4
|
import { SharedService } from '@memberjunction/ng-shared';
|
|
5
|
-
import { Item } from '../../generic/Item.types';
|
|
5
|
+
import { Item, NewItemOption } from '../../generic/Item.types';
|
|
6
6
|
import { BeforeUpdateItemEvent } from '../../generic/Events.types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ReportBrowserComponent extends BaseBrowserComponent {
|
|
@@ -11,6 +11,7 @@ export declare class ReportBrowserComponent extends BaseBrowserComponent {
|
|
|
11
11
|
private sharedService;
|
|
12
12
|
reports: ReportEntity[];
|
|
13
13
|
showLoader: boolean;
|
|
14
|
+
NewItemOptions: NewItemOption[];
|
|
14
15
|
constructor(router: Router, route: ActivatedRoute, sharedService: SharedService);
|
|
15
16
|
ngOnInit(): Promise<void>;
|
|
16
17
|
itemClick(item: Item): void;
|
|
@@ -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,EAA2B,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;
|
|
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,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;;AAGnE,qBAMa,sBAAuB,SAAQ,oBAAoB;IAMlD,OAAO,CAAC,MAAM;IAAU,OAAO,CAAC,KAAK;IAAkB,OAAO,CAAC,aAAa;IALjF,OAAO,EAAE,YAAY,EAAE,CAAM;IAC7B,UAAU,EAAE,OAAO,CAAS;IAE5B,cAAc,EAAE,aAAa,EAAE,CAAM;gBAExB,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;yCArCvD,sBAAsB;2CAAtB,sBAAsB;CA6ClC"}
|
|
@@ -20,7 +20,7 @@ import { RegisterClass } from '@memberjunction/global';
|
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
21
21
|
import * as i1 from "@angular/router";
|
|
22
22
|
import * as i2 from "@memberjunction/ng-shared";
|
|
23
|
-
import * as i3 from "../
|
|
23
|
+
import * as i3 from "../resource-browser/resource-browser.component";
|
|
24
24
|
let ReportBrowserComponent = class ReportBrowserComponent extends BaseBrowserComponent {
|
|
25
25
|
constructor(router, route, sharedService) {
|
|
26
26
|
var _a;
|
|
@@ -30,6 +30,7 @@ let ReportBrowserComponent = class ReportBrowserComponent extends BaseBrowserCom
|
|
|
30
30
|
this.sharedService = sharedService;
|
|
31
31
|
this.reports = [];
|
|
32
32
|
this.showLoader = false;
|
|
33
|
+
this.NewItemOptions = [];
|
|
33
34
|
this.pageName = "Reports";
|
|
34
35
|
this.routeName = "reports";
|
|
35
36
|
this.routeNameSingular = "report";
|
|
@@ -65,20 +66,21 @@ let ReportBrowserComponent = class ReportBrowserComponent extends BaseBrowserCom
|
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
ReportBrowserComponent.ɵfac = function ReportBrowserComponent_Factory(t) { return new (t || ReportBrowserComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
68
|
-
ReportBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReportBrowserComponent, selectors: [["mj-report-browser"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
69
|
-
i0.ɵɵ
|
|
70
|
-
i0.ɵɵ
|
|
69
|
+
ReportBrowserComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReportBrowserComponent, selectors: [["mj-report-browser"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 5, consts: [["resourceBrowserQueries", ""], ["ResourceTypeName", "Reports", "Title", "Reports", "DisplayMode", "Tile", 3, "ResourceSelected", "EditItemEvent", "EnableCategories", "EnableItemEdit", "EnableItemDelete", "CurrentCategoryID", "NewItemOptions"]], template: function ReportBrowserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
71
|
+
i0.ɵɵelementStart(0, "mj-resource-browser", 1, 0);
|
|
72
|
+
i0.ɵɵlistener("ResourceSelected", function ReportBrowserComponent_Template_mj_resource_browser_ResourceSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.itemClick($event)); })("EditItemEvent", function ReportBrowserComponent_Template_mj_resource_browser_EditItemEvent_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBeforeUpdateItemEvent($event)); });
|
|
71
73
|
i0.ɵɵelementEnd();
|
|
72
74
|
} if (rf & 2) {
|
|
73
|
-
i0.ɵɵproperty("
|
|
74
|
-
} }, dependencies: [i3.
|
|
75
|
+
i0.ɵɵproperty("EnableCategories", false)("EnableItemEdit", false)("EnableItemDelete", false)("CurrentCategoryID", ctx.selectedFolderID)("NewItemOptions", ctx.NewItemOptions);
|
|
76
|
+
} }, dependencies: [i3.ResourceBrowserComponent], 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
77
|
ReportBrowserComponent = __decorate([
|
|
76
78
|
RegisterClass(BaseNavigationComponent, 'Reports')
|
|
77
79
|
], ReportBrowserComponent);
|
|
78
80
|
export { ReportBrowserComponent };
|
|
79
81
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReportBrowserComponent, [{
|
|
80
82
|
type: Component,
|
|
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[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"] }]
|
|
83
|
+
args: [{ selector: 'mj-report-browser', template: "<mj-resource-browser\n #resourceBrowserQueries\n ResourceTypeName=\"Reports\"\n [EnableCategories]=\"false\"\n [EnableItemEdit]=\"false\"\n [EnableItemDelete]=\"false\"\n [CurrentCategoryID]=\"selectedFolderID\"\n Title=\"Reports\"\n DisplayMode=\"Tile\"\n [NewItemOptions]=\"NewItemOptions\"\n (ResourceSelected)=\"itemClick($event)\"\n (EditItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n/>\n<!--\n<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[disableEditButton]=\"true\"\n(viewModeChangeEvent)=\"onViewModeChange($event)\"\n(BeforeUpdateItemEvent)=\"onBeforeUpdateItemEvent($event)\"\n/>\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"] }]
|
|
82
84
|
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], null); })();
|
|
83
85
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReportBrowserComponent, { className: "ReportBrowserComponent", filePath: "src/lib/report-browser-component/report-browser.component.ts", lineNumber: 16 }); })();
|
|
84
86
|
//# sourceMappingURL=report-browser.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-browser.component.js","sourceRoot":"","sources":["../../../src/lib/report-browser-component/report-browser.component.ts","../../../src/lib/report-browser-component/report-browser.component.html"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAiB,MAAM,2BAA2B,CAAC;AAGnF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;;;AAQhD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAoB;
|
|
1
|
+
{"version":3,"file":"report-browser.component.js","sourceRoot":"","sources":["../../../src/lib/report-browser-component/report-browser.component.ts","../../../src/lib/report-browser-component/report-browser.component.html"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAiB,MAAM,2BAA2B,CAAC;AAGnF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;;;AAQhD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAoB;IAM9D,YAAoB,MAAc,EAAU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