raise-common-lib 0.0.264 → 0.0.265

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 (30) hide show
  1. package/bundles/raise-common-lib.umd.js +59 -15
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +1 -1
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/dashboard/chat-bot-drawer/chat-bot-best-practice-widget.service.js +18 -7
  6. package/esm2015/lib/dashboard/chat-bot-drawer/chat-bot-drawer.component.js +27 -8
  7. package/esm2015/lib/dashboard/chat-bot-drawer/chat-bot-shell.service.js +18 -7
  8. package/esm2015/lib/dashboard/chat-bot-drawer/constants.js +11 -1
  9. package/esm2015/lib/service/InjectionToken.js +2 -2
  10. package/esm2015/public-api.js +2 -1
  11. package/esm2015/raise-common-lib.js +2 -2
  12. package/esm5/lib/dashboard/chat-bot-drawer/chat-bot-best-practice-widget.service.js +16 -6
  13. package/esm5/lib/dashboard/chat-bot-drawer/chat-bot-drawer.component.js +23 -6
  14. package/esm5/lib/dashboard/chat-bot-drawer/chat-bot-shell.service.js +16 -6
  15. package/esm5/lib/dashboard/chat-bot-drawer/constants.js +11 -1
  16. package/esm5/lib/service/InjectionToken.js +2 -2
  17. package/esm5/public-api.js +2 -1
  18. package/esm5/raise-common-lib.js +2 -2
  19. package/fesm2015/raise-common-lib.js +66 -20
  20. package/fesm2015/raise-common-lib.js.map +1 -1
  21. package/fesm5/raise-common-lib.js +58 -16
  22. package/fesm5/raise-common-lib.js.map +1 -1
  23. package/lib/dashboard/chat-bot-drawer/chat-bot-best-practice-widget.service.d.ts +2 -1
  24. package/lib/dashboard/chat-bot-drawer/chat-bot-drawer.component.d.ts +5 -3
  25. package/lib/dashboard/chat-bot-drawer/chat-bot-shell.service.d.ts +3 -2
  26. package/lib/dashboard/chat-bot-drawer/constants.d.ts +4 -0
  27. package/lib/service/InjectionToken.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/public-api.d.ts +1 -0
  30. package/raise-common-lib.metadata.json +1 -1
@@ -27994,7 +27994,17 @@
27994
27994
  /** @type {?} */
27995
27995
  var CHAT_BOT_ACCOUNTING_HOST = new core.InjectionToken("CHAT_BOT_ACCOUNTING_HOST");
27996
27996
  /** @type {?} */
27997
- var CHAT_BOT_LAYOUT_UTILS_HOST = new core.InjectionToken("CHAT_BOT_LAYOUT_UTILS_HOST");
27997
+ var CHAT_BOT_LAYOUT_UTILS_HOST = new core.InjectionToken("CHAT_BOT_LAYOUT_UTILS_HOST");
27998
+ /**
27999
+ * Host app `DashboardService` (session handoff, download widget, EnableAIChat).
28000
+ * @type {?}
28001
+ */
28002
+ var CHAT_BOT_DASHBOARD_SERVICE = new core.InjectionToken("CHAT_BOT_DASHBOARD_SERVICE");
28003
+ /**
28004
+ * Host app `DashboardPorletsService` (widget data for inline previews).
28005
+ * @type {?}
28006
+ */
28007
+ var CHAT_BOT_PORTLETS_SERVICE = new core.InjectionToken("CHAT_BOT_PORTLETS_SERVICE");
27998
28008
 
27999
28009
  /**
28000
28010
  * @fileoverview added by tsickle
@@ -39303,8 +39313,8 @@
39303
39313
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
39304
39314
  */
39305
39315
  var ChatBotShellService = /** @class */ (function () {
39306
- function ChatBotShellService(dashboardService, chatBotSessionsService) {
39307
- this.dashboardService = dashboardService;
39316
+ function ChatBotShellService(libDashboardService, chatBotSessionsService, hostDashboardService) {
39317
+ this.libDashboardService = libDashboardService;
39308
39318
  this.chatBotSessionsService = chatBotSessionsService;
39309
39319
  this.drawerVisible = false;
39310
39320
  this.sessionsLoading = false;
@@ -39324,6 +39334,8 @@
39324
39334
  this.conversationSync$ = this.conversationSync.asObservable();
39325
39335
  this.conversationSyncRevision = 0;
39326
39336
  this.conversationSyncState = null;
39337
+ this.dashboardService =
39338
+ hostDashboardService || this.libDashboardService;
39327
39339
  }
39328
39340
  Object.defineProperty(ChatBotShellService.prototype, "showTrigger", {
39329
39341
  get: /**
@@ -39776,9 +39788,10 @@
39776
39788
  /** @nocollapse */
39777
39789
  ChatBotShellService.ctorParameters = function () { return [
39778
39790
  { type: DashboardService },
39779
- { type: ChatBotSessionsService }
39791
+ { type: ChatBotSessionsService },
39792
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CHAT_BOT_DASHBOARD_SERVICE,] }] }
39780
39793
  ]; };
39781
- /** @nocollapse */ ChatBotShellService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ChatBotShellService_Factory() { return new ChatBotShellService(core.ɵɵinject(DashboardService), core.ɵɵinject(ChatBotSessionsService)); }, token: ChatBotShellService, providedIn: "root" });
39794
+ /** @nocollapse */ ChatBotShellService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ChatBotShellService_Factory() { return new ChatBotShellService(core.ɵɵinject(DashboardService), core.ɵɵinject(ChatBotSessionsService), core.ɵɵinject(CHAT_BOT_DASHBOARD_SERVICE, 8)); }, token: ChatBotShellService, providedIn: "root" });
39782
39795
  return ChatBotShellService;
