@memberjunction/ng-explorer-core 0.9.79 → 0.9.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ask-skip/ask-skip.component.d.ts +87 -86
- package/dist/lib/ask-skip/ask-skip.component.js +615 -580
- package/dist/lib/ask-skip/skip-dynamic-report-wrapper.d.ts +12 -12
- package/dist/lib/ask-skip/skip-dynamic-report-wrapper.js +40 -39
- package/dist/lib/auth-button/auth-button.component.d.ts +12 -12
- package/dist/lib/auth-button/auth-button.component.js +44 -43
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts +18 -18
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +117 -117
- package/dist/lib/data-browser-component/data-browser.component.d.ts +16 -14
- package/dist/lib/data-browser-component/data-browser.component.js +96 -91
- package/dist/lib/favorites/favorites.component.d.ts +14 -14
- package/dist/lib/favorites/favorites.component.js +114 -114
- package/dist/lib/generic/base-form-component.d.ts +76 -76
- package/dist/lib/generic/base-form-component.js +436 -436
- package/dist/lib/generic/base-form-section-component.d.ts +6 -6
- package/dist/lib/generic/base-form-section-component.js +9 -9
- package/dist/lib/generic/base-record-component.d.ts +6 -6
- package/dist/lib/generic/base-record-component.js +15 -15
- package/dist/lib/generic/base-resource-component.d.ts +34 -34
- package/dist/lib/generic/base-resource-component.js +75 -75
- package/dist/lib/generic/dynamic-chart.d.ts +33 -33
- package/dist/lib/generic/dynamic-chart.js +236 -235
- package/dist/lib/generic/dynamic-grid.d.ts +25 -25
- package/dist/lib/generic/dynamic-grid.js +120 -119
- package/dist/lib/generic/dynamic-report.d.ts +38 -38
- package/dist/lib/generic/dynamic-report.js +353 -347
- package/dist/lib/generic/form-toolbar.d.ts +7 -7
- package/dist/lib/generic/form-toolbar.js +85 -89
- package/dist/lib/generic/resource-container-component.d.ts +25 -25
- package/dist/lib/generic/resource-container-component.js +104 -103
- package/dist/lib/generic/section-loader-component.d.ts +17 -17
- package/dist/lib/generic/section-loader-component.js +66 -65
- package/dist/lib/generic-browse-list/generic-browse-list.component.d.ts +26 -24
- package/dist/lib/generic-browse-list/generic-browse-list.component.js +145 -143
- package/dist/lib/guards/auth-guard.service.d.ts +11 -11
- package/dist/lib/guards/auth-guard.service.js +24 -24
- package/dist/lib/guards/entities.guard.d.ts +3 -3
- package/dist/lib/guards/entities.guard.js +38 -38
- package/dist/lib/header/MSFT_UserImageService.d.ts +11 -11
- package/dist/lib/header/MSFT_UserImageService.js +23 -23
- package/dist/lib/header/header.component.d.ts +51 -51
- package/dist/lib/header/header.component.js +220 -208
- package/dist/lib/home-component/home.component.d.ts +11 -9
- package/dist/lib/home-component/home.component.js +77 -54
- package/dist/lib/join-grid/join-grid.component.d.ts +30 -30
- package/dist/lib/join-grid/join-grid.component.js +222 -225
- package/dist/lib/navigation/navigation.component.d.ts +104 -103
- package/dist/lib/navigation/navigation.component.js +1026 -1004
- package/dist/lib/query-browser-component/query-browser.component.d.ts +14 -0
- package/dist/lib/query-browser-component/query-browser.component.js +55 -0
- package/dist/lib/report-browser-component/report-browser.component.d.ts +14 -14
- package/dist/lib/report-browser-component/report-browser.component.js +55 -55
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +8 -8
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +51 -50
- package/dist/lib/resource-wrappers/query-resource.component.d.ts +10 -0
- package/dist/lib/resource-wrappers/query-resource.component.js +55 -0
- package/dist/lib/resource-wrappers/record-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/record-resource.component.js +71 -70
- package/dist/lib/resource-wrappers/report-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/report-resource.component.js +55 -54
- package/dist/lib/resource-wrappers/resource-wrappers-loader.d.ts +1 -1
- package/dist/lib/resource-wrappers/resource-wrappers-loader.js +14 -12
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/search-results-resource.component.js +52 -51
- package/dist/lib/resource-wrappers/view-resource.component.d.ts +8 -8
- package/dist/lib/resource-wrappers/view-resource.component.js +61 -60
- package/dist/lib/settings/settings.component.d.ts +5 -5
- package/dist/lib/settings/settings.component.js +15 -14
- package/dist/lib/single-application/single-application.component.d.ts +20 -20
- package/dist/lib/single-application/single-application.component.js +113 -113
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.d.ts +28 -28
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +210 -212
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.d.ts +13 -13
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +60 -59
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.d.ts +26 -26
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +170 -169
- package/dist/lib/single-dashboard/single-dashboard.component.d.ts +75 -75
- package/dist/lib/single-dashboard/single-dashboard.component.js +464 -456
- package/dist/lib/single-entity/single-entity.component.d.ts +33 -33
- package/dist/lib/single-entity/single-entity.component.js +258 -252
- package/dist/lib/single-query/single-query.component.d.ts +16 -0
- package/dist/lib/single-query/single-query.component.js +70 -0
- package/dist/lib/single-record/single-record.component.d.ts +21 -21
- package/dist/lib/single-record/single-record.component.js +95 -95
- package/dist/lib/single-report/single-report.component.d.ts +22 -22
- package/dist/lib/single-report/single-report.component.js +88 -87
- package/dist/lib/single-search-result/single-search-result.component.d.ts +15 -15
- package/dist/lib/single-search-result/single-search-result.component.js +61 -60
- package/dist/lib/single-view/single-view.component.d.ts +38 -38
- package/dist/lib/single-view/single-view.component.js +201 -201
- package/dist/lib/user-notifications/user-notifications.component.d.ts +32 -32
- package/dist/lib/user-notifications/user-notifications.component.js +282 -282
- package/dist/lib/user-profile/user-profile.component.d.ts +10 -10
- package/dist/lib/user-profile/user-profile.component.js +42 -41
- package/dist/lib/user-view-properties/view-properties-dialog.component.d.ts +71 -71
- package/dist/lib/user-view-properties/view-properties-dialog.component.js +591 -581
- package/dist/module.d.ts +69 -65
- package/dist/module.js +356 -338
- package/dist/public-api.d.ts +46 -47
- package/dist/public-api.js +49 -50
- package/dist/shared/shared.service.d.ts +94 -92
- package/dist/shared/shared.service.js +324 -318
- package/dist/shared/urlPipe.d.ts +7 -7
- package/dist/shared/urlPipe.js +16 -16
- package/package.json +23 -15
|
@@ -1,212 +1,210 @@
|
|
|
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
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
11
|
-
import { Metadata, RunView } from '@memberjunction/core';
|
|
12
|
-
import { ViewInfo } from '@memberjunction/core-entities';
|
|
13
|
-
import { ResourceData } from '../../../generic/base-resource-component';
|
|
14
|
-
import { SharedService } from '../../../../shared/shared.service';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "@angular/common";
|
|
17
|
-
import * as i2 from "@angular/forms";
|
|
18
|
-
import * as i3 from "@progress/kendo-angular-dialog";
|
|
19
|
-
import * as i4 from "@progress/kendo-angular-buttons";
|
|
20
|
-
import * as i5 from "@progress/kendo-angular-indicators";
|
|
21
|
-
import * as i6 from "@progress/kendo-angular-label";
|
|
22
|
-
import * as i7 from "@progress/kendo-angular-dropdowns";
|
|
23
|
-
function AddItemComponent_ng_container_7_kendo_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
25
|
-
i0.ɵɵelementStart(0, "kendo-label", 14);
|
|
26
|
-
i0.ɵɵelement(1, "br");
|
|
27
|
-
i0.ɵɵelementStart(2, "kendo-dropdownlist", 11);
|
|
28
|
-
i0.ɵɵlistener("valueChange", function AddItemComponent_ng_container_7_kendo_label_4_Template_kendo_dropdownlist_valueChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.onViewChange($event)); })("ngModelChange", function AddItemComponent_ng_container_7_kendo_label_4_Template_kendo_dropdownlist_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.selectedView = $event); });
|
|
29
|
-
i0.ɵɵelementEnd()();
|
|
30
|
-
} if (rf & 2) {
|
|
31
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
32
|
-
i0.ɵɵadvance(2);
|
|
33
|
-
i0.ɵɵproperty("data", ctx_r2.Views)("textField", "Name")("valueField", "ID")("ngModel", ctx_r2.selectedView);
|
|
34
|
-
} }
|
|
35
|
-
function AddItemComponent_ng_container_7_kendo_loader_5_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
-
i0.ɵɵelement(0, "kendo-loader", 15);
|
|
37
|
-
} }
|
|
38
|
-
function AddItemComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
40
|
-
i0.ɵɵelementContainerStart(0);
|
|
41
|
-
i0.ɵɵelementStart(1, "kendo-label", 10);
|
|
42
|
-
i0.ɵɵelement(2, "br");
|
|
43
|
-
i0.ɵɵelementStart(3, "kendo-dropdownlist", 11);
|
|
44
|
-
i0.ɵɵlistener("valueChange", function AddItemComponent_ng_container_7_Template_kendo_dropdownlist_valueChange_3_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.onEntityChange($event)); })("ngModelChange", function AddItemComponent_ng_container_7_Template_kendo_dropdownlist_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.selectedEntity = $event); });
|
|
45
|
-
i0.ɵɵelementEnd()();
|
|
46
|
-
i0.ɵɵtemplate(4, AddItemComponent_ng_container_7_kendo_label_4_Template, 3, 4, "kendo-label", 12);
|
|
47
|
-
i0.ɵɵ
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
i0.ɵɵ
|
|
52
|
-
i0.ɵɵ
|
|
53
|
-
i0.ɵɵ
|
|
54
|
-
i0.ɵɵ
|
|
55
|
-
i0.ɵɵ
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
i0.ɵɵ
|
|
61
|
-
i0.ɵɵ
|
|
62
|
-
i0.ɵɵ
|
|
63
|
-
i0.ɵɵ
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
i0.ɵɵ
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
i0.ɵɵ
|
|
75
|
-
i0.ɵɵ
|
|
76
|
-
|
|
77
|
-
i0.ɵɵ
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
i0.ɵɵadvance(
|
|
81
|
-
i0.ɵɵproperty("ngIf", ctx_r1.Reports.length);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
this.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
this.resourceType
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
this.showloader =
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
this.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
this.
|
|
140
|
-
this.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
i0.ɵɵ
|
|
174
|
-
i0.ɵɵelementStart(
|
|
175
|
-
i0.ɵɵ
|
|
176
|
-
i0.ɵɵelementStart(
|
|
177
|
-
i0.ɵɵ
|
|
178
|
-
i0.ɵɵ
|
|
179
|
-
i0.ɵɵ
|
|
180
|
-
i0.ɵɵ
|
|
181
|
-
i0.ɵɵ
|
|
182
|
-
i0.ɵɵ
|
|
183
|
-
i0.ɵɵ
|
|
184
|
-
i0.ɵɵ
|
|
185
|
-
i0.ɵɵ
|
|
186
|
-
i0.ɵɵ
|
|
187
|
-
i0.ɵɵ
|
|
188
|
-
i0.ɵɵ
|
|
189
|
-
i0.ɵɵ
|
|
190
|
-
|
|
191
|
-
i0.ɵɵ
|
|
192
|
-
i0.ɵɵ
|
|
193
|
-
|
|
194
|
-
i0.ɵɵ
|
|
195
|
-
i0.ɵɵ
|
|
196
|
-
i0.ɵɵ
|
|
197
|
-
i0.ɵɵ
|
|
198
|
-
i0.ɵɵ
|
|
199
|
-
i0.ɵɵ
|
|
200
|
-
i0.ɵɵ
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
type: Input
|
|
212
|
-
}] }); })();
|
|
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
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
11
|
+
import { Metadata, RunView } from '@memberjunction/core';
|
|
12
|
+
import { ViewInfo } from '@memberjunction/core-entities';
|
|
13
|
+
import { ResourceData } from '../../../generic/base-resource-component';
|
|
14
|
+
import { SharedService } from '../../../../shared/shared.service';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
import * as i1 from "@angular/common";
|
|
17
|
+
import * as i2 from "@angular/forms";
|
|
18
|
+
import * as i3 from "@progress/kendo-angular-dialog";
|
|
19
|
+
import * as i4 from "@progress/kendo-angular-buttons";
|
|
20
|
+
import * as i5 from "@progress/kendo-angular-indicators";
|
|
21
|
+
import * as i6 from "@progress/kendo-angular-label";
|
|
22
|
+
import * as i7 from "@progress/kendo-angular-dropdowns";
|
|
23
|
+
function AddItemComponent_ng_container_7_kendo_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
25
|
+
i0.ɵɵelementStart(0, "kendo-label", 14);
|
|
26
|
+
i0.ɵɵelement(1, "br");
|
|
27
|
+
i0.ɵɵelementStart(2, "kendo-dropdownlist", 11);
|
|
28
|
+
i0.ɵɵlistener("valueChange", function AddItemComponent_ng_container_7_kendo_label_4_Template_kendo_dropdownlist_valueChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.onViewChange($event)); })("ngModelChange", function AddItemComponent_ng_container_7_kendo_label_4_Template_kendo_dropdownlist_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.selectedView = $event); });
|
|
29
|
+
i0.ɵɵelementEnd()();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
32
|
+
i0.ɵɵadvance(2);
|
|
33
|
+
i0.ɵɵproperty("data", ctx_r2.Views)("textField", "Name")("valueField", "ID")("ngModel", ctx_r2.selectedView);
|
|
34
|
+
} }
|
|
35
|
+
function AddItemComponent_ng_container_7_kendo_loader_5_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
i0.ɵɵelement(0, "kendo-loader", 15);
|
|
37
|
+
} }
|
|
38
|
+
function AddItemComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
40
|
+
i0.ɵɵelementContainerStart(0);
|
|
41
|
+
i0.ɵɵelementStart(1, "kendo-label", 10);
|
|
42
|
+
i0.ɵɵelement(2, "br");
|
|
43
|
+
i0.ɵɵelementStart(3, "kendo-dropdownlist", 11);
|
|
44
|
+
i0.ɵɵlistener("valueChange", function AddItemComponent_ng_container_7_Template_kendo_dropdownlist_valueChange_3_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.onEntityChange($event)); })("ngModelChange", function AddItemComponent_ng_container_7_Template_kendo_dropdownlist_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.selectedEntity = $event); });
|
|
45
|
+
i0.ɵɵelementEnd()();
|
|
46
|
+
i0.ɵɵtemplate(4, AddItemComponent_ng_container_7_kendo_label_4_Template, 3, 4, "kendo-label", 12)(5, AddItemComponent_ng_container_7_kendo_loader_5_Template, 1, 0, "kendo-loader", 13);
|
|
47
|
+
i0.ɵɵelementContainerEnd();
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
50
|
+
i0.ɵɵadvance(3);
|
|
51
|
+
i0.ɵɵproperty("data", ctx_r0.Entities)("textField", "Name")("valueField", "ID")("ngModel", ctx_r0.selectedEntity);
|
|
52
|
+
i0.ɵɵadvance();
|
|
53
|
+
i0.ɵɵproperty("ngIf", ctx_r0.selectedEntity && ctx_r0.Views.length);
|
|
54
|
+
i0.ɵɵadvance();
|
|
55
|
+
i0.ɵɵproperty("ngIf", ctx_r0.selectedEntity && !ctx_r0.Views.length);
|
|
56
|
+
} }
|
|
57
|
+
function AddItemComponent_ng_container_8_kendo_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
59
|
+
i0.ɵɵelementStart(0, "kendo-label", 17);
|
|
60
|
+
i0.ɵɵelement(1, "br");
|
|
61
|
+
i0.ɵɵelementStart(2, "kendo-dropdownlist", 11);
|
|
62
|
+
i0.ɵɵlistener("valueChange", function AddItemComponent_ng_container_8_kendo_label_1_Template_kendo_dropdownlist_valueChange_2_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.onViewChange($event)); })("ngModelChange", function AddItemComponent_ng_container_8_kendo_label_1_Template_kendo_dropdownlist_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.selectedReport = $event); });
|
|
63
|
+
i0.ɵɵelementEnd()();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
66
|
+
i0.ɵɵadvance(2);
|
|
67
|
+
i0.ɵɵproperty("data", ctx_r10.Reports)("textField", "Name")("valueField", "ID")("ngModel", ctx_r10.selectedReport);
|
|
68
|
+
} }
|
|
69
|
+
function AddItemComponent_ng_container_8_kendo_loader_2_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
+
i0.ɵɵelement(0, "kendo-loader", 15);
|
|
71
|
+
} }
|
|
72
|
+
function AddItemComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
i0.ɵɵelementContainerStart(0);
|
|
74
|
+
i0.ɵɵtemplate(1, AddItemComponent_ng_container_8_kendo_label_1_Template, 3, 4, "kendo-label", 16)(2, AddItemComponent_ng_container_8_kendo_loader_2_Template, 1, 0, "kendo-loader", 13);
|
|
75
|
+
i0.ɵɵelementContainerEnd();
|
|
76
|
+
} if (rf & 2) {
|
|
77
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
78
|
+
i0.ɵɵadvance();
|
|
79
|
+
i0.ɵɵproperty("ngIf", ctx_r1.Reports.length);
|
|
80
|
+
i0.ɵɵadvance();
|
|
81
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.Reports.length);
|
|
82
|
+
} }
|
|
83
|
+
export class AddItemComponent {
|
|
84
|
+
get ResourceTypes() {
|
|
85
|
+
return SharedService.Instance.ResourceTypes.filter((rt) => rt.Name !== 'Dashboards' && rt.Name !== 'Records');
|
|
86
|
+
}
|
|
87
|
+
constructor() {
|
|
88
|
+
this.onClose = new EventEmitter();
|
|
89
|
+
this.showloader = false;
|
|
90
|
+
this.resourceType = null;
|
|
91
|
+
this.selectedEntity = null;
|
|
92
|
+
this.selectedView = null;
|
|
93
|
+
this.selectedReport = null;
|
|
94
|
+
this.Entities = [];
|
|
95
|
+
this.Views = [];
|
|
96
|
+
this.Reports = [];
|
|
97
|
+
this.md = new Metadata();
|
|
98
|
+
}
|
|
99
|
+
ngOnInit() {
|
|
100
|
+
this.resourceType = this.selectedResource || SharedService.Instance.ViewResourceType;
|
|
101
|
+
this.onResourceTypeChange(this.resourceType);
|
|
102
|
+
this.Entities = this.md.Entities;
|
|
103
|
+
}
|
|
104
|
+
onResourceTypeChange(event) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
this.resourceType = event;
|
|
107
|
+
this.selectedEntity = null;
|
|
108
|
+
if (this.resourceType.Name === 'Reports') {
|
|
109
|
+
this.getReports();
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
getViews() {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
if (!this.selectedEntity)
|
|
116
|
+
return;
|
|
117
|
+
this.showloader = true;
|
|
118
|
+
this.Views = yield ViewInfo.GetViewsForUser(this.selectedEntity.ID);
|
|
119
|
+
this.showloader = false;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
getReports() {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
if (!this.resourceType)
|
|
125
|
+
return;
|
|
126
|
+
this.showloader = true;
|
|
127
|
+
this.selectedReport = null;
|
|
128
|
+
const rv = new RunView();
|
|
129
|
+
const reports = yield rv.RunView({ EntityName: this.resourceType.Entity, ExtraFilter: 'UserID=' + this.md.CurrentUser.ID });
|
|
130
|
+
if (reports.Success) {
|
|
131
|
+
this.Reports = reports.Results;
|
|
132
|
+
}
|
|
133
|
+
this.showloader = false;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
onEntityChange(event) {
|
|
137
|
+
this.selectedEntity = event;
|
|
138
|
+
this.selectedView = null;
|
|
139
|
+
this.selectedReport = null;
|
|
140
|
+
this.getViews();
|
|
141
|
+
}
|
|
142
|
+
onViewChange(event) {
|
|
143
|
+
this.selectedEntity = event.ID;
|
|
144
|
+
}
|
|
145
|
+
addItem() {
|
|
146
|
+
var _a, _b, _c, _d;
|
|
147
|
+
if (!this.selectedReport && !this.selectedView)
|
|
148
|
+
return;
|
|
149
|
+
const name = ((_a = this.selectedReport) === null || _a === void 0 ? void 0 : _a.Name) || ((_b = this.selectedView) === null || _b === void 0 ? void 0 : _b.Name);
|
|
150
|
+
const id = ((_c = this.selectedReport) === null || _c === void 0 ? void 0 : _c.ID) || ((_d = this.selectedView) === null || _d === void 0 ? void 0 : _d.ID);
|
|
151
|
+
const dashboardItem = {
|
|
152
|
+
title: name ? name : 'New Item - ' + id,
|
|
153
|
+
col: 1,
|
|
154
|
+
rowSpan: 3,
|
|
155
|
+
colSpan: 2,
|
|
156
|
+
ResourceData: new ResourceData({
|
|
157
|
+
Name: '',
|
|
158
|
+
ResourceTypeID: this.resourceType.ID,
|
|
159
|
+
ResourceRecordID: id,
|
|
160
|
+
Configuration: {}
|
|
161
|
+
}),
|
|
162
|
+
};
|
|
163
|
+
this.onClose.emit(dashboardItem);
|
|
164
|
+
}
|
|
165
|
+
closeDialog() {
|
|
166
|
+
this.onClose.emit();
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
AddItemComponent.ɵfac = function AddItemComponent_Factory(t) { return new (t || AddItemComponent)(); };
|
|
170
|
+
AddItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddItemComponent, selectors: [["app-add-item-dialog"]], inputs: { selectedResource: "selectedResource" }, outputs: { onClose: "onClose" }, decls: 14, vars: 12, consts: [[1, "k-overlay"], ["title", "Add Item to Dashboard", 1, "modal-body-wrap", 3, "width", "minHeight", "minWidth", "resizable", "close"], [1, "k-d-flex", "k-flex-col", "resource-wrap"], ["text", "Resource Type"], [3, "data", "textField", "valueField", "subtitle", "ngModel", "valueChange", "ngModelChange"], [1, "user-view-wrap", 3, "ngSwitch"], [4, "ngSwitchCase"], [1, "k-actions", "k-actions-end", "popup-actions"], ["kendoButton", "", "icon", "save", "themeColor", "primary", 3, "click"], ["kendoButton", "", 3, "click"], ["text", "Entity"], [3, "data", "textField", "valueField", "ngModel", "valueChange", "ngModelChange"], ["text", "Views", 4, "ngIf"], ["type", "converging-spinner", 4, "ngIf"], ["text", "Views"], ["type", "converging-spinner"], ["text", "Reports", 4, "ngIf"], ["text", "Reports"]], template: function AddItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
171
|
+
i0.ɵɵelement(0, "div", 0);
|
|
172
|
+
i0.ɵɵelementStart(1, "kendo-window", 1);
|
|
173
|
+
i0.ɵɵlistener("close", function AddItemComponent_Template_kendo_window_close_1_listener() { return ctx.closeDialog(); });
|
|
174
|
+
i0.ɵɵelementStart(2, "div", 2)(3, "kendo-label", 3);
|
|
175
|
+
i0.ɵɵelement(4, "br");
|
|
176
|
+
i0.ɵɵelementStart(5, "kendo-dropdownlist", 4);
|
|
177
|
+
i0.ɵɵlistener("valueChange", function AddItemComponent_Template_kendo_dropdownlist_valueChange_5_listener($event) { return ctx.onResourceTypeChange($event); })("ngModelChange", function AddItemComponent_Template_kendo_dropdownlist_ngModelChange_5_listener($event) { return ctx.resourceType = $event; });
|
|
178
|
+
i0.ɵɵelementEnd()();
|
|
179
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
180
|
+
i0.ɵɵtemplate(7, AddItemComponent_ng_container_7_Template, 6, 6, "ng-container", 6)(8, AddItemComponent_ng_container_8_Template, 3, 2, "ng-container", 6);
|
|
181
|
+
i0.ɵɵelementEnd()();
|
|
182
|
+
i0.ɵɵelementStart(9, "div", 7)(10, "button", 8);
|
|
183
|
+
i0.ɵɵlistener("click", function AddItemComponent_Template_button_click_10_listener() { return ctx.addItem(); });
|
|
184
|
+
i0.ɵɵtext(11, " Add ");
|
|
185
|
+
i0.ɵɵelementEnd();
|
|
186
|
+
i0.ɵɵelementStart(12, "button", 9);
|
|
187
|
+
i0.ɵɵlistener("click", function AddItemComponent_Template_button_click_12_listener() { return ctx.closeDialog(); });
|
|
188
|
+
i0.ɵɵtext(13, "Cancel");
|
|
189
|
+
i0.ɵɵelementEnd()()();
|
|
190
|
+
} if (rf & 2) {
|
|
191
|
+
i0.ɵɵadvance();
|
|
192
|
+
i0.ɵɵproperty("width", 500)("minHeight", 300)("minWidth", 400)("resizable", true);
|
|
193
|
+
i0.ɵɵadvance(4);
|
|
194
|
+
i0.ɵɵproperty("data", ctx.ResourceTypes)("textField", "DisplayName")("valueField", "ID")("subtitle", "sdfsdf")("ngModel", ctx.resourceType);
|
|
195
|
+
i0.ɵɵadvance();
|
|
196
|
+
i0.ɵɵproperty("ngSwitch", ctx.resourceType.Entity);
|
|
197
|
+
i0.ɵɵadvance();
|
|
198
|
+
i0.ɵɵproperty("ngSwitchCase", "User Views");
|
|
199
|
+
i0.ɵɵadvance();
|
|
200
|
+
i0.ɵɵproperty("ngSwitchCase", "Reports");
|
|
201
|
+
} }, dependencies: [i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i2.NgControlStatus, i2.NgModel, i3.WindowComponent, i4.ButtonComponent, i5.LoaderComponent, i6.LabelComponent, i7.DropDownListComponent], styles: [".popup-actions[_ngcontent-%COMP%] {\r\n width: 100%;\r\n padding: 10px;\r\n border-top: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n .modal-body-wrap .k-window-content {\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n flex: 1;\r\n padding: 0;\r\n }\r\n .resource-wrap[_ngcontent-%COMP%] {\r\n flex: 1;\r\n padding: 24px;\r\n margin: 16px;\r\n border-radius: 4px;\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n box-sizing: border-box;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 20px;\r\n }\r\n .user-view-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 20px;\r\n }\r\n .resource-wrap .k-label {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n }\r\n .resource-wrap .k-dropdownlist {\r\n border-radius: 4px;\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n background: transparent;\r\n line-height: 32px;\r\n margin: 0;\r\n }"] });
|
|
202
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddItemComponent, [{
|
|
203
|
+
type: Component,
|
|
204
|
+
args: [{ selector: 'app-add-item-dialog', template: "<div class=\"k-overlay\"></div>\r\n<kendo-window class=\"modal-body-wrap\" [width]=\"500\" [minHeight]=\"300\" [minWidth]=\"400\" [resizable]=\"true\" (close)=\"closeDialog()\"\r\n title=\"Add Item to Dashboard\">\r\n <div class=\"k-d-flex k-flex-col resource-wrap\">\r\n <kendo-label text=\"Resource Type\">\r\n <br />\r\n <kendo-dropdownlist [data]=\"ResourceTypes\" [textField]=\"'DisplayName'\" [valueField]=\"'ID'\" [subtitle]=\"'sdfsdf'\"\r\n (valueChange)=\"onResourceTypeChange($event)\" [(ngModel)]=\"resourceType\">\r\n </kendo-dropdownlist>\r\n </kendo-label>\r\n <div [ngSwitch]=\"resourceType.Entity \" class=\"user-view-wrap\">\r\n <ng-container *ngSwitchCase=\"'User Views'\">\r\n <kendo-label text=\"Entity\">\r\n <br />\r\n <kendo-dropdownlist [data]=\"Entities\" [textField]=\"'Name'\" [valueField]=\"'ID'\"\r\n (valueChange)=\"onEntityChange($event)\" [(ngModel)]=\"selectedEntity\">\r\n </kendo-dropdownlist>\r\n </kendo-label>\r\n <kendo-label text=\"Views\" *ngIf=\"selectedEntity && Views.length\">\r\n <br />\r\n <kendo-dropdownlist [data]=\"Views\" [textField]=\"'Name'\" [valueField]=\"'ID'\"\r\n (valueChange)=\"onViewChange($event)\" [(ngModel)]=\"selectedView\">\r\n </kendo-dropdownlist>\r\n </kendo-label>\r\n <kendo-loader *ngIf=\"selectedEntity && !Views.length\" type=\"converging-spinner\"></kendo-loader>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'Reports'\">\r\n <kendo-label text=\"Reports\" *ngIf=\"Reports.length\">\r\n <br />\r\n <kendo-dropdownlist [data]=\"Reports\" [textField]=\"'Name'\" [valueField]=\"'ID'\"\r\n (valueChange)=\"onViewChange($event)\" [(ngModel)]=\"selectedReport\">\r\n </kendo-dropdownlist>\r\n </kendo-label>\r\n <kendo-loader *ngIf=\"!Reports.length\" type=\"converging-spinner\"></kendo-loader>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"k-actions k-actions-end popup-actions\">\r\n <button kendoButton icon=\"save\" themeColor=\"primary\" (click)=\"addItem()\">\r\n Add\r\n </button>\r\n <button kendoButton (click)=\"closeDialog()\">Cancel</button>\r\n </div>\r\n</kendo-window>", styles: [".popup-actions {\r\n width: 100%;\r\n padding: 10px;\r\n border-top: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n ::ng-deep .modal-body-wrap .k-window-content {\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n flex: 1;\r\n padding: 0;\r\n }\r\n .resource-wrap {\r\n flex: 1;\r\n padding: 24px;\r\n margin: 16px;\r\n border-radius: 4px;\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n box-sizing: border-box;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 20px;\r\n }\r\n .user-view-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 20px;\r\n }\r\n ::ng-deep .resource-wrap .k-label {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n }\r\n ::ng-deep .resource-wrap .k-dropdownlist {\r\n border-radius: 4px;\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n background: transparent;\r\n line-height: 32px;\r\n margin: 0;\r\n }\r\n "] }]
|
|
205
|
+
}], () => [], { onClose: [{
|
|
206
|
+
type: Output
|
|
207
|
+
}], selectedResource: [{
|
|
208
|
+
type: Input
|
|
209
|
+
}] }); })();
|
|
210
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddItemComponent, { className: "AddItemComponent", filePath: "src\\lib\\single-dashboard\\Components\\add-item\\add-item.component.ts", lineNumber: 12 }); })();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { DashboardItem } from '../../single-dashboard.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DeleteItemComponent implements OnInit {
|
|
5
|
-
onClose: EventEmitter<any>;
|
|
6
|
-
removeDashboardItem: EventEmitter<any>;
|
|
7
|
-
dashboardItem: DashboardItem | null;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
confirmDeleteItem(): void;
|
|
10
|
-
closeDialog(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteItemComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteItemComponent, "app-delete-item-dialog", never, { "dashboardItem": "dashboardItem"; }, { "onClose": "onClose"; "removeDashboardItem": "removeDashboardItem"; }, never, never, false, never>;
|
|
13
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { DashboardItem } from '../../single-dashboard.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DeleteItemComponent implements OnInit {
|
|
5
|
+
onClose: EventEmitter<any>;
|
|
6
|
+
removeDashboardItem: EventEmitter<any>;
|
|
7
|
+
dashboardItem: DashboardItem | null;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
confirmDeleteItem(): void;
|
|
10
|
+
closeDialog(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteItemComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteItemComponent, "app-delete-item-dialog", never, { "dashboardItem": { "alias": "dashboardItem"; "required": false; }; }, { "onClose": "onClose"; "removeDashboardItem": "removeDashboardItem"; }, never, never, false, never>;
|
|
13
|
+
}
|