@memberjunction/ng-explorer-core 1.3.3 → 1.4.1

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 (48) hide show
  1. package/dist/app-routing.module.d.ts +8 -2
  2. package/dist/app-routing.module.d.ts.map +1 -1
  3. package/dist/app-routing.module.js +29 -6
  4. package/dist/lib/app-view/application-view.component.d.ts.map +1 -1
  5. package/dist/lib/app-view/application-view.component.js +34 -24
  6. package/dist/lib/base-browser-component/base-browser-component.d.ts +3 -2
  7. package/dist/lib/base-browser-component/base-browser-component.d.ts.map +1 -1
  8. package/dist/lib/base-browser-component/base-browser-component.js +5 -4
  9. package/dist/lib/generic/resource-container-component.d.ts.map +1 -1
  10. package/dist/lib/generic-browser-list/generic-browser-list.component.d.ts +4 -0
  11. package/dist/lib/generic-browser-list/generic-browser-list.component.d.ts.map +1 -1
  12. package/dist/lib/generic-browser-list/generic-browser-list.component.js +104 -74
  13. package/dist/lib/header/header.component.d.ts +1 -1
  14. package/dist/lib/header/header.component.js +2 -2
  15. package/dist/lib/home-component/home.component.js +11 -5
  16. package/dist/lib/list-view/list-view.component.d.ts +36 -0
  17. package/dist/lib/list-view/list-view.component.d.ts.map +1 -0
  18. package/dist/lib/list-view/list-view.component.js +189 -0
  19. package/dist/lib/navigation/navigation.component.d.ts +32 -6
  20. package/dist/lib/navigation/navigation.component.d.ts.map +1 -1
  21. package/dist/lib/navigation/navigation.component.js +123 -46
  22. package/dist/lib/resource-wrappers/record-resource.component.d.ts +2 -2
  23. package/dist/lib/resource-wrappers/record-resource.component.d.ts.map +1 -1
  24. package/dist/lib/resource-wrappers/record-resource.component.js +15 -11
  25. package/dist/lib/single-list-detail/single-list-detail.component.d.ts +26 -0
  26. package/dist/lib/single-list-detail/single-list-detail.component.d.ts.map +1 -0
  27. package/dist/lib/single-list-detail/single-list-detail.component.js +213 -0
  28. package/dist/lib/single-record/single-record.component.d.ts +7 -4
  29. package/dist/lib/single-record/single-record.component.d.ts.map +1 -1
  30. package/dist/lib/single-record/single-record.component.js +83 -29
  31. package/dist/lib/single-view/single-view.component.d.ts +2 -0
  32. package/dist/lib/single-view/single-view.component.d.ts.map +1 -1
  33. package/dist/lib/single-view/single-view.component.js +27 -26
  34. package/dist/lib/user-notifications/user-notifications.component.d.ts.map +1 -1
  35. package/dist/lib/user-notifications/user-notifications.component.js +2 -1
  36. package/dist/module.d.ts +38 -37
  37. package/dist/module.d.ts.map +1 -1
  38. package/dist/module.js +18 -14
  39. package/dist/public-api.d.ts +2 -2
  40. package/dist/public-api.d.ts.map +1 -1
  41. package/dist/public-api.js +2 -2
  42. package/package.json +17 -16
  43. package/dist/lib/generic/section-loader-component.d.ts +0 -18
  44. package/dist/lib/generic/section-loader-component.d.ts.map +0 -1
  45. package/dist/lib/generic/section-loader-component.js +0 -66
  46. package/dist/lib/join-grid/join-grid.component.d.ts +0 -31
  47. package/dist/lib/join-grid/join-grid.component.d.ts.map +0 -1
  48. package/dist/lib/join-grid/join-grid.component.js +0 -222
@@ -1,3 +1,4 @@
1
+ import { ComponentRef } from '@angular/core';
1
2
  import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
2
3
  import { SharedService } from '@memberjunction/ng-shared';
3
4
  import { DetachedRouteHandle, RouteReuseStrategy } from '@angular/router';
@@ -5,13 +6,14 @@ import * as i0 from "@angular/core";
5
6
  import * as i1 from "@angular/router";
6
7
  export declare class CustomReuseStrategy implements RouteReuseStrategy {
7
8
  storedRoutes: {
8
- [key: string]: DetachedRouteHandle;
9
+ [key: string]: DetachedRouteHandleExt | null;
9
10
  };
10
11
  shouldDetach(route: ActivatedRouteSnapshot): boolean;
11
- store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void;
12
+ store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandleExt | null): void;
12
13
  shouldAttach(route: ActivatedRouteSnapshot): boolean;
13
14
  retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
14
15
  shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
16
+ private callHook;
15
17
  }