39783
39796
  }());
39784
39797
  if (false) {
@@ -39846,6 +39859,11 @@
39846
39859
  * @private
39847
39860
  */
39848
39861
  ChatBotShellService.prototype.dashboardService;
39862
+ /**
39863
+ * @type {?}
39864
+ * @private
39865
+ */
39866
+ ChatBotShellService.prototype.libDashboardService;
39849
39867
  /**
39850
39868
  * @type {?}
39851
39869
  * @private
@@ -42134,11 +42152,13 @@
42134
42152
  ChatBotRankListResult.prototype.rows;
42135
42153
  }
42136
42154
  var ChatBotBestPracticeWidgetService = /** @class */ (function () {
42137
- function ChatBotBestPracticeWidgetService(api, http, pbf, dashboardPorletsService) {
42155
+ function ChatBotBestPracticeWidgetService(api, http, pbf, libDashboardPorletsService, hostPortletsService) {
42138
42156
  this.api = api;
42139
42157
  this.http = http;
42140
42158
  this.pbf = pbf;
42141
- this.dashboardPorletsService = dashboardPorletsService;
42159
+ this.libDashboardPorletsService = libDashboardPorletsService;
42160
+ this.dashboardPorletsService =
42161
+ hostPortletsService || this.libDashboardPorletsService;
42142
42162
  }
42143
42163
  /**
42144
42164
  * @param {?} card
@@ -43651,12 +43671,18 @@
43651
43671
  { type: ApiList },
43652
43672
  { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [API_SERVICE_TOKEN,] }] },
43653
43673
  { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [PBF_TOKEN,] }] },
43654
- { type: DashboardPorletsService }
43674
+ { type: DashboardPorletsService },
43675
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CHAT_BOT_PORTLETS_SERVICE,] }] }
43655
43676
  ]; };
43656
- /** @nocollapse */ ChatBotBestPracticeWidgetService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ChatBotBestPracticeWidgetService_Factory() { return new ChatBotBestPracticeWidgetService(core.ɵɵinject(ApiList), core.ɵɵinject(API_SERVICE_TOKEN, 8), core.ɵɵinject(PBF_TOKEN, 8), core.ɵɵinject(DashboardPorletsService)); }, token: ChatBotBestPracticeWidgetService, providedIn: "root" });
43677
+ /** @nocollapse */ ChatBotBestPracticeWidgetService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ChatBotBestPracticeWidgetService_Factory() { return new ChatBotBestPracticeWidgetService(core.ɵɵinject(ApiList), core.ɵɵinject(API_SERVICE_TOKEN, 8), core.ɵɵinject(PBF_TOKEN, 8), core.ɵɵinject(DashboardPorletsService), core.ɵɵinject(CHAT_BOT_PORTLETS_SERVICE, 8)); }, token: ChatBotBestPracticeWidgetService, providedIn: "root" });
43657
43678
  return ChatBotBestPracticeWidgetService;
43658
43679
  }());
43659
43680
  if (false) {
43681
+ /**
43682
+ * @type {?}
43683
+ * @private
43684
+ */
43685
+ ChatBotBestPracticeWidgetService.prototype.dashboardPorletsService;
43660
43686
  /**
43661
43687
  * @type {?}
43662
43688
  * @private
@@ -43676,7 +43702,7 @@
43676
43702
  * @type {?}
43677
43703
  * @private
43678
43704
  */
43679
- ChatBotBestPracticeWidgetService.prototype.dashboardPorletsService;
43705
+ ChatBotBestPracticeWidgetService.prototype.libDashboardPorletsService;
43680
43706
  }
43681
43707
 
