@memberjunction/ng-explorer-core 2.47.0 → 2.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/app-routing.module.js +40 -53
  2. package/dist/app-routing.module.js.map +1 -1
  3. package/dist/generic/Events.types.js +104 -0
  4. package/dist/generic/Events.types.js.map +1 -1
  5. package/dist/generic/Item.types.js +28 -14
  6. package/dist/generic/Item.types.js.map +1 -1
  7. package/dist/generic/PathData.types.js +5 -0
  8. package/dist/generic/PathData.types.js.map +1 -1
  9. package/dist/generic/app-nav-view.types.js +3 -1
  10. package/dist/generic/app-nav-view.types.js.map +1 -1
  11. package/dist/lib/app-view/application-view.component.js +273 -294
  12. package/dist/lib/app-view/application-view.component.js.map +1 -1
  13. package/dist/lib/auth-button/auth-button.component.js +13 -22
  14. package/dist/lib/auth-button/auth-button.component.js.map +1 -1
  15. package/dist/lib/base-browser-component/base-browser-component.js +96 -108
  16. package/dist/lib/base-browser-component/base-browser-component.js.map +1 -1
  17. package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +106 -124
  18. package/dist/lib/dashboard-browser-component/dashboard-browser.component.js.map +1 -1
  19. package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js +257 -281
  20. package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js.map +1 -1
  21. package/dist/lib/data-browser-component/data-browser.component.js +122 -137
  22. package/dist/lib/data-browser-component/data-browser.component.js.map +1 -1
  23. package/dist/lib/expansion-panel-component/expansion-panel-component.js +100 -117
  24. package/dist/lib/expansion-panel-component/expansion-panel-component.js.map +1 -1
  25. package/dist/lib/favorites/favorites.component.js +44 -54
  26. package/dist/lib/favorites/favorites.component.js.map +1 -1
  27. package/dist/lib/files/files.component.js +12 -11
  28. package/dist/lib/files/files.component.js.map +1 -1
  29. package/dist/lib/generic/form-toolbar.js +21 -20
  30. package/dist/lib/generic/form-toolbar.js.map +1 -1
  31. package/dist/lib/generic/resource-container-component.js +23 -20
  32. package/dist/lib/generic/resource-container-component.js.map +1 -1
  33. package/dist/lib/generic-browse-list/generic-browse-list.component.js +48 -46
  34. package/dist/lib/generic-browse-list/generic-browse-list.component.js.map +1 -1
  35. package/dist/lib/generic-browser-list/generic-browser-list.component.js +353 -386
  36. package/dist/lib/generic-browser-list/generic-browser-list.component.js.map +1 -1
  37. package/dist/lib/guards/auth-guard.service.js +4 -2
  38. package/dist/lib/guards/auth-guard.service.js.map +1 -1
  39. package/dist/lib/guards/entities.guard.js +1 -1
  40. package/dist/lib/guards/entities.guard.js.map +1 -1
  41. package/dist/lib/header/MSFT_UserImageService.js +4 -3
  42. package/dist/lib/header/MSFT_UserImageService.js.map +1 -1
  43. package/dist/lib/header/header.component.js +111 -121
  44. package/dist/lib/header/header.component.js.map +1 -1
  45. package/dist/lib/home-component/home.component.js +34 -42
  46. package/dist/lib/home-component/home.component.js.map +1 -1
  47. package/dist/lib/home-wrapper/home-wrapper.component.js +6 -6
  48. package/dist/lib/home-wrapper/home-wrapper.component.js.map +1 -1
  49. package/dist/lib/list-view/list-view.component.js +132 -152
  50. package/dist/lib/list-view/list-view.component.js.map +1 -1
  51. package/dist/lib/navigation/navigation.component.js +568 -615
  52. package/dist/lib/navigation/navigation.component.js.map +1 -1
  53. package/dist/lib/query-browser-component/query-browser.component.js +30 -39
  54. package/dist/lib/query-browser-component/query-browser.component.js.map +1 -1
  55. package/dist/lib/report-browser-component/report-browser.component.js +18 -30
  56. package/dist/lib/report-browser-component/report-browser.component.js.map +1 -1
  57. package/dist/lib/resource-browser/resource-browser.component.js +435 -457
  58. package/dist/lib/resource-browser/resource-browser.component.js.map +1 -1
  59. package/dist/lib/resource-wrappers/dashboard-resource.component.js +12 -25
  60. package/dist/lib/resource-wrappers/dashboard-resource.component.js.map +1 -1
  61. package/dist/lib/resource-wrappers/list-detail-resource.component.js +18 -31
  62. package/dist/lib/resource-wrappers/list-detail-resource.component.js.map +1 -1
  63. package/dist/lib/resource-wrappers/query-resource.component.js +15 -28
  64. package/dist/lib/resource-wrappers/query-resource.component.js.map +1 -1
  65. package/dist/lib/resource-wrappers/record-resource.component.js +35 -47
  66. package/dist/lib/resource-wrappers/record-resource.component.js.map +1 -1
  67. package/dist/lib/resource-wrappers/report-resource.component.js +15 -28
  68. package/dist/lib/resource-wrappers/report-resource.component.js.map +1 -1
  69. package/dist/lib/resource-wrappers/search-results-resource.component.js +21 -34
  70. package/dist/lib/resource-wrappers/search-results-resource.component.js.map +1 -1
  71. package/dist/lib/resource-wrappers/view-resource.component.js +23 -37
  72. package/dist/lib/resource-wrappers/view-resource.component.js.map +1 -1
  73. package/dist/lib/single-application/single-application.component.js +15 -20
  74. package/dist/lib/single-application/single-application.component.js.map +1 -1
  75. package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +81 -95
  76. package/dist/lib/single-dashboard/Components/add-item/add-item.component.js.map +1 -1
  77. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +28 -29
  78. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js.map +1 -1
  79. package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +51 -64
  80. package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js.map +1 -1
  81. package/dist/lib/single-dashboard/single-dashboard.component.js +158 -165
  82. package/dist/lib/single-dashboard/single-dashboard.component.js.map +1 -1
  83. package/dist/lib/single-entity/single-entity.component.js +106 -118
  84. package/dist/lib/single-entity/single-entity.component.js.map +1 -1
  85. package/dist/lib/single-list-detail/single-list-detail.component.js +265 -287
  86. package/dist/lib/single-list-detail/single-list-detail.component.js.map +1 -1
  87. package/dist/lib/single-query/single-query.component.js +35 -44
  88. package/dist/lib/single-query/single-query.component.js.map +1 -1
  89. package/dist/lib/single-record/single-record.component.js +64 -73
  90. package/dist/lib/single-record/single-record.component.js.map +1 -1
  91. package/dist/lib/single-report/single-report.component.js +33 -43
  92. package/dist/lib/single-report/single-report.component.js.map +1 -1
  93. package/dist/lib/single-search-result/single-search-result.component.js +18 -30
  94. package/dist/lib/single-search-result/single-search-result.component.js.map +1 -1
  95. package/dist/lib/single-view/single-view.component.js +107 -124
  96. package/dist/lib/single-view/single-view.component.js.map +1 -1
  97. package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.js +197 -210
  98. package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.js.map +1 -1
  99. package/dist/lib/user-notifications/user-notifications.component.js +137 -155
  100. package/dist/lib/user-notifications/user-notifications.component.js.map +1 -1
  101. package/dist/lib/user-profile/user-profile.component.js +10 -8
  102. package/dist/lib/user-profile/user-profile.component.js.map +1 -1
  103. package/dist/module.js +51 -51
  104. package/dist/module.js.map +1 -1
  105. package/package.json +25 -25
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { Component, Input } from '@angular/core';
11
2
  import { Metadata, RunView } from "@memberjunction/core";