16
18
  export declare class ResourceResolver implements Resolve<void> {
17
19
  private sharedService;
@@ -20,9 +22,13 @@ export declare class ResourceResolver implements Resolve<void> {
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceResolver, never>;
21
23
  static ɵprov: i0.ɵɵInjectableDeclaration<ResourceResolver>;
22
24
  }
25
+ interface DetachedRouteHandleExt extends DetachedRouteHandle {
26
+ componentRef: ComponentRef<any>;
27
+ }
23
28
  export declare class AppRoutingModule {
24
29
  static ɵfac: i0.ɵɵFactoryDeclaration<AppRoutingModule, never>;
25
30
  static ɵmod: i0.ɵɵNgModuleDeclaration<AppRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
26
31
  static ɵinj: i0.ɵɵInjectorDeclaration<AppRoutingModule>;
27
32
  }
33
+ export {};
28
34
  //# sourceMappingURL=app-routing.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-routing.module.d.ts","sourceRoot":"","sources":["../src/app-routing.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAkB7G,OAAO,EAAc,aAAa,EAAgB,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;;AAE1E,qBAAa,mBAAoB,YAAW,kBAAkB;IAC5D,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAM;IAG1D,YAAY,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO;IAMpD,KAAK,CAAC,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,mBAAmB,GAAG,IAAI;IAOvE,YAAY,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO;IAOpD,QAAQ,CAAC,K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G,OAAO;IAIvF,OAAO,CAAC,QAAQ;CAUjB;AAED,qBAGa,gBAAiB,YAAW,OAAO,CAAC,IAAI,CAAC;IACxC,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEhD,OAAO,CAAC,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI;yCAH7D,gBAAgB;6CAAhB,gBAAgB;CA4D5B;AAmDD,UAAU,sBAAuB,SAAQ,mBAAmB;IAC1D,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;CACjC;AAED,qBAKa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
@@ -1,6 +1,6 @@
1
1
  import { Injectable, NgModule } from '@angular/core';
2
2
  import { RouterModule } from '@angular/router';
3
- import { SingleApplicationComponent, SingleEntityComponent, SingleRecordComponent, HomeComponent, UserNotificationsComponent, DataBrowserComponent, ReportBrowserComponent, DashboardBrowserComponent, AuthGuardService as AuthGuard, FilesComponent, QueryBrowserComponent, } from './public-api';
3
+ import { SingleApplicationComponent, SingleEntityComponent, SingleRecordComponent, HomeComponent, UserNotificationsComponent, DataBrowserComponent, ReportBrowserComponent, DashboardBrowserComponent, AuthGuardService as AuthGuard, FilesComponent, QueryBrowserComponent, ListViewComponent, SingleListDetailComponent } from './public-api';
4
4
  import { SettingsComponent } from '@memberjunction/ng-explorer-settings';
5
5
  import { LogError } from '@memberjunction/core';
6
6
  import { MJEventType, MJGlobal } from '@memberjunction/global';
@@ -21,16 +21,21 @@ export class CustomReuseStrategy {
21
21
  }
22
22
  // Stores the detached route
23
23
  store(route, handle) {
24
+ if (!handle) {
25
+ return;
26
+ }
24
27
  if (route.routeConfig && route.routeConfig.path) {
25
28
  this.storedRoutes[route.routeConfig.path] = handle;
29
+ this.callHook(handle, 'ngOnDetach');
26
30
  }
27
31
  }
28
32
  // Determines if a stored route should be reattached
29
33
  shouldAttach(route) {
30
34
  var _a;
31
35
  // Reattach if we have a stored route for the incoming route
32
- if ((_a = route.routeConfig) === null || _a === void 0 ? void 0 : _a.path)
36
+ if ((_a = route.routeConfig) === null || _a === void 0 ? void 0 : _a.path) {
33
37
  return !!route.routeConfig && !!this.storedRoutes[route.routeConfig.path];
38
+ }
34
39
  else
35
40
  return false;
36
41
  }
@@ -39,15 +44,28 @@ export class CustomReuseStrategy {
39
44
  if (!route.routeConfig || (route.routeConfig.path && !this.storedRoutes[route.routeConfig.path])) {
40
45
  return null;
41
46
  }
42
- else if (route.routeConfig.path)
43
- return this.storedRoutes[route.routeConfig.path];
44
- else
45
- return null;
47
+ else if (route.routeConfig.path) {
48
+ const path = this.storedRoutes[route.routeConfig.path];
49
+ if (path) {
50
+ this.callHook(path, 'ngOnAttach');
51
+ return path;
52
+ }
53
+ }
54
+ return null;
46
55
  }
47
56
  // Determines if the route should be reused
48
57
  shouldReuseRoute(future, curr) {
49
58
  return future.routeConfig === curr.routeConfig;
50
59
  }
60
+ callHook(detachedTree, hookName) {
61
+ if (!detachedTree || !hookName) {
62
+ return;
63
+ }
64
+ const componentRef = detachedTree.componentRef;
65
+ if (componentRef && componentRef.instance && typeof componentRef.instance[hookName] === 'function') {
66
+ componentRef.instance[hookName]();
67
+ }
68
+ }
51
69
  }
