@amc-technology/ui-library 1.0.97 → 1.0.99
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.
- package/amc-technology-ui-library.d.ts +4 -0
- package/amc-technology-ui-library.metadata.json +1 -1
- package/bundles/amc-technology-ui-library.umd.js +529 -20
- package/bundles/amc-technology-ui-library.umd.js.map +1 -1
- package/bundles/amc-technology-ui-library.umd.min.js +2 -2
- package/bundles/amc-technology-ui-library.umd.min.js.map +1 -1
- package/esm2015/amc-technology-ui-library.js +5 -1
- package/esm2015/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +5 -7
- package/esm2015/projects/UILibrary/src/app/components/create/create.component.js +35 -0
- package/esm2015/projects/UILibrary/src/app/components/current-activity/current-activity.component.js +169 -0
- package/esm2015/projects/UILibrary/src/app/components/disposition/disposition.component.js +1 -1
- package/esm2015/projects/UILibrary/src/app/components/interaction/interaction.component.js +13 -3
- package/esm2015/projects/UILibrary/src/app/components/login/login.component.js +2 -4
- package/esm2015/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.js +142 -0
- package/esm2015/projects/UILibrary/src/app/components/search-information/search-information.component.js +155 -0
- package/esm2015/projects/UILibrary/src/app/models/IActivity.js +1 -0
- package/esm2015/projects/UILibrary/src/app/models/IActivityDetails.js +1 -0
- package/esm2015/projects/UILibrary/src/app/models/IHoldActivityDetails.js +1 -0
- package/esm2015/projects/UILibrary/src/app/models/IInteractionActivityDetails.js +1 -0
- package/esm2015/projects/UILibrary/src/app/uilibrary.module.js +15 -5
- package/esm5/amc-technology-ui-library.js +5 -1
- package/esm5/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +5 -7
- package/esm5/projects/UILibrary/src/app/components/create/create.component.js +36 -0
- package/esm5/projects/UILibrary/src/app/components/current-activity/current-activity.component.js +174 -0
- package/esm5/projects/UILibrary/src/app/components/disposition/disposition.component.js +1 -1
- package/esm5/projects/UILibrary/src/app/components/interaction/interaction.component.js +13 -3
- package/esm5/projects/UILibrary/src/app/components/login/login.component.js +2 -4
- package/esm5/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.js +144 -0
- package/esm5/projects/UILibrary/src/app/components/search-information/search-information.component.js +156 -0
- package/esm5/projects/UILibrary/src/app/models/IActivity.js +1 -0
- package/esm5/projects/UILibrary/src/app/models/IActivityDetails.js +1 -0
- package/esm5/projects/UILibrary/src/app/models/IHoldActivityDetails.js +1 -0
- package/esm5/projects/UILibrary/src/app/models/IInteractionActivityDetails.js +1 -0
- package/esm5/projects/UILibrary/src/app/uilibrary.module.js +15 -5
- package/fesm2015/amc-technology-ui-library.js +517 -18
- package/fesm2015/amc-technology-ui-library.js.map +1 -1
- package/fesm5/amc-technology-ui-library.js +526 -18
- package/fesm5/amc-technology-ui-library.js.map +1 -1
- package/package.json +6 -1
- package/projects/UILibrary/src/app/components/chat-box/chat-box.component.d.ts +0 -2
- package/projects/UILibrary/src/app/components/create/create.component.d.ts +11 -0
- package/projects/UILibrary/src/app/components/current-activity/current-activity.component.d.ts +34 -0
- package/projects/UILibrary/src/app/components/interaction/interaction.component.d.ts +1 -0
- package/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.d.ts +35 -0
- package/projects/UILibrary/src/app/components/search-information/search-information.component.d.ts +26 -0
- package/projects/UILibrary/src/app/models/IActivity.d.ts +36 -0
- package/projects/UILibrary/src/app/models/IActivityDetails.d.ts +7 -0
- package/projects/UILibrary/src/app/models/IHoldActivityDetails.d.ts +10 -0
- package/projects/UILibrary/src/app/models/IInteractionActivityDetails.d.ts +9 -0
- package/webcomponents/webcomponents.js +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/elements'), require('@angular/platform-browser'), require('elements-zone-strategy')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@amc-technology/ui-library', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/elements', '@angular/platform-browser', 'elements-zone-strategy'], factory) :
|
|
4
|
-
(global = global || self, factory((global['amc-technology'] = global['amc-technology'] || {}, global['amc-technology']['ui-library'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.elements, global.ng.platformBrowser, global.elementsZoneStrategy));
|
|
5
|
-
}(this, (function (exports, core, common, forms, elements, platformBrowser, elementsZoneStrategy) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/elements'), require('@angular/platform-browser'), require('elements-zone-strategy'), require('rxjs/operators'), require('rxjs'), require('@angular/material/tabs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@amc-technology/ui-library', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/elements', '@angular/platform-browser', 'elements-zone-strategy', 'rxjs/operators', 'rxjs', '@angular/material/tabs'], factory) :
|
|
4
|
+
(global = global || self, factory((global['amc-technology'] = global['amc-technology'] || {}, global['amc-technology']['ui-library'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.elements, global.ng.platformBrowser, global.elementsZoneStrategy, global.rxjs.operators, global.rxjs, global.ng.material.tabs));
|
|
5
|
+
}(this, (function (exports, core, common, forms, elements, platformBrowser, elementsZoneStrategy, operators, rxjs, tabs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -283,6 +283,16 @@
|
|
|
283
283
|
this.maximize();
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
+
InteractionComponent.prototype.clickEvent = function (id) {
|
|
287
|
+
document.getElementById(id).className = 'success';
|
|
288
|
+
if (localStorage.getItem('focusedPanel') === null) {
|
|
289
|
+
localStorage.setItem('focusedPanel', id);
|
|
290
|
+
}
|
|
291
|
+
else if (localStorage.getItem('focusedPanel') != id) {
|
|
292
|
+
document.getElementById(localStorage.getItem('focusedPanel')).className = 'AnswerCallFocused';
|
|
293
|
+
localStorage.setItem('focusedPanel', id);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
286
296
|
__decorate([
|
|
287
297
|
core.Input()
|
|
288
298
|
], InteractionComponent.prototype, "interaction", void 0);
|
|
@@ -301,8 +311,8 @@
|
|
|
301
311
|
InteractionComponent = __decorate([
|
|
302
312
|
core.Component({
|
|
303
313
|
selector: 'amc-interaction',
|
|
304
|
-
template: "<div class=\"AnswerCallFocused\">\r\n <div class=\"editor callHeaderTop\">\r\n <img class=\"statusImage\" aria-hidden=\"true\" [src]=\"interaction.UIHeadersData.statusUrl\" (click)=\"interaction.UIHeadersData.focusHandler.handler(interaction.UIHeadersData.focusHandler.operationName, interaction.UIHeadersData.focusHandler.operationMetadata)\" />\r\n <label class=\"statusText\">\r\n <b [id]=\"interaction.UIHeadersData.statusText\">{{ interaction.UIHeadersData.statusText }}</b>\r\n </label>\r\n <label class=\"verticalDivider\">|</label>\r\n <label class=\"directionText\" *ngIf=\"!interaction.UIHeadersData.displayHoldCounter\">{{ interaction.UIHeadersData.directionText }}</label>\r\n <div class=\"holdCallDurationDiv\" *ngIf=\"interaction.UIHeadersData.displayHoldCounter\">\r\n <amc-holdtimer [holdCounterData]=\"interaction.UIHeadersData.holdCounterData\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\"></amc-holdtimer>\r\n </div>\r\n <img class=\"ViewExpandImage\" [src]=\"interaction.UIHeadersData.minimizeUrl\" alt=\"Minimize\" (click)=\"minimize()\" (keypress)=\"collapseKeypress($event)\" *ngIf=\"!_minimized\" tabindex=\"0\" role=\"button\" aria-label=\"collapse Call Section\">\r\n <img class=\"ViewCollapseImage\" [src]=\"interaction.UIHeadersData.maximizeUrl\" alt=\"Maximize\" (click)=\"maximize()\" (keypress)=\"expandKeypress($event)\" *ngIf=\"_minimized\" tabindex=\"0\" role=\"button\" aria-label=\"expand Call Section\">\r\n <div class=\"DurationDiv\" *ngIf=\"interaction.displayCallTimer\">\r\n <amc-duration [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [startTime]=\"interaction.startTime\"></amc-duration>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"!_minimized\">\r\n\r\n <div *ngIf=\"!isConferenceCall()\">\r\n <div class=\"editor phoneNumberContainer\">\r\n <input class=\"callImage\" type=\"image\" [src]=\"interaction.subheaderData.image.href\" [title]=\"interaction.subheaderData.tooltip || ''\" tabindex=\"-1\">\r\n <input class=\"editor phoneNumberValue\" [attr.aria-labelledby]=\"interaction.UIHeadersData.statusText + ' ' + interaction.subheaderData.value\" readonly type=\"text\" [value]=\"interaction.subheaderData.value\" [id]=\"interaction.subheaderData.value\" tabindex=\"-1\">\r\n </div>\r\n\r\n <div class=\"cadSection\">\r\n <ng-container *ngFor=\"let property of interaction.properties\">\r\n <ng-container *ngIf=\"property.visible\">\r\n <label class=\"col1\" [title]=\"property.displayKey\">{{property.displayKey}}</label>\r\n <amc-property [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" class=\"col2\" [property]=\"property\"> </amc-property>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let property of interaction.associatedData\">\r\n <ng-container *ngIf=\"property.visible\">\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" [title]=\"property.displayKey\">{{property.displayKey}}</label>\r\n <amc-property [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" class=\"col2\" [property]=\"property\"> </amc-property>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <amc-operation *ngIf=\"interaction.chat\" id=\"close-chat\" [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [operations]=\"interaction.operations\"></amc-operation>\r\n <app-chat-box *ngIf=\"interaction.chat\" [isTyping]=\"interaction.chat.isCustomerTyping\" [settings]=\"interaction.chat.settings\"\r\n [messages]=\"interaction.chat.messages\" [newMsgs]=\"newMsgs\" (isAgentTyping)=\"isAgentTyping.emit($event)\" (newMessage)=\"newMessage.emit($event)\"></app-chat-box>\r\n\r\n <div [id]='interaction.interactionId'> </div>\r\n <amc-operation *ngIf=\"!interaction.chat\" [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [operations]=\"interaction.operations\"></amc-operation>\r\n </div>\r\n\r\n <div *ngIf=\"isConferenceCall()\">\r\n <div *ngFor=\"let party of interaction.parties\">\r\n <div class=\"editor phoneNumberContainer\">\r\n <input class=\"callImage\" type=\"image\" [src]=\"party.header.image.href\" [title]=\"party.header.tooltip || ''\" tabindex=\"-1\">\r\n <input class=\"editor phoneNumberValue\" readonly type=\"text\" [value]=\"party.header.value\" tabindex=\"-1\">\r\n </div>\r\n\r\n <div class=\"grid-container\">\r\n <ng-container *ngFor=\"let property of party.properties\">\r\n <ng-container *ngIf=\"property.visible\">\r\n <label class=\"col1\" [title]=\"property.displayKey\">{{ property.displayKey }}</label>\r\n <amc-property [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"party.header.value\" class=\"col2\" [property]=\"property\"> </amc-property>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <amc-operation [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"party.header.value\" [operations]=\"party.operations\"></amc-operation>\r\n <div class=\"AnswerCallFocused\"></div>\r\n </div>\r\n <amc-operation [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [operations]=\"interaction.operations\"></amc-operation>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n",
|
|
305
|
-
styles: [":host{display:block}.phoneNumberContainer{margin-left:5px!important;padding-left:0;display:flex;align-items:center}.cadSection{margin-bottom:5px}#close-chat{-moz-text-align-last:end;text-align-last:end}.grid-container{margin-left:5px;display:grid;grid-template-columns:auto 1fr;grid-column-gap:10px;max-width:calc(100% - 5px);overflow:hidden}.col1{grid-column:1/2}.col2{grid-column:2/3}.ViewExpandImage{margin:3px}.ViewExpandImage:focus{outline:#3296da solid 2px;outline-offset:0}.ViewCollapseImage{margin:3px}.ViewCollapseImage:focus{outline:#3296da solid 2px;outline-offset:0}.callImage{cursor:default}.phoneNumberValue:focus{outline-style:none}", "body{padding-top:5px;padding-bottom:5px;margin:0}.login{width:20px;height:20px;display:block;margin-top:2px;margin-left:auto;margin-right:auto}.editor{font-size:.9em;text-align:left;margin:4px 5% 0 0;font-family:Arial;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:0;padding-top:2px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.editor .standalone-line{width:90%!important;text-align:center!important}.editorHyperLink label{font-size:.95em;float:left;width:30%;margin-left:2%;text-align:left;color:#000;font-family:Arial;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0;padding-top:0}.editorHyperLink input[type=text]{font-size:.95em;width:60%;text-align:left;margin:0 5% 0 0;color:#318fc5;cursor:pointer;font-family:Arial;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;padding-top:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.AnswerCallImages{height:20px;margin:0 5px 2px}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;box-sizing:border-box}.ViewCollapseImage,.ViewExpandImage{width:20px;height:20px;float:right;cursor:pointer}.answerPhoneNumberStyle{border:0;position:relative;top:-12px;left:-38px;max-width:80px;height:15px;text-overflow:ellipsis;font-size:.85em}.callHeaderTop{border-bottom:1px solid;background-color:#f4f5fb;width:100%;margin-top:0}.statusImage{width:15px;height:15px;margin-left:10px;float:left;margin-right:5px}.statusText{float:left;margin-top:1px}.displayDiv{width:100%;display:flex}.DurationDiv{float:right;width:17%;text-align:right;margin-right:5px}.displayLabels{margin-left:5px;width:25%;overflow:hidden;text-overflow:ellipsis}.displayData{border:0;outline:0}.callOptions{background-color:#f6f7fb;bottom:0;width:100%;text-align:center}.directionText{font-size:.8em;margin-left:2px}.phoneNumberValue{font-weight:700;font-size:1em;margin-left:5px}.durationInput{background-color:transparent;border:0;width:100%;text-align:right}.topBorder{border-top:1px solid #939598}.holdCallDurationDiv{float:left;margin-top:1px;margin-left:2px}.holdCallDurationTimer{background-color:transparent;border:0;width:100%}.verticalDivider{margin-left:2px;float:left}.callImage{height:20px}"]
|
|
314
|
+
template: "<div class=\"AnswerCallFocused\" [id]=\"interaction.interactionId\">\r\n <div class=\"editor callHeaderTop\" (click)=\"clickEvent(interaction.interactionId)\">\r\n <img class=\"statusImage\" aria-hidden=\"true\" [src]=\"interaction.UIHeadersData.statusUrl\" (click)=\"interaction.UIHeadersData.focusHandler.handler(interaction.UIHeadersData.focusHandler.operationName, interaction.UIHeadersData.focusHandler.operationMetadata)\" />\r\n <label class=\"statusText\">\r\n <b [id]=\"interaction.UIHeadersData.statusText\">{{ interaction.UIHeadersData.statusText }}</b>\r\n </label>\r\n <label class=\"verticalDivider\">|</label>\r\n <label class=\"directionText\" *ngIf=\"!interaction.UIHeadersData.displayHoldCounter\">{{ interaction.UIHeadersData.directionText }}</label>\r\n <div class=\"holdCallDurationDiv\" *ngIf=\"interaction.UIHeadersData.displayHoldCounter\">\r\n <amc-holdtimer [holdCounterData]=\"interaction.UIHeadersData.holdCounterData\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\"></amc-holdtimer>\r\n </div>\r\n <img class=\"ViewExpandImage\" [src]=\"interaction.UIHeadersData.minimizeUrl\" alt=\"Minimize\" (click)=\"minimize()\" (keypress)=\"collapseKeypress($event)\" *ngIf=\"!_minimized\" tabindex=\"0\" role=\"button\" aria-label=\"collapse Call Section\">\r\n <img class=\"ViewCollapseImage\" [src]=\"interaction.UIHeadersData.maximizeUrl\" alt=\"Maximize\" (click)=\"maximize()\" (keypress)=\"expandKeypress($event)\" *ngIf=\"_minimized\" tabindex=\"0\" role=\"button\" aria-label=\"expand Call Section\">\r\n <div class=\"DurationDiv\" *ngIf=\"interaction.displayCallTimer\">\r\n <amc-duration [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [startTime]=\"interaction.startTime\"></amc-duration>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"!_minimized\">\r\n\r\n <div *ngIf=\"!isConferenceCall()\">\r\n <div class=\"editor phoneNumberContainer\">\r\n <input class=\"callImage\" type=\"image\" [src]=\"interaction.subheaderData.image.href\" [title]=\"interaction.subheaderData.tooltip || ''\" tabindex=\"-1\">\r\n <input class=\"editor phoneNumberValue\" [attr.aria-labelledby]=\"interaction.UIHeadersData.statusText + ' ' + interaction.subheaderData.value\" readonly type=\"text\" [value]=\"interaction.subheaderData.value\" [id]=\"interaction.subheaderData.value\" tabindex=\"-1\">\r\n </div>\r\n\r\n <div class=\"cadSection\">\r\n <ng-container *ngFor=\"let property of interaction.properties\">\r\n <ng-container *ngIf=\"property.visible\">\r\n <label class=\"col1\" [title]=\"property.displayKey\">{{property.displayKey}}</label>\r\n <amc-property [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" class=\"col2\" [property]=\"property\"> </amc-property>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let property of interaction.associatedData\">\r\n <ng-container *ngIf=\"property.visible\">\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" [title]=\"property.displayKey\">{{property.displayKey}}</label>\r\n <amc-property [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" class=\"col2\" [property]=\"property\"> </amc-property>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <amc-operation *ngIf=\"interaction.chat\" id=\"close-chat\" [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [operations]=\"interaction.operations\"></amc-operation>\r\n <app-chat-box *ngIf=\"interaction.chat\" [isTyping]=\"interaction.chat.isCustomerTyping\" [settings]=\"interaction.chat.settings\"\r\n [messages]=\"interaction.chat.messages\" [newMsgs]=\"newMsgs\" (isAgentTyping)=\"isAgentTyping.emit($event)\" (newMessage)=\"newMessage.emit($event)\"></app-chat-box>\r\n\r\n <div [id]='interaction.interactionId'> </div>\r\n <amc-operation *ngIf=\"!interaction.chat\" [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [operations]=\"interaction.operations\"></amc-operation>\r\n </div>\r\n\r\n <div *ngIf=\"isConferenceCall()\">\r\n <div *ngFor=\"let party of interaction.parties\">\r\n <div class=\"editor phoneNumberContainer\">\r\n <input class=\"callImage\" type=\"image\" [src]=\"party.header.image.href\" [title]=\"party.header.tooltip || ''\" tabindex=\"-1\">\r\n <input class=\"editor phoneNumberValue\" readonly type=\"text\" [value]=\"party.header.value\" tabindex=\"-1\">\r\n </div>\r\n\r\n <div class=\"grid-container\">\r\n <ng-container *ngFor=\"let property of party.properties\">\r\n <ng-container *ngIf=\"property.visible\">\r\n <label class=\"col1\" [title]=\"property.displayKey\">{{ property.displayKey }}</label>\r\n <amc-property [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"party.header.value\" class=\"col2\" [property]=\"property\"> </amc-property>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <amc-operation [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"party.header.value\" [operations]=\"party.operations\"></amc-operation>\r\n <div class=\"AnswerCallFocused\"></div>\r\n </div>\r\n <amc-operation [callType]=\"interaction.UIHeadersData.directionText\" [statusText]=\"interaction.UIHeadersData.statusText\" [callId]=\"interaction.subheaderData.value\" [operations]=\"interaction.operations\"></amc-operation>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n",
|
|
315
|
+
styles: [":host{display:block}.phoneNumberContainer{margin-left:5px!important;padding-left:0;display:flex;align-items:center}.cadSection{margin-bottom:5px}#close-chat{-moz-text-align-last:end;text-align-last:end}.grid-container{margin-left:5px;display:grid;grid-template-columns:auto 1fr;grid-column-gap:10px;max-width:calc(100% - 5px);overflow:hidden}.col1{grid-column:1/2}.col2{grid-column:2/3}.ViewExpandImage{margin:3px}.ViewExpandImage:focus{outline:#3296da solid 2px;outline-offset:0}.ViewCollapseImage{margin:3px}.ViewCollapseImage:focus{outline:#3296da solid 2px;outline-offset:0}.callImage{cursor:default}.phoneNumberValue:focus{outline-style:none}#call123{border:4px!important}.success{border:2px solid #00adbb!important}", "body{padding-top:5px;padding-bottom:5px;margin:0}.login{width:20px;height:20px;display:block;margin-top:2px;margin-left:auto;margin-right:auto}.editor{font-size:.9em;text-align:left;margin:4px 5% 0 0;font-family:Arial;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:0;padding-top:2px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.editor .standalone-line{width:90%!important;text-align:center!important}.editorHyperLink label{font-size:.95em;float:left;width:30%;margin-left:2%;text-align:left;color:#000;font-family:Arial;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0;padding-top:0}.editorHyperLink input[type=text]{font-size:.95em;width:60%;text-align:left;margin:0 5% 0 0;color:#318fc5;cursor:pointer;font-family:Arial;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;padding-top:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.AnswerCallImages{height:20px;margin:0 5px 2px}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;box-sizing:border-box}.ViewCollapseImage,.ViewExpandImage{width:20px;height:20px;float:right;cursor:pointer}.answerPhoneNumberStyle{border:0;position:relative;top:-12px;left:-38px;max-width:80px;height:15px;text-overflow:ellipsis;font-size:.85em}.callHeaderTop{border-bottom:1px solid;background-color:#f4f5fb;width:100%;margin-top:0}.statusImage{width:15px;height:15px;margin-left:10px;float:left;margin-right:5px}.statusText{float:left;margin-top:1px}.displayDiv{width:100%;display:flex}.DurationDiv{float:right;width:17%;text-align:right;margin-right:5px}.displayLabels{margin-left:5px;width:25%;overflow:hidden;text-overflow:ellipsis}.displayData{border:0;outline:0}.callOptions{background-color:#f6f7fb;bottom:0;width:100%;text-align:center}.directionText{font-size:.8em;margin-left:2px}.phoneNumberValue{font-weight:700;font-size:1em;margin-left:5px}.durationInput{background-color:transparent;border:0;width:100%;text-align:right}.topBorder{border-top:1px solid #939598}.holdCallDurationDiv{float:left;margin-top:1px;margin-left:2px}.holdCallDurationTimer{background-color:transparent;border:0;width:100%}.verticalDivider{margin-left:2px;float:left}.callImage{height:20px}"]
|
|
306
316
|
})
|
|
307
317
|
], InteractionComponent);
|
|
308
318
|
return InteractionComponent;
|
|
@@ -691,8 +701,6 @@
|
|
|
691
701
|
this.renderer = renderer;
|
|
692
702
|
this.isTyping = false;
|
|
693
703
|
this.lastCount = -1;
|
|
694
|
-
this.lastScrollTop = 0;
|
|
695
|
-
this.newMessageSent = false;
|
|
696
704
|
this._isAgentTyping = false;
|
|
697
705
|
this.isAgentTyping = new core.EventEmitter();
|
|
698
706
|
this.newMessage = new core.EventEmitter();
|
|
@@ -729,11 +737,13 @@
|
|
|
729
737
|
}
|
|
730
738
|
catch (e) { }
|
|
731
739
|
finally {
|
|
740
|
+
this.scrollToBottom();
|
|
732
741
|
}
|
|
733
742
|
};
|
|
734
743
|
ChatBoxComponent.prototype.ngAfterViewChecked = function () {
|
|
735
744
|
if (this.lastCount !== this.messages.length) {
|
|
736
745
|
this.lastCount = this.messages.length;
|
|
746
|
+
this.scrollToBottom();
|
|
737
747
|
}
|
|
738
748
|
};
|
|
739
749
|
ChatBoxComponent.prototype.getColor = function (message) {
|
|
@@ -755,8 +765,6 @@
|
|
|
755
765
|
return message.type && message.type === exports.IChatMessageType.AGENT;
|
|
756
766
|
};
|
|
757
767
|
ChatBoxComponent.prototype.sendNewMessage = function (event) {
|
|
758
|
-
this.scrollToBottom();
|
|
759
|
-
this.newMessageSent = true;
|
|
760
768
|
event.preventDefault();
|
|
761
769
|
if (this.newMessageText) {
|
|
762
770
|
this.newMessage.emit(this.newMessageText);
|
|
@@ -817,8 +825,8 @@
|
|
|
817
825
|
ChatBoxComponent = __decorate([
|
|
818
826
|
core.Component({
|
|
819
827
|
selector: 'app-chat-box',
|
|
820
|
-
template: "<div class=\"chat-box\">\r\n <div #MessagesContainer id=\"msgScroll\" class=\"messages\" [style.max-height]='settings.maxHeight'>\r\n <
|
|
821
|
-
styles: [".message-box{flex:1 1 0;width:99%;background:#fff;margin:auto;position:relative;border-radius:5px;height:100%;border:1px solid #ccc}.message-box .message-input{background:0 0;border:none;outline:0!important;resize:none;font-family:inherit;font-size:.8rem;height:100%;margin:0;padding:10px 7px;width:89%;color:#444}.message-box textarea:focus:-webkit-placeholder{color:transparent}.message-box .message-submit{position:absolute;z-index:1;top:26px;right:5px;background:#1e72ba;border:none;color:#fff;font-size:10px;line-height:1;padding:6px 10px;border-radius:5px;outline:0!important;transition:background .2s;cursor:pointer}.scroll::-webkit-scrollbar{display:none}.chat-box{background-color:#f4f5fb;padding:5px}.messages{padding:5px;
|
|
828
|
+
template: "<div class=\"chat-box\">\r\n <div #MessagesContainer id=\"msgScroll\" class=\"messages\" [style.max-height]='settings.maxHeight'>\r\n <ng-container *ngFor=\"let message of updatedMessage()\">\r\n <app-chat-message class=\"chat-line\" [alignRight]=\"shouldAlignRight(message)\" [message]=\"message.text\" [username]=\"message.username\" (focusOn)=\"setOnFocus($event)\"\r\n [timestamp]=\"message.timestamp\" [image]=\"message.userIcon\" [fallbackImage]=\"settings.fallbackUserIcon\" [color]=\"getColor(message)\">\r\n </app-chat-message>\r\n </ng-container>\r\n\r\n <div *ngIf=\"isTyping\" class=\"typing-indicator\">\r\n Someone is typing\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n<div class=\"message-box\">\r\n <textarea id=\"autofocus\" tabindex=\"1\" #NewMessageText [(ngModel)]=\"newMessageText\" type=\"text\" class=\"message-input scroll\" placeholder=\"Type a message...\"\r\n (focus)=\"onNewMessageFocus(true)\" (keydown.enter)=\"sendNewMessage($event)\" (keyup)='onKeyup()' [disabled]=\"settings.disableSendMessage\" ></textarea>\r\n <button type=\"submit\" class=\"message-submit\" (click)=\"sendNewMessage($event)\" [disabled]=\"settings.disableSendMessage\">Send</button>\r\n</div>\r\n</div>\r\n",
|
|
829
|
+
styles: [".message-box{flex:1 1 0;width:99%;background:#fff;margin:auto;position:relative;border-radius:5px;height:100%;border:1px solid #ccc}.message-box .message-input{background:0 0;border:none;outline:0!important;resize:none;font-family:inherit;font-size:.8rem;height:100%;margin:0;padding:10px 7px;width:89%;color:#444}.message-box textarea:focus:-webkit-placeholder{color:transparent}.message-box .message-submit{position:absolute;z-index:1;top:26px;right:5px;background:#1e72ba;border:none;color:#fff;font-size:10px;line-height:1;padding:6px 10px;border-radius:5px;outline:0!important;transition:background .2s;cursor:pointer}.scroll::-webkit-scrollbar{display:none}.chat-box{background-color:#f4f5fb;padding:5px}.messages{padding:5px;overflow:auto;min-height:50px}.chat-line{margin-bottom:15px}.new-message{border-top:1px solid #000;display:flex;align-content:center;height:25px}.new-message input[type=text]{flex:1 1 0;background-color:#f4f5fb;border:none;min-width:0}.new-message input[type=image]{position:relative;top:50%;transform:translateY(-50%);height:20px;cursor:pointer}.new-message input[type=image]:disabled{opacity:.5;cursor:auto}.new-message input:focus{outline:0}.typing-indicator{font-size:.8em;font-style:italic}.typing-indicator span{display:inline-block;height:4px;width:4px;border-radius:50%;background-color:#9e9e9e;margin:0 1px;opacity:.2}.typing-indicator span:nth-of-type(1){animation:1.5s .33333s infinite blink}.typing-indicator span:nth-of-type(2){animation:1.5s .66666s infinite blink}.typing-indicator span:nth-of-type(3){animation:1.5s .99999s infinite blink}@keyframes blink{50%{opacity:1}}"]
|
|
822
830
|
})
|
|
823
831
|
], ChatBoxComponent);
|
|
824
832
|
return ChatBoxComponent;
|
|
@@ -918,7 +926,7 @@
|
|
|
918
926
|
core.Component({
|
|
919
927
|
selector: 'amc-disposition',
|
|
920
928
|
template: "<div class=\"disposition-container\">\r\n <div class=\"header-container\">\r\n <label class=\"disposition-header\" attr.aria-label=\"set disposition\">{{disposition.dispositionHeader}}</label>\r\n </div>\r\n\r\n <div class=\"dispositions-container\">\r\n <div class=\"disposition\" *ngFor=\"let disp of disposition.disposition | keyvalue; let i = index\">\r\n <label\r\n class=\"disposition-label\"\r\n tabindex=\"0\"\r\n [id]=\"disp.key\"\r\n [ngClass]=\"{'disposition-label-selected' : selectedDispositionValue === disp.key, 'first-disposition': i === 0}\"\r\n (keypress)=\"selectAndSubmitDisposition($event, disp.key)\">\r\n\r\n <input\r\n class=\"disposition-input\"\r\n type=\"radio\"\r\n value=\"{{disp.key}}\"\r\n tabindex=\"-1\"\r\n attr.aria-label=\"{{disp.value}}\"\r\n [required]=\"!selectedDispositionValue\"\r\n [name]=\"dispositionName\"\r\n (change)=\"submitDisposition()\"\r\n [(ngModel)]=\"selectedDispositionValue\">\r\n\r\n {{disp.value}}\r\n </label>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
921
|
-
styles: [".disposition-container{border:1px solid #939598;white-space:nowrap;font-family:Arial;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;text-overflow:ellipsis;position:relative;font-size:.9em;max-height:180px;overflow-x:hidden;overflow-y:hidden}.header-container{border-bottom:1px solid #939598;background-color:#f4f5fb;width:100%;white-space:nowrap;height:28px;position
|
|
929
|
+
styles: [".disposition-container{border:1px solid #939598;white-space:nowrap;font-family:Arial;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;text-overflow:ellipsis;position:relative;font-size:.9em;max-height:180px;overflow-x:hidden;overflow-y:hidden}.header-container{border-bottom:1px solid #939598;background-color:#f4f5fb;width:100%;white-space:nowrap;height:28px;position:sticky;overflow-x:hidden;overflow-y:hidden}.disposition-header{margin-top:auto;margin-left:7px;padding:5px;white-space:nowrap;text-overflow:ellipsis;font-weight:700;font-size:.9em;font-family:Arial;overflow-x:hidden}.disposition{margin-left:5px;padding-left:5px;white-space:nowrap}.disposition-label{text-overflow:ellipsis;font-weight:400;white-space:nowrap;font-size:.9em;overflow-x:hidden}.disposition-label-selected{text-overflow:ellipsis;font-weight:700;white-space:nowrap;font-size:.9em}.dispositions-container{padding:3px;overflow-y:scroll;max-height:150px}.disposition-label:focus{outline:#3296da solid 2px;outline-offset:5px}.first-disposition{margin-top:5px}"]
|
|
922
930
|
})
|
|
923
931
|
], DispositionComponent);
|
|
924
932
|
return DispositionComponent;
|
|
@@ -1051,8 +1059,6 @@
|
|
|
1051
1059
|
if (!loginForm.controls[field.name].valid) {
|
|
1052
1060
|
field.isInvalid = true;
|
|
1053
1061
|
}
|
|
1054
|
-
// console.log(loginForm);
|
|
1055
|
-
// console.log(field);
|
|
1056
1062
|
};
|
|
1057
1063
|
__decorate([
|
|
1058
1064
|
core.Input()
|
|
@@ -1064,12 +1070,506 @@
|
|
|
1064
1070
|
core.Component({
|
|
1065
1071
|
selector: 'amc-login',
|
|
1066
1072
|
template: "<div class=\"login-container\">\r\n <form (ngSubmit)=\"onLogin(loginForm)\"class=\"login-form\" id=\"login-form\" #loginForm=\"ngForm\">\r\n <div class=\"header-container\">\r\n <label class=\"login-header\" attr.aria-label=\"login\">{{ loginData.header }}</label>\r\n </div>\r\n <div class=\"fields-container\">\r\n <div *ngFor=\"let field of loginData.fields\" class=\"field\">\r\n <label class=\"field-label\">\r\n {{ field.name }}:\r\n </label>\r\n\r\n <input\r\n ngModel\r\n class=\"field-input\"\r\n attr.aria-label=\"{{ field.name }}\"\r\n [name]=\"field.name\"\r\n [type]=\"field.type\"\r\n [value]=\"field.value\"\r\n [placeholder]=\"field.placeholder || ''\"\r\n [required]=\"field.isRequired || false\"\r\n (focusout)=\"focusOutOfInput(loginForm, field)\"/>\r\n\r\n <p class=\"invalid-input\" *ngIf=\"field.isInvalid\">{{ field.invalidMessage }}</p>\r\n </div>\r\n\r\n <button\r\n type=\"submit\"\r\n class=\"form-submit\"\r\n form=\"login-form\"\r\n tabindex=\"0\"\r\n attr.aria-label=\"send\"\r\n [disabled]=\"!loginForm.valid\">Login</button>\r\n </div>\r\n\r\n </form>\r\n</div>\r\n",
|
|
1067
|
-
styles: [".login-container{border:1px solid #939598;white-space:nowrap;font-family:Arial;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;text-overflow:ellipsis;position:relative;font-size:.9em;overflow-x:hidden;overflow-y:hidden}.header-container{border-bottom:1px solid #939598;background-color:#f4f5fb;width:100%;height:28px;position
|
|
1073
|
+
styles: [".login-container{border:1px solid #939598;white-space:nowrap;font-family:Arial;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;text-overflow:ellipsis;position:relative;font-size:.9em;overflow-x:hidden;overflow-y:hidden}.header-container{border-bottom:1px solid #939598;background-color:#f4f5fb;width:100%;height:28px;position:sticky}.login-header{margin-top:auto;margin-left:7px;padding:5px;font-weight:700;font-size:.9em}.fields-container{overflow-y:auto;font-size:.9em;padding:5px}.field{display:table-row;margin:5px}.field-label{padding:10px;display:table-cell}.field-input{display:table-cell;border:1px solid #939598;border-radius:5px}.field-input:focus{box-shadow:0 0 5px #38badf}.form-submit{margin:15px 10px 10px;display:table-row;border:1px solid #00a4b0;border-radius:5px;background-color:#00a4b0;color:#f7f7f7;width:10em;height:2em;transition:.2s;font-size:1.1em;position:relative;top:50%;left:50%;transform:translate(-50%,-50%)}.form-submit:hover{background-color:#01858f}.form-submit:disabled{background-color:silver;border-color:silver;color:#fff}input.ng-invalid.ng-touched[required]{border-color:#a94442}.form-submit:focus{outline:#3296da solid 2px;outline-offset:5px}.invalid-input{margin:0;padding:0;color:#a94442;font-size:x-small}"]
|
|
1068
1074
|
})
|
|
1069
1075
|
], LoginComponent);
|
|
1070
1076
|
return LoginComponent;
|
|
1071
1077
|
}());
|
|
1072
1078
|
|
|
1079
|
+
var CreateComponent = /** @class */ (function () {
|
|
1080
|
+
function CreateComponent() {
|
|
1081
|
+
this.CreateNewEntity = new core.EventEmitter();
|
|
1082
|
+
this.isCreateMaximized = true;
|
|
1083
|
+
}
|
|
1084
|
+
CreateComponent.prototype.createNewEntity = function (type) {
|
|
1085
|
+
this.CreateNewEntity.emit(type);
|
|
1086
|
+
};
|
|
1087
|
+
CreateComponent.prototype.getEntities = function () {
|
|
1088
|
+
return Object.keys(this.Entities);
|
|
1089
|
+
};
|
|
1090
|
+
CreateComponent.prototype.getDisplay = function (entity) {
|
|
1091
|
+
return entity.substring(0, entity.indexOf('|'));
|
|
1092
|
+
};
|
|
1093
|
+
CreateComponent.prototype.getImage = function (entity) {
|
|
1094
|
+
return entity.substring(entity.indexOf('|') + 1);
|
|
1095
|
+
};
|
|
1096
|
+
__decorate([
|
|
1097
|
+
core.Output()
|
|
1098
|
+
], CreateComponent.prototype, "CreateNewEntity", void 0);
|
|
1099
|
+
__decorate([
|
|
1100
|
+
core.Input()
|
|
1101
|
+
], CreateComponent.prototype, "Entities", void 0);
|
|
1102
|
+
CreateComponent = __decorate([
|
|
1103
|
+
core.Component({
|
|
1104
|
+
selector: 'amc-create',
|
|
1105
|
+
template: "<div *ngIf=\"isCreateMaximized\" class=\"callDisplay\">\r\n <div class=\"editor callHeader\">\r\n <label class=\"headerLabel\">\r\n <b>Create New</b>\r\n </label>\r\n <img class=\"ViewResizeImage\" src=\"/assets/images/section_collapse.png\" (click)=\"isCreateMaximized = false\"\r\n title=\"Collapse\" />\r\n </div>\r\n <div class=\"callBody\">\r\n <div *ngIf=\"Entities\" class=\"container\">\r\n <div *ngFor=\"let entity of getEntities()\" class=\"createNewLabel\" (click)=\"createNewEntity(entity)\"\r\n title=\"{{ getDisplay(Entities[entity]) }}\">\r\n <img class=\"createEntityImages\" src=\"{{ getImage(Entities[entity]) }}\" />\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"!isCreateMaximized\" class=\"callDisplay\">\r\n <div class=\"editor callHeader\">\r\n <label class=\"headerLabel\">\r\n <b>Create New</b>\r\n </label>\r\n <img class=\"ViewResizeImage\" src=\"/assets/images/section_expand.png\" (click)=\"isCreateMaximized = true\"\r\n title=\"Expand\" />\r\n </div>\r\n</div>\r\n",
|
|
1106
|
+
styles: [".callHeader{background-color:#f4f5fb!important;width:100%!important;margin-top:0!important;border:1px solid #939598!important}.editor{font-size:.9em;width:70%;text-align:left;margin:4px 5% 0 0;font-family:Arial;white-space:nowrap;text-overflow:ellipsis;border:0;padding-top:2px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.createEntityImages{width:30px;height:25px;margin-bottom:5px;margin-top:5px;cursor:pointer;padding-left:5px}.createNewLabel{display:inline-block;margin-left:5%;margin-right:5%}.container{padding-right:0;padding-left:0;font-size:10px;text-align:center}.callBody{border:1px solid #939598;border-top:1px solid #939598;position:relative}.callDisplay{display:grid;background-color:#fff;display:grid}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.headerLabel{margin-left:10px}"]
|
|
1107
|
+
})
|
|
1108
|
+
], CreateComponent);
|
|
1109
|
+
return CreateComponent;
|
|
1110
|
+
}());
|
|
1111
|
+
|
|
1112
|
+
var RecentActivityComponent = /** @class */ (function () {
|
|
1113
|
+
function RecentActivityComponent() {
|
|
1114
|
+
this.EventEmitter = new core.EventEmitter();
|
|
1115
|
+
this.debouncer = new rxjs.Subject();
|
|
1116
|
+
this.eventList = new Set();
|
|
1117
|
+
}
|
|
1118
|
+
RecentActivityComponent.prototype.ngOnChanges = function () {
|
|
1119
|
+
};
|
|
1120
|
+
RecentActivityComponent.prototype.getIcon = function (scenario) {
|
|
1121
|
+
switch (scenario) {
|
|
1122
|
+
case 'Telephony':
|
|
1123
|
+
return '../../assets/images/Phone_Number_Icon.png';
|
|
1124
|
+
case 'Email':
|
|
1125
|
+
return '../../assets/images/emailTab.png';
|
|
1126
|
+
default:
|
|
1127
|
+
return '../../assets/images/chat.png';
|
|
1128
|
+
}
|
|
1129
|
+
};
|
|
1130
|
+
RecentActivityComponent.prototype.ngOnInit = function () {
|
|
1131
|
+
var _this = this;
|
|
1132
|
+
this.debouncer.pipe(operators.debounceTime(500)).subscribe(function () {
|
|
1133
|
+
var newEvent = {
|
|
1134
|
+
eventName: Array.from(_this.eventList).join('|'),
|
|
1135
|
+
idx: _this.idx,
|
|
1136
|
+
newValue: _this.ActivityDetails
|
|
1137
|
+
};
|
|
1138
|
+
_this.EventEmitter.emit(newEvent);
|
|
1139
|
+
_this.eventList.clear();
|
|
1140
|
+
});
|
|
1141
|
+
};
|
|
1142
|
+
RecentActivityComponent.prototype.ngOnDestroy = function () { };
|
|
1143
|
+
RecentActivityComponent.prototype.expandAndCollapseRecentActivity = function (isExpand) {
|
|
1144
|
+
if (isExpand) {
|
|
1145
|
+
this.EventEmitter.emit({
|
|
1146
|
+
eventName: 'WorkingEvtivityChanged',
|
|
1147
|
+
idx: this.idx,
|
|
1148
|
+
newValue: this.ActivityDetails
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
else {
|
|
1152
|
+
this.EventEmitter.emit({
|
|
1153
|
+
eventName: 'WorkingEvtivityChanged',
|
|
1154
|
+
idx: -1,
|
|
1155
|
+
newValue: this.ActivityDetails
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
RecentActivityComponent.prototype.openActivity = function () {
|
|
1160
|
+
this.EventEmitter.emit({
|
|
1161
|
+
eventName: 'OpenCallActivity',
|
|
1162
|
+
idx: this.idx,
|
|
1163
|
+
newValue: this.ActivityDetails
|
|
1164
|
+
});
|
|
1165
|
+
};
|
|
1166
|
+
RecentActivityComponent.prototype.onSubjectChange = function () {
|
|
1167
|
+
this.eventList.add('ActivitySubjectChanged');
|
|
1168
|
+
this.debouncer.next();
|
|
1169
|
+
};
|
|
1170
|
+
RecentActivityComponent.prototype.onSubjectKeyUp = function () {
|
|
1171
|
+
this.eventList.add('ActivitySubjectChanged');
|
|
1172
|
+
this.debouncer.next();
|
|
1173
|
+
};
|
|
1174
|
+
RecentActivityComponent.prototype.onWhoObjectChange = function (event) {
|
|
1175
|
+
this.ActivityDetails.WhoObject = this.WhoObjectList.find(function (obj) { return obj.objectId === event; });
|
|
1176
|
+
this.EventEmitter.emit({
|
|
1177
|
+
eventName: 'ActivityWhoObjectChanged',
|
|
1178
|
+
idx: this.idx,
|
|
1179
|
+
newValue: this.ActivityDetails
|
|
1180
|
+
});
|
|
1181
|
+
};
|
|
1182
|
+
RecentActivityComponent.prototype.onRelatedToChange = function (event) {
|
|
1183
|
+
this.ActivityDetails.WhatObject = this.WhatObjectList.find(function (obj) { return obj.objectId === event; });
|
|
1184
|
+
this.EventEmitter.emit({
|
|
1185
|
+
eventName: 'ActivityWhatObjectChanged',
|
|
1186
|
+
idx: this.idx,
|
|
1187
|
+
newValue: this.ActivityDetails
|
|
1188
|
+
});
|
|
1189
|
+
};
|
|
1190
|
+
RecentActivityComponent.prototype.onCallNotesChange = function () {
|
|
1191
|
+
this.eventList.add('ActivityCallNoteChanged');
|
|
1192
|
+
this.debouncer.next();
|
|
1193
|
+
};
|
|
1194
|
+
RecentActivityComponent.prototype.onCallNotesKeyUp = function () {
|
|
1195
|
+
this.eventList.add('ActivityCallNoteChanged');
|
|
1196
|
+
this.debouncer.next();
|
|
1197
|
+
};
|
|
1198
|
+
RecentActivityComponent.prototype.addQuickCommentToDescription = function (comment) {
|
|
1199
|
+
if (this.ActivityDetails.Description) {
|
|
1200
|
+
this.ActivityDetails.Description += '\n';
|
|
1201
|
+
}
|
|
1202
|
+
this.ActivityDetails.Description += comment;
|
|
1203
|
+
this.eventList.add('ActivityCallNoteChanged');
|
|
1204
|
+
this.debouncer.next();
|
|
1205
|
+
};
|
|
1206
|
+
RecentActivityComponent.prototype.submitActivity = function () {
|
|
1207
|
+
this.ActivityDetails.IsProcessing = true;
|
|
1208
|
+
this.EventEmitter.emit({
|
|
1209
|
+
eventName: 'SubmitActivity',
|
|
1210
|
+
idx: this.idx,
|
|
1211
|
+
newValue: this.ActivityDetails
|
|
1212
|
+
});
|
|
1213
|
+
};
|
|
1214
|
+
__decorate([
|
|
1215
|
+
core.Input()
|
|
1216
|
+
], RecentActivityComponent.prototype, "ActivityDetails", void 0);
|
|
1217
|
+
__decorate([
|
|
1218
|
+
core.Input()
|
|
1219
|
+
], RecentActivityComponent.prototype, "isInConsoleView", void 0);
|
|
1220
|
+
__decorate([
|
|
1221
|
+
core.Input()
|
|
1222
|
+
], RecentActivityComponent.prototype, "quickCommentList", void 0);
|
|
1223
|
+
__decorate([
|
|
1224
|
+
core.Input()
|
|
1225
|
+
], RecentActivityComponent.prototype, "workingScenarioID", void 0);
|
|
1226
|
+
__decorate([
|
|
1227
|
+
core.Input()
|
|
1228
|
+
], RecentActivityComponent.prototype, "idx", void 0);
|
|
1229
|
+
__decorate([
|
|
1230
|
+
core.Input()
|
|
1231
|
+
], RecentActivityComponent.prototype, "last", void 0);
|
|
1232
|
+
__decorate([
|
|
1233
|
+
core.Input()
|
|
1234
|
+
], RecentActivityComponent.prototype, "WhoObjectList", void 0);
|
|
1235
|
+
__decorate([
|
|
1236
|
+
core.Input()
|
|
1237
|
+
], RecentActivityComponent.prototype, "WhatObjectList", void 0);
|
|
1238
|
+
__decorate([
|
|
1239
|
+
core.Output()
|
|
1240
|
+
], RecentActivityComponent.prototype, "EventEmitter", void 0);
|
|
1241
|
+
RecentActivityComponent = __decorate([
|
|
1242
|
+
core.Component({
|
|
1243
|
+
selector: 'amc-recent-activity',
|
|
1244
|
+
template: "<div *ngIf=\"ActivityDetails.ScenarioId === workingScenarioID\">\r\n <div (click)=\"expandAndCollapseRecentActivity(false);\" class=\"editor callHeaderRecentActivitySelected\">\r\n <label class=\"headerLabelClickableLook\">\r\n <img src=\"../../assets/images/Phone_Number_Icon.png\" class=\"RecentCallsImg\" />\r\n <b>{{ ActivityDetails.Subject }}</b>\r\n </label>\r\n <img *ngIf=\"ActivityDetails.ActivityId\" class=\"RecentCallsImgForActivity\" src=\"../../assets/images/open_activity.png\"\r\n title=\"Open Activity\" (click)=\"openActivity();$event.stopPropagation();\" />\r\n <label *ngIf=\"ActivityDetails.IsUnSaved && isInConsoleView\" class=\"unsavedText\">unsaved</label>\r\n </div>\r\n <div class=\"callBody\">\r\n <div class=\"gray-out\" *ngIf=\"ActivityDetails.IsRecentWorkItemLoading\">\r\n <div class=\"spinner-container\">\r\n <img class=\"spinner\" src=\"../../assets/images/view_progress.gif\" />\r\n </div>\r\n </div>\r\n <div class=\"activityFields\">\r\n <!-- <form> -->\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" title=\"Subject\">Subject</label>\r\n <input class=\"activitySubjectTextBoxStyle displayData\" type=\"text\" (change)=\"onSubjectChange();\"\r\n (keyup)=\"onSubjectKeyUp()\" name=\"subject\" [(ngModel)]=\"ActivityDetails.Subject\" />\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" title=\"Name\">Name</label>\r\n <select class=\"dropDownListStyle displayData\" [ngModel]=\"ActivityDetails.WhoObject.objectId\"\r\n (ngModelChange)=\"onWhoObjectChange($event)\" name=\"whoItem\">\r\n <option *ngFor=\"let whoItem of WhoObjectList\" [ngValue]=\"whoItem.objectId\">\r\n {{(whoItem.displayName && whoItem.objectName) ? (whoItem.displayName + ': ' + whoItem.objectName) : \"\" }}</option>\r\n <!-- <option value=\"UserSelectedForEmptyRecord\"></option> -->\r\n </select>\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" title=\"Regarding\">Related To</label>\r\n <select class=\"dropDownListStyle displayData\" [ngModel]=\"ActivityDetails.WhatObject.objectId\"\r\n (ngModelChange)=\"onRelatedToChange($event)\" name=\"whatItem\">\r\n <option *ngFor=\"let whatItem of WhatObjectList;\" [ngValue]=\"whatItem.objectId\">\r\n {{ (whatItem.displayName && whatItem.objectName) ? (whatItem.displayName + ': ' + whatItem.objectName) : \"\" }}</option>\r\n <!-- <option value=\"UserSelectedForEmptyRecord\"></option> -->\r\n </select>\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <div class=\"callNotesSection\">\r\n <div class=\"callNotesTextArea\">\r\n <textarea placeholder=\"Click to add a comment\" class=\"activityCommentsTextBoxStyle\"\r\n (change)=\"onCallNotesChange();\" (keyup)=\"onCallNotesKeyUp()\" name=\"description\" rows=\"5\" title=\"\"\r\n [(ngModel)]=\"ActivityDetails.Description\">\r\n </textarea>\r\n </div>\r\n <div class=\"notesBottonBorder\">\r\n <div class=\"commentsButtonDiv\">\r\n <div class=\"quickCommentsDiv\">\r\n <input *ngFor=\"let quickComment of quickCommentList; let i = index;\" class=\"quickNotesBotton\"\r\n type=\"button\" value=\"{{i+1}}\" (click)=\"addQuickCommentToDescription(quickComment)\"\r\n title=\"{{quickComment}}\">\r\n </div>\r\n <div class=\"callNotesButtonsSection\">\r\n <input class=\"submitButton\" type=\"button\" value=\"Save\" (click)=\"submitActivity()\"\r\n [disabled]=\"!ActivityDetails.IsUnSaved\" />\r\n <!-- <input *ngIf=\"recentScenario.IsProcessing\" class=\"submitButton\" type=\"button\" value=\"Save\" (click)=\"submitActivity(idx)\" [disabled]=\"!recentScenario.IsUnSaved\"/> -->\r\n <img *ngIf=\"ActivityDetails.IsProcessing\" class=\"loadingIcon\" src=\"../../assets/images/loading.gif\"\r\n title=\"Updating Activity\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- </form> -->\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"ActivityDetails.ScenarioId !== workingScenarioID \">\r\n <div [class.callHeaderBottomBorder]='last' (click)=\"expandAndCollapseRecentActivity(true)\"\r\n class=\"editor callHeaderRecentActivityUnselected\">\r\n <label class=\"headerLabelClickableLook\">\r\n <img [src]=\"getIcon(ActivityDetails.ChannelType)\" class=\"RecentCallsImg\" />\r\n <b>{{ ActivityDetails.Subject }}</b>\r\n </label>\r\n <img *ngIf=\"ActivityDetails.ActivityId\" class=\"RecentCallsImgForActivity\" src=\"../../assets/images/open_activity.png\"\r\n title=\"Open Activity\" (click)=\"openActivity();$event.stopPropagation();\" />\r\n <label *ngIf=\"ActivityDetails.IsUnSaved && isInConsoleView\" class=\"unsavedText\">unsaved</label>\r\n </div>\r\n</div>\r\n\r\n",
|
|
1245
|
+
styles: [".callSection{margin-left:0;font-family:Arial;position:relative;margin-top:5px;background-color:#fff}.notesBottonBorder{background-color:#fff;border-left:1px solid #939598;border-bottom:1px solid #939598;border-right:1px solid #939598;border-bottom-left-radius:3px!important;border-bottom-right-radius:3px!important;height:auto}.quickCommentsDiv{text-align:left;flex:1 0 0;flex-wrap:wrap;display:flex;margin:2px}.unsavedText{float:right;margin-right:5px;color:gray;font-style:italic}.quickNotesBotton{background-color:#1e72ba;border:0;color:#fff;height:70%;width:20px;margin:2px;outline:0;font-size:70%}.submitButton{border:0;float:right;margin-top:2px;outline:0;cursor:pointer;background-color:#6cb047;color:#fff;border-radius:4px;font-size:98%;margin-bottom:2px}.commentsButtonDiv{width:100%;display:flex;align-items:center;background-color:#f6f7fb}.gray-out{top:0;left:0;position:absolute;z-index:2000;background:#fff;opacity:.7;width:100%;height:100%}.spinner-container{position:relative;width:-moz-fit-content;width:fit-content;top:50%;left:50%;transform:translate(-50%,-50%)}.spinner{height:80px;width:80px;border:0;position:relative;left:50%;transform:translate(-50%,0)}.callNotesButtonsSection{text-align:right;padding-right:4px}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.callBody{border:1px solid #939598;border-top:1px solid #fff;position:relative}.callBodyBorderless{position:relative}.callDisplay{margin-bottom:8px;background-color:#fff}.editor{font-size:.9em;width:70%;text-align:left;margin:4px 5% 0 0;font-family:Arial;white-space:nowrap;text-overflow:ellipsis;border:0;padding-top:5px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.dropDownListStyle{border:1px solid #939598!important;border-radius:3px!important;width:70%!important;height:20px!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;margin:0 5px 0 0;cursor:pointer}.activitySubjectTextBoxStyle{border:1px solid #939598!important;border-radius:3px!important;width:70%!important;height:20px!important;text-align:left!important;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin:0 5px 0 0;padding-left:2px}.activityCommentsTextBoxStyle{color:#333!important;text-align:left!important;margin:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;resize:none;width:100%;height:100%;border:none}.displayDiv{width:100%;display:flex}.displayLabels{margin-left:5px;width:25%;overflow:hidden;text-overflow:ellipsis}.displayData{width:70%}.headerLabel{margin-left:10px}.activityFields{position:relative;z-index:0}.callNotesTextArea{background-color:#fff;border-bottom:1px solid #939598;border-top:1px solid #939598;border-top-left-radius:3px!important;border-top-right-radius:3px!important}.callNotesSection{float:left;height:100%;width:100%;background-color:#f6f7fb}.callHeaderRecentActivitySelected{cursor:pointer;border-left:1px solid #939598!important;border-right:1px solid #939598!important;background-color:#cfecf2!important;width:100%!important;margin-top:0!important}.callHeaderRecentActivityUnselected{cursor:pointer;border-left:1px solid #939598!important;border-right:1px solid #939598!important;background-color:#e6f4f7!important;width:100%!important;margin-top:0!important}.callHeader{border:1px solid #939598!important;background-color:#f4f5fb!important;width:100%!important;margin-top:0!important}.callHeaderBottomBorder{cursor:pointer;border-bottom:1px solid #939598!important;border-left:1px solid #939598!important;border-right:1px solid #939598!important;background-color:#e6f4f7!important;width:100%!important;margin-top:0!important}.RecentCallsImg{height:15px;vertical-align:text-bottom}.RecentCallsImgForActivity{height:15px;vertical-align:super;margin-right:5px}.headerLabelClickableLook{cursor:pointer;display:inline-block;margin-left:10px;max-width:80%;overflow:hidden;text-overflow:ellipsis}.loadingIcon{margin-left:auto;margin-right:5px;height:10px;width:30px;margin-top:5px;padding-bottom:0}input[type=button]:disabled{background-color:#d3d3d3;cursor:auto}"]
|
|
1246
|
+
})
|
|
1247
|
+
], RecentActivityComponent);
|
|
1248
|
+
return RecentActivityComponent;
|
|
1249
|
+
}());
|
|
1250
|
+
|
|
1251
|
+
var CurrentActivityComponent = /** @class */ (function () {
|
|
1252
|
+
function CurrentActivityComponent() {
|
|
1253
|
+
this.isActivityMaximized = true;
|
|
1254
|
+
this.EventEmitter = new core.EventEmitter();
|
|
1255
|
+
this.debouncer = new rxjs.Subject();
|
|
1256
|
+
this.eventList = new Set();
|
|
1257
|
+
}
|
|
1258
|
+
CurrentActivityComponent.prototype.ngOnInit = function () {
|
|
1259
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1260
|
+
var _this = this;
|
|
1261
|
+
return __generator(this, function (_a) {
|
|
1262
|
+
this.debouncer.pipe(operators.debounceTime(500)).subscribe(function () {
|
|
1263
|
+
var newEvent = {
|
|
1264
|
+
eventName: Array.from(_this.eventList).join('|'),
|
|
1265
|
+
newValue: _this.ActivityDetails
|
|
1266
|
+
};
|
|
1267
|
+
_this.EventEmitter.emit(newEvent);
|
|
1268
|
+
_this.eventList.clear();
|
|
1269
|
+
});
|
|
1270
|
+
return [2 /*return*/];
|
|
1271
|
+
});
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
CurrentActivityComponent.prototype.submitActivity = function () {
|
|
1275
|
+
try {
|
|
1276
|
+
this.ActivityDetails.IsProcessing = true;
|
|
1277
|
+
this.EventEmitter.emit({
|
|
1278
|
+
eventName: 'SubmitActivity',
|
|
1279
|
+
newValue: this.ActivityDetails
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
catch (error) { }
|
|
1283
|
+
};
|
|
1284
|
+
CurrentActivityComponent.prototype.triggerDiscardActivity = function () {
|
|
1285
|
+
try {
|
|
1286
|
+
this.EventEmitter.emit({
|
|
1287
|
+
eventName: 'TriggerDiscardActivity',
|
|
1288
|
+
newValue: this.ActivityDetails
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
catch (error) { }
|
|
1292
|
+
};
|
|
1293
|
+
CurrentActivityComponent.prototype.onNameChange = function (event) {
|
|
1294
|
+
try {
|
|
1295
|
+
this.ActivityDetails.WhoObject = this.WhoObjectList.find(function (obj) { return obj.objectId === event; });
|
|
1296
|
+
this.EventEmitter.emit({
|
|
1297
|
+
eventName: 'ActivityWhoObjectChanged',
|
|
1298
|
+
newValue: this.ActivityDetails
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
catch (error) { }
|
|
1302
|
+
};
|
|
1303
|
+
CurrentActivityComponent.prototype.onRelatedToChange = function (event) {
|
|
1304
|
+
try {
|
|
1305
|
+
this.ActivityDetails.WhatObject = this.WhatObjectList.find(function (obj) { return obj.objectId === event; });
|
|
1306
|
+
this.EventEmitter.emit({
|
|
1307
|
+
eventName: 'ActivityWhatObjectChanged',
|
|
1308
|
+
newValue: this.ActivityDetails
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
catch (error) { }
|
|
1312
|
+
};
|
|
1313
|
+
CurrentActivityComponent.prototype.onSubjectChange = function () {
|
|
1314
|
+
try {
|
|
1315
|
+
this.eventList.add('ActivitySubjectChanged');
|
|
1316
|
+
this.debouncer.next();
|
|
1317
|
+
}
|
|
1318
|
+
catch (error) { }
|
|
1319
|
+
};
|
|
1320
|
+
CurrentActivityComponent.prototype.onSubjectKeyUp = function () {
|
|
1321
|
+
try {
|
|
1322
|
+
this.eventList.add('ActivitySubjectChanged');
|
|
1323
|
+
this.debouncer.next();
|
|
1324
|
+
}
|
|
1325
|
+
catch (error) { }
|
|
1326
|
+
};
|
|
1327
|
+
CurrentActivityComponent.prototype.onCallNotesChange = function () {
|
|
1328
|
+
try {
|
|
1329
|
+
this.eventList.add('ActivityCallNoteChanged');
|
|
1330
|
+
this.debouncer.next();
|
|
1331
|
+
}
|
|
1332
|
+
catch (error) { }
|
|
1333
|
+
};
|
|
1334
|
+
CurrentActivityComponent.prototype.onCallNotesKeyUp = function () {
|
|
1335
|
+
try {
|
|
1336
|
+
this.eventList.add('ActivityCallNoteChanged');
|
|
1337
|
+
this.debouncer.next();
|
|
1338
|
+
}
|
|
1339
|
+
catch (error) { }
|
|
1340
|
+
};
|
|
1341
|
+
CurrentActivityComponent.prototype.addQuickCommentToDescription = function (comment) {
|
|
1342
|
+
try {
|
|
1343
|
+
var descriptionToSet = comment;
|
|
1344
|
+
if (this.quickCommentOptionRequiredCadArray[comment]) {
|
|
1345
|
+
var cadFields = {};
|
|
1346
|
+
if (this.ActivityDetails) {
|
|
1347
|
+
cadFields = this.scenarioToCADMap[this.ActivityDetails.ScenarioId];
|
|
1348
|
+
}
|
|
1349
|
+
for (var i = 0; i < this.quickCommentOptionRequiredCadArray[comment].length; i++) {
|
|
1350
|
+
var keyToCheckIfCADExists = this.quickCommentOptionRequiredCadArray[comment][i];
|
|
1351
|
+
var stringToBeReplaced = this.quickCommentOptionRequiredCadArray[comment][i];
|
|
1352
|
+
keyToCheckIfCADExists = keyToCheckIfCADExists.replace('{{', '');
|
|
1353
|
+
keyToCheckIfCADExists = keyToCheckIfCADExists.replace('}}', '');
|
|
1354
|
+
if (cadFields[keyToCheckIfCADExists]) {
|
|
1355
|
+
descriptionToSet = descriptionToSet.replace(stringToBeReplaced, cadFields[keyToCheckIfCADExists].Value);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
if (this.ActivityDetails.Description) {
|
|
1360
|
+
this.ActivityDetails.Description += '\n';
|
|
1361
|
+
}
|
|
1362
|
+
this.ActivityDetails.Description += descriptionToSet;
|
|
1363
|
+
this.eventList.add('ActivityCallNoteChanged');
|
|
1364
|
+
this.debouncer.next();
|
|
1365
|
+
}
|
|
1366
|
+
catch (error) { }
|
|
1367
|
+
};
|
|
1368
|
+
CurrentActivityComponent.prototype.parseWhoObject = function (whoObject) {
|
|
1369
|
+
try {
|
|
1370
|
+
return whoObject.displayName + ': ' + whoObject.objectName;
|
|
1371
|
+
}
|
|
1372
|
+
catch (error) { }
|
|
1373
|
+
};
|
|
1374
|
+
CurrentActivityComponent.prototype.parseWhatObject = function (whatObject) {
|
|
1375
|
+
try {
|
|
1376
|
+
return whatObject.displayName + ': ' + whatObject.objectName;
|
|
1377
|
+
}
|
|
1378
|
+
catch (error) { }
|
|
1379
|
+
};
|
|
1380
|
+
__decorate([
|
|
1381
|
+
core.Input()
|
|
1382
|
+
], CurrentActivityComponent.prototype, "ActivityDetails", void 0);
|
|
1383
|
+
__decorate([
|
|
1384
|
+
core.Input()
|
|
1385
|
+
], CurrentActivityComponent.prototype, "quickCommentList", void 0);
|
|
1386
|
+
__decorate([
|
|
1387
|
+
core.Input()
|
|
1388
|
+
], CurrentActivityComponent.prototype, "isAutoSave", void 0);
|
|
1389
|
+
__decorate([
|
|
1390
|
+
core.Input()
|
|
1391
|
+
], CurrentActivityComponent.prototype, "enableDiscard", void 0);
|
|
1392
|
+
__decorate([
|
|
1393
|
+
core.Input()
|
|
1394
|
+
], CurrentActivityComponent.prototype, "autoSaveTimer", void 0);
|
|
1395
|
+
__decorate([
|
|
1396
|
+
core.Input()
|
|
1397
|
+
], CurrentActivityComponent.prototype, "quickCommentOptionRequiredCadArray", void 0);
|
|
1398
|
+
__decorate([
|
|
1399
|
+
core.Input()
|
|
1400
|
+
], CurrentActivityComponent.prototype, "WhoObjectList", void 0);
|
|
1401
|
+
__decorate([
|
|
1402
|
+
core.Input()
|
|
1403
|
+
], CurrentActivityComponent.prototype, "WhatObjectList", void 0);
|
|
1404
|
+
__decorate([
|
|
1405
|
+
core.Input()
|
|
1406
|
+
], CurrentActivityComponent.prototype, "scenarioToCADMap", void 0);
|
|
1407
|
+
__decorate([
|
|
1408
|
+
core.Output()
|
|
1409
|
+
], CurrentActivityComponent.prototype, "EventEmitter", void 0);
|
|
1410
|
+
CurrentActivityComponent = __decorate([
|
|
1411
|
+
core.Component({
|
|
1412
|
+
selector: 'amc-current-activity',
|
|
1413
|
+
template: "<div *ngIf=\"isActivityMaximized\" class=\"callDisplay\">\r\n <div class=\"editor callHeader\">\r\n <label class=\"headerLabel\">\r\n <b>Activity Information</b>\r\n </label>\r\n <img class=\"ViewResizeImage\" src=\"/assets/images/section_collapse.png\" (click)=\"isActivityMaximized = false\"\r\n title=\"Collapse\"><img *ngIf=\"enableDiscard\" class=\"DiscardImage\" src=\"assets/images/Discard.png\"\r\n (click)=\"triggerDiscardActivity()\" title=\"Discard\">\r\n </div>\r\n <div class=\"callBody\">\r\n <div class=\"activityFields\">\r\n <form>\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" title=\"Name\">Name</label>\r\n <select class=\"dropDownListStyle displayData\" [ngModel]=\"ActivityDetails.WhoObject.objectId\" (ngModelChange)=\"onNameChange($event)\" name=\"whoItem\">\r\n <option *ngFor=\"let whoItem of WhoObjectList\" [ngValue]=\"whoItem.objectId\">{{ (whoItem.displayName && whoItem.objectName) ? (whoItem.displayName + ': ' +\r\n whoItem.objectName) : \"\"}}</option>\r\n <!-- <option value=\"UserSelectedForEmptyRecord\"></option> -->\r\n </select>\r\n </div>\r\n <div class=\"editor displayDiv\"\r\n *ngIf='(ActivityDetails.WhoObject && ActivityDetails.WhoObject.objectType !== \"Lead\")'>\r\n <label class=\"displayLabels\" title=\"Related To\">Related To</label>\r\n <select class=\"dropDownListStyle displayData\" (ngModelChange)=\"onRelatedToChange($event)\"\r\n [ngModel]=\"ActivityDetails.WhatObject.objectId\" name=\"whatItem\">\r\n <option *ngFor=\"let whatItem of WhatObjectList;\" [ngValue]=\"whatItem.objectId\">\r\n {{ (whatItem.displayName && whatItem.objectName) ? (whatItem.displayName + ': ' + whatItem.objectName) : \"\" }}</option>\r\n <!-- <option value=\"UserSelectedForEmptyRecord\"></option> -->\r\n </select>\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" title=\"Subject\">Subject</label>\r\n <input class=\"activitySubjectTextBoxStyle displayData\" (change)=\"onSubjectChange()\" type=\"text\"\r\n name=\"subject\" (keyup)=\"onSubjectKeyUp()\" [(ngModel)]=\"ActivityDetails.Subject\">\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <div class=\"callNotesSection\">\r\n <div class=\"callNotesTextArea\">\r\n <textarea [(ngModel)]=\"ActivityDetails.Description\" placeholder=\"Click to add a comment\"\r\n class=\"activityCommentsTextBoxStyle\" (change)=\"onCallNotesChange()\" name=\"description\"\r\n (keyup)=\"onCallNotesKeyUp()\" cols=\"20\" rows=\"2\" title=\"\"></textarea>\r\n </div>\r\n <div class=\"notesBottonBorder\">\r\n <div class=\"commentsButtonDiv\">\r\n <div class=\"quickCommentsDiv\">\r\n <input *ngFor=\"let quickComment of quickCommentList; let i = index;\"\r\n class=\"quickNotesBotton\" type=\"button\" value=\"{{i+1}}\"\r\n (click)=\"addQuickCommentToDescription(quickComment)\" title=\"{{quickComment}}\">\r\n </div>\r\n <div class=\"callNotesButtonsSection\">\r\n <input class=\"submitButton\" type=\"button\" value=\"Save\"\r\n (click)=\"submitActivity()\" [disabled]=\"!ActivityDetails.IsUnSaved\" />\r\n <!-- TOsDO check this Isprocessing -->\r\n <!-- <input *ngIf=\"!storageService.getActivity().IsProcessing\" class=\"submitButton\" type=\"button\" value=\"Save\" (click)=\"submitActivity(storageService.getActivity().ScenarioId)\" [disabled]=\"!isChangesUnSaved(this.scenarioId)\" /> -->\r\n <img *ngIf=\"ActivityDetails.IsProcessing\" class=\"loadingIcon\"\r\n src=\"assets/images/loading.gif\" title=\"Updating Activity\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"!isActivityMaximized\" class=\"callDisplay\">\r\n <div class=\"editor callHeader\">\r\n <label class=\"headerLabel\">\r\n <b>Activity Information</b>\r\n </label>\r\n <img class=\"ViewResizeImage\" src=\"assets/images/section_expand.png\" (click)=\"isActivityMaximized = true\"\r\n title=\"Expand\">\r\n </div>\r\n</div>\r\n",
|
|
1414
|
+
styles: [".imageExpandCollapse{float:right;width:20px;height:20px}.miscSection{position:relative;margin-top:20px;background-color:#e5e6f2}.callHeader{background-color:#f4f5fb!important;width:100%!important;margin-top:0!important;border:1px solid #939598!important}.notesBottonBorder{background-color:#fff;border-left:1px solid #939598;border-bottom:1px solid #939598;border-right:1px solid #939598;border-bottom-left-radius:3px!important;border-bottom-right-radius:3px!important;height:auto}.quickNotesBotton{background-color:#1e72ba;border:0;color:#fff;height:70%;width:20px;margin:2px;outline:0;font-size:70%}.submitButton{border:0;float:right;margin-top:2px;outline:0;cursor:pointer;background-color:#6cb047;color:#fff;border-radius:4px;font-size:98%;margin-bottom:2px}.callBody{border:1px solid #939598;border-top:1px solid #939598;position:relative}.miscIcons{width:20px;height:20px;float:right;margin-top:4px;margin-right:5px;margin-left:5px}.amcIcon{width:50%;height:20px;margin-top:5px;margin-left:10px}.callDisplay{display:grid;margin-bottom:8px;background-color:#fff}.editor{font-size:.9em;width:70%;text-align:left;margin:4px 5% 0 0;font-family:Arial;white-space:nowrap;text-overflow:ellipsis;border:0;padding-top:2px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.AnswerCallImages{width:28px;height:20px;margin:6px 0 0 5px}.dropDownListStyle{border:1px solid #939598!important;border-radius:3px!important;width:71%!important;height:20px!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;margin:0 5px 0 0;cursor:pointer}.activitySubjectTextBoxStyle{border:1px solid #939598!important;border-radius:3px!important;width:71%!important;height:20px!important;text-align:left!important;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin:0 5px 0 0;padding-left:2px}.activityCommentsTextBoxStyle{border:none;color:#333!important;text-align:left!important;margin:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;resize:none;width:100%;height:95px}.displayDiv{width:100%;display:flex}.displayLabels{margin-left:5px;width:25%;margin-right:2px}.displayData{width:70%}.commentsButtonDiv{width:100%;display:flex;align-items:center;background-color:#f6f7fb}.quickCommentsDiv{text-align:left;flex:1 0 0;flex-wrap:wrap;display:flex;margin:2px}.callNotesButtonsSection{text-align:right;padding-right:4px}.newEntityImages{width:25px;height:25px;margin-top:2px;cursor:pointer;padding-left:5px}body{font-size:.85em;color:#232323;background-color:#fff;font-family:Arial}.callNotesSection{float:left;height:100%;width:100%;margin-right:5px;margin-left:5px;margin-bottom:5px}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.DiscardImage{padding-top:2px;width:15px;height:18px;float:right;cursor:pointer}.headerLabel{margin-left:10px}.callNotesTextArea{background-color:#fff;border-left:1px solid #939598;border-bottom:1px solid #939598;border-right:1px solid #939598;border-top:1px solid #939598;border-top-left-radius:3px!important;border-top-right-radius:3px!important}.loadingIcon{float:right;margin-right:5px;height:10px;width:30px;margin-top:8px;padding-bottom:0}input[type=button]:disabled{background-color:#d3d3d3;cursor:auto}"]
|
|
1415
|
+
})
|
|
1416
|
+
], CurrentActivityComponent);
|
|
1417
|
+
return CurrentActivityComponent;
|
|
1418
|
+
}());
|
|
1419
|
+
|
|
1420
|
+
var SearchInformationComponent = /** @class */ (function () {
|
|
1421
|
+
function SearchInformationComponent() {
|
|
1422
|
+
this.isSearchInformationMaximized = true;
|
|
1423
|
+
this.singleMatchData = null;
|
|
1424
|
+
this.multiMatchData = [];
|
|
1425
|
+
this.agentSelectedCallerInformation = new core.EventEmitter();
|
|
1426
|
+
}
|
|
1427
|
+
SearchInformationComponent.prototype.ngOnChanges = function () {
|
|
1428
|
+
this.renderData();
|
|
1429
|
+
};
|
|
1430
|
+
SearchInformationComponent.prototype.renderData = function () {
|
|
1431
|
+
try {
|
|
1432
|
+
this.singleMatchData = null;
|
|
1433
|
+
this.multiMatchData = [];
|
|
1434
|
+
this.shouldShowAllMultiMatchOptions = false;
|
|
1435
|
+
if (this.searchRecordList.length === 1) {
|
|
1436
|
+
this.singleMatchData = this.parseSearchRecordForNameSingleMatch(this.searchRecordList[0]);
|
|
1437
|
+
}
|
|
1438
|
+
else if (this.searchRecordList.length > 1) {
|
|
1439
|
+
for (var i = 0; i < this.searchRecordList.length; i++) {
|
|
1440
|
+
this.multiMatchData.push(this.parseSearchRecordForNameMultiMatch(this.searchRecordList[i]));
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
catch (error) { }
|
|
1445
|
+
};
|
|
1446
|
+
SearchInformationComponent.prototype.onAgentSelectedCallerInformation = function (event) {
|
|
1447
|
+
try {
|
|
1448
|
+
this.agentSelectedCallerInformation.emit({
|
|
1449
|
+
id: event.target.id,
|
|
1450
|
+
value: event.target.value
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
catch (error) { }
|
|
1454
|
+
};
|
|
1455
|
+
SearchInformationComponent.prototype.parseSearchRecordForNameSingleMatch = function (searchRecord) {
|
|
1456
|
+
var results = [];
|
|
1457
|
+
try {
|
|
1458
|
+
var src = this.getEntityImgToDisplay(searchRecord);
|
|
1459
|
+
this.singleMatchIconSrc = src;
|
|
1460
|
+
var sLayoutInfo = this.getSearchLayoutInfoForDisplay(searchRecord);
|
|
1461
|
+
for (var j = 0; j < sLayoutInfo.DisplayFields.length; j++) {
|
|
1462
|
+
if (sLayoutInfo.DisplayFields && sLayoutInfo.DisplayFields[j].DevName) {
|
|
1463
|
+
var nameKey = sLayoutInfo.DisplayFields[j].DevName;
|
|
1464
|
+
var keys = Object.keys(searchRecord.fields);
|
|
1465
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1466
|
+
if (searchRecord.fields[keys[i]] &&
|
|
1467
|
+
searchRecord.fields[keys[i]].DevName === nameKey) {
|
|
1468
|
+
var displayRecord = searchRecord.fields[keys[i]].Value;
|
|
1469
|
+
if (j === 0) {
|
|
1470
|
+
displayRecord = searchRecord.displayName
|
|
1471
|
+
? [searchRecord.displayName, displayRecord]
|
|
1472
|
+
: [searchRecord.type, displayRecord];
|
|
1473
|
+
}
|
|
1474
|
+
else {
|
|
1475
|
+
displayRecord = sLayoutInfo.DisplayFields[j].DisplayName
|
|
1476
|
+
? [sLayoutInfo.DisplayFields[j].DisplayName, displayRecord]
|
|
1477
|
+
: [sLayoutInfo.DisplayFields[j].DevName, displayRecord];
|
|
1478
|
+
}
|
|
1479
|
+
results.push(displayRecord);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
catch (error) { }
|
|
1486
|
+
return results;
|
|
1487
|
+
};
|
|
1488
|
+
SearchInformationComponent.prototype.parseSearchRecordForNameMultiMatch = function (searchRecord) {
|
|
1489
|
+
var results = [];
|
|
1490
|
+
try {
|
|
1491
|
+
var src = this.getEntityImgToDisplay(searchRecord);
|
|
1492
|
+
var sLayoutInfo = this.getSearchLayoutInfoForDisplay(searchRecord);
|
|
1493
|
+
for (var j = 0; j < sLayoutInfo.DisplayFields.length; j++) {
|
|
1494
|
+
if (sLayoutInfo.DisplayFields && sLayoutInfo.DisplayFields[j].DevName) {
|
|
1495
|
+
var nameKey = sLayoutInfo.DisplayFields[j].DevName;
|
|
1496
|
+
var keys = Object.keys(searchRecord.fields);
|
|
1497
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1498
|
+
if (searchRecord.fields[keys[i]] &&
|
|
1499
|
+
searchRecord.fields[keys[i]].DevName === nameKey) {
|
|
1500
|
+
var displayRecord = searchRecord.fields[keys[i]].Value;
|
|
1501
|
+
if (j === 0) {
|
|
1502
|
+
displayRecord = searchRecord.displayName
|
|
1503
|
+
? [searchRecord.displayName, displayRecord]
|
|
1504
|
+
: [searchRecord.type, displayRecord];
|
|
1505
|
+
}
|
|
1506
|
+
else {
|
|
1507
|
+
displayRecord = sLayoutInfo.DisplayFields[j].DisplayName
|
|
1508
|
+
? [sLayoutInfo.DisplayFields[j].DisplayName, displayRecord]
|
|
1509
|
+
: [sLayoutInfo.DisplayFields[j].DevName, displayRecord];
|
|
1510
|
+
}
|
|
1511
|
+
displayRecord.push(src);
|
|
1512
|
+
results.push(displayRecord);
|
|
1513
|
+
return results;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
catch (error) { }
|
|
1520
|
+
return results;
|
|
1521
|
+
};
|
|
1522
|
+
SearchInformationComponent.prototype.getEntityImgToDisplay = function (searchRecord) {
|
|
1523
|
+
var src = '';
|
|
1524
|
+
try {
|
|
1525
|
+
if (searchRecord.type) {
|
|
1526
|
+
if (searchRecord.type.toUpperCase() === 'CONTACT') {
|
|
1527
|
+
src = '../../assets/images/Icon_Contact.png';
|
|
1528
|
+
}
|
|
1529
|
+
else if (searchRecord.type.toUpperCase() === 'ACCOUNT') {
|
|
1530
|
+
src = '../../assets/images/Icon_Account.png';
|
|
1531
|
+
}
|
|
1532
|
+
else if (searchRecord.type.toUpperCase() === 'LEAD') {
|
|
1533
|
+
src = '../../assets/images/Icon_Lead.png';
|
|
1534
|
+
}
|
|
1535
|
+
else {
|
|
1536
|
+
src = '../../assets/images/Miscellaneous_Icon.png';
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
catch (error) { }
|
|
1541
|
+
return src;
|
|
1542
|
+
};
|
|
1543
|
+
SearchInformationComponent.prototype.getSearchLayoutInfoForDisplay = function (searchRecord) {
|
|
1544
|
+
var layoutInfo;
|
|
1545
|
+
try {
|
|
1546
|
+
layoutInfo = this.searchLayout.layouts[0][this.ActivityDetails.CallType].find(function (i) { return i.DevName === searchRecord.type; });
|
|
1547
|
+
}
|
|
1548
|
+
catch (error) { }
|
|
1549
|
+
return layoutInfo;
|
|
1550
|
+
};
|
|
1551
|
+
__decorate([
|
|
1552
|
+
core.Input()
|
|
1553
|
+
], SearchInformationComponent.prototype, "ActivityDetails", void 0);
|
|
1554
|
+
__decorate([
|
|
1555
|
+
core.Input()
|
|
1556
|
+
], SearchInformationComponent.prototype, "searchLayout", void 0);
|
|
1557
|
+
__decorate([
|
|
1558
|
+
core.Input()
|
|
1559
|
+
], SearchInformationComponent.prototype, "searchRecordList", void 0);
|
|
1560
|
+
__decorate([
|
|
1561
|
+
core.Output()
|
|
1562
|
+
], SearchInformationComponent.prototype, "agentSelectedCallerInformation", void 0);
|
|
1563
|
+
SearchInformationComponent = __decorate([
|
|
1564
|
+
core.Component({
|
|
1565
|
+
selector: 'amc-search-information',
|
|
1566
|
+
template: "<div class=\"callDisplay\">\r\n <div class=\"editor callHeader\">\r\n <label class=\"headerLabel\">\r\n <b>Caller Information</b>\r\n </label>\r\n <img\r\n title=\"Multiple Matches Available\"\r\n *ngIf=\"this.searchRecordList.length > 1\"\r\n src=\"../../assets/images/MultiMatchAlert.png\"\r\n class=\"multiMatchImg\"\r\n />\r\n <img\r\n *ngIf=\"isSearchInformationMaximized\"\r\n class=\"ViewResizeImage\"\r\n src=\"assets/images/section_collapse.png\"\r\n (click)=\"isSearchInformationMaximized = false\"\r\n title=\"Collapse\"\r\n />\r\n <img\r\n *ngIf=\"!isSearchInformationMaximized\"\r\n class=\"ViewResizeImage\"\r\n src=\"assets/images/section_expand.png\"\r\n (click)=\"isSearchInformationMaximized = true\"\r\n title=\"Expand\"\r\n />\r\n </div>\r\n <div class=\"callBody\" *ngIf=\"isSearchInformationMaximized\">\r\n <div *ngIf=\"this.searchRecordList.length > 1\">\r\n <span class=\"overflowWrapper\">\r\n <img\r\n class=\"CRMResultImageMultiMatch\"\r\n src=\"{{ this.multiMatchData[0][0][2] }}\"\r\n />\r\n <input\r\n id=\"{{ this.searchRecordList[0].id }}\"\r\n name=\"{{ this.multiMatchData[0][0][1] }}\"\r\n (click)=\"onAgentSelectedCallerInformation($event)\"\r\n readonly\r\n class=\"multiMatchLabel\"\r\n title=\"{{ this.multiMatchData[0][0][1] }}\"\r\n type=\"text\"\r\n value=\"{{ this.multiMatchData[0][0][1] }}\"\r\n />\r\n <span style=\"float: right; margin-right: 4%;\">\r\n <img\r\n *ngIf=\"!this.shouldShowAllMultiMatchOptions\"\r\n class=\"CRMExpandImage\"\r\n src=\"../../assets/images/down-arrow.png\"\r\n (click)=\"shouldShowAllMultiMatchOptions = true\"\r\n />\r\n <img\r\n *ngIf=\"this.shouldShowAllMultiMatchOptions\"\r\n class=\"CRMExpandImage\"\r\n src=\"../../assets/images/up-arrow.png\"\r\n (click)=\"shouldShowAllMultiMatchOptions = false\"\r\n />\r\n </span>\r\n </span>\r\n <div *ngIf=\"this.shouldShowAllMultiMatchOptions\">\r\n <div *ngFor=\"let i of this.multiMatchData | slice: 1; let index = index\">\r\n <span\r\n class=\"overflowWrapper\"\r\n >\r\n <img class=\"CRMResultImageMultiMatch\" src=\"{{ i[0][2] }}\" />\r\n <input\r\n id=\"{{ this.searchRecordList[index + 1].id }}\"\r\n name=\"{{ i[0][1] }}\"\r\n readonly\r\n class=\"multiMatchLabel\"\r\n (click)=\"onAgentSelectedCallerInformation($event)\"\r\n title=\"{{ i[0][1] }}\"\r\n type=\"text\"\r\n value=\"{{ i[0][1] }}\"\r\n />\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- Below is the HTML loaded on Single Match -->\r\n <div *ngIf=\"this.searchRecordList.length === 1\">\r\n <div\r\n class=\"editorFull displayDiv\"\r\n *ngFor=\"\r\n let i of this.singleMatchData | slice: 0:1;\r\n let index = index;\r\n let first = first\r\n \"\r\n >\r\n <span class=\"overflowWrapper\">\r\n <img\r\n id=\"EntityIcon\"\r\n src=\"{{ this.singleMatchIconSrc }}\"\r\n class=\"CRMResultImage\"\r\n />\r\n <input\r\n class=\"singleSearchResultSelect singleMatchFirstWrapper \"\r\n id=\"{{ this.searchRecordList[0].id }}\"\r\n [class.firstSingleMatchResult]=\"first\"\r\n value=\"{{ i[1] }}\"\r\n title=\"{{ i[1] }}\"\r\n (click)=\"onAgentSelectedCallerInformation($event)\"\r\n readonly\r\n />\r\n </span>\r\n </div>\r\n <div\r\n class=\"editorFull displayDiv\"\r\n *ngFor=\"\r\n let i of this.singleMatchData | slice: 1;\r\n let index = index;\r\n let first = first\r\n \"\r\n >\r\n <span class=\"overflowWrapper\">\r\n <label title=\"{{ i[0] }}\" class=\"displayLabelsTabbed\">{{\r\n i[0]\r\n }}</label>\r\n <input\r\n class=\"singleSearchResultSelect singleMatchTabbedItemsWrapper singleMatchLabel\"\r\n id=\"{{ this.searchRecordList[0].id }}\"\r\n value=\"{{ i[1] }}\"\r\n title=\"{{ i[1] }}\"\r\n readonly\r\n />\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1567
|
+
styles: [".callHeader{background-color:#f4f5fb!important;width:100%!important;margin-top:0!important;border:1px solid #939598!important}.displayDiv{width:100%;display:flex}.multiMatchImg{height:18px;margin-left:5px}.editor{font-size:.9em;width:70%;text-align:left;margin:4px 5% 0 0;font-family:Arial;white-space:nowrap;text-overflow:ellipsis;border:0;padding-top:2px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.editorFull{font-size:.9em;width:100%;text-align:left;font-family:Arial;white-space:nowrap;text-overflow:ellipsis;border:0;padding-top:2px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.CRMResultImage{width:18px;height:18px;margin-right:-5px;margin-top:-5px;margin-left:5px}.CRMResultImageMultiMatch{width:18px;height:18px;margin-right:2px;margin-left:5px;margin-top:-5px}.CRMExpandImage{width:6px;height:6px;cursor:pointer;margin-bottom:2px}.callBody{border:1px solid #939598;border-top:1px solid #939598;position:relative}.callDisplay{margin-bottom:8px;display:grid;background-color:#fff;display:grid}.multipleSearchResultSelect{border:1px solid #939598!important;border-radius:3px!important;width:96%!important;height:20px!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;margin:5px 0 5px 6px;cursor:pointer}.overflowWrapper{width:100%;overflow-x:hidden;overflow-y:hidden}.singleSearchResultSelect{border:0 solid #939598!important;height:20px!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;margin:0;outline:0}.wrapper{width:79%!important}.singleMatchFirstWrapper{cursor:pointer;border:0;outline:0;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(100% - 30px)}.singleMatchTabbedItemsWrapper{width:70%}.displayLabels{margin-left:5px;width:calc(20% + 5px);font-weight:400;margin-bottom:0;margin-top:0;outline:0;overflow:hidden;max-width:100px;vertical-align:middle}.displayLabelsMultiMatch{margin-left:5px;width:calc(20% + 5px);font-weight:400;margin-bottom:0;margin-top:0;outline:0}.displayLabelsTabbed{margin-left:5px;width:35%;font-weight:400;margin-bottom:0;margin-top:0;outline:0;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.matchedRecordsMargin{margin-top:1%}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.headerLabel{margin-left:10px}.firstSingleMatchResult{font-weight:700;border:0 solid #939598!important;height:20px!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;margin:0 0 0 5px;outline:0}.multiMatchLabel{border:0;cursor:pointer;outline:0;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(95% - 45px)}.singleMatchLabel{border:0;outline:0;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(65% - 13px)}"]
|
|
1568
|
+
})
|
|
1569
|
+
], SearchInformationComponent);
|
|
1570
|
+
return SearchInformationComponent;
|
|
1571
|
+
}());
|
|
1572
|
+
|
|
1073
1573
|
var UILibraryModule = /** @class */ (function () {
|
|
1074
1574
|
function UILibraryModule(injector) {
|
|
1075
1575
|
this.injector = injector;
|
|
@@ -1102,7 +1602,7 @@
|
|
|
1102
1602
|
]; };
|
|
1103
1603
|
UILibraryModule = __decorate([
|
|
1104
1604
|
core.NgModule({
|
|
1105
|
-
imports: [platformBrowser.BrowserModule, common.CommonModule, forms.FormsModule],
|
|
1605
|
+
imports: [platformBrowser.BrowserModule, common.CommonModule, forms.FormsModule, tabs.MatTabsModule],
|
|
1106
1606
|
declarations: [
|
|
1107
1607
|
InteractionComponent,
|
|
1108
1608
|
ScenarioComponent,
|
|
@@ -1114,11 +1614,16 @@
|
|
|
1114
1614
|
ChatMessageComponent,
|
|
1115
1615
|
DispositionComponent,
|
|
1116
1616
|
ActivityComponent,
|
|
1117
|
-
LoginComponent
|
|
1617
|
+
LoginComponent,
|
|
1618
|
+
CreateComponent,
|
|
1619
|
+
RecentActivityComponent,
|
|
1620
|
+
CurrentActivityComponent,
|
|
1621
|
+
SearchInformationComponent
|
|
1118
1622
|
],
|
|
1119
|
-
|
|
1623
|
+
providers: [],
|
|
1624
|
+
entryComponents: [ScenarioComponent, DispositionComponent, LoginComponent, CreateComponent, RecentActivityComponent, CurrentActivityComponent, SearchInformationComponent],
|
|
1120
1625
|
bootstrap: [],
|
|
1121
|
-
exports: [ScenarioComponent, DispositionComponent, LoginComponent]
|
|
1626
|
+
exports: [ScenarioComponent, DispositionComponent, LoginComponent, CreateComponent, RecentActivityComponent, CurrentActivityComponent, SearchInformationComponent]
|
|
1122
1627
|
})
|
|
1123
1628
|
], UILibraryModule);
|
|
1124
1629
|
return UILibraryModule;
|
|
@@ -1137,6 +1642,10 @@
|
|
|
1137
1642
|
exports.ɵi = DispositionComponent;
|
|
1138
1643
|
exports.ɵj = ActivityComponent;
|
|
1139
1644
|
exports.ɵk = LoginComponent;
|
|
1645
|
+
exports.ɵl = CreateComponent;
|
|
1646
|
+
exports.ɵm = RecentActivityComponent;
|
|
1647
|
+
exports.ɵn = CurrentActivityComponent;
|
|
1648
|
+
exports.ɵo = SearchInformationComponent;
|
|
1140
1649
|
|
|
1141
1650
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1142
1651
|
|