12
3
  import { ItemType, TreeFolder, TreeItem } from '../../generic/Item.types';
@@ -15,118 +6,110 @@ import * as i1 from "@memberjunction/ng-shared";
15
6
  import * as i2 from "@angular/router";
16
7
  import * as i3 from "@progress/kendo-angular-treeview";
17
8
  export class ExpansionPanelComponent {
9
+ sharedService;
10
+ router;
11
+ items = [];
18
12
  constructor(sharedService, router) {
19
13
  this.sharedService = sharedService;
20
14
  this.router = router;
21
- this.items = [];
22
15
  }
23
16
  ngOnInit() {
24
17
  }
25
- onTreeNodeSelect(event) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- let selectedItem = this.getTreeItem(event.index);
28
- if (!selectedItem) {
29
- return;
30
- }
31
- if (selectedItem.Type === ItemType.Application) {
32
- let application = selectedItem.Data;
33
- this.router.navigate(["app", application.Name]);
34
- }
35
- else if (selectedItem.Type === ItemType.Entity) {
36
- //we need to get the root item to get the applicationName
37
- const keys = event.index.split("_");
38
- let rootItem = this.items[parseInt(keys[0])];
39
- let application = rootItem.Data;
40
- let entity = selectedItem.Data;
41
- this.router.navigate(["app", application.Name, entity.Entity]);
42
- }
43
- else if (selectedItem.Type === ItemType.UserView) {
44
- let userView = selectedItem.Data;
45
- this.router.navigate(["resource", "view", userView.ID]);
46
- }
47
- else if (selectedItem.Type === ItemType.Folder) {
48
- //we need to get the root item to get the applicationName
49
- const keys = event.index.split("_");
50
- let rootItem = this.items[parseInt(keys[0])];
51
- let application = rootItem.Data;
52
- let folder = selectedItem.Data;
53
- this.router.navigate(["app", application.Name, folder.ID]);
54
- }
55
- });
18
+ async onTreeNodeSelect(event) {
19
+ let selectedItem = this.getTreeItem(event.index);
20
+ if (!selectedItem) {
21
+ return;
22
+ }
23
+ if (selectedItem.Type === ItemType.Application) {
24
+ let application = selectedItem.Data;
25
+ this.router.navigate(["app", application.Name]);
26
+ }
27
+ else if (selectedItem.Type === ItemType.Entity) {
28
+ //we need to get the root item to get the applicationName
29
+ const keys = event.index.split("_");
30
+ let rootItem = this.items[parseInt(keys[0])];
31
+ let application = rootItem.Data;
32
+ let entity = selectedItem.Data;
33
+ this.router.navigate(["app", application.Name, entity.Entity]);
34
+ }
35
+ else if (selectedItem.Type === ItemType.UserView) {
36
+ let userView = selectedItem.Data;
37
+ this.router.navigate(["resource", "view", userView.ID]);
38
+ }
39
+ else if (selectedItem.Type === ItemType.Folder) {
40
+ //we need to get the root item to get the applicationName
41
+ const keys = event.index.split("_");
42
+ let rootItem = this.items[parseInt(keys[0])];
43
+ let application = rootItem.Data;
44
+ let folder = selectedItem.Data;
45
+ this.router.navigate(["app", application.Name, folder.ID]);
46
+ }
56
47
  }