52
70
  export class ResourceResolver {
53
71
  constructor(sharedService) {
@@ -82,6 +100,8 @@ export class ResourceResolver {
82
100
  case 'records':
83
101
  code = EventCodes.EntityRecordClicked;
84
102
  data.Configuration.Entity = route.queryParams['Entity'] || route.queryParams['entity']; // Entity or entity is specified for this resource type since resource record id isn't good enough
103
+ data.Configuration.NewRecordValues = route.queryParams['NewRecordValues'] || route.queryParams['newRecordValues'];
104
+ data.Configuration.___rawQueryParams = route.queryParams;
85
105
  if (data.Configuration.Entity === undefined || data.Configuration.Entity === null) {
86
106
  LogError('No Entity provided in the URL, must have Entity as a query parameter for this resource type');
87
107
  return; // should handle the error better - TO-DO
@@ -130,6 +150,9 @@ const routes = [
130
150
  { path: 'queries/:folderID', component: QueryBrowserComponent, canActivate: [AuthGuard] },
131
151
  { path: 'data', component: DataBrowserComponent, canActivate: [AuthGuard] },
132
152
  { path: 'files', component: FilesComponent, canActivate: [AuthGuard] },
153
+ { path: 'lists', component: ListViewComponent, canActivate: [AuthGuard] },
154
+ { path: 'lists/:folderID', component: ListViewComponent, canActivate: [AuthGuard] },
155
+ { path: 'listdetails/:listID', component: SingleListDetailComponent, canActivate: [AuthGuard] },
133
156
  {
134
157
  path: 'settings',
135
158
  component: SettingsComponent,
@@ -1 +1 @@
1
- {"version":3,"file":"application-view.component.d.ts","sourceRoot":"","sources":["../../../src/lib/app-view/application-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAwB,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAuB,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAkB,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAU,IAAI,EAAY,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;;AAEvF,qBAKa,wBAAyB,SAAQ,oBAAqB,YAAW,MAAM;IAanE,OAAO,CAAC,MAAM;IAAU,OAAO,CAAC,KAAK;IAAkB,OAAO,CAAC,QAAQ;IAAY,OAAO,CAAC,aAAa;IAX7F,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;IACM,oBAAoB,EAAG,iCAAiC,CAAC;IAElH,cAAc,EA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AAE,cAAc,EAAU,QAAQ,EAAE,QAAQ,EAAU,aAAa,EAAE,aAAa;IAM9H,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAyCxB,wBAAwB,CAAC,eAAe,EAAE,uBAAuB,GAAG,IAAI;IAUlE,sBAAsB,CAAC,eAAe,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqCrF,WAAW,CAAC,IAAI,EAAE,IAAI;IAc7B,eAAe,CAAC,IAAI,EAAE,qBAAqB;IAO3C,iBAAiB,CAAC,GAAG,EAAE,kBAAkB;IAYzC,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,WAAW;IAKZ,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI/C,aAAa,CAAC,KAAK,EAAE,kBAAkB;IAW1B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAWrD,2BAA2B,CAAC,IAAI,EAAE;QAAC,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,sBAAsB,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,OAAO,CAAC,IAAI,CAAC;yCA7LpJ,wBAAwB;2CAAxB,wBAAwB;CA+MpC;AAID,cAAM,uBAAuB;IAClB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;gBAEb,IAAI,EAAE,qBAAqB;CAK1C"}
@@ -8,10 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { Component, ViewChild } from '@angular/core';
11
- import { Metadata, LogStatus } from '@memberjunction/core';
11
+ import { Metadata, LogError } from '@memberjunction/core';
12
12
  import { ItemType } from '../../generic/Item.types';
13
13
  import { BaseBrowserComponent } from '../base-browser-component/base-browser-component';
14
- import { UserViewPropertiesDialogComponent } from '@memberjunction/ng-user-view-properties';
15
14
  import * as i0 from "@angular/core";
16
15
  import * as i1 from "@angular/router";
17
16
  import * as i2 from "@angular/common";
@@ -20,18 +19,19 @@ import * as i4 from "@progress/kendo-angular-buttons";
20
19
  import * as i5 from "@memberjunction/ng-user-view-properties";
21
20
  import * as i6 from "../generic-browser-list/generic-browser-list.component";
22
21
  const _c0 = ["entityRow"];
22
+ const _c1 = ["userViewDialog"];
23
23
  function ApplicationViewComponent_button_8_Template(rf, ctx) { if (rf & 1) {
24
- const _r4 = i0.ɵɵgetCurrentView();
25
- i0.ɵɵelementStart(0, "button", 10);
26
- i0.ɵɵlistener("click", function ApplicationViewComponent_button_8_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const button_r2 = restoredCtx.$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onAppEntityButtonClicked(button_r2)); });
24
+ const _r5 = i0.ɵɵgetCurrentView();
25
+ i0.ɵɵelementStart(0, "button", 11);
26
+ i0.ɵɵlistener("click", function ApplicationViewComponent_button_8_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const button_r3 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onAppEntityButtonClicked(button_r3)); });
27
27
  i0.ɵɵelementStart(1, "span");
28
28
  i0.ɵɵtext(2);
29
29
  i0.ɵɵelementEnd()();
30
30
  } if (rf & 2) {
31
- const button_r2 = ctx.$implicit;
32
- i0.ɵɵproperty("toggleable", true)("selected", button_r2.Selected);
31
+ const button_r3 = ctx.$implicit;
32
+ i0.ɵɵproperty("toggleable", true)("selected", button_r3.Selected);
33
33
  i0.ɵɵadvance(2);
34
- i0.ɵɵtextInterpolate1(" ", button_r2.Name, " ");
34
+ i0.ɵɵtextInterpolate1(" ", button_r3.Name, " ");
35
35
  } }
36
36
  export class ApplicationViewComponent extends BaseBrowserComponent {
37
37
  constructor(router, route, location, sharedService) {
@@ -121,7 +121,6 @@ export class ApplicationViewComponent extends BaseBrowserComponent {
121
121
  const categoryFilter = `UserID=${md.CurrentUser.ID} AND EntityID=${this.selectedAppEntity.EntityID} AND ` + parentFolderIDFilter;
122
122
  const categoryIDFilter = this.selectedFolderID ? `CategoryID=${this.selectedFolderID}` : 'CategoryID IS NULL';
123
123
  const userViewFilter = `UserID = ${md.CurrentUser.ID} AND EntityID = ${appEntityButton.Data.EntityID} AND ` + categoryIDFilter;
124
- LogStatus("categoryFilter: " + categoryFilter + " userViewFilter: " + userViewFilter);
125
124
  yield _super.LoadData.call(this, {
126
125
  sortItemsAfterLoad: true,
127
126
  categoryItemFilter: categoryFilter,
@@ -185,13 +184,24 @@ export class ApplicationViewComponent extends BaseBrowserComponent {
185
184
  }
186
185
  createNewView(event) {
187
186
  event.Cancel = true;
188
- this.viewPropertiesDialog.CreateView(this.appName);
187
+ if (this.viewPropertiesDialog) {
188
+ console.log("Creating new view", this.appName);
189
+ this.viewPropertiesDialog.CreateView(this.appName);
190
+ }
191
+ else {
192
+ LogError("View Properties Dialog not found");
193
+ }
189
194
  }
190
195
  editView(event) {
191
196
  return __awaiter(this, void 0, void 0, function* () {
192
197
  event.Cancel = true;
193
- let data = event.Item.Data;
194
- this.viewPropertiesDialog.Open(data.ID);
198
+ if (this.viewPropertiesDialog) {
199
+ let data = event.Item.Data;
200
+ this.viewPropertiesDialog.Open(data.ID);
201
+ }
202
+ else {
203
+ LogError("View Properties Dialog not found");
204
+ }
195
205
  });
196
206
  }
197
207
  OnViewPropertiesDialogClose(args) {
@@ -216,43 +226,43 @@ export class ApplicationViewComponent extends BaseBrowserComponent {
216
226
  ApplicationViewComponent.ɵfac = function ApplicationViewComponent_Factory(t) { return new (t || ApplicationViewComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.Location), i0.ɵɵdirectiveInject(i3.SharedService)); };
217
227
  ApplicationViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ApplicationViewComponent, selectors: [["application-view"]], viewQuery: function ApplicationViewComponent_Query(rf, ctx) { if (rf & 1) {
218
228
  i0.ɵɵviewQuery(_c0, 5);
219
- i0.ɵɵviewQuery(UserViewPropertiesDialogComponent, 7);
229
+ i0.ɵɵviewQuery(_c1, 5);
220
230
  } if (rf & 2) {
221
231
  let _t;
222
232
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.entityRowRef = _t.first);
223
233
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewPropertiesDialog = _t.first);
224
- } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 12, consts: [[1, "app-container"], [1, "card-header-entity", "cloumn"], [1, "title-wrap"], [1, "row", 2, "max-width", "100%"], ["entityRow", ""], [1, "col-xs-12", "col-sm-6", "example-col"], ["kendoButton", "", "fillMode", "flat", 3, "toggleable", "selected", "click", 4, "ngFor", "ngForOf"], [3, "EntityName", "ShowPropertiesButton", "dialogClosed"], [1, "main-area", "margin-top-neg-20"], ["iconName", "aggregateFields", "addText", "Create New View", "ItemEntityName", "User Views", "resourceName", "View", 3, "items", "categoryEntityID", "title", "CategoryEntityName", "selectedFolderID", "showLoader", "viewingResource", "displayAsGrid", "itemClickEvent", "AfterAddFolderEvent", "AfterAddItemEvent", "AfterDeleteItemEvent", "AfterDeleteFolderEvent", "viewModeChangeEvent", "BeforeAddItemEvent", "BeforeUpdateItemEvent"], ["kendoButton", "", "fillMode", "flat", 3, "toggleable", "selected", "click"]], template: function ApplicationViewComponent_Template(rf, ctx) { if (rf & 1) {
234
+ } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 11, consts: [[1, "app-container"], [1, "card-header-entity", "cloumn"], [1, "title-wrap"], [1, "row", 2, "max-width", "100%"], ["entityRow", ""], [1, "col-xs-12", "col-sm-6", "example-col"], ["kendoButton", "", "fillMode", "flat", 3, "toggleable", "selected", "click", 4, "ngFor", "ngForOf"], [1, "main-area", "margin-top-neg-20"], ["iconName", "aggregateFields", "addText", "Create New View", "ItemEntityName", "User Views", "resourceName", "View", 3, "items", "categoryEntityID", "title", "CategoryEntityName", "selectedFolderID", "showLoader", "viewingResource", "displayAsGrid", "itemClickEvent", "AfterAddFolderEvent", "AfterAddItemEvent", "AfterDeleteItemEvent", "AfterDeleteFolderEvent", "viewModeChangeEvent", "BeforeAddItemEvent", "BeforeUpdateItemEvent"], [3, "ShowPropertiesButton", "dialogClosed"], ["userViewDialog", ""], ["kendoButton", "", "fillMode", "flat", 3, "toggleable", "selected", "click"]], template: function ApplicationViewComponent_Template(rf, ctx) { if (rf & 1) {
225
235
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1");
226
236
  i0.ɵɵtext(4);
227
237
  i0.ɵɵelementEnd()();
228
238
  i0.ɵɵelementStart(5, "div", 3, 4)(7, "div", 5);
229
239
  i0.ɵɵtemplate(8, ApplicationViewComponent_button_8_Template, 3, 3, "button", 6);
230
240
  i0.ɵɵelementEnd()()();
231
- i0.ɵɵelementStart(9, "mj-user-view-properties-dialog", 7);
232
- i0.ɵɵlistener("dialogClosed", function ApplicationViewComponent_Template_mj_user_view_properties_dialog_dialogClosed_9_listener($event) { return ctx.OnViewPropertiesDialogClose($event); });
233
- i0.ɵɵelementEnd();
234
- i0.ɵɵelementStart(10, "div", 8)(11, "app-generic-browser-list", 9);
235
- i0.ɵɵlistener("itemClickEvent", function ApplicationViewComponent_Template_app_generic_browser_list_itemClickEvent_11_listener($event) { return ctx.onItemClick($event); })("AfterAddFolderEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterAddFolderEvent_11_listener($event) { return ctx.onEvent($event); })("AfterAddItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterAddItemEvent_11_listener($event) { return ctx.onEvent($event); })("AfterDeleteItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterDeleteItemEvent_11_listener($event) { return ctx.onEvent($event); })("AfterDeleteFolderEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterDeleteFolderEvent_11_listener($event) { return ctx.onEvent($event); })("viewModeChangeEvent", function ApplicationViewComponent_Template_app_generic_browser_list_viewModeChangeEvent_11_listener($event) { return ctx.onViewModeChange($event); })("BeforeAddItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_BeforeAddItemEvent_11_listener($event) { return ctx.createNewView($event); })("BeforeUpdateItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_BeforeUpdateItemEvent_11_listener($event) { return ctx.editView($event); });
236
- i0.ɵɵelementEnd()()();
241
+ i0.ɵɵelementStart(9, "div", 7)(10, "app-generic-browser-list", 8);
242
+ i0.ɵɵlistener("itemClickEvent", function ApplicationViewComponent_Template_app_generic_browser_list_itemClickEvent_10_listener($event) { return ctx.onItemClick($event); })("AfterAddFolderEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterAddFolderEvent_10_listener($event) { return ctx.onEvent($event); })("AfterAddItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterAddItemEvent_10_listener($event) { return ctx.onEvent($event); })("AfterDeleteItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterDeleteItemEvent_10_listener($event) { return ctx.onEvent($event); })("AfterDeleteFolderEvent", function ApplicationViewComponent_Template_app_generic_browser_list_AfterDeleteFolderEvent_10_listener($event) { return ctx.onEvent($event); })("viewModeChangeEvent", function ApplicationViewComponent_Template_app_generic_browser_list_viewModeChangeEvent_10_listener($event) { return ctx.onViewModeChange($event); })("BeforeAddItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_BeforeAddItemEvent_10_listener($event) { return ctx.createNewView($event); })("BeforeUpdateItemEvent", function ApplicationViewComponent_Template_app_generic_browser_list_BeforeUpdateItemEvent_10_listener($event) { return ctx.editView($event); });
243
+ i0.ɵɵelementEnd()();
244
+ i0.ɵɵelementStart(11, "mj-user-view-properties-dialog", 9, 10);
245
+ i0.ɵɵlistener("dialogClosed", function ApplicationViewComponent_Template_mj_user_view_properties_dialog_dialogClosed_11_listener($event) { return ctx.OnViewPropertiesDialogClose($event); });
246
+ i0.ɵɵelementEnd()();
237
247
  } if (rf & 2) {
238
248
  i0.ɵɵadvance(4);
239
249
  i0.ɵɵtextInterpolate(ctx.appNameFromURL);
240
250
  i0.ɵɵadvance(4);
241
251
  i0.ɵɵproperty("ngForOf", ctx.AppEntityButtons);
242
- i0.ɵɵadvance();
243
- i0.ɵɵproperty("EntityName", ctx.appName)("ShowPropertiesButton", false);
244
252
  i0.ɵɵadvance(2);
245
253
  i0.ɵɵproperty("items", ctx.items)("categoryEntityID", ctx.categoryEntityID)("title", ctx.pageTitle)("CategoryEntityName", ctx.categoryEntityName)("selectedFolderID", ctx.selectedFolderID)("showLoader", ctx.showLoader)("viewingResource", false)("displayAsGrid", ctx.displayAsGrid);
254
+ i0.ɵɵadvance();
255
+ i0.ɵɵproperty("ShowPropertiesButton", false);
246
256
  } }, dependencies: [i2.NgForOf, i4.ButtonComponent, i5.UserViewPropertiesDialogComponent, i6.GenericBrowserListComponent], styles: [".app-container[_ngcontent-%COMP%] {\n padding: 10px;\n}\n \n.entity-list[_ngcontent-%COMP%] {\n width: 500px;\n}\n.favorites-list[_ngcontent-%COMP%] {\n width: 400px;\n}\n\n.cloumn[_ngcontent-%COMP%] {\n flex-direction: column;\n}\n.example-col[_ngcontent-%COMP%] {\n overflow-x: auto;\n}\n.example-col[_ngcontent-%COMP%] .k-selected[_ngcontent-%COMP%] {\n font-weight: 800;\n color: var(--tdata-color);\n border-bottom: 3px solid var(--border-blue) !important;\n background: var(--white-color);\n}\n\n.margin-top-neg-20[_ngcontent-%COMP%] {\n margin-top: -20px;\n padding: 0px !important\n}", ".main-area[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view[_ngcontent-%COMP%] {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n .list-view .k-listview-header, .list-view .k-listview-footer {\n border: none;\n}\n .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header[_ngcontent-%COMP%] {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\n color: var(--sideNav);\n}\n.card-wrapper[_ngcontent-%COMP%] {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}"] });
247
257
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ApplicationViewComponent, [{
248
258
  type: Component,
249
- args: [{ selector: 'application-view', template: "<div class=\"app-container\">\n <div class=\"card-header-entity cloumn\">\n <div class=\"title-wrap\">\n <h1>{{appNameFromURL}}</h1>\n </div>\n <div class=\"row\" #entityRow style=\"max-width: 100%;\">\n <div class=\"col-xs-12 col-sm-6 example-col\">\n <button\n *ngFor=\"let button of AppEntityButtons\"\n kendoButton\n fillMode=\"flat\"\n [toggleable]=\"true\"\n [selected]=\"button.Selected\"\n (click)=\"onAppEntityButtonClicked(button)\"\n >\n <span>\n {{button.Name}}\n </span>\n </button>\n </div>\n </div>\n </div>\n <mj-user-view-properties-dialog [EntityName]=\"this.appName\" [ShowPropertiesButton]=\"false\" (dialogClosed)=\"OnViewPropertiesDialogClose($event)\">\n </mj-user-view-properties-dialog>\n <div class=\"main-area margin-top-neg-20\">\n <app-generic-browser-list \n iconName=\"aggregateFields\" \n [items]=\"items\"\n [categoryEntityID]=\"categoryEntityID\"\n addText=\"Create New View\"\n ItemEntityName=\"User Views\"\n resourceName=\"View\"\n [title]=\"pageTitle\"\n [CategoryEntityName]=\"categoryEntityName\"\n (itemClickEvent)=\"onItemClick($event)\" \n [selectedFolderID]=\"selectedFolderID\"\n [showLoader]=\"showLoader\"\n [viewingResource]=false\n [displayAsGrid]=\"displayAsGrid\"\n (AfterAddFolderEvent)=\"onEvent($event)\"\n (AfterAddItemEvent)=\"onEvent($event)\"\n (AfterDeleteItemEvent)=\"onEvent($event)\"\n (AfterDeleteFolderEvent)=\"onEvent($event)\"\n (viewModeChangeEvent)=\"onViewModeChange($event)\"\n (BeforeAddItemEvent)=\"createNewView($event)\"\n (BeforeUpdateItemEvent)=\"editView($event)\"\n />\n </div>\n</div>\n", styles: [".app-container {\n padding: 10px;\n}\n \n.entity-list {\n width: 500px;\n}\n.favorites-list {\n width: 400px;\n}\n\n.cloumn {\n flex-direction: column;\n}\n.example-col {\n overflow-x: auto;\n}\n.example-col .k-selected {\n font-weight: 800;\n color: var(--tdata-color);\n border-bottom: 3px solid var(--border-blue) !important;\n background: var(--white-color);\n}\n\n.margin-top-neg-20 {\n margin-top: -20px;\n padding: 0px !important\n}", "\n.main-area {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n::ng-deep .list-view .k-listview-header, \n::ng-deep .list-view .k-listview-footer {\n border: none;\n}\n::ng-deep .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header,\n.footer {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header .head-tag {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header .count {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card .view-icon {\n color: var(--sideNav);\n}\n.card-wrapper {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper .k-card-body {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper .view-card {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card .btn-wrapper {\n display: flex;\n align-items: center;\n}\n\n.k-card-body .view-card-content h5 {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body .view-card-content p {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area .card-list {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}\n"] }]
259
+ args: [{ selector: 'application-view', template: "<div class=\"app-container\">\n <div class=\"card-header-entity cloumn\">\n <div class=\"title-wrap\">\n <h1>{{appNameFromURL}}</h1>\n </div>\n <div class=\"row\" #entityRow style=\"max-width: 100%;\">\n <div class=\"col-xs-12 col-sm-6 example-col\">\n <button\n *ngFor=\"let button of AppEntityButtons\"\n kendoButton\n fillMode=\"flat\"\n [toggleable]=\"true\"\n [selected]=\"button.Selected\"\n (click)=\"onAppEntityButtonClicked(button)\"\n >\n <span>\n {{button.Name}}\n </span>\n </button>\n </div>\n </div>\n </div>\n <div class=\"main-area margin-top-neg-20\">\n <app-generic-browser-list \n iconName=\"aggregateFields\" \n [items]=\"items\"\n [categoryEntityID]=\"categoryEntityID\"\n addText=\"Create New View\"\n ItemEntityName=\"User Views\"\n resourceName=\"View\"\n [title]=\"pageTitle\"\n [CategoryEntityName]=\"categoryEntityName\"\n (itemClickEvent)=\"onItemClick($event)\" \n [selectedFolderID]=\"selectedFolderID\"\n [showLoader]=\"showLoader\"\n [viewingResource]=false\n [displayAsGrid]=\"displayAsGrid\"\n (AfterAddFolderEvent)=\"onEvent($event)\"\n (AfterAddItemEvent)=\"onEvent($event)\"\n (AfterDeleteItemEvent)=\"onEvent($event)\"\n (AfterDeleteFolderEvent)=\"onEvent($event)\"\n (viewModeChangeEvent)=\"onViewModeChange($event)\"\n (BeforeAddItemEvent)=\"createNewView($event)\"\n (BeforeUpdateItemEvent)=\"editView($event)\"\n />\n </div>\n <mj-user-view-properties-dialog #userViewDialog [ShowPropertiesButton]=\"false\"(dialogClosed)=\"OnViewPropertiesDialogClose($event)\"></mj-user-view-properties-dialog>\n</div>\n", styles: [".app-container {\n padding: 10px;\n}\n \n.entity-list {\n width: 500px;\n}\n.favorites-list {\n width: 400px;\n}\n\n.cloumn {\n flex-direction: column;\n}\n.example-col {\n overflow-x: auto;\n}\n.example-col .k-selected {\n font-weight: 800;\n color: var(--tdata-color);\n border-bottom: 3px solid var(--border-blue) !important;\n background: var(--white-color);\n}\n\n.margin-top-neg-20 {\n margin-top: -20px;\n padding: 0px !important\n}", "\n.main-area {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n::ng-deep .list-view .k-listview-header, \n::ng-deep .list-view .k-listview-footer {\n border: none;\n}\n::ng-deep .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header,\n.footer {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header .head-tag {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header .count {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card .view-icon {\n color: var(--sideNav);\n}\n.card-wrapper {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper .k-card-body {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper .view-card {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card .btn-wrapper {\n display: flex;\n align-items: center;\n}\n\n.k-card-body .view-card-content h5 {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body .view-card-content p {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity .title-wrap h1 {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity .title-wrap {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity .title-wrap p {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area .card-list {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}\n"] }]
250
260
  }], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.Location }, { type: i3.SharedService }], { entityRowRef: [{
251
261
  type: ViewChild,
252
262
  args: ['entityRow']
253
263
  }], viewPropertiesDialog: [{
254
264
  type: ViewChild,
255
- args: [UserViewPropertiesDialogComponent, { static: true }]
265
+ args: ['userViewDialog']
256
266
  }] }); })();
257
267
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ApplicationViewComponent, { className: "ApplicationViewComponent", filePath: "src/lib/app-view/application-view.component.ts", lineNumber: 17 }); })();
258
268
  //This is a simple wrapper for the ApplicationEntityInfo class
