@memberjunction/ng-explorer-core 2.9.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/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 +4 -6
- package/dist/lib/app-view/application-view.component.d.ts.map +1 -1
- package/dist/lib/app-view/application-view.component.js +23 -16
- 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/package.json +22 -22
|
@@ -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,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAiB,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAQ,QAAQ,EAAiB,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EAA0B,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;;;;;;;ICsC/C,kCAAuD;;;;IAM3C,AADJ,AADJ,AADJ,8BAA4C,aACV,sBACD,wBAIM;IAAvB,iUAAsB;IAGlC,AADI,AADI,iBAAgB,EACN,EACZ;IAGE,AADJ,AADJ,8BAA8B,sBACM,yBAO3B;IADG,gVAA6B;IAGzC,AADI,AADK,iBAAiB,EACR,EACZ;IAGE,AADJ,AADJ,8BAA8B,sBACW,6BAO/B;IADE,AADA,qOAAgB,6BAAsB,KAAC,8NACpB,gCAAyB,KAAC;IAI7D,AADI,AADI,AAPI,iBAME,EACQ,EACZ,EACJ;;;IA1BU,eAAsB;IAAtB,+CAAsB;IAStB,eAAU;IAAV,wBAAU;IAEV,sDAA6B;IAQ7B,eAAoB;IACpB,AADA,yCAAoB,oBACD;;;;IAtC3C,uCAOC;IAJD,4LAAS,0BAAmB,KAAK,CAAC,KAAC;IAQ/B,AAHA,kGAAsB,6EAGf;IAoCH,AADJ,+C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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,EAA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berjunction/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,KAAqB,EAAU,aAA4B;;QACrG,KAAK,EAAE,CAAC;QADU,WAAM,GAAN,MAAM,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAgB;QAAU,kBAAa,GAAb,aAAa,CAAe;QALhG,YAAO,GAAmB,EAAE,CAAC;QAC7B,eAAU,GAAY,KAAK,CAAC;QAE5B,mBAAc,GAAoB,EAAE,CAAC;QAK1C,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,kBAAkB,GAAG,mBAAmB,CAAC;QAE9C,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,CAAC;IACjD,CAAC;IAEK,QAAQ;;;;;YACZ,OAAM,eAAe,YAAC,IAAI,CAAC,KAAK,EAAE;QACpC,CAAC;KAAA;IAEA,0DAA0D;IAC3D,8DAA8D;IAC9D,8BAA8B;IACvB,SAAS,CAAC,IAAU;QACzB,IAAI,MAAM,GAAW,EAAE,CAAC;QAExB,IAAG,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAC,CAAC;YACzB,IAAI,MAAM,GAAiB,IAAI,CAAC,IAAoB,CAAC;YACrD,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QAED,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,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,MAAM,GAAiB,IAAI,CAAC,IAAI,CAAC;QAErC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,EAAC,CAAC,CAAC;IACrG,CAAC;;4FA5CU,sBAAsB;yEAAtB,sBAAsB;;QCfnC,iDAYE;QADE,AADA,kLAAoB,qBAAiB,KAAC,+JACrB,mCAA+B,KAAC;QAXrD,iBAYE;;QAHE,AAHA,AADA,AADA,AADA,wCAA0B,yBACF,2BACE,2CACY,sCAGL;;ADMxB,sBAAsB;IADlC,aAAa,CAAC,uBAAuB,EAAE,SAAS,CAAC;GACrC,sBAAsB,CA6ClC;;iFA7CY,sBAAsB;cANlC,SAAS;2BACE,mBAAmB;;kFAKlB,sBAAsB"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { Item } from '../../generic/Item.types';
|
|
2
|
+
import { Folder, Item, NewItemOption } from '../../generic/Item.types';
|
|
3
3
|
import { ResourceTypeEntity } from '@memberjunction/core-entities';
|
|
4
4
|
import { CellClickEvent } from '@progress/kendo-angular-grid';
|
|
5
5
|
import { SharedService } from '@memberjunction/ng-shared';
|
|
6
|
+
import { BeforeUpdateItemEvent } from '../../generic/Events.types';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class NewItemOption {
|
|
8
|
-
Text: string;
|
|
9
|
-
Description?: string;
|
|
10
|
-
Icon?: string;
|
|
11
|
-
Action?: () => void;
|
|
12
|
-
}
|
|
13
8
|
export declare class ResourceBrowserComponent {
|
|
14
9
|
sharedService: SharedService;
|
|
15
10
|
/*******************************************************************************************
|
|
@@ -22,9 +17,19 @@ export declare class ResourceBrowserComponent {
|
|
|
22
17
|
get ResourceTypeName(): string | null;
|
|
23
18
|
set ResourceTypeName(value: string);
|
|
24
19
|
/**
|
|
25
|
-
* Whether or not to enable categories
|
|
20
|
+
* Whether or not to enable categories. If enabled, Categories will be displayed
|
|
21
|
+
* and the option to create new categories will be available. Default is true.
|
|
26
22
|
*/
|
|
27
23
|
EnableCategories: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* If Categories are enabled, then the categories fetched will be filtered to return only those whoses EntityID
|
|
26
|
+
* matches this value.
|
|
27
|
+
*/
|
|
28
|
+
CategoryEntityID: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* If set, this will set the current Category/Folder for the display. Not all Resource Types support Categories, so if the Resource Type in question does not have a CategoryEntityID specified, this property will be ignored.
|
|
31
|
+
*/
|
|
32
|
+
CurrentCategoryID: string | null;
|
|
28
33
|
/**
|
|
29
34
|
* This property determines if the UI will include a button on items in the display to edit. The button will only be shown if the user has edit permissions, but this is a global setting to turn on/off the button even if the user has permissions. Default is true.
|
|
30
35
|
*/
|
|
@@ -54,10 +59,6 @@ export declare class ResourceBrowserComponent {
|
|
|
54
59
|
* Array of NewItemOption objects that will be displayed in the Create New dropdown. Defaults to having a single entry for creating a new folder, you can remove this or add to it.
|
|
55
60
|
*/
|
|
56
61
|
NewItemOptions: NewItemOption[];
|
|
57
|
-
/**
|
|
58
|
-
* If set, this will set the current Category/Folder for the display. Not all Resource Types support Categories, so if the Resource Type in question does not have a CategoryEntityID specified, this property will be ignored.
|
|
59
|
-
*/
|
|
60
|
-
CurrentCategoryID?: string;
|
|
61
62
|
/**
|
|
62
63
|
* The visual display mode for this component, tile will show the contents in tiles that are spaced and wrapped based on the viewport, list will show the details of the items in a list, and tree will show the items in a tree view - tree view NOT implemented yet
|
|
63
64
|
*/
|
|
@@ -77,6 +78,14 @@ export declare class ResourceBrowserComponent {
|
|
|
77
78
|
* Fires whenever the user changes the display mode of the component
|
|
78
79
|
*/
|
|
79
80
|
DisplayModeChanged: EventEmitter<'Grid' | 'List' | 'Tree'>;
|
|
81
|
+
/**
|
|
82
|
+
* Fires whenever the user clicks the back button to view the parent folder
|
|
83
|
+
*/
|
|
84
|
+
NavigateToParentEvent: EventEmitter<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Fires whenever the users clicks to edit an Item that is not a folder
|
|
87
|
+
*/
|
|
88
|
+
EditItemEvent: EventEmitter<BeforeUpdateItemEvent>;
|
|
80
89
|
/**
|
|
81
90
|
* The current Resource Type (BaseEntity derived class), automatically is populated after init based on the ResourceType string
|
|
82
91
|
*/
|
|
@@ -110,6 +119,11 @@ export declare class ResourceBrowserComponent {
|
|
|
110
119
|
* The current list of items being displayed in the browser, DO NOT MODIFY THIS! This is read only and is auto-populated by the component.
|
|
111
120
|
*/
|
|
112
121
|
get Items(): Item[];
|
|
122
|
+
private _DefaultNewItemOptions;
|
|
123
|
+
get ItemOptions(): NewItemOption[];
|
|
124
|
+
upsertNewFolderName: string;
|
|
125
|
+
upsertNewFolderDescription: string;
|
|
126
|
+
selectedFolder: Folder | null;
|
|
113
127
|
private _filterDebounceTime;
|
|
114
128
|
private filterItemsSubject;
|
|
115
129
|
private filter;
|
|
@@ -117,27 +131,21 @@ export declare class ResourceBrowserComponent {
|
|
|
117
131
|
selectedItem: Item | null;
|
|
118
132
|
deleteDialogOpened: boolean;
|
|
119
133
|
copyFromDialogOpened: boolean;
|
|
120
|
-
|
|
121
|
-
private newFolderText;
|
|
134
|
+
upsertFolderDialogVisible: boolean;
|
|
122
135
|
private _allResourceTypes;
|
|
123
|
-
private createNewRecordName;
|
|
124
136
|
entityObjectName: string;
|
|
125
|
-
/**
|
|
126
|
-
* Options for the create button dropdown
|
|
127
|
-
*/
|
|
128
|
-
dropdownOptions: {
|
|
129
|
-
text: string;
|
|
130
|
-
}[];
|
|
131
137
|
constructor(sharedService: SharedService);
|
|
132
138
|
ngOnInit(): Promise<void>;
|
|
133
139
|
/**
|
|
134
140
|
* Refresh the component from the database based on other current state variables.
|
|
135
141
|
*/
|
|
136
142
|
Refresh(): Promise<void>;
|
|
143
|
+
private LoadResources;
|
|
144
|
+
private LoadCategories;
|
|
145
|
+
protected sortItems(items: Item[]): Item[];
|
|
137
146
|
onCellItemClicked(event: CellClickEvent): void;
|
|
138
147
|
itemClick(item: any): void;
|
|
139
|
-
|
|
140
|
-
addResourceButtonClicked(): Promise<void>;
|
|
148
|
+
updateFolder(): Promise<void>;
|
|
141
149
|
createFolder(): Promise<void>;
|
|
142
150
|
unlinkItem(item: Item): Promise<void>;
|
|
143
151
|
private _currentDeleteOrUnlinkState;
|
|
@@ -149,22 +157,18 @@ export declare class ResourceBrowserComponent {
|
|
|
149
157
|
private deleteResource;
|
|
150
158
|
private unlinkResource;
|
|
151
159
|
private doesFolderHaveChildren;
|
|
152
|
-
|
|
153
|
-
private TryGetID;
|
|
154
|
-
changeViewMode(mode: 'grid' | 'list'): void;
|
|
160
|
+
changeViewMode(mode: "List" | "Tree" | "Tile"): void;
|
|
155
161
|
onKeyup(Value: any): void;
|
|
156
|
-
|
|
162
|
+
onUpsertFolderNameKeyup(value: string): void;
|
|
163
|
+
onUpsertFolderDescriptionKeyup(value: string): void;
|
|
157
164
|
private filterItems;
|
|
158
|
-
SetFavoriteStatus(item: any): Promise<void>;
|
|
159
165
|
editItem(item: Item): void;
|
|
160
|
-
onDropdownItemClick(
|
|
161
|
-
text: string;
|
|
162
|
-
}): Promise<void>;
|
|
166
|
+
onDropdownItemClick(dropdownItem: NewItemOption): Promise<void>;
|
|
163
167
|
toggleCopyFromView(): void;
|
|
164
168
|
getCopyFromTitle(): string;
|
|
165
|
-
|
|
169
|
+
toggleUpsertFolderView(visible: boolean, createNew: boolean): void;
|
|
166
170
|
getIconForResourceType(item: Item): string;
|
|
167
171
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceBrowserComponent, never>;
|
|
168
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceBrowserComponent, "mj-resource-browser", never, { "ResourceTypeName": { "alias": "ResourceTypeName"; "required": true; }; "EnableCategories": { "alias": "EnableCategories"; "required": false; }; "
|
|
172
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceBrowserComponent, "mj-resource-browser", never, { "ResourceTypeName": { "alias": "ResourceTypeName"; "required": true; }; "EnableCategories": { "alias": "EnableCategories"; "required": false; }; "CategoryEntityID": { "alias": "CategoryEntityID"; "required": false; }; "CurrentCategoryID": { "alias": "CurrentCategoryID"; "required": false; }; "EnableItemEdit": { "alias": "EnableItemEdit"; "required": false; }; "EnableItemDelete": { "alias": "EnableItemDelete"; "required": false; }; "EnableRemoveLink": { "alias": "EnableRemoveLink"; "required": false; }; "Title": { "alias": "Title"; "required": false; }; "ItemFilter": { "alias": "ItemFilter"; "required": false; }; "OrderBy": { "alias": "OrderBy"; "required": false; }; "NewItemOptions": { "alias": "NewItemOptions"; "required": false; }; "DisplayMode": { "alias": "DisplayMode"; "required": false; }; }, { "ResourceSelected": "ResourceSelected"; "CategoryChanged": "CategoryChanged"; "DisplayModeChanged": "DisplayModeChanged"; "NavigateToParentEvent": "NavigateToParentEvent"; "EditItemEvent": "EditItemEvent"; }, never, never, false, never>;
|
|
169
173
|
}
|
|
170
174
|
//# sourceMappingURL=resource-browser.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/resource-browser/resource-browser.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,
|
|
1
|
+
{"version":3,"file":"resource-browser.component.d.ts","sourceRoot":"","sources":["../../../src/lib/resource-browser/resource-browser.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAyB,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,IAAI,EAAY,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAsB,MAAM,+BAA+B,CAAC;AAGvF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;;AAEnE,qBAKa,wBAAwB;IA2LhB,aAAa,EAAE,aAAa;IA1L/C;;iGAE6F;IAC7F,OAAO,CAAC,iBAAiB,CAAuB;IAChD;;OAEG;IACH,IAAoC,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAEpE;IACD,IAAW,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAQxC;IACD;;;OAGG;IACM,gBAAgB,EAAE,OAAO,CAAQ;IAE1C;;;OAGG;IACM,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAQ;IAE5D;;OAEG;IACM,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEjD;;OAEG;IACM,cAAc,EAAE,OAAO,CAAQ;IACxC;;OAEG;IACM,gBAAgB,EAAE,OAAO,CAAQ;IAC1C;;;OAGG;IACM,gBAAgB,EAAE,OAAO,CAAQ;IAC1C;;OAEG;IACM,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACM,UAAU,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACM,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACM,cAAc,EAAE,aAAa,EAAE,CAAM;IAE9C;;OAEG;IACM,WAAW,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