57
- onTreeNodeExpand(event) {
58
- return __awaiter(this, void 0, void 0, function* () {
59
- let selectedItem = this.getTreeItem(event.index);
60
- if (!selectedItem) {
61
- return;
62
- }
63
- if (selectedItem.Type === ItemType.Application) {
64
- return;
65
- }
66
- if (selectedItem.Type === ItemType.Entity) {
67
- selectedItem.ChildItems = [];
68
- let data = selectedItem.Data;
69
- let treeNodeFolders = yield this.getFoldersForTreeNode(data.EntityID, null);
70
- let treeNodeUserViews = yield this.getUserViewsForTreeNode(data.EntityID, null);
71
- selectedItem.ChildItems.push(...treeNodeFolders);
72
- selectedItem.ChildItems.push(...treeNodeUserViews);
73
- }
74
- else if (selectedItem.Type === ItemType.Folder) {
75
- selectedItem.ChildItems = [];
76
- let data = selectedItem.Data;
77
- let parentFolderID = data.ParentFolderID ? data.ParentFolderID.toString() : null;
78
- let treeNodeFolders = yield this.getFoldersForTreeNode(data.EntityID, parentFolderID);
79
- let treeNodeUserViews = yield this.getUserViewsForTreeNode(data.EntityID, data.ID.toString());
80
- selectedItem.ChildItems.push(...treeNodeFolders);
81
- selectedItem.ChildItems.push(...treeNodeUserViews);
82
- }
83
- this.sortItems(selectedItem.ChildItems);
84
- //this is to simply refresh the treeview and show the new items
85
- this.items = [...this.items];
86
- });
48
+ async onTreeNodeExpand(event) {
49
+ let selectedItem = this.getTreeItem(event.index);
50
+ if (!selectedItem) {
51
+ return;
52
+ }
53
+ if (selectedItem.Type === ItemType.Application) {
54
+ return;
55
+ }
56
+ if (selectedItem.Type === ItemType.Entity) {
57
+ selectedItem.ChildItems = [];
58
+ let data = selectedItem.Data;
59
+ let treeNodeFolders = await this.getFoldersForTreeNode(data.EntityID, null);
60
+ let treeNodeUserViews = await this.getUserViewsForTreeNode(data.EntityID, null);
61
+ selectedItem.ChildItems.push(...treeNodeFolders);
62
+ selectedItem.ChildItems.push(...treeNodeUserViews);
63
+ }
64
+ else if (selectedItem.Type === ItemType.Folder) {
65
+ selectedItem.ChildItems = [];
66
+ let data = selectedItem.Data;
67
+ let parentFolderID = data.ParentFolderID ? data.ParentFolderID.toString() : null;
68
+ let treeNodeFolders = await this.getFoldersForTreeNode(data.EntityID, parentFolderID);
69
+ let treeNodeUserViews = await this.getUserViewsForTreeNode(data.EntityID, data.ID.toString());
70
+ selectedItem.ChildItems.push(...treeNodeFolders);
71
+ selectedItem.ChildItems.push(...treeNodeUserViews);
72
+ }
73
+ this.sortItems(selectedItem.ChildItems);
74
+ //this is to simply refresh the treeview and show the new items
75
+ this.items = [...this.items];
87
76
  }
88
- getFoldersForTreeNode(entityID, selectedFolderID) {
89
- return __awaiter(this, void 0, void 0, function* () {
90
- const md = new Metadata();
91
- const categoryIDFilter = selectedFolderID ? `ParentID='${selectedFolderID}'` : 'ParentID IS NULL';
92
- const userViewFilter = `EntityID = '${entityID}' AND ` + categoryIDFilter;
93
- const viewResults = yield this.RunView('User View Categories', userViewFilter);
94
- return viewResults.map((result) => {
95
- let treeFolder = new TreeFolder(result.EntityID, result.ID, result.Name);
96
- treeFolder.ParentFolderID = result.ID;
97
- let child = new TreeItem(treeFolder, ItemType.Folder);
98
- //we need a dummy child node so that the expand arrow appears
99
- child.ChildItems.push(new TreeItem({ Name: 'Stub Node' }, ItemType.StubData));
100
- return child;
101
- });
77
+ async getFoldersForTreeNode(entityID, selectedFolderID) {
78
+ const md = new Metadata();
79
+ const categoryIDFilter = selectedFolderID ? `ParentID='${selectedFolderID}'` : 'ParentID IS NULL';
80
+ const userViewFilter = `EntityID = '${entityID}' AND ` + categoryIDFilter;
81
+ const viewResults = await this.RunView('User View Categories', userViewFilter);
82
+ return viewResults.map((result) => {
83
+ let treeFolder = new TreeFolder(result.EntityID, result.ID, result.Name);
84
+ treeFolder.ParentFolderID = result.ID;
85
+ let child = new TreeItem(treeFolder, ItemType.Folder);
86
+ //we need a dummy child node so that the expand arrow appears
87
+ child.ChildItems.push(new TreeItem({ Name: 'Stub Node' }, ItemType.StubData));
88
+ return child;
102
89
  });
103
90
  }
104
- getUserViewsForTreeNode(entityID, selectedFolderID) {
105
- return __awaiter(this, void 0, void 0, function* () {
106
- const md = new Metadata();
107
- const categoryIDFilter = selectedFolderID ? `CategoryID='${selectedFolderID}'` : 'CategoryID IS NULL';
108
- const userViewFilter = `UserID = '${md.CurrentUser.ID}' AND EntityID = '${entityID}' AND ` + categoryIDFilter;
109
- const viewResults = yield this.RunView('User Views', userViewFilter);
110
- return viewResults.map((result) => {
111
- let treeItem = new TreeItem(result, ItemType.UserView);
112
- return treeItem;
113
- });
91
+ async getUserViewsForTreeNode(entityID, selectedFolderID) {
92
+ const md = new Metadata();
93
+ const categoryIDFilter = selectedFolderID ? `CategoryID='${selectedFolderID}'` : 'CategoryID IS NULL';
94
+ const userViewFilter = `UserID = '${md.CurrentUser.ID}' AND EntityID = '${entityID}' AND ` + categoryIDFilter;
95
+ const viewResults = await this.RunView('User Views', userViewFilter);
96
+ return viewResults.map((result) => {
97
+ let treeItem = new TreeItem(result, ItemType.UserView);
98
+ return treeItem;
114
99
  });
115
100
  }
116
- RunView(entityName, extraFilter) {
117
- return __awaiter(this, void 0, void 0, function* () {
118
- const rv = new RunView();
119
- const result = yield rv.RunView({
120
- EntityName: entityName,
121
- ExtraFilter: extraFilter
122
- });
123
- if (result && result.Success) {
124
- return result.Results;
125
- }
126
- else {
127
- return [];
128
- }
101
+ async RunView(entityName, extraFilter) {
102
+ const rv = new RunView();
103
+ const result = await rv.RunView({
104
+ EntityName: entityName,
105
+ ExtraFilter: extraFilter
129
106
  });
107
+ if (result && result.Success) {
108
+ return result.Results;
109
+ }
110
+ else {
111
+ return [];
112
+ }
130
113
  }
131
114
  //maybe pass in a sort function for custom sorting?
132
115
  sortItems(items) {
@@ -155,16 +138,16 @@ export class ExpansionPanelComponent {
155
138
  }
156
139
  return selectedItem;
157
140
  }
141
+ static ɵfac = function ExpansionPanelComponent_Factory(t) { return new (t || ExpansionPanelComponent)(i0.ɵɵdirectiveInject(i1.SharedService), i0.ɵɵdirectiveInject(i2.Router)); };
142
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExpansionPanelComponent, selectors: [["expansion-panel-component"]], inputs: { items: "items" }, decls: 2, vars: 1, consts: [[1, "panelbar-wrapper"], ["textField", "Name", "kendoTreeViewExpandable", "", "kendoTreeViewHierarchyBinding", "", "childrenField", "ChildItems", 3, "expand", "selectionChange", "nodes"]], template: function ExpansionPanelComponent_Template(rf, ctx) { if (rf & 1) {
143
+ i0.ɵɵelementStart(0, "div", 0)(1, "kendo-treeview", 1);
144
+ i0.ɵɵlistener("expand", function ExpansionPanelComponent_Template_kendo_treeview_expand_1_listener($event) { return ctx.onTreeNodeExpand($event); })("selectionChange", function ExpansionPanelComponent_Template_kendo_treeview_selectionChange_1_listener($event) { return ctx.onTreeNodeSelect($event); });
145
+ i0.ɵɵelementEnd()();
146
+ } if (rf & 2) {
147
+ i0.ɵɵadvance();
148
+ i0.ɵɵproperty("nodes", ctx.items);
149
+ } }, dependencies: [i3.TreeViewComponent, i3.ExpandDirective, i3.HierarchyBindingDirective], styles: [".wrapper[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n \nkendo-expansionpanel[_ngcontent-%COMP%] {\n width: 300px;\n}\n \n.content[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.panelbar-wrapper[_ngcontent-%COMP%] {\n width: 274px;\n margin: 0 auto;\n height: calc(100vh - 80px);\n overflow-y: auto;\n padding: 16px 0;\n box-sizing: border-box;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item {\n padding: 5px 14px !important;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item div .k-treeview-toggle {\n margin: 0;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item div {\n color: var(--white-color);\n}\n\n .panelbar-wrapper .k-treeview-group .k-treeview-item:hover {\n background: rgba(255, 255, 255, 0.15);\n}\n\n .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf {\n white-space: pre-line;\n box-shadow: none;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf:hover, \n .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf:focus {\n box-shadow: none;\n background: transparent;\n color: var(--white-color);\n}"] });
158
150
  }
159
- ExpansionPanelComponent.ɵfac = function ExpansionPanelComponent_Factory(t) { return new (t || ExpansionPanelComponent)(i0.ɵɵdirectiveInject(i1.SharedService), i0.ɵɵdirectiveInject(i2.Router)); };
160
- ExpansionPanelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExpansionPanelComponent, selectors: [["expansion-panel-component"]], inputs: { items: "items" }, decls: 2, vars: 1, consts: [[1, "panelbar-wrapper"], ["textField", "Name", "kendoTreeViewExpandable", "", "kendoTreeViewHierarchyBinding", "", "childrenField", "ChildItems", 3, "expand", "selectionChange", "nodes"]], template: function ExpansionPanelComponent_Template(rf, ctx) { if (rf & 1) {
161
- i0.ɵɵelementStart(0, "div", 0)(1, "kendo-treeview", 1);
162
- i0.ɵɵlistener("expand", function ExpansionPanelComponent_Template_kendo_treeview_expand_1_listener($event) { return ctx.onTreeNodeExpand($event); })("selectionChange", function ExpansionPanelComponent_Template_kendo_treeview_selectionChange_1_listener($event) { return ctx.onTreeNodeSelect($event); });
163
- i0.ɵɵelementEnd()();
164
- } if (rf & 2) {
165
- i0.ɵɵadvance();
166
- i0.ɵɵproperty("nodes", ctx.items);
167
- } }, dependencies: [i3.TreeViewComponent, i3.ExpandDirective, i3.HierarchyBindingDirective], styles: [".wrapper[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n \nkendo-expansionpanel[_ngcontent-%COMP%] {\n width: 300px;\n}\n \n.content[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.panelbar-wrapper[_ngcontent-%COMP%] {\n width: 274px;\n margin: 0 auto;\n height: calc(100vh - 80px);\n overflow-y: auto;\n padding: 16px 0;\n box-sizing: border-box;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item {\n padding: 5px 14px !important;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item div .k-treeview-toggle {\n margin: 0;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item div {\n color: var(--white-color);\n}\n\n .panelbar-wrapper .k-treeview-group .k-treeview-item:hover {\n background: rgba(255, 255, 255, 0.15);\n}\n\n .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf {\n white-space: pre-line;\n box-shadow: none;\n}\n .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf:hover, \n .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf:focus {\n box-shadow: none;\n background: transparent;\n color: var(--white-color);\n}"] });
168
151
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExpansionPanelComponent, [{
169
152
  type: Component,
170
153
  args: [{ selector: 'expansion-panel-component', template: "<div class=\"panelbar-wrapper\">\n <kendo-treeview\n [nodes]=\"items\"\n textField=\"Name\"\n kendoTreeViewExpandable\n kendoTreeViewHierarchyBinding\n childrenField=\"ChildItems\"\n (expand)=\"onTreeNodeExpand($event)\"\n (selectionChange)=\"onTreeNodeSelect($event)\"\n >\n </kendo-treeview>\n</div>", styles: [".wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n \nkendo-expansionpanel {\n width: 300px;\n}\n \n.content {\n display: flex;\n}\n\n.panelbar-wrapper {\n width: 274px;\n margin: 0 auto;\n height: calc(100vh - 80px);\n overflow-y: auto;\n padding: 16px 0;\n box-sizing: border-box;\n}\n::ng-deep .panelbar-wrapper .k-treeview-group .k-treeview-item {\n padding: 5px 14px !important;\n}\n::ng-deep .panelbar-wrapper .k-treeview-group .k-treeview-item div .k-treeview-toggle {\n margin: 0;\n}\n::ng-deep .panelbar-wrapper .k-treeview-group .k-treeview-item div {\n color: var(--white-color);\n}\n\n::ng-deep .panelbar-wrapper .k-treeview-group .k-treeview-item:hover {\n background: rgba(255, 255, 255, 0.15);\n}\n\n::ng-deep .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf {\n white-space: pre-line;\n box-shadow: none;\n}\n::ng-deep .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf:hover,\n::ng-deep .panelbar-wrapper .k-treeview-group .k-treeview-item div > .k-treeview-leaf:focus {\n box-shadow: none;\n background: transparent;\n color: var(--white-color);\n}\n"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"expansion-panel-component.js","sourceRoot":"","sources":["../../../src/lib/expansion-panel-component/expansion-panel-component.ts","../../../src/lib/expansion-panel-component/expansion-panel-component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAgB,KAAK,EAAU,MAAM,eAAe,CAAC;AAEvE,OAAO,EAA0C,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEjG,OAAO,EAAgB,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;;;;;AAQxF,MAAM,OAAO,uBAAuB;IAIhC,YAAmB,aAA4B,EAAU,MAAc;QAApD,kBAAa,GAAb,aAAa,CAAe;QAAU,WAAM,GAAN,MAAM,CAAQ;QAFvD,UAAK,GAAe,EAAE,CAAC;IAEmC,CAAC;IAE3E,QAAQ;IACR,CAAC;IAEY,gBAAgB,CAAC,KAAU;;YACpC,IAAI,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACjD,IAAG,CAAC,YAAY,EAAC,CAAC;gBACd,OAAO;YACX,CAAC;YAED,IAAG,YAAY,CAAC,IAAI,KAAK,QAAQ,CAAC,WAAW,EAAC,CAAC;gBAC3C,IAAI,WAAW,GAAoB,YAAY,CAAC,IAAI,CAAC;gBACrD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;YACpD,CAAC;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AAC,CAAC,IAAI,EAAE,CAAC;gBAAC,OAAO,CAAC,CAAC,CAAC;YAAC,CAAC;YAClC,IAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;gBAAC,OAAO,CAAC,CAAC;YAAC,CAAC;YACjC,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;IACP,CAAC;IAED,0CAA0C;IAC1C,gCAAgC;IACxB,WAAW,CAAC,KAAa;QAC7B,MAAM,IAAI,GAAa,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,YAAY,GAAoB,IAAI,CAAC;QACzC,KAAI,MAAM,GAAG,IAAI,IAAI,EAAC,CAAC;YACnB,IAAG,CAAC,YAAY,EAAC,CAAC;gBACd,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7C,CAAC;iBACG,CAAC;gBACD,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1D,CAAC;QACL,CAAC;QAED,OAAO,YAAY,CAAC;IACxB,CAAC;;8FApJQ,uBAAuB;0EAAvB,uBAAuB;QCXhC,AADJ,8BAA8B,wBASzB;QADC,AADA,oHAAU,4BAAwB,IAAC,yHAChB,4BAAwB,IAAC;QAGlD,AADI,iBAAiB,EACf;;QATA,cAAe;QAAf,iCAAe;;iFDUR,uBAAuB;cALnC,SAAS;2BACI,2BAA2B;mEAMrB,KAAK;kBAApB,KAAK;;kFAFG,uBAAuB"}
1
+ {"version":3,"file":"expansion-panel-component.js","sourceRoot":"","sources":["../../../src/lib/expansion-panel-component/expansion-panel-component.ts","../../../src/lib/expansion-panel-component/expansion-panel-component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,KAAK,EAAU,MAAM,eAAe,CAAC;AAEvE,OAAO,EAA0C,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;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D,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1D,CAAC;QACL,CAAC;QAED,OAAO,YAAY,CAAC;IACxB,CAAC;iFApJQ,uBAAuB;6DAAvB,uBAAuB;YCXhC,AADJ,8BAA8B,wBASzB;YADC,AADA,oHAAU,4BAAwB,IAAC,yHAChB,4BAAwB,IAAC;YAGlD,AADI,iBAAiB,EACf;;YATA,cAAe;YAAf,iCAAe;;;iFDUR,uBAAuB;cALnC,SAAS;2BACI,2BAA2B;mEAMrB,KAAK;kBAApB,KAAK;;kFAFG,uBAAuB"}
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { Component } from '@angular/core';
11
2
  import { Metadata, RunView, CompositeKey, LogError } from '@memberjunction/core';
12
3
  import { SharedService } from '@memberjunction/ng-shared';
@@ -44,45 +35,44 @@ function FavoritesComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
44
35
  i0.ɵɵtextInterpolate1(": ", ctx_r0.favoriteItemDisplayName(dataItem_r3), " ");
45
36
  } }
46
37
  export class FavoritesComponent {
38
+ router;
39
+ favorites = [];
40
+ ExtraFilter = '';
47
41
  constructor(router) {
48
42
  this.router = router;
49
- this.favorites = [];
50
- this.ExtraFilter = '';
51
43
  }
52
- ngOnInit() {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- const md = new Metadata();
55
- const rv = new RunView();
56
- let sFilter = `UserID='${md.CurrentUser.ID}'`;
57
- if (this.ExtraFilter) {
58
- sFilter += `AND (${this.ExtraFilter})`;
59
- }
60
- const viewResults = yield rv.RunView({
61
- EntityName: 'User Favorites',
62
- ExtraFilter: sFilter
63
- });
64
- if (!viewResults.Success) {
65
- LogError(viewResults.ErrorMessage);
66
- SharedService.Instance.CreateSimpleNotification("Unable to load User Favorites");
67
- return;
68
- }
69
- this.favorites = viewResults.Results; // set the result in the list and let the below happen after async and it will update via data binding when done
70
- const input = this.favorites.map(fav => {
71
- let compositeKey = new CompositeKey([{ FieldName: 'ID', Value: fav.RecordID }]);
72
- return { EntityName: fav.Entity, CompositeKey: compositeKey };
73
- });
74
- const results = yield md.GetEntityRecordNames(input);
75
- if (results) {
76
- results.forEach((result) => {
77
- let compositeKey = new CompositeKey(result.CompositeKey.KeyValuePairs);
78
- const fav = this.favorites.find(f => f.Entity == result.EntityName && f.RecordID == compositeKey.GetValueByIndex(0));
79
- if (fav) {
80
- // typecast fav to any so we can add the recordname into the object below
81
- fav.RecordName = result.Success ? result.RecordName : fav.Entity + ' ' + fav.RecordID;
82
- }
83
- });
84
- }
44
+ async ngOnInit() {
45
+ const md = new Metadata();
46
+ const rv = new RunView();
47
+ let sFilter = `UserID='${md.CurrentUser.ID}'`;
48
+ if (this.ExtraFilter) {
49
+ sFilter += `AND (${this.ExtraFilter})`;
50
+ }
51
+ const viewResults = await rv.RunView({
52
+ EntityName: 'User Favorites',
53
+ ExtraFilter: sFilter
54
+ });
55
+ if (!viewResults.Success) {
56
+ LogError(viewResults.ErrorMessage);
57
+ SharedService.Instance.CreateSimpleNotification("Unable to load User Favorites");
58
+ return;
59
+ }
60
+ this.favorites = viewResults.Results; // set the result in the list and let the below happen after async and it will update via data binding when done
61
+ const input = this.favorites.map(fav => {
62
+ let compositeKey = new CompositeKey([{ FieldName: 'ID', Value: fav.RecordID }]);
63
+ return { EntityName: fav.Entity, CompositeKey: compositeKey };
85
64
  });
65
+ const results = await md.GetEntityRecordNames(input);
66
+ if (results) {
67
+ results.forEach((result) => {
68
+ let compositeKey = new CompositeKey(result.CompositeKey.KeyValuePairs);
69
+ const fav = this.favorites.find(f => f.Entity == result.EntityName && f.RecordID == compositeKey.GetValueByIndex(0));
70
+ if (fav) {
71
+ // typecast fav to any so we can add the recordname into the object below
72
+ fav.RecordName = result.Success ? result.RecordName : fav.Entity + ' ' + fav.RecordID;
73
+ }
74
+ });
75
+ }
86
76
  }
87
77
  favoriteItemClick(fav) {
88
78
  if (fav) {
@@ -126,17 +116,17 @@ export class FavoritesComponent {
126
116
  }
127
117
  }
128
118
  }
119
+ static ɵfac = function FavoritesComponent_Factory(t) { return new (t || FavoritesComponent)(i0.ɵɵdirectiveInject(i1.Router)); };
120
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FavoritesComponent, selectors: [["app-favorites"]], decls: 4, vars: 1, consts: [[1, "list-view", 3, "data"], [1, "entity-wrap"], ["kendoListViewHeaderTemplate", ""], ["kendoListViewItemTemplate", ""], [1, "header"], [1, "head-tag"], [1, "fa-regular", "fa-clock"], [1, "count"], [1, "list-item", 3, "click"]], template: function FavoritesComponent_Template(rf, ctx) { if (rf & 1) {
121
+ i0.ɵɵelementStart(0, "kendo-listview", 0);
122
+ i0.ɵɵelementContainerStart(1, 1);
123
+ i0.ɵɵtemplate(2, FavoritesComponent_ng_template_2_Template, 6, 1, "ng-template", 2)(3, FavoritesComponent_ng_template_3_Template, 4, 2, "ng-template", 3);
124
+ i0.ɵɵelementContainerEnd();
125
+ i0.ɵɵelementEnd();
126
+ } if (rf & 2) {
127
+ i0.ɵɵproperty("data", ctx.favorites);
128
+ } }, dependencies: [i2.ItemTemplateDirective, i2.HeaderTemplateDirective, i2.ListViewComponent], styles: [".favorites-list[_ngcontent-%COMP%] {\n width: 400px;\n}", ".main-area[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view[_ngcontent-%COMP%] {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n .list-view .k-listview-header, \n .list-view .k-listview-footer {\n border: none;\n}\n .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header[_ngcontent-%COMP%], \n.footer[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header[_ngcontent-%COMP%] {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\n color: var(--sideNav);\n}\n.card-wrapper[_ngcontent-%COMP%] {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}"] });
129
129
  }
130
- FavoritesComponent.ɵfac = function FavoritesComponent_Factory(t) { return new (t || FavoritesComponent)(i0.ɵɵdirectiveInject(i1.Router)); };
131
- FavoritesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FavoritesComponent, selectors: [["app-favorites"]], decls: 4, vars: 1, consts: [[1, "list-view", 3, "data"], [1, "entity-wrap"], ["kendoListViewHeaderTemplate", ""], ["kendoListViewItemTemplate", ""], [1, "header"], [1, "head-tag"], [1, "fa-regular", "fa-clock"], [1, "count"], [1, "list-item", 3, "click"]], template: function FavoritesComponent_Template(rf, ctx) { if (rf & 1) {
132
- i0.ɵɵelementStart(0, "kendo-listview", 0);
133
- i0.ɵɵelementContainerStart(1, 1);
134
- i0.ɵɵtemplate(2, FavoritesComponent_ng_template_2_Template, 6, 1, "ng-template", 2)(3, FavoritesComponent_ng_template_3_Template, 4, 2, "ng-template", 3);
135
- i0.ɵɵelementContainerEnd();
136
- i0.ɵɵelementEnd();
137
- } if (rf & 2) {
138
- i0.ɵɵproperty("data", ctx.favorites);
139
- } }, dependencies: [i2.ItemTemplateDirective, i2.HeaderTemplateDirective, i2.ListViewComponent], styles: [".favorites-list[_ngcontent-%COMP%] {\n width: 400px;\n}", ".main-area[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n gap: 24px;\n padding: 24px 0;\n}\n.list-view[_ngcontent-%COMP%] {\n padding: 16px;\n min-width: 300px;\n border-radius: 4px;\n background: #FAFAFA;\n border: none;\n}\n .list-view .k-listview-header, \n .list-view .k-listview-footer {\n border: none;\n}\n .list-view .k-listview-content {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n background: #fff;\n padding: 16px;\n}\n\n.header[_ngcontent-%COMP%], \n.footer[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n height: auto;\n margin:0;\n}\n\n.header[_ngcontent-%COMP%] {\n color: #424242;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.header[_ngcontent-%COMP%] .head-tag[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 20px;\n}\n\n.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n min-width: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n background: rgba(0, 0, 0, 0.08);\n border-radius: 50%;\n}\n.footer[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-top: 16px;\n}\n\n.list-item[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n cursor: pointer;\n margin: 4px;\n}\n.card-container[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n\n\n\n \n.view-card[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%] {\n color: var(--sideNav);\n}\n.card-wrapper[_ngcontent-%COMP%] {\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n width: 100% !important;\n}\n.card-wrapper[_ngcontent-%COMP%] .k-card-body[_ngcontent-%COMP%] {\n background: #fff;\n padding: 12px 20px;\n}\n.card-wrapper[_ngcontent-%COMP%] .view-card[_ngcontent-%COMP%] {\n overflow: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fafafa;\n padding: 4px 15px;\n}\n.view-card[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 0;\n letter-spacing: 0.18px;\n}\n.k-card-body[_ngcontent-%COMP%] .view-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #666;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n height: 48px;\n margin-bottom: 0;\n}\n.card-container[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n box-shadow: none;\n}\n.card-header-entity[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-bottom: 20px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n}\n\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n color: #424242;\n font-size: 28px;\n font-style: normal;\n font-weight: 300;\n line-height: 28px;\n margin-bottom: 15px;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n.card-header-entity[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #424242;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n.main-area[_ngcontent-%COMP%] .card-list[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 20px;\n}"] });
140
130
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FavoritesComponent, [{
141
131
  type: Component,
142
132
  args: [{ selector: 'app-favorites', template: "<kendo-listview\n [data]=\"favorites\"\n class=\"list-view\"\n>\n <ng-container class=\"entity-wrap\">\n <ng-template kendoListViewHeaderTemplate>\n <div class=\"header\"> \n <div class=\"head-tag\">\n <span class=\"fa-regular fa-clock\"></span>\n Favorites\n </div>\n <div class=\"count\">{{favorites.length}}</div>\n </div>\n </ng-template>\n <ng-template kendoListViewItemTemplate let-dataItem=\"dataItem\">\n <div class=\"list-item\" (click)=\"favoriteItemClick(dataItem)\">\n <b>{{dataItem.Entity}}</b>: {{favoriteItemDisplayName(dataItem)}}\n </div>\n </ng-template>\n </ng-container>\n</kendo-listview>\n", styles: [".favorites-list {\n width: 400px;\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"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"favorites.component.js","sourceRoot":"","sources":["../../../src/lib/favorites/favorites.component.ts","../../../src/lib/favorites/favorites.component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAyB,YAAY,EAA0B,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhI,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;;;;;ICG1C,AADJ,8BAAoB,aACM;IAClB,0BAAyC;IACzC,2BACJ;IAAA,iBAAM;IACN,8BAAmB;IAAA,YAAoB;IACvC,AADuC,iBAAM,EACvC;;;IADa,eAAoB;IAApB,6CAAoB;;;;IAI3C,8BAA8D;IAAtC,gNAAS,qCAA2B,KAAC;IACzD,yBAAG;IAAA,YAAmB;IAAA,iBAAI;IAAA,YAC9B;IAAA,iBAAM;;;;IADC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,kBAAkB"}
1
+ {"version":3,"file":"favorites.component.js","sourceRoot":"","sources":["../../../src/lib/favorites/favorites.component.ts","../../../src/lib/favorites/favorites.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAyB,YAAY,EAA0B,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhI,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;;;;;ICG1C,AADJ,8BAAoB,aACM;IAClB,0BAAyC;IACzC,2BACJ;IAAA,iBAAM;IACN,8BAAmB;IAAA,YAAoB;IACvC,AADuC,iBAAM,EACvC;;;IADa,eAAoB;IAApB,6CAAoB;;;;IAI3C,8BAA8D;IAAtC,gNAAS,qCAA2B,KAAC;IACzD,yBAAG;IAAA,YAAmB;IAAA,iBAAI;IAAA,YAC9B;IAAA,iBAAM;;;;IADC,eAAmB;IAAnB,wCAAmB;IAAI,cAC9B;IAD8B,6EAC9B;;ADNZ,MAAM,OAAO,kBAAkB;IAIT;IAHb,SAAS,GAAyB,EAAE,CAAC;IACrC,WAAW,GAAW,EAAE,CAAC;IAEhC,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAI,CAAC;IAEvC,KAAK,CAAC,QAAQ;QACZ,MAAM,EAAE,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC1B,MAAM,EAAE,GAAG,IAAI,OAAO,EAAE,CAAC;QACzB,IAAI,OAAO,GAAG,WAAW,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC;QAC9C,IAAI,IAAI,CAAC,WAAW,EAAC,CAAC;YACpB,OAAO,IAAI,QAAQ,IAAI,CAAC,WAAW,GAAG,CAAA;QACxC,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC;YACnC,UAAU,EAAE,gBAAgB;YAC5B,WAAW,EAAE,OAAO;SACrB,CAAC,CAAC;QAE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AAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;gBACrG,CAAC;;oBAEC,MAAM,IAAI,KAAK,CAAC,UAAU,GAAG,CAAC,MAAM,wBAAwB,CAAC,CAAA;YACjE,CAAC;QACH,CAAC;IACH,CAAC;IAED,uBAAuB,CAAC,GAAQ;QAC9B,IAAI,GAAG,EAAE,CAAC;YACR,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC;gBACnB,OAAO,GAAG,CAAC,UAAU,CAAA;YACvB,CAAC;iBACI,CAAC;gBACJ,OAAO,GAAG,CAAC,QAAQ,CAAC;YACtB,CAAC;QACH,CAAC;IACH,CAAC;4EAtFU,kBAAkB;6DAAlB,kBAAkB;YCX/B,yCAGC;YACG,gCAAkC;YAU9B,AATA,mFAAyC,sEASsB;;YAMvE,iBAAiB;;YAnBb,oCAAkB;;;iFDUT,kBAAkB;cAL9B,SAAS;2BACE,eAAe;;kFAId,kBAAkB"}
@@ -10,24 +10,25 @@ import { BaseNavigationComponent } from '@memberjunction/ng-shared';
10
10
  import * as i0 from "@angular/core";
11
11
  import * as i1 from "@memberjunction/ng-file-storage";
12
12
  let FilesComponent = class FilesComponent extends BaseNavigationComponent {
13
+ CategoryID;
13
14
  categorySelected(newCategoryID) {
14
15
  this.CategoryID = newCategoryID;
15
16
  }
16
17
  constructor() {
17
18
  super();
18
19
  }
20
+ static ɵfac = function FilesComponent_Factory(t) { return new (t || FilesComponent)(); };
21
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilesComponent, selectors: [["app-files"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [[1, "container"], [3, "categorySelected"], [3, "CategoryID"]], template: function FilesComponent_Template(rf, ctx) { if (rf & 1) {
22
+ i0.ɵɵelementStart(0, "div", 0)(1, "mj-files-category-tree", 1);
23
+ i0.ɵɵlistener("categorySelected", function FilesComponent_Template_mj_files_category_tree_categorySelected_1_listener($event) { return ctx.categorySelected($event); });
24
+ i0.ɵɵelementEnd();
25
+ i0.ɵɵelement(2, "mj-files-grid", 2);
26
+ i0.ɵɵelementEnd();
27
+ } if (rf & 2) {
28
+ i0.ɵɵadvance(2);
29
+ i0.ɵɵproperty("CategoryID", ctx.CategoryID);
30
+ } }, dependencies: [i1.CategoryTreeComponent, i1.FilesGridComponent], styles: [".container[_ngcontent-%COMP%] {\n display: flex;\n }"] });
19
31
  };
20
- FilesComponent.ɵfac = function FilesComponent_Factory(t) { return new (t || FilesComponent)(); };
21
- FilesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilesComponent, selectors: [["app-files"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [[1, "container"], [3, "categorySelected"], [3, "CategoryID"]], template: function FilesComponent_Template(rf, ctx) { if (rf & 1) {
22
- i0.ɵɵelementStart(0, "div", 0)(1, "mj-files-category-tree", 1);
23
- i0.ɵɵlistener("categorySelected", function FilesComponent_Template_mj_files_category_tree_categorySelected_1_listener($event) { return ctx.categorySelected($event); });
24
- i0.ɵɵelementEnd();
25
- i0.ɵɵelement(2, "mj-files-grid", 2);
26
- i0.ɵɵelementEnd();
27
- } if (rf & 2) {
28
- i0.ɵɵadvance(2);
29
- i0.ɵɵproperty("CategoryID", ctx.CategoryID);
30
- } }, dependencies: [i1.CategoryTreeComponent, i1.FilesGridComponent], styles: [".container[_ngcontent-%COMP%] {\n display: flex;\n }"] });
31
32
  FilesComponent = __decorate([
32
33
  RegisterClass(BaseNavigationComponent, 'Files')
33
34
  ], FilesComponent);
@@ -1 +1 @@
1
- {"version":3,"file":"files.component.js","sourceRoot":"","sources":["../../../src/lib/files/files.component.ts","../../../src/lib/files/files.component.html"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;;;AAQ7D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uBAAuB;IAGlD,gBAAgB,CAAC,aAAiC;QACvD,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC;IAClC,CAAC;IAED;QACE,KAAK,EAAE,CAAC;IACV,CAAC;;4EATU,cAAc;iEAAd,cAAc;QCTzB,AADF,8BAAuB,gCACiD;QAA9C,uIAAoB,4BAAwB,IAAC;QAAC,iBAAyB;QAC/F,mCAAyD;QAC3D,iBAAM;;QADW,eAAyB;QAAzB,2CAAyB;;ADQ7B,cAAc;IAD1B,aAAa,CAAC,uBAAuB,EAAE,OAAO,CAAC;GACnC,cAAc,CAU1B;;iFAVY,cAAc;cAN1B,SAAS;2BACE,WAAW;;kFAKV,cAAc"}
1
+ {"version":3,"file":"files.component.js","sourceRoot":"","sources":["../../../src/lib/files/files.component.ts","../../../src/lib/files/files.component.html"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;;;AAQ7D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uBAAuB;IAClD,UAAU,CAAqB;IAE/B,gBAAgB,CAAC,aAAiC;QACvD,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC;IAClC,CAAC;IAED;QACE,KAAK,EAAE,CAAC;IACV,CAAC;wEATU,cAAc;6DAAd,cAAc;YCTzB,AADF,8BAAuB,gCACiD;YAA9C,uIAAoB,4BAAwB,IAAC;YAAC,iBAAyB;YAC/F,mCAAyD;YAC3D,iBAAM;;YADW,eAAyB;YAAzB,2CAAyB;;;ADQ7B,cAAc;IAD1B,aAAa,CAAC,uBAAuB,EAAE,OAAO,CAAC;GACnC,cAAc,CAU1B;;iFAVY,cAAc;cAN1B,SAAS;2BACE,WAAW;;kFAKV,cAAc"}
@@ -55,27 +55,28 @@ function FormToolbarComponent_mj_record_changes_7_Template(rf, ctx) { if (rf & 1
55
55
  i0.ɵɵproperty("record", ctx_r1.form.record);
56
56
  } }
57
57
  export class FormToolbarComponent {
58
+ form;
59
+ static ɵfac = function FormToolbarComponent_Factory(t) { return new (t || FormToolbarComponent)(); };
60
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { form: "form" }, decls: 8, vars: 7, consts: [["kendoButton", "", 3, "click", 4, "ngIf"], [3, "record", "dialogClosed", 4, "ngIf"], ["kendoButton", "", 3, "click"], [3, "dialogClosed", "record"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
61
+ i0.ɵɵtemplate(0, FormToolbarComponent_button_0_Template, 2, 0, "button", 0)(1, FormToolbarComponent_button_1_Template, 2, 0, "button", 0)(2, FormToolbarComponent_button_2_Template, 2, 0, "button", 0)(3, FormToolbarComponent_button_3_Template, 2, 0, "button", 0)(4, FormToolbarComponent_button_4_Template, 2, 0, "button", 0)(5, FormToolbarComponent_button_5_Template, 2, 0, "button", 0);
62
+ i0.ɵɵelement(6, "hr");
63
+ i0.ɵɵtemplate(7, FormToolbarComponent_mj_record_changes_7_Template, 1, 1, "mj-record-changes", 1);
64
+ } if (rf & 2) {
65
+ i0.ɵɵproperty("ngIf", !ctx.form.EditMode && ctx.form.UserCanEdit);
66
+ i0.ɵɵadvance();
67
+ i0.ɵɵproperty("ngIf", ctx.form.EditMode);
68
+ i0.ɵɵadvance();
69
+ i0.ɵɵproperty("ngIf", ctx.form.EditMode);
70
+ i0.ɵɵadvance();
71
+ i0.ɵɵproperty("ngIf", ctx.form.FavoriteInitDone && ctx.form.IsFavorite);
72
+ i0.ɵɵadvance();
73
+ i0.ɵɵproperty("ngIf", ctx.form.FavoriteInitDone && !ctx.form.IsFavorite);
74
+ i0.ɵɵadvance();
75
+ i0.ɵɵproperty("ngIf", ctx.form.EntityInfo == null ? null : ctx.form.EntityInfo.TrackRecordChanges);
76
+ i0.ɵɵadvance(2);
77
+ i0.ɵɵproperty("ngIf", ctx.form.isHistoryDialogOpen);
78
+ } }, dependencies: [i1.NgIf, i2.ButtonComponent, i3.RecordChangesComponent], styles: ["button[_ngcontent-%COMP%] { margin-right: 10px; }"] });
58
79
  }
59
- FormToolbarComponent.ɵfac = function FormToolbarComponent_Factory(t) { return new (t || FormToolbarComponent)(); };
60
- FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { form: "form" }, decls: 8, vars: 7, consts: [["kendoButton", "", 3, "click", 4, "ngIf"], [3, "record", "dialogClosed", 4, "ngIf"], ["kendoButton", "", 3, "click"], [3, "dialogClosed", "record"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
61
- i0.ɵɵtemplate(0, FormToolbarComponent_button_0_Template, 2, 0, "button", 0)(1, FormToolbarComponent_button_1_Template, 2, 0, "button", 0)(2, FormToolbarComponent_button_2_Template, 2, 0, "button", 0)(3, FormToolbarComponent_button_3_Template, 2, 0, "button", 0)(4, FormToolbarComponent_button_4_Template, 2, 0, "button", 0)(5, FormToolbarComponent_button_5_Template, 2, 0, "button", 0);
62
- i0.ɵɵelement(6, "hr");
63
- i0.ɵɵtemplate(7, FormToolbarComponent_mj_record_changes_7_Template, 1, 1, "mj-record-changes", 1);
64
- } if (rf & 2) {
65
- i0.ɵɵproperty("ngIf", !ctx.form.EditMode && ctx.form.UserCanEdit);
66
- i0.ɵɵadvance();
67
- i0.ɵɵproperty("ngIf", ctx.form.EditMode);
68
- i0.ɵɵadvance();
69
- i0.ɵɵproperty("ngIf", ctx.form.EditMode);
70
- i0.ɵɵadvance();
71
- i0.ɵɵproperty("ngIf", ctx.form.FavoriteInitDone && ctx.form.IsFavorite);
72
- i0.ɵɵadvance();
73
- i0.ɵɵproperty("ngIf", ctx.form.FavoriteInitDone && !ctx.form.IsFavorite);
74
- i0.ɵɵadvance();
75
- i0.ɵɵproperty("ngIf", ctx.form.EntityInfo == null ? null : ctx.form.EntityInfo.TrackRecordChanges);
76
- i0.ɵɵadvance(2);
77
- i0.ɵɵproperty("ngIf", ctx.form.isHistoryDialogOpen);
78
- } }, dependencies: [i1.NgIf, i2.ButtonComponent, i3.RecordChangesComponent], styles: ["button[_ngcontent-%COMP%] { margin-right: 10px; }"] });
79
80
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormToolbarComponent, [{
80
81
  type: Component,
81
82
  args: [{ selector: 'mj-form-toolbar', template: `
@@ -1 +1 @@
1
- {"version":3,"file":"form-toolbar.js","sourceRoot":"","sources":["../../../src/lib/generic/form-toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;;;;;;IAQzC,iCAA6G;IAApC,mLAAS,2BAAyB,KAAC;IAAC,2BAAW;IAAA,iBAAS;;;;IACjI,iCAAoF;IAArC,mLAAS,uBAAqB,IAAI,CAAC,KAAC;IAAC,2BAAW;IAAA,iBAAS;;;;IACxG,iCAAgF;IAAjC,mLAAS,wBAAsB,KAAC;IAAC,sBAAM;IAAA,iBAAS;;;;IAC/F,iCAAoH;IAArC,mLAAS,4BAA0B,KAAC;IAAC,+BAAe;IAAA,iBAAS;;;;IAC5I,iCAAmH;IAAnC,mLAAS,0BAAwB,KAAC;IAAC,6BAAa;IAAA,iBAAS;;;;IACzI,iCAA+G;IAA1C,mLAAS,iCAA+B,KAAC;IAAC,uBAAO;IAAA,iBAAS;;;;IAE/H,4CAAsI;IAAjD,uNAAgB,iCAA+B,KAAC;IAAC,iBAAoB;;;IAAjG,2CAA2B;;AAG5F,MAAM,OAAO,oBAAoB;;wFAApB,oBAAoB;uEAApB,oBAAoB;QALzB,AADA,AADA,AADA,AADA,AADA,2EAA6G,8DACzB,8DACJ,8DACoC,8DACD,8DACJ;QAC/G,qBAAM;QACN,iGAAsI;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