@memberjunction/ng-explorer-core 3.4.0 → 4.0.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 (263) hide show
  1. package/README.md +1 -1
  2. package/dist/app-routing.module.d.ts.map +1 -1
  3. package/dist/app-routing.module.js +11 -0
  4. package/dist/app-routing.module.js.map +1 -1
  5. package/dist/generic/Events.types.d.ts +174 -0
  6. package/dist/generic/Events.types.d.ts.map +1 -0
  7. package/dist/generic/Events.types.js +220 -0
  8. package/dist/generic/Events.types.js.map +1 -0
  9. package/dist/lib/app-view/application-view.component.d.ts +65 -0
  10. package/dist/lib/app-view/application-view.component.d.ts.map +1 -0
  11. package/dist/lib/app-view/application-view.component.js +611 -0
  12. package/dist/lib/app-view/application-view.component.js.map +1 -0
  13. package/dist/lib/auth-button/auth-button.component.d.ts +13 -0
  14. package/dist/lib/auth-button/auth-button.component.d.ts.map +1 -0
  15. package/dist/lib/auth-button/auth-button.component.js +36 -0
  16. package/dist/lib/auth-button/auth-button.component.js.map +1 -0
  17. package/dist/lib/base-browser-component/base-browser-component.d.ts +44 -0
  18. package/dist/lib/base-browser-component/base-browser-component.d.ts.map +1 -0
  19. package/dist/lib/base-browser-component/base-browser-component.js +195 -0
  20. package/dist/lib/base-browser-component/base-browser-component.js.map +1 -0
  21. package/dist/lib/chat-wrapper/chat-wrapper.component.d.ts +54 -0
  22. package/dist/lib/chat-wrapper/chat-wrapper.component.d.ts.map +1 -0
  23. package/dist/lib/chat-wrapper/chat-wrapper.component.js +257 -0
  24. package/dist/lib/chat-wrapper/chat-wrapper.component.js.map +1 -0
  25. package/dist/lib/command-palette/command-palette.component.d.ts +79 -0
  26. package/dist/lib/command-palette/command-palette.component.d.ts.map +1 -0
  27. package/dist/lib/command-palette/command-palette.component.js +326 -0
  28. package/dist/lib/command-palette/command-palette.component.js.map +1 -0
  29. package/dist/lib/command-palette/command-palette.service.d.ts +49 -0
  30. package/dist/lib/command-palette/command-palette.service.d.ts.map +1 -0
  31. package/dist/lib/command-palette/command-palette.service.js +101 -0
  32. package/dist/lib/command-palette/command-palette.service.js.map +1 -0
  33. package/dist/lib/command-palette/index.d.ts +3 -0
  34. package/dist/lib/command-palette/index.d.ts.map +1 -0
  35. package/dist/lib/command-palette/index.js +3 -0
  36. package/dist/lib/command-palette/index.js.map +1 -0
  37. package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts +32 -0
  38. package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts.map +1 -0
  39. package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +244 -0
  40. package/dist/lib/dashboard-browser-component/dashboard-browser.component.js.map +1 -0
  41. package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.d.ts.map +1 -1
  42. package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js +14 -12
  43. package/dist/lib/dashboard-preferences-dialog/dashboard-preferences-dialog.component.js.map +1 -1
  44. package/dist/lib/data-browser-component/data-browser.component.d.ts +23 -0
  45. package/dist/lib/data-browser-component/data-browser.component.d.ts.map +1 -0
  46. package/dist/lib/data-browser-component/data-browser.component.js +267 -0
  47. package/dist/lib/data-browser-component/data-browser.component.js.map +1 -0
  48. package/dist/lib/expansion-panel-component/expansion-panel-component.d.ts +21 -0
  49. package/dist/lib/expansion-panel-component/expansion-panel-component.d.ts.map +1 -0
  50. package/dist/lib/expansion-panel-component/expansion-panel-component.js +158 -0
  51. package/dist/lib/expansion-panel-component/expansion-panel-component.js.map +1 -0
  52. package/dist/lib/favorites/favorites.component.d.ts +15 -0
  53. package/dist/lib/favorites/favorites.component.d.ts.map +1 -0
  54. package/dist/lib/favorites/favorites.component.js +135 -0
  55. package/dist/lib/favorites/favorites.component.js.map +1 -0
  56. package/dist/lib/files/files.component.d.ts +10 -0
  57. package/dist/lib/files/files.component.d.ts.map +1 -0
  58. package/dist/lib/files/files.component.js +41 -0
  59. package/dist/lib/files/files.component.js.map +1 -0
  60. package/dist/lib/generic/form-toolbar.d.ts.map +1 -1
  61. package/dist/lib/generic/form-toolbar.js +56 -38
  62. package/dist/lib/generic/form-toolbar.js.map +1 -1
  63. package/dist/lib/generic/resource-container-component.d.ts.map +1 -1
  64. package/dist/lib/generic/resource-container-component.js +3 -2
  65. package/dist/lib/generic/resource-container-component.js.map +1 -1
  66. package/dist/lib/generic-browse-list/generic-browse-list.component.d.ts +30 -0
  67. package/dist/lib/generic-browse-list/generic-browse-list.component.d.ts.map +1 -0
  68. package/dist/lib/generic-browse-list/generic-browse-list.component.js +171 -0
  69. package/dist/lib/generic-browse-list/generic-browse-list.component.js.map +1 -0
  70. package/dist/lib/generic-browser-list/generic-browser-list.component.d.ts +120 -0
  71. package/dist/lib/generic-browser-list/generic-browser-list.component.d.ts.map +1 -0
  72. package/dist/lib/generic-browser-list/generic-browser-list.component.js +1093 -0
  73. package/dist/lib/generic-browser-list/generic-browser-list.component.js.map +1 -0
  74. package/dist/lib/header/MSFT_UserImageService.d.ts +12 -0
  75. package/dist/lib/header/MSFT_UserImageService.d.ts.map +1 -0
  76. package/dist/lib/header/MSFT_UserImageService.js +25 -0
  77. package/dist/lib/header/MSFT_UserImageService.js.map +1 -0
  78. package/dist/lib/header/header.component.d.ts +69 -0
  79. package/dist/lib/header/header.component.d.ts.map +1 -0
  80. package/dist/lib/header/header.component.js +342 -0
  81. package/dist/lib/header/header.component.js.map +1 -0
  82. package/dist/lib/home-component/home.component.d.ts +22 -0
  83. package/dist/lib/home-component/home.component.d.ts.map +1 -0
  84. package/dist/lib/home-component/home.component.js +194 -0
  85. package/dist/lib/home-component/home.component.js.map +1 -0
  86. package/dist/lib/home-wrapper/home-wrapper.component.d.ts +7 -0
  87. package/dist/lib/home-wrapper/home-wrapper.component.d.ts.map +1 -0
  88. package/dist/lib/home-wrapper/home-wrapper.component.js +30 -0
  89. package/dist/lib/home-wrapper/home-wrapper.component.js.map +1 -0
  90. package/dist/lib/list-view/list-view.component.d.ts +45 -0
  91. package/dist/lib/list-view/list-view.component.d.ts.map +1 -0
  92. package/dist/lib/list-view/list-view.component.js +329 -0
  93. package/dist/lib/list-view/list-view.component.js.map +1 -0
  94. package/dist/lib/navigation/navigation.component.d.ts +142 -0
  95. package/dist/lib/navigation/navigation.component.d.ts.map +1 -0
  96. package/dist/lib/navigation/navigation.component.js +1212 -0
  97. package/dist/lib/navigation/navigation.component.js.map +1 -0
  98. package/dist/lib/oauth/oauth-callback.component.d.ts +97 -0
  99. package/dist/lib/oauth/oauth-callback.component.d.ts.map +1 -0
  100. package/dist/lib/oauth/oauth-callback.component.js +408 -0
  101. package/dist/lib/oauth/oauth-callback.component.js.map +1 -0
  102. package/dist/lib/oauth/oauth.module.d.ts +14 -0
  103. package/dist/lib/oauth/oauth.module.d.ts.map +1 -0
  104. package/dist/lib/oauth/oauth.module.js +43 -0
  105. package/dist/lib/oauth/oauth.module.js.map +1 -0
  106. package/dist/lib/query-browser-component/query-browser.component.d.ts +75 -0
  107. package/dist/lib/query-browser-component/query-browser.component.d.ts.map +1 -0
  108. package/dist/lib/query-browser-component/query-browser.component.js +908 -0
  109. package/dist/lib/query-browser-component/query-browser.component.js.map +1 -0
  110. package/dist/lib/report-browser-component/report-browser.component.d.ts +22 -0
  111. package/dist/lib/report-browser-component/report-browser.component.d.ts.map +1 -0
  112. package/dist/lib/report-browser-component/report-browser.component.js +80 -0
  113. package/dist/lib/report-browser-component/report-browser.component.js.map +1 -0
  114. package/dist/lib/resource-browser/resource-browser.component.d.ts +178 -0
  115. package/dist/lib/resource-browser/resource-browser.component.d.ts.map +1 -0
  116. package/dist/lib/resource-browser/resource-browser.component.js +1012 -0
  117. package/dist/lib/resource-browser/resource-browser.component.js.map +1 -0
  118. package/dist/lib/resource-wrappers/artifact-resource.component.d.ts +0 -1
  119. package/dist/lib/resource-wrappers/artifact-resource.component.d.ts.map +1 -1
  120. package/dist/lib/resource-wrappers/artifact-resource.component.js +20 -23
  121. package/dist/lib/resource-wrappers/artifact-resource.component.js.map +1 -1
  122. package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts +0 -1
  123. package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts.map +1 -1
  124. package/dist/lib/resource-wrappers/chat-collections-resource.component.js +36 -45
  125. package/dist/lib/resource-wrappers/chat-collections-resource.component.js.map +1 -1
  126. package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts +0 -1
  127. package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts.map +1 -1
  128. package/dist/lib/resource-wrappers/chat-conversations-resource.component.js +98 -100
  129. package/dist/lib/resource-wrappers/chat-conversations-resource.component.js.map +1 -1
  130. package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts +0 -1
  131. package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts.map +1 -1
  132. package/dist/lib/resource-wrappers/chat-tasks-resource.component.js +21 -24
  133. package/dist/lib/resource-wrappers/chat-tasks-resource.component.js.map +1 -1
  134. package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +0 -1
  135. package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts.map +1 -1
  136. package/dist/lib/resource-wrappers/dashboard-resource.component.js +11 -10
  137. package/dist/lib/resource-wrappers/dashboard-resource.component.js.map +1 -1
  138. package/dist/lib/resource-wrappers/list-detail-resource.component.d.ts +0 -1
  139. package/dist/lib/resource-wrappers/list-detail-resource.component.d.ts.map +1 -1
  140. package/dist/lib/resource-wrappers/list-detail-resource.component.js +3 -5
  141. package/dist/lib/resource-wrappers/list-detail-resource.component.js.map +1 -1
  142. package/dist/lib/resource-wrappers/notifications-resource.component.d.ts +0 -1
  143. package/dist/lib/resource-wrappers/notifications-resource.component.d.ts.map +1 -1
  144. package/dist/lib/resource-wrappers/notifications-resource.component.js +3 -5
  145. package/dist/lib/resource-wrappers/notifications-resource.component.js.map +1 -1
  146. package/dist/lib/resource-wrappers/query-resource.component.d.ts +0 -1
  147. package/dist/lib/resource-wrappers/query-resource.component.d.ts.map +1 -1
  148. package/dist/lib/resource-wrappers/query-resource.component.js +3 -5
  149. package/dist/lib/resource-wrappers/query-resource.component.js.map +1 -1
  150. package/dist/lib/resource-wrappers/record-resource.component.d.ts +0 -1
  151. package/dist/lib/resource-wrappers/record-resource.component.d.ts.map +1 -1
  152. package/dist/lib/resource-wrappers/record-resource.component.js +3 -5
  153. package/dist/lib/resource-wrappers/record-resource.component.js.map +1 -1
  154. package/dist/lib/resource-wrappers/report-resource.component.d.ts +13 -0
  155. package/dist/lib/resource-wrappers/report-resource.component.d.ts.map +1 -0
  156. package/dist/lib/resource-wrappers/report-resource.component.js +49 -0
  157. package/dist/lib/resource-wrappers/report-resource.component.js.map +1 -0
  158. package/dist/lib/resource-wrappers/resource-wrappers-loader.d.ts +0 -1
  159. package/dist/lib/resource-wrappers/resource-wrappers-loader.d.ts.map +1 -1
  160. package/dist/lib/resource-wrappers/resource-wrappers-loader.js +3 -33
  161. package/dist/lib/resource-wrappers/resource-wrappers-loader.js.map +1 -1
  162. package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +0 -1
  163. package/dist/lib/resource-wrappers/search-results-resource.component.d.ts.map +1 -1
  164. package/dist/lib/resource-wrappers/search-results-resource.component.js +3 -5
  165. package/dist/lib/resource-wrappers/search-results-resource.component.js.map +1 -1
  166. package/dist/lib/resource-wrappers/view-resource.component.d.ts +0 -1
  167. package/dist/lib/resource-wrappers/view-resource.component.d.ts.map +1 -1
  168. package/dist/lib/resource-wrappers/view-resource.component.js +8 -13
  169. package/dist/lib/resource-wrappers/view-resource.component.js.map +1 -1
  170. package/dist/lib/shared/custom-icon/custom-icon.component.d.ts +11 -0
  171. package/dist/lib/shared/custom-icon/custom-icon.component.d.ts.map +1 -0
  172. package/dist/lib/shared/custom-icon/custom-icon.component.js +44 -0
  173. package/dist/lib/shared/custom-icon/custom-icon.component.js.map +1 -0
  174. package/dist/lib/shell/components/dialogs/app-access-dialog.component.d.ts +6 -0
  175. package/dist/lib/shell/components/dialogs/app-access-dialog.component.d.ts.map +1 -1
  176. package/dist/lib/shell/components/dialogs/app-access-dialog.component.js +62 -34
  177. package/dist/lib/shell/components/dialogs/app-access-dialog.component.js.map +1 -1
  178. package/dist/lib/shell/components/header/app-nav.component.d.ts.map +1 -1
  179. package/dist/lib/shell/components/header/app-nav.component.js +15 -16
  180. package/dist/lib/shell/components/header/app-nav.component.js.map +1 -1
  181. package/dist/lib/shell/components/header/app-switcher.component.d.ts.map +1 -1
  182. package/dist/lib/shell/components/header/app-switcher.component.js +36 -35
  183. package/dist/lib/shell/components/header/app-switcher.component.js.map +1 -1
  184. package/dist/lib/shell/components/tabs/tab-container.component.d.ts.map +1 -1
  185. package/dist/lib/shell/components/tabs/tab-container.component.js +14 -15
  186. package/dist/lib/shell/components/tabs/tab-container.component.js.map +1 -1
  187. package/dist/lib/shell/shell.component.d.ts +13 -1
  188. package/dist/lib/shell/shell.component.d.ts.map +1 -1
  189. package/dist/lib/shell/shell.component.js +242 -190
  190. package/dist/lib/shell/shell.component.js.map +1 -1
  191. package/dist/lib/shell/shell.module.d.ts +8 -7
  192. package/dist/lib/shell/shell.module.d.ts.map +1 -1
  193. package/dist/lib/shell/shell.module.js +12 -3
  194. package/dist/lib/shell/shell.module.js.map +1 -1
  195. package/dist/lib/single-application/single-application.component.d.ts +24 -0
  196. package/dist/lib/single-application/single-application.component.d.ts.map +1 -0
  197. package/dist/lib/single-application/single-application.component.js +122 -0
  198. package/dist/lib/single-application/single-application.component.js.map +1 -0
  199. package/dist/lib/single-dashboard/Components/add-item/add-item.component.d.ts.map +1 -1
  200. package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +56 -61
  201. package/dist/lib/single-dashboard/Components/add-item/add-item.component.js.map +1 -1
  202. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.d.ts.map +1 -1
  203. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +3 -3
  204. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js.map +1 -1
  205. package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.d.ts.map +1 -1
  206. package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +21 -22
  207. package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js.map +1 -1
  208. package/dist/lib/single-dashboard/single-dashboard.component.d.ts.map +1 -1
  209. package/dist/lib/single-dashboard/single-dashboard.component.js +84 -83
  210. package/dist/lib/single-dashboard/single-dashboard.component.js.map +1 -1
  211. package/dist/lib/single-entity/single-entity.component.d.ts +34 -0
  212. package/dist/lib/single-entity/single-entity.component.d.ts.map +1 -0
  213. package/dist/lib/single-entity/single-entity.component.js +245 -0
  214. package/dist/lib/single-entity/single-entity.component.js.map +1 -0
  215. package/dist/lib/single-list-detail/single-list-detail.component.d.ts.map +1 -1
  216. package/dist/lib/single-list-detail/single-list-detail.component.js +75 -72
  217. package/dist/lib/single-list-detail/single-list-detail.component.js.map +1 -1
  218. package/dist/lib/single-query/single-query.component.d.ts.map +1 -1
  219. package/dist/lib/single-query/single-query.component.js +4 -4
  220. package/dist/lib/single-query/single-query.component.js.map +1 -1
  221. package/dist/lib/single-record/single-record.component.d.ts.map +1 -1
  222. package/dist/lib/single-record/single-record.component.js +11 -11
  223. package/dist/lib/single-record/single-record.component.js.map +1 -1
  224. package/dist/lib/single-report/single-report.component.d.ts +17 -0
  225. package/dist/lib/single-report/single-report.component.d.ts.map +1 -0
  226. package/dist/lib/single-report/single-report.component.js +55 -0
  227. package/dist/lib/single-report/single-report.component.js.map +1 -0
  228. package/dist/lib/single-search-result/single-search-result.component.d.ts.map +1 -1
  229. package/dist/lib/single-search-result/single-search-result.component.js +4 -4
  230. package/dist/lib/single-search-result/single-search-result.component.js.map +1 -1
  231. package/dist/lib/single-view/single-view.component.d.ts +43 -0
  232. package/dist/lib/single-view/single-view.component.d.ts.map +1 -0
  233. package/dist/lib/single-view/single-view.component.js +207 -0
  234. package/dist/lib/single-view/single-view.component.js.map +1 -0
  235. package/dist/lib/style-guide-test/style-guide-test.component.d.ts +70 -0
  236. package/dist/lib/style-guide-test/style-guide-test.component.d.ts.map +1 -0
  237. package/dist/lib/style-guide-test/style-guide-test.component.js +1024 -0
  238. package/dist/lib/style-guide-test/style-guide-test.component.js.map +1 -0
  239. package/dist/lib/system-validation/system-validation-banner.component.d.ts.map +1 -1
  240. package/dist/lib/system-validation/system-validation-banner.component.js +85 -65
  241. package/dist/lib/system-validation/system-validation-banner.component.js.map +1 -1
  242. package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.d.ts +46 -0
  243. package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.d.ts.map +1 -0
  244. package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.js +547 -0
  245. package/dist/lib/tabbed-dashboard/tabbed-dashboard.component.js.map +1 -0
  246. package/dist/lib/user-menu/base-user-menu.d.ts +0 -1
  247. package/dist/lib/user-menu/base-user-menu.d.ts.map +1 -1
  248. package/dist/lib/user-menu/base-user-menu.js +0 -4
  249. package/dist/lib/user-menu/base-user-menu.js.map +1 -1
  250. package/dist/lib/user-notifications/user-notifications.component.d.ts.map +1 -1
  251. package/dist/lib/user-notifications/user-notifications.component.js +14 -15
  252. package/dist/lib/user-notifications/user-notifications.component.js.map +1 -1
  253. package/dist/lib/user-profile/user-profile.component.d.ts.map +1 -1
  254. package/dist/lib/user-profile/user-profile.component.js +56 -54
  255. package/dist/lib/user-profile/user-profile.component.js.map +1 -1
  256. package/dist/module.d.ts +32 -32
  257. package/dist/module.js +4 -5
  258. package/dist/module.js.map +1 -1
  259. package/dist/public-api.d.ts +6 -1
  260. package/dist/public-api.d.ts.map +1 -1
  261. package/dist/public-api.js +10 -1
  262. package/dist/public-api.js.map +1 -1
  263. package/package.json +60 -60