@@ -1,4 +1,4 @@
1
- import { Folder, Item } from "../../generic/Item.types";
1
+ import { Folder, Item, ItemType } from "../../generic/Item.types";
2
2
  import { Router, Params, ActivatedRoute } from '@angular/router';
3
3
  import { BaseEvent } from "../../generic/Events.types";
4
4
  export declare class BaseBrowserComponent {
@@ -23,7 +23,7 @@ export declare class BaseBrowserComponent {
23
23
  protected LoadData(params?: LoadDataParams): Promise<void>;
24
24
  protected sortItems(items: Item[]): Item[];
25
25
  protected RunView(entityName: string, extraFilter: string | undefined): Promise<any[]>;
26
- protected createItemsFromEntityData(entityData: any[]): Item[];
26
+ protected createItemsFromEntityData(entityData: any[], itemType: ItemType): Item[];
27
27
  protected createItemsFromFolders(folders: Folder[]): Item[];
28
28
  protected Navigate(item: Item, router: Router, dataID: string): void;
29
29
  onEvent(event: BaseEvent): void;
@@ -31,6 +31,7 @@ export declare class BaseBrowserComponent {
31
31
  }
32
32
  export type LoadDataParams = {
33
33
  entityItemFilter?: string;
34
+ entityItemType?: ItemType;
34
35
  categoryItemFilter?: string;
35
36
  skiploadEntityData?: boolean;
36
37
  skipLoadCategoryData?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"base-browser-component.d.ts","sourceRoot":"","sources":["../../../src/lib/base-browser-component/base-browser-component.ts"],"names":[],"mappings":"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AG,EAAE,CAAC;IAmB5F,SAAS,CAAC,yBAAyB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE;IAU9D,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE;IAa3D,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAe7D,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAa/B,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAGlD;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA"}
1
+ {"version":3,"file":"base-browser-component.d.ts","sourceRoot":"","sources":["../../../src/lib/base-browser-component/base-browser-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAyD,MAAM,4BAA4B,CAAC;AAE9G,qBAAa,oBAAoB;IACtB,UAAU,EAAE,OAAO,CAAS;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACvC,SAAS,EAAE,MAAM,CAAM;IAE9B,SAAS,CAAC,QAAQ,EAAE,MAA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AC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA"}
@@ -63,7 +63,7 @@ export class BaseBrowserComponent {
63
63
  this.showLoader = true;
64
64
  }
65
65
  this.items = [];
66
- if (!(params === null || params === void 0 ? void 0 : params.skipLoadCategoryData)) {
66
+ if (!(params === null || params === void 0 ? void 0 : params.skipLoadCategoryData) && this.categoryEntityName) {
67
67
  const categories = yield this.RunView(this.categoryEntityName, categoryItemFilter);
68
68
  let folderItems = this.createItemsFromFolders(categories);
69
69
  if (params === null || params === void 0 ? void 0 : params.sortItemsAfterLoad) {
@@ -74,7 +74,8 @@ export class BaseBrowserComponent {
74
74
  }
75
75
  if (!(params === null || params === void 0 ? void 0 : params.skiploadEntityData)) {
76
76
  const entityData = yield this.RunView(this.itemEntityName, entityItemFilter);
77
- let resourceItems = this.createItemsFromEntityData(entityData);
77
+ const itemType = (params === null || params === void 0 ? void 0 : params.entityItemType) || ItemType.Entity;
78
+ let resourceItems = this.createItemsFromEntityData(entityData, itemType);
78
79
  if (params === null || params === void 0 ? void 0 : params.sortItemsAfterLoad) {
79
80
  resourceItems = this.sortItems(resourceItems);
80
81
  }
@@ -117,10 +118,10 @@ export class BaseBrowserComponent {
117
118
  return [];
118
119
  });
119
120
  }
120
- createItemsFromEntityData(entityData) {
121
+ createItemsFromEntityData(entityData, itemType) {
121
122
  let items = [];
122
123
  for (const data of entityData) {
123
- let item = new Item(data, ItemType.Entity);
124
+ let item = new Item(data, itemType);
124
125
  items.push(item);
125
126
  }
126
127
  return items;
@@ -1 +1 @@
1
- {"version":3,"file":"resource-container-component.d.ts","sourceRoot":"","sources":["../../../src/lib/generic/resource-container-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAY,aAAa,EAA+B,MAAM,eAAe,CAAC;AAChI,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAyB,YAAY,EAAE,MAAM,2BAA2B,CAAC;;AAEhF,qBAIa,0BAA2B,YAAW,SAAS;IAqBvC,aAAa,EAAE,aAAa;IApB/B,IAAI,EAAG,YAAY,CAAC;IACpB,SAAS,EAAE,OAAO,CAAS;IAC1B,mBAAmB,EAAE,YAAY,CAAC,UAAU,CAAC,CAAkC;IAC/E,qBAAqB,EAAE,YAAY,CAAC,0BAA0B,CAAC,CAAkD;IACjH,sBAAsB,EAAE,YAAY,CAAC,0BAA0B,CAAC,CAAkD;IAEnI,OAAO,CAAC,YAAY,CAAkB;IACtC,IAAW,WAAW,IAAI,OAAO,CAEhC;IAED,OAAO,CAAC,aAAa,CAAkB;IACvC,IAAW,YAAY,IAAI,OAAO,CAEjC;IAEuC,iBAAiB,EAAG,SAAS,CAAC;IAEtE,OAAO,CAAC,OAAO,CAAkB;gBAEd,aAAa,EAAE,aAAa;IAE9C,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAe1C,aAAa;yCAtCF,0BAA0B;2CAA1B,0BAA0B;CA+EtC"}
1
+ {"version":3,"file":"resource-container-component.d.ts","sourceRoot":"","sources":["../../../src/lib/generic/resource-container-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAY,aAAa,EAA+B,MAAM,eAAe,CAAC;AAChI,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAyB,YAAY,EAAE,MAAM,2BAA2B,CAAC;;AAEhF,qBAIa,0BAA2B,YAAW,SAAS;IAqBvC,aAAa,EAAE,aAAa;IApB/B,IAAI,EAAG,YAAY,CAAC;IACpB,SAAS,EAAE,OAAO,CAAS;IAC1B,mBAAmB,EAAE,YAAY,CAAC,UAAU,CAAC,CAAkC;IAC/E,qBAAqB,EAAE,YAAY,CAAC,0BAA0B,CAAC,CAAkD;IACjH,sBAAsB,EAAE,YAAY,CAAC,0BAA0B,CAAC,CAAkD;IAEnI,OAAO,CAAC,YAAY,CAAkB;IACtC,IAAW,WAAW,IAAI,OAAO,CAEhC;IAED,OAAO,CAAC,aAAa,CAAkB;IACvC,IAAW,YAAY,IAAI,OAAO,CAEjC;IAEuC,iBAAiB,EAAG,SAAS,CAAC;IAEtE,OAAO,CAAC,OAAO,CAAkB;gBAEd,aAAa,EAAE,aAAa;IAE9C,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAe1C,aAAa;yCAtCF,0BAA0B;2CAA1B,0BAA0B;CA8EtC"}
@@ -3,9 +3,11 @@ import { SharedService } from '@memberjunction/ng-shared';
3
3
  import { Item } from '../../generic/Item.types';
4
4
  import { AfterAddFolderEvent, AfterAddItemEvent, AfterDeleteFolderEvent, AfterDeleteItemEvent, AfterUpdateFolderEvent, AfterUpdateItemEvent, BeforeAddFolderEvent, BeforeAddItemEvent, BeforeDeleteFolderEvent, BeforeDeleteItemEvent, BeforeUpdateFolderEvent, BeforeUpdateItemEvent } from '../../generic/Events.types';
5
5
  import { CellClickEvent } from '@progress/kendo-angular-grid';
6
+ import { EntityFormDialogComponent } from '@memberjunction/ng-entity-form-dialog';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class GenericBrowserListComponent implements OnInit {
8
9
  sharedService: SharedService;
10
+ entityFormDialogRef: EntityFormDialogComponent | undefined;
9
11
  showLoader: boolean;
10
12
  itemType: string;
11
13
  title: string | undefined;
@@ -59,6 +61,8 @@ export declare class GenericBrowserListComponent implements OnInit {
59
61
  createFolderDialogOpened: boolean;
60
62
  private newFolderText;
61
63
  private resourceTypes;
64
+ private createNewRecordName;
65
+ entityObjectName: string;
62
66
  createButtonDropdownData: {
63
67
  text: string;
64
68
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"generic-browser-list.component.d.ts","sourceRoot":"","sources":["../../../src/lib/generic-browser-list/generic-browser-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAiB,MAAM,eAAe,CAAC;AAEtF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAU,IAAI,EAAa,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAa,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,qBAAqB,EAAc,MAAM,4BAA4B,CAAC;AAEjV,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;;AAG9D,qBAKa,2BAA4B,YAAW,MAAM;IAkErC,aAAa,EAAE,aAAa;IAjE/B,UAAU,EAAE,OAAO,CAAQ;IAC3B,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAM;IAC/B,KAAK,EAAE,GAAG,EAAE,CAAM;IAClB,QAAQ,EAAE,MAAM,CAAU;IAC1B,gBAAgB,EAAE,OAAO,CAAS;IAClC,iBAAiB,EAAE,OAAO,CAAS;IACnC,OAAO,EAAE,MAAM,CAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAa;IAC7B,cAAc,EAAE,MAAM,CAAM;IAC5B,kBAAkB,EAAE,MAAM,CAAM;IAChC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACvC,iBAAiB,EAAE,OAAO,CA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