@memberjunction/ng-explorer-core 2.48.0 → 2.50.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.js +40 -53
- package/dist/app-routing.module.js.map +1 -1
- package/dist/generic/Events.types.js +104 -0
- package/dist/generic/Events.types.js.map +1 -1
- package/dist/generic/Item.types.js +28 -14
- package/dist/generic/Item.types.js.map +1 -1
- package/dist/generic/PathData.types.js +5 -0
- package/dist/generic/PathData.types.js.map +1 -1
- package/dist/generic/app-nav-view.types.js +3 -1
- package/dist/generic/app-nav-view.types.js.map +1 -1
- package/dist/lib/app-view/application-view.component.js +273 -294
- package/dist/lib/app-view/application-view.component.js.map +1 -1
- package/dist/lib/auth-button/auth-button.component.js +13 -22
- package/dist/lib/auth-button/auth-button.component.js.map +1 -1
- package/dist/lib/base-browser-component/base-browser-component.js +96 -108
- package/dist/lib/base-browser-component/base-browser-component.js.map +1 -1
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +106 -124
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js.map +1 -1
- package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js +257 -281
- package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js.map +1 -1
- package/dist/lib/data-browser-component/data-browser.component.js +122 -137
- package/dist/lib/data-browser-component/data-browser.component.js.map +1 -1
- package/dist/lib/expansion-panel-component/expansion-panel-component.js +100 -117
- package/dist/lib/expansion-panel-component/expansion-panel-component.js.map +1 -1
- package/dist/lib/favorites/favorites.component.js +44 -54
- package/dist/lib/favorites/favorites.component.js.map +1 -1
- package/dist/lib/files/files.component.js +12 -11
- package/dist/lib/files/files.component.js.map +1 -1
- package/dist/lib/generic/form-toolbar.js +21 -20
- package/dist/lib/generic/form-toolbar.js.map +1 -1
- package/dist/lib/generic/resource-container-component.js +23 -20
- package/dist/lib/generic/resource-container-component.js.map +1 -1
- package/dist/lib/generic-browse-list/generic-browse-list.component.js +48 -46
- package/dist/lib/generic-browse-list/generic-browse-list.component.js.map +1 -1
- package/dist/lib/generic-browser-list/generic-browser-list.component.js +353 -386
- package/dist/lib/generic-browser-list/generic-browser-list.component.js.map +1 -1
- package/dist/lib/guards/auth-guard.service.js +4 -2
- package/dist/lib/guards/auth-guard.service.js.map +1 -1
- package/dist/lib/guards/entities.guard.js +1 -1
- package/dist/lib/guards/entities.guard.js.map +1 -1
- package/dist/lib/header/MSFT_UserImageService.js +4 -3
- package/dist/lib/header/MSFT_UserImageService.js.map +1 -1
- package/dist/lib/header/header.component.js +111 -121
- package/dist/lib/header/header.component.js.map +1 -1
- package/dist/lib/home-component/home.component.js +34 -42
- package/dist/lib/home-component/home.component.js.map +1 -1
- package/dist/lib/home-wrapper/home-wrapper.component.js +6 -6
- package/dist/lib/home-wrapper/home-wrapper.component.js.map +1 -1
- package/dist/lib/list-view/list-view.component.js +132 -152
- package/dist/lib/list-view/list-view.component.js.map +1 -1
- package/dist/lib/navigation/navigation.component.js +568 -615
- package/dist/lib/navigation/navigation.component.js.map +1 -1
- package/dist/lib/query-browser-component/query-browser.component.js +30 -39
- package/dist/lib/query-browser-component/query-browser.component.js.map +1 -1
- package/dist/lib/report-browser-component/report-browser.component.js +18 -30
- package/dist/lib/report-browser-component/report-browser.component.js.map +1 -1
- package/dist/lib/resource-browser/resource-browser.component.js +435 -457
- package/dist/lib/resource-browser/resource-browser.component.js.map +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +12 -25
- package/dist/lib/resource-wrappers/dashboard-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/list-detail-resource.component.js +18 -31
- package/dist/lib/resource-wrappers/list-detail-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/query-resource.component.js +15 -28
- package/dist/lib/resource-wrappers/query-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/record-resource.component.js +35 -47
- package/dist/lib/resource-wrappers/record-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/report-resource.component.js +15 -28
- package/dist/lib/resource-wrappers/report-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/search-results-resource.component.js +21 -34
- package/dist/lib/resource-wrappers/search-results-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/view-resource.component.js +23 -37
- package/dist/lib/resource-wrappers/view-resource.component.js.map +1 -1
- package/dist/lib/single-application/single-application.component.js +15 -20
- package/dist/lib/single-application/single-application.component.js.map +1 -1
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +81 -95
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js.map +1 -1
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +28 -29
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js.map +1 -1
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +51 -64
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js.map +1 -1
- package/dist/lib/single-dashboard/single-dashboard.component.js +158 -165
- package/dist/lib/single-dashboard/single-dashboard.component.js.map +1 -1
- package/dist/lib/single-entity/single-entity.component.js +106 -118
- package/dist/lib/single-entity/single-entity.component.js.map +1 -1
- package/dist/lib/single-list-detail/single-list-detail.component.js +265 -287
- package/dist/lib/single-list-detail/single-list-detail.component.js.map +1 -1
- package/dist/lib/single-query/single-query.component.js +35 -44
- package/dist/lib/single-query/single-query.component.js.map +1 -1
- package/dist/lib/single-record/single-record.component.js +64 -73
- package/dist/lib/single-record/single-record.component.js.map +1 -1
- package/dist/lib/single-report/single-report.component.js +33 -43
- package/dist/lib/single-report/single-report.component.js.map +1 -1
- package/dist/lib/single-search-result/single-search-result.component.js +18 -30
- package/dist/lib/single-search-result/single-search-result.component.js.map +1 -1
- package/dist/lib/single-view/single-view.component.js +107 -124
- package/dist/lib/single-view/single-view.component.js.map +1 -1
- package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.js +197 -210
- package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.js.map +1 -1
- package/dist/lib/user-notifications/user-notifications.component.js +137 -155
- package/dist/lib/user-notifications/user-notifications.component.js.map +1 -1
- package/dist/lib/user-profile/user-profile.component.js +10 -8
- package/dist/lib/user-profile/user-profile.component.js.map +1 -1
- package/dist/module.js +51 -51
- package/dist/module.js.map +1 -1
- package/package.json +25 -25
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
|
11
2
|
import { UserViewGridWithAnalysisComponent } from '@memberjunction/ng-ask-skip';
|
|
12
3
|
import { Metadata, LogError, EntityPermissionType } from '@memberjunction/core';
|
|
@@ -39,23 +30,27 @@ function SingleViewComponent_mj_user_view_properties_dialog_5_Template(rf, ctx)
|
|
|
39
30
|
i0.ɵɵproperty("ViewID", ctx_r0.selectedView.ID);
|
|
40
31
|
} }
|
|
41
32
|
export class SingleViewComponent {
|
|
33
|
+
router;
|
|
34
|
+
route;
|
|
35
|
+
sharedService;
|
|
36
|
+
viewGridWithAnalysis;
|
|
37
|
+
viewId = null;
|
|
38
|
+
viewName = null;
|
|
39
|
+
selectedView = null;
|
|
40
|
+
extraFilter = null;
|
|
41
|
+
entityName = null;
|
|
42
|
+
loadComplete = new EventEmitter();
|
|
43
|
+
selectedEntity = null;
|
|
44
|
+
showSearch = false;
|
|
45
|
+
searchText = '';
|
|
46
|
+
entityObjectName = '';
|
|
47
|
+
canCreateRecord = false;
|
|
48
|
+
searchDebounce$ = new Subject();
|
|
49
|
+
_deferLoadCount = 0;
|
|
42
50
|
constructor(router, route, sharedService) {
|
|
43
51
|
this.router = router;
|
|
44
52
|
this.route = route;
|
|
45
53
|
this.sharedService = sharedService;
|
|
46
|
-
this.viewId = null;
|
|
47
|
-
this.viewName = null;
|
|
48
|
-
this.selectedView = null;
|
|
49
|
-
this.extraFilter = null;
|
|
50
|
-
this.entityName = null;
|
|
51
|
-
this.loadComplete = new EventEmitter();
|
|
52
|
-
this.selectedEntity = null;
|
|
53
|
-
this.showSearch = false;
|
|
54
|
-
this.searchText = '';
|
|
55
|
-
this.entityObjectName = '';
|
|
56
|
-
this.canCreateRecord = false;
|
|
57
|
-
this.searchDebounce$ = new Subject();
|
|
58
|
-
this._deferLoadCount = 0;
|
|
59
54
|
}
|
|
60
55
|
ngAfterViewInit() {
|
|
61
56
|
this.initialLoad();
|
|
@@ -63,86 +58,76 @@ export class SingleViewComponent {
|
|
|
63
58
|
ngOnInit() {
|
|
64
59
|
this.setupSearchDebounce();
|
|
65
60
|
}
|
|
66
|
-
initialLoad() {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const e = md.Entities.find(e => e.ID === (view === null || view === void 0 ? void 0 : view.EntityID));
|
|
79
|
-
if (e) {
|
|
80
|
-
this.selectedEntity = e;
|
|
81
|
-
this.showSearch = e.AllowUserSearchAPI;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
else if (this.entityName && this.entityName.length > 0) {
|
|
86
|
-
// we are running a dynamic view here, not a view by ID
|
|
87
|
-
const e = md.Entities.find(e => { var _a; return e.Name.trim().toLowerCase() === ((_a = this.entityName) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()); });
|
|
61
|
+
async initialLoad() {
|
|
62
|
+
const md = new Metadata();
|
|
63
|
+
if (this.viewId || this.viewName) {
|
|
64
|
+
let view = null;
|
|
65
|
+
if (this.viewId)
|
|
66
|
+
view = await ViewInfo.GetViewEntity(this.viewId);
|
|
67
|
+
else if (this.viewName)
|
|
68
|
+
view = await ViewInfo.GetViewEntityByName(this.viewName);
|
|
69
|
+
if (view) {
|
|
70
|
+
this.selectedView = view;
|
|
71
|
+
await this.LoadView(view);
|
|
72
|
+
const e = md.Entities.find(e => e.ID === view?.EntityID);
|
|
88
73
|
if (e) {
|
|
89
74
|
this.selectedEntity = e;
|
|
90
75
|
this.showSearch = e.AllowUserSearchAPI;
|
|
91
|
-
yield this.LoadDynamicView();
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
// problem, we don't have a valid entity name
|
|
95
|
-
LogError(`Invalid entity name: ${this.entityName}`);
|
|
96
|
-
this.sharedService.CreateSimpleNotification(`The entity name ${this.entityName} is not valid. Please check the URL and try again.`, "error", 5000);
|
|
97
76
|
}
|
|
98
77
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
78
|
+
}
|
|
79
|
+
else if (this.entityName && this.entityName.length > 0) {
|
|
80
|
+
// we are running a dynamic view here, not a view by ID
|
|
81
|
+
const e = md.Entities.find(e => e.Name.trim().toLowerCase() === this.entityName?.trim().toLowerCase());
|
|
82
|
+
if (e) {
|
|
83
|
+
this.selectedEntity = e;
|
|
84
|
+
this.showSearch = e.AllowUserSearchAPI;
|
|
85
|
+
await this.LoadDynamicView();
|
|
103
86
|
}
|
|
104
|
-
|
|
87
|
+
else {
|
|
88
|
+
// problem, we don't have a valid entity name
|
|
89
|
+
LogError(`Invalid entity name: ${this.entityName}`);
|
|
90
|
+
this.sharedService.CreateSimpleNotification(`The entity name ${this.entityName} is not valid. Please check the URL and try again.`, "error", 5000);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (this.selectedEntity) {
|
|
94
|
+
const entityObj = await md.GetEntityObject(this.selectedEntity.Name);
|
|
95
|
+
this.canCreateRecord = entityObj.CheckPermissions(EntityPermissionType.Create, false);
|
|
96
|
+
this.entityObjectName = this.selectedEntity.Name;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
async handleRowClick(args) {
|
|
100
|
+
// tell the router to navigate instead of raising an event directly. router will in turn handle raising the event as required
|
|
101
|
+
this.router.navigate(['resource', 'record', args.CompositeKey.ToURLSegment()], { queryParams: { Entity: args.entityName } });
|
|
105
102
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
async LoadView(viewInfo) {
|
|
104
|
+
// load up the view
|
|
105
|
+
if (this.viewGridWithAnalysis &&
|
|
106
|
+
viewInfo && viewInfo.ID && viewInfo.ID.length > 0)
|
|
107
|
+
this.selectedView = viewInfo; // didn't change the param type of this variable because we didn't want a breaking change in the 2.x era of the system, when we go to 3.0 we can change this to UserViewEntityExtended
|
|
108
|
+
await this.viewGridWithAnalysis.Refresh({
|
|
109
|
+
ViewEntity: viewInfo,
|
|
110
|
+
ViewID: viewInfo.ID,
|
|
111
|
+
UserSearchString: this.searchText
|
|
110
112
|
});
|
|
113
|
+
this.loadComplete.emit();
|
|
111
114
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
yield this.viewGridWithAnalysis.Refresh({
|
|
119
|
-
ViewEntity: viewInfo,
|
|
120
|
-
ViewID: viewInfo.ID,
|
|
115
|
+
async LoadDynamicView() {
|
|
116
|
+
if (this.viewGridWithAnalysis) {
|
|
117
|
+
this.selectedView = null;
|
|
118
|
+
await this.viewGridWithAnalysis.Refresh({
|
|
119
|
+
EntityName: this.entityName,
|
|
120
|
+
ExtraFilter: this.extraFilter,
|
|
121
121
|
UserSearchString: this.searchText
|
|
122
122
|
});
|
|
123
123
|
this.loadComplete.emit();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
LoadDynamicView() {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
if (this.viewGridWithAnalysis) {
|
|
129
|
-
this.selectedView = null;
|
|
130
|
-
yield this.viewGridWithAnalysis.Refresh({
|
|
131
|
-
EntityName: this.entityName,
|
|
132
|
-
ExtraFilter: this.extraFilter,
|
|
133
|
-
UserSearchString: this.searchText
|
|
134
|
-
});
|
|
135
|
-
this.loadComplete.emit();
|
|
136
|
-
}
|
|
137
|
-
});
|
|
124
|
+
}
|
|
138
125
|
}
|
|
139
|
-
Refresh() {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
yield this.LoadDynamicView();
|
|
145
|
-
});
|
|
126
|
+
async Refresh() {
|
|
127
|
+
if (this.selectedView)
|
|
128
|
+
await this.LoadView(this.selectedView);
|
|
129
|
+
else
|
|
130
|
+
await this.LoadDynamicView();
|
|
146
131
|
}
|
|
147
132
|
onSearch(inputValue) {
|
|
148
133
|
this.searchDebounce$.next(inputValue);
|
|
@@ -153,11 +138,9 @@ export class SingleViewComponent {
|
|
|
153
138
|
this.search(inputValue);
|
|
154
139
|
});
|
|
155
140
|
}
|
|
156
|
-
search(inputValue) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
yield this.Refresh();
|
|
160
|
-
});
|
|
141
|
+
async search(inputValue) {
|
|
142
|
+
this.searchText = inputValue;
|
|
143
|
+
await this.Refresh();
|
|
161
144
|
}
|
|
162
145
|
viewPropertiesDialogClosed(args) {
|
|
163
146
|
if (args && args.Saved && args.ViewEntity) {
|
|
@@ -179,37 +162,37 @@ export class SingleViewComponent {
|
|
|
179
162
|
"display": "none"
|
|
180
163
|
};
|
|
181
164
|
}
|
|
165
|
+
static ɵfac = function SingleViewComponent_Factory(t) { return new (t || SingleViewComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
166
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleViewComponent, selectors: [["mj-single-view"]], viewQuery: function SingleViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
167
|
+
i0.ɵɵviewQuery(UserViewGridWithAnalysisComponent, 7);
|
|
168
|
+
} if (rf & 2) {
|
|
169
|
+
let _t;
|
|
170
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewGridWithAnalysis = _t.first);
|
|
171
|
+
} }, inputs: { viewId: "viewId", viewName: "viewName", selectedView: "selectedView", extraFilter: "extraFilter", entityName: "entityName" }, outputs: { loadComplete: "loadComplete" }, decls: 7, vars: 7, consts: [["ResourceType", "User Views", 3, "ResourceRecordID", "ResourceName"], ["mjFillContainer", "", 1, "single-view-wrap", 3, "bottomMargin", "ngStyle"], [1, "searchBox"], ["id", "txtSearch", "placeholder", "Search here...", "kendoTextBox", "", 3, "valueChange", "ngModelChange", "clearButton", "ngModel"], [1, "flex-row"], ["class", "padding-left-small", 3, "ViewID", "dialogClosed", 4, "ngIf"], ["mjFillContainer", "", 1, "analysis-wrapper", 3, "rowClicked", "AutoNavigate"], [1, "padding-left-small", 3, "dialogClosed", "ViewID"]], template: function SingleViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
172
|
+
i0.ɵɵtemplate(0, SingleViewComponent_Conditional_0_Template, 1, 2, "mj-request-resource-access", 0);
|
|
173
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "kendo-textbox", 3);
|
|
174
|
+
i0.ɵɵlistener("valueChange", function SingleViewComponent_Template_kendo_textbox_valueChange_3_listener($event) { return ctx.onSearch($event); });
|
|
175
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SingleViewComponent_Template_kendo_textbox_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.searchText, $event) || (ctx.searchText = $event); return $event; });
|
|
176
|
+
i0.ɵɵelementEnd();
|
|
177
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
178
|
+
i0.ɵɵtemplate(5, SingleViewComponent_mj_user_view_properties_dialog_5_Template, 1, 1, "mj-user-view-properties-dialog", 5);
|
|
179
|
+
i0.ɵɵelementEnd()();
|
|
180
|
+
i0.ɵɵelementStart(6, "mj-user-view-grid-with-analysis", 6);
|
|
181
|
+
i0.ɵɵlistener("rowClicked", function SingleViewComponent_Template_mj_user_view_grid_with_analysis_rowClicked_6_listener($event) { return ctx.handleRowClick($event); });
|
|
182
|
+
i0.ɵɵelementEnd()();
|
|
183
|
+
} if (rf & 2) {
|
|
184
|
+
i0.ɵɵconditional(!ctx.UserCanView && ctx.selectedView && ctx.selectedView.ID ? 0 : -1);
|
|
185
|
+
i0.ɵɵadvance();
|
|
186
|
+
i0.ɵɵproperty("bottomMargin", 20)("ngStyle", ctx.dynamicWrapperStyle());
|
|
187
|
+
i0.ɵɵadvance(2);
|
|
188
|
+
i0.ɵɵproperty("clearButton", true);
|
|
189
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.searchText);
|
|
190
|
+
i0.ɵɵadvance(2);
|
|
191
|
+
i0.ɵɵproperty("ngIf", ctx.selectedView);
|
|
192
|
+
i0.ɵɵadvance();
|
|
193
|
+
i0.ɵɵproperty("AutoNavigate", false);
|
|
194
|
+
} }, dependencies: [i3.NgIf, i3.NgStyle, i4.NgControlStatus, i4.NgModel, i5.TextBoxComponent, i6.FillContainer, i7.UserViewGridWithAnalysisComponent, i8.UserViewPropertiesDialogComponent, i9.RequestResourceAccessComponent], styles: [".single-view-wrap[_ngcontent-%COMP%] {\n padding: 10px;\n}\n\n .analysis-wrapper .k-tabstrip-items-wrapper {\n background: var(--white-color) !important;\n padding-left: 0 !important;\n}\n\n .analysis-wrapper .k-tabstrip-items-wrapper .k-tabstrip-items .k-tabstrip-item.k-active {\n border-bottom: 3px solid var(--border-blue) !important;\n}\n\n .analysis-wrapper .k-tabstrip-items-wrapper .k-tabstrip-items .k-tabstrip-item {\n background: var(--white-color) !important;\n border-right: 0 !important;\n}\n\n.flex-row[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n}\n\n.padding-left-small[_ngcontent-%COMP%] {\n padding-left: 10px;\n}"] });
|
|
182
195
|
}
|
|
183
|
-
SingleViewComponent.ɵfac = function SingleViewComponent_Factory(t) { return new (t || SingleViewComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
184
|
-
SingleViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleViewComponent, selectors: [["mj-single-view"]], viewQuery: function SingleViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
185
|
-
i0.ɵɵviewQuery(UserViewGridWithAnalysisComponent, 7);
|
|
186
|
-
} if (rf & 2) {
|
|
187
|
-
let _t;
|
|
188
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewGridWithAnalysis = _t.first);
|
|
189
|
-
} }, inputs: { viewId: "viewId", viewName: "viewName", selectedView: "selectedView", extraFilter: "extraFilter", entityName: "entityName" }, outputs: { loadComplete: "loadComplete" }, decls: 7, vars: 7, consts: [["ResourceType", "User Views", 3, "ResourceRecordID", "ResourceName"], ["mjFillContainer", "", 1, "single-view-wrap", 3, "bottomMargin", "ngStyle"], [1, "searchBox"], ["id", "txtSearch", "placeholder", "Search here...", "kendoTextBox", "", 3, "valueChange", "ngModelChange", "clearButton", "ngModel"], [1, "flex-row"], ["class", "padding-left-small", 3, "ViewID", "dialogClosed", 4, "ngIf"], ["mjFillContainer", "", 1, "analysis-wrapper", 3, "rowClicked", "AutoNavigate"], [1, "padding-left-small", 3, "dialogClosed", "ViewID"]], template: function SingleViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
190
|
-
i0.ɵɵtemplate(0, SingleViewComponent_Conditional_0_Template, 1, 2, "mj-request-resource-access", 0);
|
|
191
|
-
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "kendo-textbox", 3);
|
|
192
|
-
i0.ɵɵlistener("valueChange", function SingleViewComponent_Template_kendo_textbox_valueChange_3_listener($event) { return ctx.onSearch($event); });
|
|
193
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SingleViewComponent_Template_kendo_textbox_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.searchText, $event) || (ctx.searchText = $event); return $event; });
|
|
194
|
-
i0.ɵɵelementEnd();
|
|
195
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
196
|
-
i0.ɵɵtemplate(5, SingleViewComponent_mj_user_view_properties_dialog_5_Template, 1, 1, "mj-user-view-properties-dialog", 5);
|
|
197
|
-
i0.ɵɵelementEnd()();
|
|
198
|
-
i0.ɵɵelementStart(6, "mj-user-view-grid-with-analysis", 6);
|
|
199
|
-
i0.ɵɵlistener("rowClicked", function SingleViewComponent_Template_mj_user_view_grid_with_analysis_rowClicked_6_listener($event) { return ctx.handleRowClick($event); });
|
|
200
|
-
i0.ɵɵelementEnd()();
|
|
201
|
-
} if (rf & 2) {
|
|
202
|
-
i0.ɵɵconditional(!ctx.UserCanView && ctx.selectedView && ctx.selectedView.ID ? 0 : -1);
|
|
203
|
-
i0.ɵɵadvance();
|
|
204
|
-
i0.ɵɵproperty("bottomMargin", 20)("ngStyle", ctx.dynamicWrapperStyle());
|
|
205
|
-
i0.ɵɵadvance(2);
|
|
206
|
-
i0.ɵɵproperty("clearButton", true);
|
|
207
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx.searchText);
|
|
208
|
-
i0.ɵɵadvance(2);
|
|
209
|
-
i0.ɵɵproperty("ngIf", ctx.selectedView);
|
|
210
|
-
i0.ɵɵadvance();
|
|
211
|
-
i0.ɵɵproperty("AutoNavigate", false);
|
|
212
|
-
} }, dependencies: [i3.NgIf, i3.NgStyle, i4.NgControlStatus, i4.NgModel, i5.TextBoxComponent, i6.FillContainer, i7.UserViewGridWithAnalysisComponent, i8.UserViewPropertiesDialogComponent, i9.RequestResourceAccessComponent], styles: [".single-view-wrap[_ngcontent-%COMP%] {\n padding: 10px;\n}\n\n .analysis-wrapper .k-tabstrip-items-wrapper {\n background: var(--white-color) !important;\n padding-left: 0 !important;\n}\n\n .analysis-wrapper .k-tabstrip-items-wrapper .k-tabstrip-items .k-tabstrip-item.k-active {\n border-bottom: 3px solid var(--border-blue) !important;\n}\n\n .analysis-wrapper .k-tabstrip-items-wrapper .k-tabstrip-items .k-tabstrip-item {\n background: var(--white-color) !important;\n border-right: 0 !important;\n}\n\n.flex-row[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n}\n\n.padding-left-small[_ngcontent-%COMP%] {\n padding-left: 10px;\n}"] });
|
|
213
196
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleViewComponent, [{
|
|
214
197
|
type: Component,
|
|
215
198
|
args: [{ selector: 'mj-single-view', template: "@if (!UserCanView && selectedView && selectedView.ID) {\n <mj-request-resource-access\n [ResourceRecordID]=\"selectedView!.ID\"\n ResourceType=\"User Views\"\n [ResourceName]=\"selectedView.Name\"\n >\n\n </mj-request-resource-access>\n}\n<div class=\"single-view-wrap\" mjFillContainer [bottomMargin]=\"20\"\n [ngStyle]=\"dynamicWrapperStyle()\">\n\n <div class=\"card-container\" class=\"searchBox\">\n <kendo-textbox\n id=\"txtSearch\"\n placeholder=\"Search here...\"\n kendoTextBox\n (valueChange)=\"onSearch($event)\"\n [clearButton]=\"true\"\n [(ngModel)]=\"searchText\"\n ></kendo-textbox>\n\n <div class=\"flex-row\">\n <mj-user-view-properties-dialog class=\"padding-left-small\" *ngIf=\"selectedView\" [ViewID]=\"selectedView.ID\" (dialogClosed)=\"this.viewPropertiesDialogClosed($event)\"/>\n </div>\n </div>\n\n <mj-user-view-grid-with-analysis class=\"analysis-wrapper\" (rowClicked)=\"handleRowClick($event)\" [AutoNavigate]=\"false\" mjFillContainer/>\n</div>", styles: [".single-view-wrap {\n padding: 10px;\n}\n\n::ng-deep .analysis-wrapper .k-tabstrip-items-wrapper {\n background: var(--white-color) !important;\n padding-left: 0 !important;\n}\n\n::ng-deep .analysis-wrapper .k-tabstrip-items-wrapper .k-tabstrip-items .k-tabstrip-item.k-active {\n border-bottom: 3px solid var(--border-blue) !important;\n}\n\n::ng-deep .analysis-wrapper .k-tabstrip-items-wrapper .k-tabstrip-items .k-tabstrip-item {\n background: var(--white-color) !important;\n border-right: 0 !important;\n}\n\n.flex-row {\n display: flex;\n flex-direction: row;\n}\n\n.padding-left-small {\n padding-left: 10px;\n}"] }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-view.component.js","sourceRoot":"","sources":["../../../src/lib/single-view/single-view.component.ts","../../../src/lib/single-view/single-view.component.html"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"single-view.component.js","sourceRoot":"","sources":["../../../src/lib/single-view/single-view.component.ts","../../../src/lib/single-view/single-view.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAyB,MAAM,eAAe,CAAC;AAEzG,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAc,QAAQ,EAAc,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAExG,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAA0C,QAAQ,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;ICN/F,gDAM6B;;;IAHzB,AAFA,yDAAqC,0CAEH;;;;IAmBlC,yDAAqK;IAA1D,sPAAgB,yCAAuC,KAAC;IAAnK,iBAAqK;;;IAArF,+CAA0B;;ADRhH,MAAM,OAAO,mBAAmB;IAmBV;IAAwB;IAA+B;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