@@ -0,0 +1,257 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { Component } from '@angular/core';
8
+ import { Metadata, CompositeKey } from '@memberjunction/core';
9
+ import { RegisterClass } from '@memberjunction/global';
10
+ import { EnvironmentEntityExtended } from '@memberjunction/core-entities';
11
+ import { BaseNavigationComponent, SharedService } from '@memberjunction/ng-shared';
12
+ import * as i0 from "@angular/core";
13
+ import * as i1 from "@angular/router";
14
+ import * as i2 from "@angular/common";
15
+ import * as i3 from "@memberjunction/ng-conversations";
16
+ function ChatWrapperComponent_div_0_Template(rf, ctx) { if (rf & 1) {
17
+ const _r1 = i0.ɵɵgetCurrentView();
18
+ i0.ɵɵelementStart(0, "div", 1)(1, "mj-conversation-workspace", 2);
19
+ i0.ɵɵlistener("navigationChanged", function ChatWrapperComponent_div_0_Template_mj_conversation_workspace_navigationChanged_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNavigationChanged($event)); })("newConversationStarted", function ChatWrapperComponent_div_0_Template_mj_conversation_workspace_newConversationStarted_1_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNewConversationStarted()); })("actionableCommandExecuted", function ChatWrapperComponent_div_0_Template_mj_conversation_workspace_actionableCommandExecuted_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onActionableCommand($event)); })("automaticCommandExecuted", function ChatWrapperComponent_div_0_Template_mj_conversation_workspace_automaticCommandExecuted_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onAutomaticCommand($event)); });
20
+ i0.ɵɵelementEnd()();
21
+ } if (rf & 2) {
22
+ const ctx_r1 = i0.ɵɵnextContext();
23
+ i0.ɵɵadvance();
24
+ i0.ɵɵproperty("environmentId", ctx_r1.environmentId)("initialConversationId", ctx_r1.conversationId)("currentUser", ctx_r1.currentUser)("layout", "full")("activeContext", ctx_r1.activeContext)("contextItemId", ctx_r1.contextItemId)("activeTabInput", ctx_r1.activeTab)("activeConversationInput", ctx_r1.activeConversationId)("activeCollectionInput", ctx_r1.activeCollectionId)("activeVersionIdInput", ctx_r1.activeVersionId)("activeTaskInput", ctx_r1.activeTaskId);
25
+ } }
26
+ /**
27
+ * Wrapper component for the conversations interface within MJ Explorer
28
+ * Integrates the generic @memberjunction/ng-conversations package with Explorer routing
29
+ * Handles route params for conversation, library, and task context
30
+ */
31
+ let ChatWrapperComponent = class ChatWrapperComponent {
32
+ route;
33
+ router;
34
+ environmentId = '';
35
+ conversationId;
36
+ activeContext;
37
+ contextItemId;
38
+ currentUser = null;
39
+ // Navigation state from route params
40
+ activeTab;
41
+ activeConversationId;
42
+ activeCollectionId;
43
+ activeVersionId;
44
+ activeTaskId;
45
+ constructor(route, router) {
46
+ this.route = route;
47
+ this.router = router;
48
+ }
49
+ ngOnInit() {
50
+ const md = new Metadata();
51
+ this.currentUser = md.CurrentUser;
52
+ this.environmentId = EnvironmentEntityExtended.DefaultEnvironmentID;
53
+ // Subscribe to route params for conversation and context navigation
54
+ this.route.params.subscribe(params => {
55
+ if (params['conversationId']) {
56
+ this.conversationId = params['conversationId'];
57
+ }
58
+ // Handle context (library or task) and contextItemId
59
+ if (params['context']) {
60
+ const context = params['context'];
61
+ if (context === 'library' || context === 'task') {
62
+ this.activeContext = context;
63
+ }
64
+ }
65
+ else {
66
+ this.activeContext = undefined;
67
+ }
68
+ if (params['itemId']) {
69
+ this.contextItemId = params['itemId'];
70
+ }
71
+ else {
72
+ this.contextItemId = undefined;
73
+ }
74
+ });
75
+ // Subscribe to query params for navigation state (tab, activeTaskId, etc.)
76
+ this.route.queryParams.subscribe(queryParams => {
77
+ // Parse navigation properties from query params
78
+ if (queryParams['tab']) {
79
+ const tab = queryParams['tab'];
80
+ if (tab === 'conversations' || tab === 'collections' || tab === 'tasks') {
81
+ this.activeTab = tab;
82
+ }
83
+ }
84
+ // Parse entity-specific IDs based on active tab
85
+ this.activeConversationId = queryParams['activeConversationId'];
86
+ this.activeCollectionId = queryParams['activeCollectionId'];
87
+ this.activeVersionId = queryParams['activeVersionId'];
88
+ this.activeTaskId = queryParams['activeTaskId'];
89
+ });
90
+ }
91
+ /**
92
+ * Handle new conversation started event
93
+ * Clears conversation-specific URL parameters when user clicks "New Conversation"
94
+ */
95
+ onNewConversationStarted() {
96
+ console.log('🆕 New conversation started - clearing URL params');
97
+ // Clear local state
98
+ this.activeConversationId = undefined;
99
+ // Update URL to remove conversation ID, keeping only tab parameter
100
+ this.router.navigate([], {
101
+ relativeTo: this.route,
102
+ queryParams: {
103
+ tab: 'conversations'
104
+ },
105
+ replaceUrl: false // Add to browser history
106
+ });
107
+ }
108
+ /**
109
+ * Handle navigation changes from conversation workspace
110
+ * Update route params to reflect navigation state for browser history/deep linking
111
+ */
112
+ onNavigationChanged(event) {
113
+ // Update local state
114
+ this.activeTab = event.tab;
115
+ this.activeConversationId = event.conversationId;
116
+ this.activeCollectionId = event.collectionId;
117
+ this.activeVersionId = event.versionId;
118
+ this.activeTaskId = event.taskId;
119
+ // Build query params based on active tab
120
+ // IMPORTANT: Only include params relevant to the current tab
121
+ // This prevents parameter accumulation across different contexts
122
+ const queryParams = {
123
+ tab: event.tab
124
+ };
125
+ if (event.tab === 'conversations' && event.conversationId) {
126
+ queryParams.activeConversationId = event.conversationId;
127
+ }
128
+ else if (event.tab === 'collections') {
129
+ // Only add collection/version IDs if they exist
130
+ if (event.collectionId) {
131
+ queryParams.activeCollectionId = event.collectionId;
132
+ }
133
+ if (event.versionId) {
134
+ queryParams.activeVersionId = event.versionId;
135
+ }
136
+ }
137
+ else if (event.tab === 'tasks' && event.taskId) {
138
+ queryParams.activeTaskId = event.taskId;
139
+ }
140
+ // Update URL without reloading the page
141
+ // NOTE: We don't use 'merge' here because we want to REPLACE query params entirely
142
+ // This ensures switching tabs clears irrelevant parameters from previous contexts
143
+ this.router.navigate([], {
144
+ relativeTo: this.route,
145
+ queryParams: queryParams,
146
+ replaceUrl: false // Add to browser history for back/forward navigation
147
+ });
148
+ }
149
+ /**
150
+ * Handle actionable commands from agents and UI interactions
151
+ * Routes commands to appropriate Explorer services (SharedService for entity records, etc.)
152
+ */
153
+ onActionableCommand(command) {
154
+ console.log('🎯 Explorer handling actionable command:', command);
155
+ if (command.type === 'open:resource') {
156
+ // Handle opening MJ resources using SharedService
157
+ const { resourceType, resourceId, entityName, mode } = command;
158
+ if (resourceType === 'Record') {
159
+ // Open entity record using SharedService
160
+ if (!entityName) {
161
+ console.error('entityName is required for Record type commands');
162
+ return;
163
+ }
164
+ const compositeKey = new CompositeKey([{ FieldName: 'ID', Value: resourceId }]);
165
+ SharedService.Instance.OpenEntityRecord(entityName, compositeKey);
166
+ }
167
+ else {
168
+ // For other resource types (Dashboard, Report, Form, View), navigate using Router
169
+ const routeMap = {
170
+ 'Dashboard': '/dashboard',
171
+ 'Report': '/report',
172
+ 'Form': '/form',
173
+ 'View': '/view'
174
+ };
175
+ const basePath = routeMap[resourceType];
176
+ if (basePath) {
177
+ const queryParams = command.parameters || {};
178
+ if (mode) {
179
+ queryParams['mode'] = mode;
180
+ }
181
+ this.router.navigate([`${basePath}/${resourceId}`], { queryParams });
182
+ }
183
+ else {
184
+ console.warn('Unknown resource type:', resourceType);
185
+ }
186
+ }
187
+ }
188
+ else if (command.type === 'open:url') {
189
+ // Handle opening external URLs
190
+ const { url, newTab } = command;
191
+ if (newTab !== false) {
192
+ // Open in new tab (default behavior)
193
+ window.open(url, '_blank', 'noopener,noreferrer');
194
+ }
195
+ else {
196
+ // Navigate in current window
197
+ window.location.href = url;
198
+ }
199
+ }
200
+ }
201
+ /**
202
+ * Handle automatic commands from agents
203
+ * Shows notifications using SharedService notification system
204
+ */
205
+ onAutomaticCommand(command) {
206
+ console.log('🎯 Explorer handling automatic command:', command);
207
+ if (command.type === 'notification') {
208
+ // Show notification using SharedService
209
+ const { message, severity, duration } = command;
210
+ // Map severity to SharedService notification types
211
+ const typeMap = {
212
+ 'success': 'success',
213
+ 'info': 'info',
214
+ 'warning': 'warning',
215
+ 'error': 'error'
216
+ };
217
+ const notificationType = typeMap[severity || 'info'] || 'info';
218
+ SharedService.Instance.CreateSimpleNotification(message, notificationType, duration || 3000);
219
+ }
220
+ }
221
+ static ɵfac = function ChatWrapperComponent_Factory(t) { return new (t || ChatWrapperComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i1.Router)); };
222
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ChatWrapperComponent, selectors: [["mj-chat-wrapper"]], decls: 1, vars: 1, consts: [["class", "chat-wrapper", 4, "ngIf"], [1, "chat-wrapper"], [3, "navigationChanged", "newConversationStarted", "actionableCommandExecuted", "automaticCommandExecuted", "environmentId", "initialConversationId", "currentUser", "layout", "activeContext", "contextItemId", "activeTabInput", "activeConversationInput", "activeCollectionInput", "activeVersionIdInput", "activeTaskInput"]], template: function ChatWrapperComponent_Template(rf, ctx) { if (rf & 1) {
223
+ i0.ɵɵtemplate(0, ChatWrapperComponent_div_0_Template, 2, 11, "div", 0);
224
+ } if (rf & 2) {
225
+ i0.ɵɵproperty("ngIf", ctx.currentUser);
226
+ } }, dependencies: [i2.NgIf, i3.ConversationWorkspaceComponent], styles: [".chat-wrapper[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }"] });
227
+ };
228
+ ChatWrapperComponent = __decorate([
229
+ RegisterClass(BaseNavigationComponent, 'Chat')
230
+ ], ChatWrapperComponent);
231
+ export { ChatWrapperComponent };
232
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatWrapperComponent, [{
233
+ type: Component,
234
+ args: [{ selector: 'mj-chat-wrapper', template: `
235
+ <div class="chat-wrapper" *ngIf="currentUser">
236
+ <mj-conversation-workspace
237
+ [environmentId]="environmentId"
238
+ [initialConversationId]="conversationId"
239
+ [currentUser]="currentUser"
240
+ [layout]="'full'"
241
+ [activeContext]="activeContext"
242
+ [contextItemId]="contextItemId"
243
+ [activeTabInput]="activeTab"
244
+ [activeConversationInput]="activeConversationId"
245
+ [activeCollectionInput]="activeCollectionId"
246
+ [activeVersionIdInput]="activeVersionId"
247
+ [activeTaskInput]="activeTaskId"
248
+ (navigationChanged)="onNavigationChanged($event)"
249
+ (newConversationStarted)="onNewConversationStarted()"
250
+ (actionableCommandExecuted)="onActionableCommand($event)"
251
+ (automaticCommandExecuted)="onAutomaticCommand($event)">
252
+ </mj-conversation-workspace>
253
+ </div>
254
+ `, styles: ["\n .chat-wrapper {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n "] }]
255
+ }], () => [{ type: i1.ActivatedRoute }, { type: i1.Router }], null); })();
256
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatWrapperComponent, { className: "ChatWrapperComponent" }); })();
257
+ //# sourceMappingURL=chat-wrapper.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-wrapper.component.js","sourceRoot":"","sources":["../../../src/lib/chat-wrapper/chat-wrapper.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAY,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;;;;;;;IAY7E,AAD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AAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,IAAI,IAAI,CAAC,CAAC;QAC/F,CAAC;IACH,CAAC;8EAnNU,oBAAoB;6DAApB,oBAAoB;YA9B7B,sEAA8C;;YAAnB,sCAAiB;;;AA8BnC,oBAAoB;IADhC,aAAa,CAAC,uBAAuB,EAAE,MAAM,CAAC;GAClC,oBAAoB,CAoNhC;;iFApNY,oBAAoB;cAjChC,SAAS;2BACE,iBAAiB,YACjB;;;;;;;;;;;;;;;;;;;;GAoBT;;kFAWU,oBAAoB"}
@@ -0,0 +1,79 @@
1
+ import { OnInit, OnDestroy, ElementRef, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { ApplicationManager, BaseApplication } from '@memberjunction/ng-base-application';
3
+ import { CommandPaletteService } from './command-palette.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Command Palette Component
7
+ *
8
+ * Provides a Notion-style command palette for quickly searching and navigating to applications.
9
+ * Triggered by Cmd+K (Mac) or Ctrl+/ (Windows/Linux).
10
+ *
11
+ * Features:
12
+ * - Fuzzy search with relevance scoring
13
+ * - Keyboard navigation (arrow keys, enter, escape)
14
+ * - Loading state during navigation
15
+ * - Empty state with helpful message
16
+ */
17
+ export declare class CommandPaletteComponent implements OnInit, OnDestroy {
18
+ private service;
19
+ private appManager;
20
+ private cdr;
21
+ private destroy$;
22
+ SearchInput: ElementRef<HTMLInputElement>;
23
+ AppSelected: EventEmitter<string>;
24
+ IsOpen: boolean;
25
+ SearchQuery: string;
26
+ AllApps: BaseApplication[];
27
+ FilteredApps: BaseApplication[];
28
+ SelectedIndex: number;
29
+ IsNavigating: boolean;
30
+ constructor(service: CommandPaletteService, appManager: ApplicationManager, cdr: ChangeDetectorRef);
31
+ ngOnInit(): void;
32
+ ngOnDestroy(): void;
33
+ /**
34
+ * Called when command palette opens
35
+ */
36
+ private onOpen;
37
+ /**
38
+ * Called when command palette closes
39
+ */
40
+ private onClose;
41
+ /**
42
+ * Handle search query change
43
+ */
44
+ OnSearchChange(): void;
45
+ /**
46
+ * Filter and sort applications based on search query
47
+ */
48
+ private filterAndSortApps;
49
+ /**
50
+ * Calculate match score for fuzzy search
51
+ *
52
+ * Scoring:
53
+ * - Exact match: 1000 points
54
+ * - Starts with: 500 points
55
+ * - Contains: 100 points
56
+ * - Description match: 50 points
57
+ * - Initials match: 25 points (e.g., "de" matches "Data Explorer")
58
+ */
59
+ private calculateMatchScore;
60
+ /**
61
+ * Select an application and emit event for shell to handle navigation
62
+ */
63
+ SelectApp(app: BaseApplication): void;
64
+ /**
65
+ * Close the command palette
66
+ */
67
+ Close(): void;
68
+ /**
69
+ * Handle keyboard navigation
70
+ */
71
+ HandleKeyDown(event: KeyboardEvent): void;
72
+ /**
73
+ * Ensure selected item is visible in results list
74
+ */
75
+ private scrollToSelected;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommandPaletteComponent, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommandPaletteComponent, "mj-command-palette", never, {}, { "AppSelected": "AppSelected"; }, never, never, false, never>;
78
+ }
79
+ //# sourceMappingURL=command-palette.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-palette.component.d.ts","sourceRoot":"","sources":["../../../src/lib/command-palette/command-palette.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAa,UAAU,EAAgB,iBAAiB,EAAU,YAAY,EAAE,MAAM,eAAe,CAAC;AAG3I,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;;AAElE;;;;;;;;;;;GAWG;AACH,qBAMa,uBAAwB,YAAW,MAAM,EAAE,SAAS;IAc7D,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,GAAG;IAfb,OAAO,CAAC,QAAQ,CAAuB;IAEb,WAAW,EAAG,UAAU,CAAC,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