@memberjunction/ng-explorer-core 0.9.78 → 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.
Files changed (105) hide show
  1. package/dist/lib/ask-skip/ask-skip.component.d.ts +87 -86
  2. package/dist/lib/ask-skip/ask-skip.component.js +615 -580
  3. package/dist/lib/ask-skip/skip-dynamic-report-wrapper.d.ts +12 -12
  4. package/dist/lib/ask-skip/skip-dynamic-report-wrapper.js +40 -39
  5. package/dist/lib/auth-button/auth-button.component.d.ts +12 -12
  6. package/dist/lib/auth-button/auth-button.component.js +44 -43
  7. package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts +18 -18
  8. package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +117 -117
  9. package/dist/lib/data-browser-component/data-browser.component.d.ts +16 -14
  10. package/dist/lib/data-browser-component/data-browser.component.js +96 -91
  11. package/dist/lib/favorites/favorites.component.d.ts +14 -14
  12. package/dist/lib/favorites/favorites.component.js +114 -114
  13. package/dist/lib/generic/base-form-component.d.ts +76 -76
  14. package/dist/lib/generic/base-form-component.js +436 -436
  15. package/dist/lib/generic/base-form-section-component.d.ts +6 -6
  16. package/dist/lib/generic/base-form-section-component.js +9 -9
  17. package/dist/lib/generic/base-record-component.d.ts +6 -6
  18. package/dist/lib/generic/base-record-component.js +15 -15
  19. package/dist/lib/generic/base-resource-component.d.ts +34 -34
  20. package/dist/lib/generic/base-resource-component.js +75 -75
  21. package/dist/lib/generic/dynamic-chart.d.ts +33 -33
  22. package/dist/lib/generic/dynamic-chart.js +236 -235
  23. package/dist/lib/generic/dynamic-grid.d.ts +25 -25
  24. package/dist/lib/generic/dynamic-grid.js +120 -119
  25. package/dist/lib/generic/dynamic-report.d.ts +38 -38
  26. package/dist/lib/generic/dynamic-report.js +353 -347
  27. package/dist/lib/generic/form-toolbar.d.ts +7 -7
  28. package/dist/lib/generic/form-toolbar.js +85 -89
  29. package/dist/lib/generic/resource-container-component.d.ts +25 -25
  30. package/dist/lib/generic/resource-container-component.js +104 -103
  31. package/dist/lib/generic/section-loader-component.d.ts +17 -17
  32. package/dist/lib/generic/section-loader-component.js +66 -65
  33. package/dist/lib/generic-browse-list/generic-browse-list.component.d.ts +26 -24
  34. package/dist/lib/generic-browse-list/generic-browse-list.component.js +145 -143
  35. package/dist/lib/guards/auth-guard.service.d.ts +11 -11
  36. package/dist/lib/guards/auth-guard.service.js +24 -24
  37. package/dist/lib/guards/entities.guard.d.ts +3 -3
  38. package/dist/lib/guards/entities.guard.js +38 -38
  39. package/dist/lib/header/MSFT_UserImageService.d.ts +11 -11
  40. package/dist/lib/header/MSFT_UserImageService.js +23 -23
  41. package/dist/lib/header/header.component.d.ts +51 -51
  42. package/dist/lib/header/header.component.js +220 -208
  43. package/dist/lib/home-component/home.component.d.ts +11 -9
  44. package/dist/lib/home-component/home.component.js +77 -54
  45. package/dist/lib/join-grid/join-grid.component.d.ts +30 -30
  46. package/dist/lib/join-grid/join-grid.component.js +222 -225
  47. package/dist/lib/navigation/navigation.component.d.ts +104 -103
  48. package/dist/lib/navigation/navigation.component.js +1026 -1004
  49. package/dist/lib/query-browser-component/query-browser.component.d.ts +14 -0
  50. package/dist/lib/query-browser-component/query-browser.component.js +55 -0
  51. package/dist/lib/report-browser-component/report-browser.component.d.ts +14 -14
  52. package/dist/lib/report-browser-component/report-browser.component.js +55 -55
  53. package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +8 -8
  54. package/dist/lib/resource-wrappers/dashboard-resource.component.js +51 -50
  55. package/dist/lib/resource-wrappers/query-resource.component.d.ts +10 -0
  56. package/dist/lib/resource-wrappers/query-resource.component.js +55 -0
  57. package/dist/lib/resource-wrappers/record-resource.component.d.ts +10 -10
  58. package/dist/lib/resource-wrappers/record-resource.component.js +71 -70
  59. package/dist/lib/resource-wrappers/report-resource.component.d.ts +10 -10
  60. package/dist/lib/resource-wrappers/report-resource.component.js +55 -54
  61. package/dist/lib/resource-wrappers/resource-wrappers-loader.d.ts +1 -1
  62. package/dist/lib/resource-wrappers/resource-wrappers-loader.js +14 -12
  63. package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +10 -10
  64. package/dist/lib/resource-wrappers/search-results-resource.component.js +52 -51
  65. package/dist/lib/resource-wrappers/view-resource.component.d.ts +8 -8
  66. package/dist/lib/resource-wrappers/view-resource.component.js +61 -60
  67. package/dist/lib/settings/settings.component.d.ts +5 -5
  68. package/dist/lib/settings/settings.component.js +15 -14
  69. package/dist/lib/single-application/single-application.component.d.ts +20 -20
  70. package/dist/lib/single-application/single-application.component.js +113 -113
  71. package/dist/lib/single-dashboard/Components/add-item/add-item.component.d.ts +28 -28
  72. package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +210 -212
  73. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.d.ts +13 -13
  74. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +60 -59
  75. package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.d.ts +26 -26
  76. package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +170 -169
  77. package/dist/lib/single-dashboard/single-dashboard.component.d.ts +75 -75
  78. package/dist/lib/single-dashboard/single-dashboard.component.js +464 -456
  79. package/dist/lib/single-entity/single-entity.component.d.ts +33 -33
  80. package/dist/lib/single-entity/single-entity.component.js +258 -252
  81. package/dist/lib/single-query/single-query.component.d.ts +16 -0
  82. package/dist/lib/single-query/single-query.component.js +70 -0
  83. package/dist/lib/single-record/single-record.component.d.ts +21 -21
  84. package/dist/lib/single-record/single-record.component.js +95 -95
  85. package/dist/lib/single-report/single-report.component.d.ts +22 -22
  86. package/dist/lib/single-report/single-report.component.js +88 -87
  87. package/dist/lib/single-search-result/single-search-result.component.d.ts +15 -15
  88. package/dist/lib/single-search-result/single-search-result.component.js +61 -60
  89. package/dist/lib/single-view/single-view.component.d.ts +38 -38
  90. package/dist/lib/single-view/single-view.component.js +201 -201
  91. package/dist/lib/user-notifications/user-notifications.component.d.ts +32 -32
  92. package/dist/lib/user-notifications/user-notifications.component.js +282 -282
  93. package/dist/lib/user-profile/user-profile.component.d.ts +10 -10
  94. package/dist/lib/user-profile/user-profile.component.js +42 -41
  95. package/dist/lib/user-view-properties/view-properties-dialog.component.d.ts +71 -71
  96. package/dist/lib/user-view-properties/view-properties-dialog.component.js +591 -581
  97. package/dist/module.d.ts +69 -65
  98. package/dist/module.js +356 -338
  99. package/dist/public-api.d.ts +46 -47
  100. package/dist/public-api.js +49 -50
  101. package/dist/shared/shared.service.d.ts +94 -92
  102. package/dist/shared/shared.service.js +324 -318
  103. package/dist/shared/urlPipe.d.ts +7 -7
  104. package/dist/shared/urlPipe.js +16 -16
  105. package/package.json +23 -15