43682
43708
  /**
@@ -43879,7 +43905,7 @@
43879
43905
  ChatSuggestionState.prototype.globalMenu;
43880
43906
  }
43881
43907
  var ChatBotDrawerComponent = /** @class */ (function () {
43882
- function ChatBotDrawerComponent(zone, cdr, sanitizer, router, pbf, api, http, accountingHost, dashboardService, dashboardPorletsService, dialog, layoutUtilsHost, generateReportPackDialog, generateReportPackHeadlessService, chatBotSessionsService, chatBotUsageService, chatBotBestPracticeWidgetService, chatBotShell) {
43908
+ function ChatBotDrawerComponent(zone, cdr, sanitizer, router, pbf, api, http, accountingHost, libDashboardService, libDashboardPorletsService, hostDashboardService, hostPortletsService, dialog, layoutUtilsHost, generateReportPackDialog, generateReportPackHeadlessService, chatBotSessionsService, chatBotUsageService, chatBotBestPracticeWidgetService, chatBotShell) {
43883
43909
  this.zone = zone;
43884
43910
  this.cdr = cdr;
43885
43911
  this.sanitizer = sanitizer;
@@ -43888,8 +43914,8 @@
43888
43914
  this.api = api;
43889
43915
  this.http = http;
43890
43916
  this.accountingHost = accountingHost;
43891
- this.dashboardService = dashboardService;
43892
- this.dashboardPorletsService = dashboardPorletsService;
43917
+ this.libDashboardService = libDashboardService;
43918
+ this.libDashboardPorletsService = libDashboardPorletsService;
43893
43919
  this.dialog = dialog;
43894
43920
  this.layoutUtilsHost = layoutUtilsHost;
43895
43921
  this.generateReportPackDialog = generateReportPackDialog;
@@ -43973,6 +43999,10 @@
43973
43999
  this.pendingSuggestionsToReveal = null;
43974
44000
  this.suggestionsRevealTimer = null;
43975
44001
  this.readResultSourceCollapseAfter = READ_RESULT_SOURCE_COLLAPSE_AFTER;
44002
+ this.dashboardService =
44003
+ hostDashboardService || this.libDashboardService;
44004
+ this.dashboardPorletsService =
44005
+ hostPortletsService || this.libDashboardPorletsService;
43976
44006
  this.resetWelcomeSuggestionsToDefault();
43977
44007
  this.refreshSessionHistoryGroups();
43978
44008
  }
@@ -53711,6 +53741,8 @@
53711
53741
  { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CHAT_BOT_ACCOUNTING_HOST,] }] },
53712
53742
  { type: DashboardService },
53713
53743
  { type: DashboardPorletsService },
53744
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CHAT_BOT_DASHBOARD_SERVICE,] }] },
53745
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CHAT_BOT_PORTLETS_SERVICE,] }] },
53714
53746
  { type: dialog.MatDialog },
53715
53747
  { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CHAT_BOT_LAYOUT_UTILS_HOST,] }] },
53716
53748
  { type: core.Type, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CHAT_BOT_GENERATE_REPORT_PACK_DIALOG,] }] },
@@ -53966,6 +53998,16 @@
53966
53998
  * @private
53967
53999
  */
53968
54000
  ChatBotDrawerComponent.prototype.directReportPackProgressDialogRef;
54001
+ /**
54002
+ * @type {?}
54003
+ * @private
54004
+ */
54005
+ ChatBotDrawerComponent.prototype.dashboardService;
54006
+ /**
54007
+ * @type {?}
54008
+ * @private
54009
+ */
54010
+ ChatBotDrawerComponent.prototype.dashboardPorletsService;
53969
54011
  /**
53970
54012
  * @type {?}
53971
54013
  * @private
@@ -54022,12 +54064,12 @@
54022
54064
  * @type {?}
54023
54065
  * @private
54024
54066
  */
54025
- ChatBotDrawerComponent.prototype.dashboardService;
54067
+ ChatBotDrawerComponent.prototype.libDashboardService;
54026
54068
  /**
54027
54069
  * @type {?}
54028
54070
  * @private
54029
54071
  */
54030
- ChatBotDrawerComponent.prototype.dashboardPorletsService;
54072
+ ChatBotDrawerComponent.prototype.libDashboardPorletsService;
54031
54073
  /**
54032
54074
  * @type {?}
54033
54075
  * @private
@@ -71993,8 +72035,10 @@
71993
72035
 
71994
72036
  exports.API_SERVICE_TOKEN = API_SERVICE_TOKEN;
71995
72037
  exports.CHAT_BOT_ACCOUNTING_HOST = CHAT_BOT_ACCOUNTING_HOST;
72038
+ exports.CHAT_BOT_DASHBOARD_SERVICE = CHAT_BOT_DASHBOARD_SERVICE;
71996
72039
  exports.CHAT_BOT_GENERATE_REPORT_PACK_DIALOG = CHAT_BOT_GENERATE_REPORT_PACK_DIALOG;
71997
72040
  exports.CHAT_BOT_LAYOUT_UTILS_HOST = CHAT_BOT_LAYOUT_UTILS_HOST;
72041
+ exports.CHAT_BOT_PORTLETS_SERVICE = CHAT_BOT_PORTLETS_SERVICE;
71998
72042
  exports.ChatBotDrawerComponent = ChatBotDrawerComponent;
71999
72043
  exports.ChatBotSessionsService = ChatBotSessionsService;
72000
72044
  exports.ChatBotShellService = ChatBotShellService;