@@ -1,252 +1,258 @@
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, ViewChild } from '@angular/core';
11
- import { Metadata } from '@memberjunction/core';
12
- import { ViewInfo } from '@memberjunction/core-entities';
13
- import { ViewPropertiesDialogComponent } from '../user-view-properties/view-properties-dialog.component';
14
- import * as i0 from "@angular/core";
15
- import * as i1 from "@angular/router";
16
- import * as i2 from "@progress/kendo-angular-notification";
17
- import * as i3 from "../../shared/shared.service";
18
- import * as i4 from "@angular/common";
19
- import * as i5 from "@progress/kendo-angular-dialog";
20
- import * as i6 from "@progress/kendo-angular-buttons";
21
- import * as i7 from "@progress/kendo-angular-indicators";
22
- import * as i8 from "@progress/kendo-angular-icons";
23
- import * as i9 from "@progress/kendo-angular-layout";
24
- import * as i10 from "../user-view-properties/view-properties-dialog.component";
25
- function SingleEntityComponent_kendo_loader_12_Template(rf, ctx) { if (rf & 1) {
26
- i0.ɵɵelement(0, "kendo-loader", 10);
27
- } }
28
- function SingleEntityComponent_div_13_div_1_Template(rf, ctx) { if (rf & 1) {
29
- const _r6 = i0.ɵɵgetCurrentView();
30
- i0.ɵɵelementStart(0, "div")(1, "kendo-card", 13)(2, "kendo-card-header", 14);
31
- i0.ɵɵelement(3, "kendo-icon", 15);
32
- i0.ɵɵelementStart(4, "div", 16)(5, "button", 17);
33
- i0.ɵɵlistener("click", function SingleEntityComponent_div_13_div_1_Template_button_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const entity_r4 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.editView(entity_r4)); });
34
- i0.ɵɵelement(6, "span", 18);
35
- i0.ɵɵelementEnd();
36
- i0.ɵɵelementStart(7, "button", 17);
37
- i0.ɵɵlistener("click", function SingleEntityComponent_div_13_div_1_Template_button_click_7_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const entity_r4 = restoredCtx.$implicit; const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.handleDeleteView(entity_r4)); });
38
- i0.ɵɵelement(8, "span", 19);
39
- i0.ɵɵelementEnd()()();
40
- i0.ɵɵelementStart(9, "kendo-card-body", 20);
41
- i0.ɵɵlistener("click", function SingleEntityComponent_div_13_div_1_Template_kendo_card_body_click_9_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const entity_r4 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r8.viewItemClick(entity_r4)); });
42
- i0.ɵɵelementStart(10, "div", 21)(11, "h5", 22);
43
- i0.ɵɵtext(12);
44
- i0.ɵɵelementEnd();
45
- i0.ɵɵelementStart(13, "p", 23);
46
- i0.ɵɵtext(14);
47
- i0.ɵɵelementEnd()()()()();
48
- } if (rf & 2) {
49
- const entity_r4 = ctx.$implicit;
50
- i0.ɵɵadvance(12);
51
- i0.ɵɵtextInterpolate(entity_r4.Name);
52
- i0.ɵɵadvance(2);
53
- i0.ɵɵtextInterpolate(entity_r4.Description);
54
- } }
55
- function SingleEntityComponent_div_13_Template(rf, ctx) { if (rf & 1) {
56
- i0.ɵɵelementStart(0, "div", 11);
57
- i0.ɵɵtemplate(1, SingleEntityComponent_div_13_div_1_Template, 15, 2, "div", 12);
58
- i0.ɵɵelementEnd();
59
- } if (rf & 2) {
60
- const ctx_r1 = i0.ɵɵnextContext();
61
- i0.ɵɵadvance(1);
62
- i0.ɵɵproperty("ngForOf", ctx_r1.entityViews);
63
- } }
64
- function SingleEntityComponent_kendo_dialog_14_kendo_loader_1_Template(rf, ctx) { if (rf & 1) {
65
- i0.ɵɵelement(0, "kendo-loader", 10);
66
- } }
67
- function SingleEntityComponent_kendo_dialog_14_Template(rf, ctx) { if (rf & 1) {
68
- const _r11 = i0.ɵɵgetCurrentView();
69
- i0.ɵɵelementStart(0, "kendo-dialog", 24);
70
- i0.ɵɵlistener("close", function SingleEntityComponent_kendo_dialog_14_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.handleDeleteView()); });
71
- i0.ɵɵtemplate(1, SingleEntityComponent_kendo_dialog_14_kendo_loader_1_Template, 1, 0, "kendo-loader", 7);
72
- i0.ɵɵelementStart(2, "div")(3, "p", 25);
73
- i0.ɵɵtext(4, " Are you sure you want to delete ");
74
- i0.ɵɵelementStart(5, "b");
75
- i0.ɵɵtext(6);
76
- i0.ɵɵelementEnd();
77
- i0.ɵɵtext(7, " View? ");
78
- i0.ɵɵelementEnd();
79
- i0.ɵɵelementStart(8, "div", 26)(9, "button", 27);
80
- i0.ɵɵlistener("click", function SingleEntityComponent_kendo_dialog_14_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.deleteView()); });
81
- i0.ɵɵelement(10, "span", 28);
82
- i0.ɵɵtext(11, " Yes ");
83
- i0.ɵɵelementEnd();
84
- i0.ɵɵelementStart(12, "button", 29);
85
- i0.ɵɵlistener("click", function SingleEntityComponent_kendo_dialog_14_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r11); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.handleDeleteView()); });
86
- i0.ɵɵelement(13, "span", 30);
87
- i0.ɵɵtext(14, " No");
88
- i0.ɵɵelementEnd()()()();
89
- } if (rf & 2) {
90
- const ctx_r2 = i0.ɵɵnextContext();
91
- i0.ɵɵadvance(1);
92
- i0.ɵɵproperty("ngIf", ctx_r2.showloader);
93
- i0.ɵɵadvance(1);
94
- i0.ɵɵclassMap(ctx_r2.showloader ? "disabled-div" : "");
95
- i0.ɵɵadvance(4);
96
- i0.ɵɵtextInterpolate(ctx_r2.selectedView == null ? null : ctx_r2.selectedView.Name);
97
- } }
98
- export class SingleEntityComponent {
99
- constructor(router, route, notificationService, sharedService) {
100
- this.router = router;
101
- this.route = route;
102
- this.notificationService = notificationService;
103
- this.sharedService = sharedService;
104
- this.appName = '';
105
- this.entityName = '';
106
- this.entityFieldsText = '';
107
- this.entityDescription = '';
108
- this.entityViews = [];
109
- this.selectedView = null;
110
- this.deleteDialogOpened = false;
111
- this.showloader = false;
112
- }
113
- ngOnInit() {
114
- this.route.paramMap.subscribe((params) => __awaiter(this, void 0, void 0, function* () {
115
- const entityName = params.get('entityName');
116
- const appName = params.get('appName');
117
- if (appName)
118
- this.appName = appName;
119
- // Perform any necessary actions with the ViewID, such as fetching data
120
- if (entityName) {
121
- this.entityName = entityName;
122
- yield this.LoadData(entityName);
123
- }
124
- }));
125
- }
126
- LoadData(entityName = this.entityName) {
127
- return __awaiter(this, void 0, void 0, function* () {
128
- if (entityName) {
129
- this.showloader = true;
130
- this.selectedView = null;
131
- const md = new Metadata();
132
- const entity = md.Entities.find(e => e.Name == entityName);
133
- if (entity) {
134
- this.entityDescription = entity.Description;
135
- this.entityViews = (yield ViewInfo.GetViewsForUser(entity.ID));
136
- this.showloader = false;
137
- }
138
- }
139
- });
140
- }
141
- viewItemClick(info) {
142
- if (info) {
143
- this.router.navigate(['resource', 'view', info.ID]);
144
- }
145
- }
146
- createNewView() {
147
- // launch the dialog
148
- this.viewPropertiesDialog.CreateView(this.entityName);
149
- }
150
- editView(entity) {
151
- var _a;
152
- this.selectedView = entity;
153
- this.viewPropertiesDialog.Open((_a = this.selectedView) === null || _a === void 0 ? void 0 : _a.ID);
154
- }
155
- handleDeleteView(entity = null) {
156
- this.selectedView = entity;
157
- this.deleteDialogOpened = !this.deleteDialogOpened;
158
- }
159
- deleteView() {
160
- var _a;
161
- return __awaiter(this, void 0, void 0, function* () {
162
- if (this.selectedView) {
163
- this.showloader = true;
164
- const md = new Metadata();
165
- const viewObj = yield md.GetEntityObject('User Views');
166
- yield viewObj.Load((_a = this.selectedView) === null || _a === void 0 ? void 0 : _a.ID); // load the view to be deleted
167
- if (yield viewObj.Delete()) { // delete the view
168
- this.notificationService.show({
169
- content: "View deleted successfully!",
170
- hideAfter: 800,
171
- position: { horizontal: "center", vertical: "top" },
172
- animation: { type: "fade", duration: 400 },
173
- type: { style: "success", icon: true },
174
- });
175
- this.showloader = false;
176
- this.deleteDialogOpened = false;
177
- yield this.LoadData(); // reload the updated data on UI
178
- }
179
- else {
180
- this.notificationService.show({
181
- content: "Error deleting view!",
182
- hideAfter: 800,
183
- position: { horizontal: "center", vertical: "top" },
184
- animation: { type: "fade", duration: 400 },
185
- type: { style: "error", icon: true },
186
- });
187
- }
188
- }
189
- });
190
- }
191
- viewPropertiesClosed(args) {
192
- return __awaiter(this, void 0, void 0, function* () {
193
- if (this.selectedView) {
194
- yield this.LoadData(this.entityName);
195
- this.viewPropertiesDialog.isDialogOpened = false;
196
- this.selectedView = null;
197
- }
198
- else if (args && args.Saved === true && args.ViewEntity) {
199
- const paramsArray = ['/app', this.appName, 'entity', this.entityName, 'view', args.ViewEntity.ID];
200
- this.router.navigate(paramsArray);
201
- }
202
- });
203
- }
204
- }
205
- SingleEntityComponent.ɵfac = function SingleEntityComponent_Factory(t) { return new (t || SingleEntityComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.NotificationService), i0.ɵɵdirectiveInject(i3.SharedService)); };
206
- SingleEntityComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleEntityComponent, selectors: [["app-single-entity"]], viewQuery: function SingleEntityComponent_Query(rf, ctx) { if (rf & 1) {
207
- i0.ɵɵviewQuery(ViewPropertiesDialogComponent, 7);
208
- } if (rf & 2) {
209
- let _t;
210
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewPropertiesDialog = _t.first);
211
- } }, decls: 15, vars: 7, consts: [[1, "card-container"], [1, "card-header-entity"], [1, "title-wrap"], [1, "k-icon", "k-i-information"], ["kendoButton", "", "icon", "gear", 3, "click"], [3, "EntityName", "ShowPropertiesButton", "dialogClosed"], [1, "main-area"], ["type", "converging-spinner", 4, "ngIf"], ["class", "card-list k-d-flex k-flex-row k-h-full k-flex-wrap", 4, "ngIf"], ["title", "Delete View", 3, "close", 4, "ngIf"], ["type", "converging-spinner"], [1, "card-list", "k-d-flex", "k-flex-row", "k-h-full", "k-flex-wrap"], [4, "ngFor", "ngForOf"], [1, "card-wrapper"], [1, "k-hstack", "view-card"], ["name", "table", 1, "view-icon"], [1, "btn-wrapper"], ["kendoButton", "", "fillMode", "flat", 3, "click"], [1, "k-icon", "k-i-edit"], [1, "k-icon", "k-i-delete"], [3, "click"], [1, "view-card-content", "k-cursor-pointer"], ["kendoCardTitle", ""], ["kendoCardSubtitle", ""], ["title", "Delete View", 3, "close"], [1, "k-m-7.5", "k-text-center"], [1, "k-actions", "k-actions-end", "popup-actions"], ["kendoButton", "", "themeColor", "primary", 3, "click"], [1, "k-icon", "k-i-check"], ["kendoButton", "", 3, "click"], [1, "k-icon", "k-i-close"]], template: function SingleEntityComponent_Template(rf, ctx) { if (rf & 1) {
212
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1");
213
- i0.ɵɵtext(4);
214
- i0.ɵɵelementEnd();
215
- i0.ɵɵelementStart(5, "p");
216
- i0.ɵɵelement(6, "span", 3);
217
- i0.ɵɵtext(7);
218
- i0.ɵɵelementEnd()();
219
- i0.ɵɵelementStart(8, "button", 4);
220
- i0.ɵɵlistener("click", function SingleEntityComponent_Template_button_click_8_listener() { return ctx.createNewView(); });
221
- i0.ɵɵtext(9, "Create New View");
222
- i0.ɵɵelementEnd()();
223
- i0.ɵɵelementStart(10, "app-view-properties-dialog", 5);
224
- i0.ɵɵlistener("dialogClosed", function SingleEntityComponent_Template_app_view_properties_dialog_dialogClosed_10_listener($event) { return ctx.viewPropertiesClosed($event); });
225
- i0.ɵɵelementEnd();
226
- i0.ɵɵelementStart(11, "div", 6);
227
- i0.ɵɵtemplate(12, SingleEntityComponent_kendo_loader_12_Template, 1, 0, "kendo-loader", 7);
228
- i0.ɵɵtemplate(13, SingleEntityComponent_div_13_Template, 2, 1, "div", 8);
229
- i0.ɵɵelementEnd();
230
- i0.ɵɵtemplate(14, SingleEntityComponent_kendo_dialog_14_Template, 15, 4, "kendo-dialog", 9);
231
- i0.ɵɵelementEnd();
232
- } if (rf & 2) {
233
- i0.ɵɵadvance(4);
234
- i0.ɵɵtextInterpolate(ctx.entityName);
235
- i0.ɵɵadvance(3);
236
- i0.ɵɵtextInterpolate1(" ", ctx.entityDescription, "");
237
- i0.ɵɵadvance(3);
238
- i0.ɵɵproperty("EntityName", ctx.entityName)("ShowPropertiesButton", false);
239
- i0.ɵɵadvance(2);
240
- i0.ɵɵproperty("ngIf", ctx.showloader);
241
- i0.ɵɵadvance(1);
242
- i0.ɵɵproperty("ngIf", !ctx.showloader);
243
- i0.ɵɵadvance(1);
244
- i0.ɵɵproperty("ngIf", ctx.deleteDialogOpened);
245
- } }, dependencies: [i4.NgForOf, i4.NgIf, i5.DialogComponent, i6.Button, i7.LoaderComponent, i8.IconComponent, i9.CardComponent, i9.CardHeaderComponent, i9.CardBodyComponent, i9.CardTitleDirective, i9.CardSubtitleDirective, i10.ViewPropertiesDialogComponent], styles: [".list-item[_ngcontent-%COMP%] {\r\n margin: 4px;\r\n cursor: pointer;\r\n }\r\n \r\n .view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\r\n color: #ff6358;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 24px;\r\n margin-bottom: 0;\r\n }\r\n .card-container[_ngcontent-%COMP%] {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\r\n display: flex;\r\n gap: 20px;\r\n }", ".main-area[_ngcontent-%COMP%] {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n gap: 24px;\r\n padding: 24px 0;\r\n}\r\n.list-view[_ngcontent-%COMP%] {\r\n padding: 16px;\r\n min-width: 300px;\r\n border-radius: 4px;\r\n background: #FAFAFA;\r\n border: none;\r\n}\r\n .list-view .k-listview-header, .list-view .k-listview-footer {\r\n border: none;\r\n}\r\n .list-view .k-listview-content {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 4px;\r\n background: #fff;\r\n padding: 16px;\r\n}\r\n\r\n.header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n height: auto;\r\n margin:0;\r\n}\r\n\r\n.header[_ngcontent-%COMP%] {\r\n color: #424242;\r\n margin-bottom: 16px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\nfont-size: 16px;\r\nfont-style: normal;\r\nfont-weight: 400;\r\nline-height: 20px;\r\n}\r\n\r\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\r\n width: 24px;\r\n height: 24px;\r\n min-width: 24px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 10px;\r\n background: rgba(0, 0, 0, 0.08);\r\n border-radius: 50%;\r\n}\r\n.footer[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n margin-top: 16px;\r\n}\r\n\r\n.list-item[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n cursor: pointer;\r\n margin: 4px;\r\n}\r\n.card-container[_ngcontent-%COMP%] {\r\n margin: 0;\r\n padding: 0;\r\n box-shadow: none;\r\n}\r\n.card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n}\r\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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\r\n \r\n\r\n\r\n \r\n .view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\r\n color: #ff6358;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 48px;\r\n margin-bottom: 0;\r\n }\r\n .card-container[_ngcontent-%COMP%] {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\r\n display: flex;\r\n gap: 20px;\r\n }"] });
246
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleEntityComponent, [{
247
- type: Component,
248
- args: [{ selector: 'app-single-entity', template: "<div class=\"card-container\">\r\n <div class=\"card-header-entity\">\r\n <div class=\"title-wrap\">\r\n <h1>{{entityName}}</h1>\r\n <p> <span class=\"k-icon k-i-information\"></span> {{entityDescription}}</p>\r\n </div>\r\n <button kendoButton icon=\"gear\" (click)=\"createNewView()\">Create New View</button>\r\n </div>\r\n <app-view-properties-dialog [EntityName]=\"this.entityName\" [ShowPropertiesButton]=\"false\"\r\n (dialogClosed)=\"viewPropertiesClosed($event)\"></app-view-properties-dialog>\r\n <div class=\"main-area\">\r\n <kendo-loader *ngIf=\"showloader\" type=\"converging-spinner\" ></kendo-loader>\r\n <div class=\"card-list k-d-flex k-flex-row k-h-full k-flex-wrap\" *ngIf=\"!showloader\">\r\n <div *ngFor=\"let entity of entityViews\">\r\n <kendo-card class=\"card-wrapper\">\r\n <kendo-card-header class=\"k-hstack view-card\">\r\n <kendo-icon name=\"table\" class=\"view-icon\"></kendo-icon>\r\n <div class=\"btn-wrapper\">\r\n <button kendoButton fillMode=\"flat\" (click)=\"editView(entity)\">\r\n <span class=\"k-icon k-i-edit\"></span>\r\n </button>\r\n <button kendoButton fillMode=\"flat\" (click)=\"handleDeleteView(entity)\"><span\r\n class=\"k-icon k-i-delete\"></span></button>\r\n </div>\r\n </kendo-card-header>\r\n\r\n <kendo-card-body (click)=\"viewItemClick(entity)\">\r\n <div class=\"view-card-content k-cursor-pointer\">\r\n <h5 kendoCardTitle>{{ entity.Name }}</h5>\r\n <p kendoCardSubtitle>{{ entity.Description }}</p>\r\n </div>\r\n </kendo-card-body>\r\n </kendo-card>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <kendo-dialog title=\"Delete View\" *ngIf=\"deleteDialogOpened\" (close)=\"handleDeleteView()\">\r\n <kendo-loader *ngIf=\"showloader\" type=\"converging-spinner\"></kendo-loader>\r\n <div [class]=\"showloader ? 'disabled-div' : ''\">\r\n <p class=\"k-m-7.5 k-text-center\">\r\n Are you sure you want to delete <b>{{selectedView?.Name}}</b> View?\r\n </p>\r\n <div class=\"k-actions k-actions-end popup-actions\">\r\n <button kendoButton (click)=\"deleteView()\" themeColor=\"primary\">\r\n <span class=\"k-icon k-i-check\"></span> Yes\r\n </button>\r\n <button kendoButton (click)=\"handleDeleteView()\"><span class=\"k-icon k-i-close\"></span> No</button>\r\n </div>\r\n </div>\r\n </kendo-dialog>\r\n</div>", styles: ["\r\n \r\n .list-item {\r\n margin: 4px;\r\n cursor: pointer;\r\n }\r\n \r\n .view-card .view-icon {\r\n color: #ff6358;\r\n }\r\n .card-wrapper {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper .k-card-body {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper .view-card {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card .btn-wrapper {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body .view-card-content h5 {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body .view-card-content p {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 24px;\r\n margin-bottom: 0;\r\n }\r\n .card-container {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area .card-list {\r\n display: flex;\r\n gap: 20px;\r\n }\r\n ", "\r\n.main-area {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n gap: 24px;\r\n padding: 24px 0;\r\n}\r\n.list-view {\r\n padding: 16px;\r\n min-width: 300px;\r\n border-radius: 4px;\r\n background: #FAFAFA;\r\n border: none;\r\n}\r\n::ng-deep .list-view .k-listview-header, \r\n::ng-deep .list-view .k-listview-footer {\r\n border: none;\r\n}\r\n::ng-deep .list-view .k-listview-content {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 4px;\r\n background: #fff;\r\n padding: 16px;\r\n}\r\n\r\n.header,\r\n.footer {\r\n color: #424242;\r\n font-size: 16px;\r\n height: auto;\r\n margin:0;\r\n}\r\n\r\n.header {\r\n color: #424242;\r\n margin-bottom: 16px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.header .head-tag {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\nfont-size: 16px;\r\nfont-style: normal;\r\nfont-weight: 400;\r\nline-height: 20px;\r\n}\r\n\r\n.header .count {\r\n width: 24px;\r\n height: 24px;\r\n min-width: 24px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 10px;\r\n background: rgba(0, 0, 0, 0.08);\r\n border-radius: 50%;\r\n}\r\n.footer {\r\n font-size: 14px;\r\n margin-top: 16px;\r\n}\r\n\r\n.list-item {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n cursor: pointer;\r\n margin: 4px;\r\n}\r\n.card-container {\r\n margin: 0;\r\n padding: 0;\r\n box-shadow: none;\r\n}\r\n.card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n}\r\n.card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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\r\n \r\n\r\n\r\n \r\n .view-card .view-icon {\r\n color: #ff6358;\r\n }\r\n .card-wrapper {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper .k-card-body {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper .view-card {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card .btn-wrapper {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body .view-card-content h5 {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body .view-card-content p {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 48px;\r\n margin-bottom: 0;\r\n }\r\n .card-container {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area .card-list {\r\n display: flex;\r\n gap: 20px;\r\n }\r\n "] }]
249
- }], function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.NotificationService }, { type: i3.SharedService }]; }, { viewPropertiesDialog: [{
250
- type: ViewChild,
251
- args: [ViewPropertiesDialogComponent, { static: true }]
252
- }] }); })();
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, ViewChild } from '@angular/core';
11
+ import { Metadata } from '@memberjunction/core';
12
+ import { ViewInfo } from '@memberjunction/core-entities';
13
+ import { ViewPropertiesDialogComponent } from '../user-view-properties/view-properties-dialog.component';
14
+ import * as i0 from "@angular/core";
15
+ import * as i1 from "@angular/router";
16
+ import * as i2 from "@progress/kendo-angular-notification";
17
+ import * as i3 from "../../shared/shared.service";
18
+ import * as i4 from "@angular/common";
19
+ import * as i5 from "@progress/kendo-angular-dialog";
20
+ import * as i6 from "@progress/kendo-angular-buttons";
21
+ import * as i7 from "@progress/kendo-angular-indicators";
22
+ import * as i8 from "@progress/kendo-angular-icons";
23
+ import * as i9 from "@progress/kendo-angular-layout";
24
+ import * as i10 from "../user-view-properties/view-properties-dialog.component";
25
+ function SingleEntityComponent_kendo_loader_13_Template(rf, ctx) { if (rf & 1) {
26
+ i0.ɵɵelement(0, "kendo-loader", 11);
27
+ } }
28
+ function SingleEntityComponent_div_14_div_1_Template(rf, ctx) { if (rf & 1) {
29
+ const _r6 = i0.ɵɵgetCurrentView();
30
+ i0.ɵɵelementStart(0, "div")(1, "kendo-card", 14)(2, "kendo-card-header", 15);
31
+ i0.ɵɵelement(3, "kendo-svgicon", 5);
32
+ i0.ɵɵelementStart(4, "div", 16)(5, "button", 17);
33
+ i0.ɵɵlistener("click", function SingleEntityComponent_div_14_div_1_Template_button_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const entity_r4 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.editView(entity_r4)); });
34
+ i0.ɵɵelement(6, "span", 18);
35
+ i0.ɵɵelementEnd();
36
+ i0.ɵɵelementStart(7, "button", 17);
37
+ i0.ɵɵlistener("click", function SingleEntityComponent_div_14_div_1_Template_button_click_7_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const entity_r4 = restoredCtx.$implicit; const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.handleDeleteView(entity_r4)); });
38
+ i0.ɵɵelement(8, "span", 19);
39
+ i0.ɵɵelementEnd()()();
40
+ i0.ɵɵelementStart(9, "kendo-card-body", 20);
41
+ i0.ɵɵlistener("click", function SingleEntityComponent_div_14_div_1_Template_kendo_card_body_click_9_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const entity_r4 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r8.viewItemClick(entity_r4)); });
42
+ i0.ɵɵelementStart(10, "div", 21)(11, "h5", 22);
43
+ i0.ɵɵtext(12);
44
+ i0.ɵɵelementEnd();
45
+ i0.ɵɵelementStart(13, "p", 23);
46
+ i0.ɵɵtext(14);
47
+ i0.ɵɵelementEnd()()()()();
48
+ } if (rf & 2) {
49
+ const entity_r4 = ctx.$implicit;
50
+ const ctx_r3 = i0.ɵɵnextContext(2);
51
+ i0.ɵɵadvance(3);
52
+ i0.ɵɵproperty("icon", ctx_r3.sharedService.kendoSVGIcon("table"));
53
+ i0.ɵɵadvance(9);
54
+ i0.ɵɵtextInterpolate(entity_r4.Name);
55
+ i0.ɵɵadvance(2);
56
+ i0.ɵɵtextInterpolate(entity_r4.Description);
57
+ } }
58
+ function SingleEntityComponent_div_14_Template(rf, ctx) { if (rf & 1) {
59
+ i0.ɵɵelementStart(0, "div", 12);
60
+ i0.ɵɵtemplate(1, SingleEntityComponent_div_14_div_1_Template, 15, 3, "div", 13);
61
+ i0.ɵɵelementEnd();
62
+ } if (rf & 2) {
63
+ const ctx_r1 = i0.ɵɵnextContext();
64
+ i0.ɵɵadvance();
65
+ i0.ɵɵproperty("ngForOf", ctx_r1.entityViews);
66
+ } }
67
+ function SingleEntityComponent_kendo_dialog_15_kendo_loader_1_Template(rf, ctx) { if (rf & 1) {
68
+ i0.ɵɵelement(0, "kendo-loader", 11);
69
+ } }
70
+ function SingleEntityComponent_kendo_dialog_15_Template(rf, ctx) { if (rf & 1) {
71
+ const _r11 = i0.ɵɵgetCurrentView();
72
+ i0.ɵɵelementStart(0, "kendo-dialog", 24);
73
+ i0.ɵɵlistener("close", function SingleEntityComponent_kendo_dialog_15_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.handleDeleteView()); });
74
+ i0.ɵɵtemplate(1, SingleEntityComponent_kendo_dialog_15_kendo_loader_1_Template, 1, 0, "kendo-loader", 8);
75
+ i0.ɵɵelementStart(2, "div")(3, "p", 25);
76
+ i0.ɵɵtext(4, " Are you sure you want to delete ");
77
+ i0.ɵɵelementStart(5, "b");
78
+ i0.ɵɵtext(6);
79
+ i0.ɵɵelementEnd();
80
+ i0.ɵɵtext(7, " View? ");
81
+ i0.ɵɵelementEnd();
82
+ i0.ɵɵelementStart(8, "div", 26)(9, "button", 27);
83
+ i0.ɵɵlistener("click", function SingleEntityComponent_kendo_dialog_15_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.deleteView()); });
84
+ i0.ɵɵelement(10, "span", 28);
85
+ i0.ɵɵtext(11, " Yes ");
86
+ i0.ɵɵelementEnd();
87
+ i0.ɵɵelementStart(12, "button", 4);
88
+ i0.ɵɵlistener("click", function SingleEntityComponent_kendo_dialog_15_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r11); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.handleDeleteView()); });
89
+ i0.ɵɵelement(13, "span", 29);
90
+ i0.ɵɵtext(14, " No");
91
+ i0.ɵɵelementEnd()()()();
92
+ } if (rf & 2) {
93
+ const ctx_r2 = i0.ɵɵnextContext();
94
+ i0.ɵɵadvance();
95
+ i0.ɵɵproperty("ngIf", ctx_r2.showloader);
96
+ i0.ɵɵadvance();
97
+ i0.ɵɵclassMap(ctx_r2.showloader ? "disabled-div" : "");
98
+ i0.ɵɵadvance(4);
99
+ i0.ɵɵtextInterpolate(ctx_r2.selectedView == null ? null : ctx_r2.selectedView.Name);
100
+ } }
101
+ export class SingleEntityComponent {
102
+ constructor(router, route, notificationService, sharedService) {
103
+ this.router = router;
104
+ this.route = route;
105
+ this.notificationService = notificationService;
106
+ this.sharedService = sharedService;
107
+ this.appName = '';
108
+ this.entityName = '';
109
+ this.entityFieldsText = '';
110
+ this.entityDescription = '';
111
+ this.entityViews = [];
112
+ this.selectedView = null;
113
+ this.deleteDialogOpened = false;
114
+ this.showloader = false;
115
+ }
116
+ ngOnInit() {
117
+ this.route.paramMap.subscribe((params) => __awaiter(this, void 0, void 0, function* () {
118
+ const entityName = params.get('entityName');
119
+ const appName = params.get('appName');
120
+ if (appName)
121
+ this.appName = appName;
122
+ // Perform any necessary actions with the ViewID, such as fetching data
123
+ if (entityName) {
124
+ this.entityName = entityName;
125
+ yield this.LoadData(entityName);
126
+ }
127
+ }));
128
+ }
129
+ LoadData(entityName = this.entityName) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ if (entityName) {
132
+ this.showloader = true;
133
+ this.selectedView = null;
134
+ const md = new Metadata();
135
+ const entity = md.Entities.find(e => e.Name == entityName);
136
+ if (entity) {
137
+ this.entityDescription = entity.Description;
138
+ this.entityViews = (yield ViewInfo.GetViewsForUser(entity.ID));
139
+ this.showloader = false;
140
+ }
141
+ }
142
+ });
143
+ }
144
+ viewItemClick(info) {
145
+ if (info) {
146
+ this.router.navigate(['resource', 'view', info.ID]);
147
+ }
148
+ }
149
+ createNewView() {
150
+ // launch the dialog
151
+ this.viewPropertiesDialog.CreateView(this.entityName);
152
+ }
153
+ editView(entity) {
154
+ var _a;
155
+ this.selectedView = entity;
156
+ this.viewPropertiesDialog.Open((_a = this.selectedView) === null || _a === void 0 ? void 0 : _a.ID);
157
+ }
158
+ handleDeleteView(entity = null) {
159
+ this.selectedView = entity;
160
+ this.deleteDialogOpened = !this.deleteDialogOpened;
161
+ }
162
+ deleteView() {
163
+ var _a;
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ if (this.selectedView) {
166
+ this.showloader = true;
167
+ const md = new Metadata();
168
+ const viewObj = yield md.GetEntityObject('User Views');
169
+ yield viewObj.Load((_a = this.selectedView) === null || _a === void 0 ? void 0 : _a.ID); // load the view to be deleted
170
+ if (yield viewObj.Delete()) { // delete the view
171
+ this.notificationService.show({
172
+ content: "View deleted successfully!",
173
+ hideAfter: 800,
174
+ position: { horizontal: "center", vertical: "top" },
175
+ animation: { type: "fade", duration: 400 },
176
+ type: { style: "success", icon: true },
177
+ });
178
+ this.showloader = false;
179
+ this.deleteDialogOpened = false;
180
+ yield this.LoadData(); // reload the updated data on UI
181
+ }
182
+ else {
183
+ this.notificationService.show({
184
+ content: "Error deleting view!",
185
+ hideAfter: 800,
186
+ position: { horizontal: "center", vertical: "top" },
187
+ animation: { type: "fade", duration: 400 },
188
+ type: { style: "error", icon: true },
189
+ });
190
+ }
191
+ }
192
+ });
193
+ }
194
+ viewPropertiesClosed(args) {
195
+ return __awaiter(this, void 0, void 0, function* () {
196
+ if (this.selectedView) {
197
+ yield this.LoadData(this.entityName);
198
+ this.viewPropertiesDialog.isDialogOpened = false;
199
+ this.selectedView = null;
200
+ }
201
+ else if (args && args.Saved === true && args.ViewEntity) {
202
+ const paramsArray = ['/app', this.appName, 'entity', this.entityName, 'view', args.ViewEntity.ID];
203
+ this.router.navigate(paramsArray);
204
+ }
205
+ });
206
+ }
207
+ }
208
+ SingleEntityComponent.ɵfac = function SingleEntityComponent_Factory(t) { return new (t || SingleEntityComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.NotificationService), i0.ɵɵdirectiveInject(i3.SharedService)); };
209
+ SingleEntityComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleEntityComponent, selectors: [["app-single-entity"]], viewQuery: function SingleEntityComponent_Query(rf, ctx) { if (rf & 1) {
210
+ i0.ɵɵviewQuery(ViewPropertiesDialogComponent, 7);
211
+ } if (rf & 2) {
212
+ let _t;
213
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewPropertiesDialog = _t.first);
214
+ } }, decls: 16, vars: 8, consts: [[1, "card-container"], [1, "card-header-entity"], [1, "title-wrap"], [1, "k-icon", "k-i-information"], ["kendoButton", "", 3, "click"], [3, "icon"], [3, "EntityName", "ShowPropertiesButton", "dialogClosed"], [1, "main-area"], ["type", "converging-spinner", 4, "ngIf"], ["class", "card-list k-d-flex k-flex-row k-h-full k-flex-wrap", 4, "ngIf"], ["title", "Delete View", 3, "close", 4, "ngIf"], ["type", "converging-spinner"], [1, "card-list", "k-d-flex", "k-flex-row", "k-h-full", "k-flex-wrap"], [4, "ngFor", "ngForOf"], [1, "card-wrapper"], [1, "k-hstack", "view-card"], [1, "btn-wrapper"], ["kendoButton", "", "fillMode", "flat", 3, "click"], [1, "k-icon", "k-i-edit"], [1, "k-icon", "k-i-delete"], [3, "click"], [1, "view-card-content", "k-cursor-pointer"], ["kendoCardTitle", ""], ["kendoCardSubtitle", ""], ["title", "Delete View", 3, "close"], [1, "k-m-7.5", "k-text-center"], [1, "k-actions", "k-actions-end", "popup-actions"], ["kendoButton", "", "themeColor", "primary", 3, "click"], [1, "k-icon", "k-i-check"], [1, "k-icon", "k-i-close"]], template: function SingleEntityComponent_Template(rf, ctx) { if (rf & 1) {
215
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1");
216
+ i0.ɵɵtext(4);
217
+ i0.ɵɵelementEnd();
218
+ i0.ɵɵelementStart(5, "p");
219
+ i0.ɵɵelement(6, "span", 3);
220
+ i0.ɵɵtext(7);
221
+ i0.ɵɵelementEnd()();
222
+ i0.ɵɵelementStart(8, "button", 4);
223
+ i0.ɵɵlistener("click", function SingleEntityComponent_Template_button_click_8_listener() { return ctx.createNewView(); });
224
+ i0.ɵɵelement(9, "kendo-svgicon", 5);
225
+ i0.ɵɵtext(10, " Create New View");
226
+ i0.ɵɵelementEnd()();
227
+ i0.ɵɵelementStart(11, "app-view-properties-dialog", 6);
228
+ i0.ɵɵlistener("dialogClosed", function SingleEntityComponent_Template_app_view_properties_dialog_dialogClosed_11_listener($event) { return ctx.viewPropertiesClosed($event); });
229
+ i0.ɵɵelementEnd();
230
+ i0.ɵɵelementStart(12, "div", 7);
231
+ i0.ɵɵtemplate(13, SingleEntityComponent_kendo_loader_13_Template, 1, 0, "kendo-loader", 8)(14, SingleEntityComponent_div_14_Template, 2, 1, "div", 9);
232
+ i0.ɵɵelementEnd();
233
+ i0.ɵɵtemplate(15, SingleEntityComponent_kendo_dialog_15_Template, 15, 4, "kendo-dialog", 10);
234
+ i0.ɵɵelementEnd();
235
+ } if (rf & 2) {
236
+ i0.ɵɵadvance(4);
237
+ i0.ɵɵtextInterpolate(ctx.entityName);
238
+ i0.ɵɵadvance(3);
239
+ i0.ɵɵtextInterpolate1(" ", ctx.entityDescription, "");
240
+ i0.ɵɵadvance(2);
241
+ i0.ɵɵproperty("icon", ctx.sharedService.kendoSVGIcon("plus"));
242
+ i0.ɵɵadvance(2);
243
+ i0.ɵɵproperty("EntityName", ctx.entityName)("ShowPropertiesButton", false);
244
+ i0.ɵɵadvance(2);
245
+ i0.ɵɵproperty("ngIf", ctx.showloader);
246
+ i0.ɵɵadvance();
247
+ i0.ɵɵproperty("ngIf", !ctx.showloader);
248
+ i0.ɵɵadvance();
249
+ i0.ɵɵproperty("ngIf", ctx.deleteDialogOpened);
250
+ } }, dependencies: [i4.NgForOf, i4.NgIf, i5.DialogComponent, i6.ButtonComponent, i7.LoaderComponent, i8.SVGIconComponent, i9.CardComponent, i9.CardHeaderComponent, i9.CardBodyComponent, i9.CardTitleDirective, i9.CardSubtitleDirective, i10.ViewPropertiesDialogComponent], styles: [".list-item[_ngcontent-%COMP%] {\r\n margin: 4px;\r\n cursor: pointer;\r\n }\r\n \r\n .view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\r\n color: #ff6358;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 24px;\r\n margin-bottom: 0;\r\n }\r\n .card-container[_ngcontent-%COMP%] {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\r\n display: flex;\r\n gap: 20px;\r\n }", ".main-area[_ngcontent-%COMP%] {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n gap: 24px;\r\n padding: 24px 0;\r\n}\r\n.list-view[_ngcontent-%COMP%] {\r\n padding: 16px;\r\n min-width: 300px;\r\n border-radius: 4px;\r\n background: #FAFAFA;\r\n border: none;\r\n}\r\n .list-view .k-listview-header, .list-view .k-listview-footer {\r\n border: none;\r\n}\r\n .list-view .k-listview-content {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 4px;\r\n background: #fff;\r\n padding: 16px;\r\n}\r\n\r\n.header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n height: auto;\r\n margin:0;\r\n}\r\n\r\n.header[_ngcontent-%COMP%] {\r\n color: #424242;\r\n margin-bottom: 16px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\nfont-size: 16px;\r\nfont-style: normal;\r\nfont-weight: 400;\r\nline-height: 20px;\r\n}\r\n\r\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\r\n width: 24px;\r\n height: 24px;\r\n min-width: 24px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 10px;\r\n background: rgba(0, 0, 0, 0.08);\r\n border-radius: 50%;\r\n}\r\n.footer[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n margin-top: 16px;\r\n}\r\n\r\n.list-item[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n cursor: pointer;\r\n margin: 4px;\r\n}\r\n.card-container[_ngcontent-%COMP%] {\r\n margin: 0;\r\n padding: 0;\r\n box-shadow: none;\r\n}\r\n.card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n}\r\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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\r\n \r\n\r\n\r\n \r\n .view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\r\n color: #ff6358;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 48px;\r\n margin-bottom: 0;\r\n }\r\n .card-container[_ngcontent-%COMP%] {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\r\n display: flex;\r\n gap: 20px;\r\n }"] });
251
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleEntityComponent, [{
252
+ type: Component,
253
+ args: [{ selector: 'app-single-entity', template: "<div class=\"card-container\">\r\n <div class=\"card-header-entity\">\r\n <div class=\"title-wrap\">\r\n <h1>{{entityName}}</h1>\r\n <p> <span class=\"k-icon k-i-information\"></span> {{entityDescription}}</p>\r\n </div>\r\n <button kendoButton (click)=\"createNewView()\">\r\n <kendo-svgicon [icon]=\"sharedService.kendoSVGIcon('plus')\"></kendo-svgicon>\r\n Create New View</button>\r\n </div>\r\n <app-view-properties-dialog [EntityName]=\"this.entityName\" [ShowPropertiesButton]=\"false\"\r\n (dialogClosed)=\"viewPropertiesClosed($event)\"></app-view-properties-dialog>\r\n <div class=\"main-area\">\r\n <kendo-loader *ngIf=\"showloader\" type=\"converging-spinner\" ></kendo-loader>\r\n <div class=\"card-list k-d-flex k-flex-row k-h-full k-flex-wrap\" *ngIf=\"!showloader\">\r\n <div *ngFor=\"let entity of entityViews\">\r\n <kendo-card class=\"card-wrapper\">\r\n <kendo-card-header class=\"k-hstack view-card\">\r\n <kendo-svgicon [icon]=\"sharedService.kendoSVGIcon('table')\"></kendo-svgicon>\r\n <div class=\"btn-wrapper\">\r\n <button kendoButton fillMode=\"flat\" (click)=\"editView(entity)\">\r\n <span class=\"k-icon k-i-edit\"></span>\r\n </button>\r\n <button kendoButton fillMode=\"flat\" (click)=\"handleDeleteView(entity)\"><span\r\n class=\"k-icon k-i-delete\"></span></button>\r\n </div>\r\n </kendo-card-header>\r\n\r\n <kendo-card-body (click)=\"viewItemClick(entity)\">\r\n <div class=\"view-card-content k-cursor-pointer\">\r\n <h5 kendoCardTitle>{{ entity.Name }}</h5>\r\n <p kendoCardSubtitle>{{ entity.Description }}</p>\r\n </div>\r\n </kendo-card-body>\r\n </kendo-card>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <kendo-dialog title=\"Delete View\" *ngIf=\"deleteDialogOpened\" (close)=\"handleDeleteView()\">\r\n <kendo-loader *ngIf=\"showloader\" type=\"converging-spinner\"></kendo-loader>\r\n <div [class]=\"showloader ? 'disabled-div' : ''\">\r\n <p class=\"k-m-7.5 k-text-center\">\r\n Are you sure you want to delete <b>{{selectedView?.Name}}</b> View?\r\n </p>\r\n <div class=\"k-actions k-actions-end popup-actions\">\r\n <button kendoButton (click)=\"deleteView()\" themeColor=\"primary\">\r\n <span class=\"k-icon k-i-check\"></span> Yes\r\n </button>\r\n <button kendoButton (click)=\"handleDeleteView()\"><span class=\"k-icon k-i-close\"></span> No</button>\r\n </div>\r\n </div>\r\n </kendo-dialog>\r\n</div>", styles: ["\r\n \r\n .list-item {\r\n margin: 4px;\r\n cursor: pointer;\r\n }\r\n \r\n .view-card .view-icon {\r\n color: #ff6358;\r\n }\r\n .card-wrapper {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper .k-card-body {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper .view-card {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card .btn-wrapper {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body .view-card-content h5 {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body .view-card-content p {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 24px;\r\n margin-bottom: 0;\r\n }\r\n .card-container {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area .card-list {\r\n display: flex;\r\n gap: 20px;\r\n }\r\n ", "\r\n.main-area {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n gap: 24px;\r\n padding: 24px 0;\r\n}\r\n.list-view {\r\n padding: 16px;\r\n min-width: 300px;\r\n border-radius: 4px;\r\n background: #FAFAFA;\r\n border: none;\r\n}\r\n::ng-deep .list-view .k-listview-header, \r\n::ng-deep .list-view .k-listview-footer {\r\n border: none;\r\n}\r\n::ng-deep .list-view .k-listview-content {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 4px;\r\n background: #fff;\r\n padding: 16px;\r\n}\r\n\r\n.header,\r\n.footer {\r\n color: #424242;\r\n font-size: 16px;\r\n height: auto;\r\n margin:0;\r\n}\r\n\r\n.header {\r\n color: #424242;\r\n margin-bottom: 16px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.header .head-tag {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: #424242;\r\nfont-size: 16px;\r\nfont-style: normal;\r\nfont-weight: 400;\r\nline-height: 20px;\r\n}\r\n\r\n.header .count {\r\n width: 24px;\r\n height: 24px;\r\n min-width: 24px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 10px;\r\n background: rgba(0, 0, 0, 0.08);\r\n border-radius: 50%;\r\n}\r\n.footer {\r\n font-size: 14px;\r\n margin-top: 16px;\r\n}\r\n\r\n.list-item {\r\n color: #424242;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n cursor: pointer;\r\n margin: 4px;\r\n}\r\n.card-container {\r\n margin: 0;\r\n padding: 0;\r\n box-shadow: none;\r\n}\r\n.card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n}\r\n.card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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\r\n \r\n\r\n\r\n \r\n .view-card .view-icon {\r\n color: #ff6358;\r\n }\r\n .card-wrapper {\r\n border: 1px solid rgba(0, 0, 0, 0.08);\r\n border-radius: 6px;\r\n }\r\n .card-wrapper .k-card-body {\r\n background: #fff;\r\n padding: 12px 20px;\r\n }\r\n .card-wrapper .view-card {\r\n overflow: auto;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: #fafafa;\r\n padding: 4px 15px;\r\n }\r\n .view-card .btn-wrapper {\r\n display: flex;\r\n align-items: center;\r\n }\r\n \r\n .k-card-body .view-card-content h5 {\r\n color: #424242;\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n margin-bottom: 0;\r\n letter-spacing: 0.18px;\r\n }\r\n .k-card-body .view-card-content p {\r\n color: #666;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 20px;\r\n height: 48px;\r\n margin-bottom: 0;\r\n }\r\n .card-container {\r\n padding: 0;\r\n margin: 0;\r\n box-shadow: none;\r\n }\r\n .card-header-entity {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-start;\r\n padding-bottom: 20px;\r\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\r\n }\r\n \r\n .card-header-entity .title-wrap h1 {\r\n color: #424242;\r\n font-size: 28px;\r\n font-style: normal;\r\n font-weight: 300;\r\n line-height: 28px;\r\n margin-bottom: 15px;\r\n }\r\n .card-header-entity .title-wrap {\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .card-header-entity .title-wrap p {\r\n margin: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\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 .main-area .card-list {\r\n display: flex;\r\n gap: 20px;\r\n }\r\n "] }]
254
+ }], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.NotificationService }, { type: i3.SharedService }], { viewPropertiesDialog: [{
255
+ type: ViewChild,
256
+ args: [ViewPropertiesDialogComponent, { static: true }]
257
+ }] }); })();
258
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SingleEntityComponent, { className: "SingleEntityComponent", filePath: "src\\lib\\single-entity\\single-entity.component.ts", lineNumber: 14 }); })();