@amc-technology/ui-library 1.0.28 → 1.0.33

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 (69) hide show
  1. package/amc-technology-ui-library.d.ts +1 -3
  2. package/amc-technology-ui-library.metadata.json +1 -1
  3. package/bundles/amc-technology-ui-library.umd.js +1087 -726
  4. package/bundles/amc-technology-ui-library.umd.js.map +1 -57
  5. package/bundles/amc-technology-ui-library.umd.min.js +16 -2
  6. package/bundles/amc-technology-ui-library.umd.min.js.map +1 -266
  7. package/esm2015/amc-technology-ui-library.js +16 -1579
  8. package/esm2015/projects/UILibrary/src/app/Helpers.js +11 -0
  9. package/esm2015/projects/UILibrary/src/app/components/activity/activity.component.js +83 -0
  10. package/esm2015/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +104 -0
  11. package/esm2015/projects/UILibrary/src/app/components/chat-message/chat-message.component.js +39 -0
  12. package/esm2015/projects/UILibrary/src/app/components/disposition/disposition.component.js +49 -0
  13. package/esm2015/projects/UILibrary/src/app/components/duration/duration.component.js +58 -0
  14. package/esm2015/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.js +72 -0
  15. package/esm2015/projects/UILibrary/src/app/components/interaction/interaction.component.js +80 -0
  16. package/esm2015/projects/UILibrary/src/app/components/login/login.component.js +45 -0
  17. package/esm2015/projects/UILibrary/src/app/components/operation/operation.component.js +57 -0
  18. package/esm2015/projects/UILibrary/src/app/components/property/property.component.js +99 -0
  19. package/esm2015/projects/UILibrary/src/app/components/scenario/scenario.component.js +40 -0
  20. package/esm2015/projects/UILibrary/src/app/models/chat.message.js +7 -0
  21. package/esm2015/projects/UILibrary/src/app/models/chat.settings.js +1 -0
  22. package/esm2015/projects/UILibrary/src/app/models/disposition.interface.js +1 -0
  23. package/esm2015/projects/UILibrary/src/app/models/login.interface.js +1 -0
  24. package/esm2015/projects/UILibrary/src/app/models/uilibrary.model.js +40 -0
  25. package/esm2015/projects/UILibrary/src/app/uilibrary.module.js +73 -0
  26. package/esm2015/public_api.js +2 -0
  27. package/esm5/amc-technology-ui-library.js +16 -716
  28. package/esm5/projects/UILibrary/src/app/Helpers.js +11 -0
  29. package/esm5/projects/UILibrary/src/app/components/activity/activity.component.js +84 -0
  30. package/esm5/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +105 -0
  31. package/esm5/projects/UILibrary/src/app/components/chat-message/chat-message.component.js +40 -0
  32. package/esm5/projects/UILibrary/src/app/components/disposition/disposition.component.js +61 -0
  33. package/esm5/projects/UILibrary/src/app/components/duration/duration.component.js +60 -0
  34. package/esm5/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.js +74 -0
  35. package/esm5/projects/UILibrary/src/app/components/interaction/interaction.component.js +85 -0
  36. package/esm5/projects/UILibrary/src/app/components/login/login.component.js +68 -0
  37. package/esm5/projects/UILibrary/src/app/components/operation/operation.component.js +58 -0
  38. package/esm5/projects/UILibrary/src/app/components/property/property.component.js +101 -0
  39. package/esm5/projects/UILibrary/src/app/components/scenario/scenario.component.js +41 -0
  40. package/esm5/projects/UILibrary/src/app/models/chat.message.js +7 -0
  41. package/esm5/projects/UILibrary/src/app/models/chat.settings.js +1 -0
  42. package/esm5/projects/UILibrary/src/app/models/disposition.interface.js +1 -0
  43. package/esm5/projects/UILibrary/src/app/models/login.interface.js +1 -0
  44. package/esm5/projects/UILibrary/src/app/models/uilibrary.model.js +43 -0
  45. package/esm5/projects/UILibrary/src/app/uilibrary.module.js +74 -0
  46. package/esm5/public_api.js +2 -0
  47. package/fesm2015/amc-technology-ui-library.js +813 -0
  48. package/fesm2015/amc-technology-ui-library.js.map +1 -0
  49. package/fesm5/amc-technology-ui-library.js +867 -0
  50. package/fesm5/amc-technology-ui-library.js.map +1 -0
  51. package/package.json +14 -66
  52. package/projects/UILibrary/src/app/components/activity/activity.component.d.ts +11 -9
  53. package/projects/UILibrary/src/app/components/disposition/disposition.component.d.ts +5 -3
  54. package/projects/UILibrary/src/app/components/duration/duration.component.d.ts +4 -1
  55. package/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.d.ts +4 -1
  56. package/projects/UILibrary/src/app/components/interaction/interaction.component.d.ts +4 -1
  57. package/projects/UILibrary/src/app/components/login/login.component.d.ts +11 -0
  58. package/projects/UILibrary/src/app/components/operation/operation.component.d.ts +6 -0
  59. package/projects/UILibrary/src/app/components/property/property.component.d.ts +5 -0
  60. package/projects/UILibrary/src/app/components/scenario/scenario.component.d.ts +2 -2
  61. package/projects/UILibrary/src/app/models/disposition.interface.d.ts +12 -0
  62. package/projects/UILibrary/src/app/models/login.interface.d.ts +13 -0
  63. package/projects/UILibrary/src/app/models/uilibrary.model.d.ts +23 -24
  64. package/webcomponents/webcomponents.js +3 -3
  65. package/esm2015/amc-technology-ui-library.js.map +0 -44
  66. package/esm5/amc-technology-ui-library.js.map +0 -44
  67. package/projects/UILibrary/src/app/components/amc-collapsible-container/amc-collapsible-container.component.d.ts +0 -6
  68. package/projects/UILibrary/src/app/components/caller-information/caller-information.component.d.ts +0 -14
  69. package/projects/UILibrary/src/app/components/recent-activities/recent-activities.component.d.ts +0 -45
@@ -1,716 +1,16 @@
1
- import { Component, Input, Output, EventEmitter, ViewChild, NgModule, Injector } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule } from '@angular/forms';
4
- import { createCustomElement } from '@angular/elements';
5
- import { BrowserModule } from '@angular/platform-browser';
6
- import { ElementZoneStrategyFactory } from 'elements-zone-strategy';
7
-
8
- var InteractionComponent = /** @class */ (function () {
9
- function InteractionComponent() {
10
- this.minimizedChanged = new EventEmitter();
11
- this.isAgentTyping = new EventEmitter();
12
- this.newMessage = new EventEmitter();
13
- this._minimized = false;
14
- }
15
- Object.defineProperty(InteractionComponent.prototype, "_minimized", {
16
- get: function () {
17
- return this.minimized;
18
- },
19
- set: function (value) {
20
- this.minimized = value;
21
- this.minimizedChanged.emit(value);
22
- },
23
- enumerable: true,
24
- configurable: true
25
- });
26
- InteractionComponent.prototype.ngOnInit = function () {
27
- };
28
- InteractionComponent.prototype.minimize = function () {
29
- this._minimized = true;
30
- };
31
- InteractionComponent.prototype.maximize = function () {
32
- this._minimized = false;
33
- };
34
- InteractionComponent.prototype.isConferenceCall = function () {
35
- if (this.interaction.parties && this.interaction.parties.length > 1) {
36
- return true;
37
- }
38
- return false;
39
- };
40
- return InteractionComponent;
41
- }());
42
- InteractionComponent.decorators = [
43
- { type: Component, args: [{
44
- selector: 'amc-interaction',
45
- template: "<div class=\"AnswerCallFocused\">\n <div class=\"editor callHeaderTop\">\n <img class=\"statusImage\" [src]=\"interaction.UIHeadersData.statusUrl\" (click)=\"interaction.UIHeadersData.focusHandler.handler(interaction.UIHeadersData.focusHandler.operationName, interaction.UIHeadersData.focusHandler.operationMetadata)\" />\n <label class=\"statusText\">\n <b>{{interaction.UIHeadersData.statusText}}</b>\n </label>\n <label class=\"verticalDivider\">|</label>\n <label class=\"directionText\" *ngIf=\"!interaction.UIHeadersData.displayHoldCounter\">{{interaction.UIHeadersData.directionText}}</label>\n <div class=\"holdCallDurationDiv\" *ngIf=\"interaction.UIHeadersData.displayHoldCounter\">\n <amc-holdtimer [holdCounterData]=\"interaction.UIHeadersData.holdCounterData\"></amc-holdtimer>\n </div>\n <img class=\"ViewExpandImage\" [src]=\"interaction.UIHeadersData.minimizeUrl\" (click)=\"minimize()\" *ngIf=\"!_minimized\" />\n <img class=\"ViewCollapseImage\" [src]=\"interaction.UIHeadersData.maximizeUrl\" (click)=\"maximize()\" *ngIf=\"_minimized\" />\n <div class=\"DurationDiv\" *ngIf=\"interaction.displayCallTimer\">\n <amc-duration [startTime]=\"interaction.startTime\"></amc-duration>\n </div>\n </div>\n\n <div *ngIf=\"!_minimized\">\n\n <div *ngIf=\"!isConferenceCall()\">\n <div class=\"editor container\">\n <input class=\"callImage\" type=\"image\" [src]=\"interaction.subheaderData.image.href\" [title]=\"interaction.subheaderData.tooltip || ''\">\n <input class=\"editor phoneNumberValue\" readonly type=\"text\" [value]=\"interaction.subheaderData.value\">\n </div>\n\n <div class=\"cadSection\">\n <ng-container *ngFor=\"let property of interaction.properties\">\n <ng-container *ngIf=\"property.visible\">\n <label class=\"col1\" [title]=\"property.displayKey\">{{property.displayKey}}</label>\n <amc-property class=\"col2\" [property]=\"property\"> </amc-property>\n </ng-container>\n </ng-container>\n\n <ng-container *ngFor=\"let property of interaction.associatedData\">\n <ng-container *ngIf=\"property.visible\">\n <div class=\"editor displayDiv\">\n <label class=\"displayLabels\" [title]=\"property.displayKey\">{{property.displayKey}}</label>\n <amc-property class=\"col2\" [property]=\"property\"> </amc-property>\n </div>\n </ng-container>\n </ng-container>\n </div>\n\n <app-chat-box *ngIf=\"interaction.chat\" [isTyping]=\"interaction.chat.isCustomerTyping\" [settings]=\"interaction.chat.settings\"\n [messages]=\"interaction.chat.messages\" (isAgentTyping)=\"isAgentTyping.emit($event)\" (newMessage)=\"newMessage.emit($event)\"></app-chat-box>\n\n <div [id]='interaction.interactionId'> </div>\n <amc-operation [operations]=\"interaction.operations\"></amc-operation>\n </div>\n\n <div *ngIf=\"isConferenceCall()\">\n <div *ngFor=\"let party of interaction.parties\">\n <div class=\"editor container\">\n <input class=\"callImage\" type=\"image\" [src]=\"party.header.image.href\" [title]=\"party.header.tooltip || ''\">\n <input class=\"editor phoneNumberValue\" readonly type=\"text\" [value]=\"party.header.value\">\n </div>\n\n <div class=\"grid-container\">\n <ng-container *ngFor=\"let property of party.properties\">\n <ng-container *ngIf=\"property.visible\">\n <label class=\"col1\" [title]=\"property.displayKey\">{{property.displayKey}}</label>\n <amc-property class=\"col2\" [property]=\"property\"> </amc-property>\n </ng-container>\n </ng-container>\n </div>\n <amc-operation [operations]=\"party.operations\"></amc-operation>\n <div class=\"AnswerCallFocused\"></div>\n </div>\n <amc-operation [operations]=\"interaction.operations\"></amc-operation>\n </div>\n\n </div>\n</div>\n",
46
- styles: [":host{display:block}.container{margin-left:5px!important;padding-left:0}.cadSection{margin-bottom:5px}.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}", "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:6px 0 0 5px;cursor:pointer}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;-webkit-box-sizing:border-box;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:-webkit-box;display:-ms-flexbox;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}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}"]
47
- },] },
48
- ];
49
- InteractionComponent.ctorParameters = function () { return []; };
50
- InteractionComponent.propDecorators = {
51
- interaction: [{ type: Input }],
52
- minimizedChanged: [{ type: Output }],
53
- isAgentTyping: [{ type: Output }],
54
- newMessage: [{ type: Output }]
55
- };
56
- var ScenarioComponent = /** @class */ (function () {
57
- function ScenarioComponent() {
58
- this.minimizedChanged = new EventEmitter();
59
- this.isAgentTyping = new EventEmitter();
60
- this.newMessage = new EventEmitter();
61
- this.afterViewChecked = new EventEmitter();
62
- }
63
- ScenarioComponent.prototype.ngAfterViewChecked = function () {
64
- this.afterViewChecked.emit();
65
- };
66
- ScenarioComponent.prototype.onMinimizedChanged = function () {
67
- this.minimizedChanged.emit();
68
- };
69
- return ScenarioComponent;
70
- }());
71
- ScenarioComponent.decorators = [
72
- { type: Component, args: [{
73
- selector: 'amc-scenario',
74
- template: "<ng-container *ngIf=\"scenario && scenario.interactions\">\n <amc-interaction *ngFor=\"let interaction of scenario.interactions\" [interaction]=\"interaction\"\n (minimizedChanged)=\"onMinimizedChanged()\" (isAgentTyping)=\"isAgentTyping.emit($event)\"\n (newMessage)=\"newMessage.emit($event)\">\n </amc-interaction>\n</ng-container>\n",
75
- styles: ["", "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:6px 0 0 5px;cursor:pointer}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;-webkit-box-sizing:border-box;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:-webkit-box;display:-ms-flexbox;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}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}"]
76
- },] },
77
- ];
78
- ScenarioComponent.ctorParameters = function () { return []; };
79
- ScenarioComponent.propDecorators = {
80
- scenario: [{ type: Input }],
81
- minimizedChanged: [{ type: Output }],
82
- isAgentTyping: [{ type: Output }],
83
- newMessage: [{ type: Output }],
84
- afterViewChecked: [{ type: Output }]
85
- };
86
- var OperationComponent = /** @class */ (function () {
87
- function OperationComponent() {
88
- }
89
- OperationComponent.prototype.ngOnInit = function () {
90
- };
91
- return OperationComponent;
92
- }());
93
- OperationComponent.decorators = [
94
- { type: Component, args: [{
95
- selector: 'amc-operation',
96
- template: "<div class=\"callOptions\">\n <img class=\"AnswerCallImages\" *ngFor=\"let operation of operations\" [title]=\"operation.title\" [src]=\"operation.icon\" (click)=\"operation.handler(operation.operationName, operation.operationMetadata)\"\n />\n</div>",
97
- styles: ["", "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:6px 0 0 5px;cursor:pointer}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;-webkit-box-sizing:border-box;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:-webkit-box;display:-ms-flexbox;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}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}"]
98
- },] },
99
- ];
100
- OperationComponent.ctorParameters = function () { return []; };
101
- OperationComponent.propDecorators = {
102
- operations: [{ type: Input }]
103
- };
104
- var IChatMessageType = {
105
- AGENT: 'AGENT',
106
- OTHER_PERSON: 'OTHER_PERSON',
107
- INFORMATION: 'INFORMATION',
108
- };
109
- var Property = /** @class */ (function () {
110
- function Property(key, value, visible, valueType, customOperation) {
111
- var _this = this;
112
- this.displayOperation = (function () {
113
- _this.displayKey = _this.key;
114
- _this.displayValue = _this.value;
115
- });
116
- this.key = key;
117
- this.value = value;
118
- visible != null ? (this.visible = visible) : (this.visible = true);
119
- valueType != null
120
- ? (this.displayValueType = valueType)
121
- : (this.displayValueType = ValueType.STRING);
122
- this.customOperations = customOperation;
123
- this.displayOperation();
124
- }
125
- return Property;
126
- }());
127
- var ValueType = {
128
- STRING: 0,
129
- COUNTER: 1,
130
- };
131
- ValueType[ValueType.STRING] = 'STRING';
132
- ValueType[ValueType.COUNTER] = 'COUNTER';
133
- function secondsToHms(seconds_in) {
134
- seconds_in = Number(seconds_in);
135
- var h = Math.floor(seconds_in / 3600);
136
- var m = Math.floor(seconds_in % 3600 / 60);
137
- var s = Math.floor(seconds_in % 3600 % 60);
138
- var hDisplay = h > 0 ? h.toString() + ':' : '';
139
- var mDisplay = m > 0 ? ('0' + m.toString()).slice(-2) + ':' : '00:';
140
- var sDisplay = s > 0 ? ('0' + s.toString()).slice(-2) : '00';
141
- return hDisplay + mDisplay + sDisplay;
142
- }
143
- var PropertyComponent = /** @class */ (function () {
144
- function PropertyComponent() {
145
- this._timerId = null;
146
- this.processedDisplayValue = '';
147
- }
148
- PropertyComponent.prototype.ngOnInit = function () {
149
- this.initValues();
150
- };
151
- PropertyComponent.prototype.initValues = function () {
152
- if (this.property.displayValueType === ValueType.COUNTER) {
153
- this.startCallCounter();
154
- }
155
- else {
156
- this.processedDisplayValue = this.property.displayValue;
157
- }
158
- };
159
- PropertyComponent.prototype.startCallCounter = function () {
160
- var _this = this;
161
- if (this._timerId == null) {
162
- this._timerId = window.setInterval((function () {
163
- var callStartTime = _this.property.displayValue;
164
- var currentTime = new Date().getTime() / 1000;
165
- var secondsPassed = Math.floor((currentTime) - (callStartTime / 1000));
166
- _this.processedDisplayValue = secondsToHms(secondsPassed);
167
- }), 1000);
168
- }
169
- };
170
- PropertyComponent.prototype.ngOnDestroy = function () {
171
- if (this.property.displayValueType === ValueType.COUNTER) {
172
- if (this._timerId != null) {
173
- clearInterval(this._timerId);
174
- this._timerId = null;
175
- }
176
- }
177
- };
178
- return PropertyComponent;
179
- }());
180
- PropertyComponent.decorators = [
181
- { type: Component, args: [{
182
- selector: 'amc-property',
183
- template: "<input [name]=\"processedDisplayValue\" readonly [title]=\"processedDisplayValue\" class=\"displayData\" type=\"text\" [value]=\"processedDisplayValue\"\n *ngIf=\"!property.customOperations\" />\n<input class=\"cursor\" [name]=\"processedDisplayValue\" class=\"displayData\" readonly [title]=\"processedDisplayValue\" type=\"text\" [value]=\"processedDisplayValue\"\n (click)=\"property.customOperations.handler(property.customOperations.eventName,property.customOperations.eventMetadata)\"\n *ngIf=\"property.customOperations\" />\n",
184
- styles: ["input{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:0}", "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:6px 0 0 5px;cursor:pointer}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;-webkit-box-sizing:border-box;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:-webkit-box;display:-ms-flexbox;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}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}"]
185
- },] },
186
- ];
187
- PropertyComponent.ctorParameters = function () { return []; };
188
- PropertyComponent.propDecorators = {
189
- property: [{ type: Input }]
190
- };
191
- var HoldtimerComponent = /** @class */ (function () {
192
- function HoldtimerComponent() {
193
- this.displayTime = '00:00/00:00';
194
- }
195
- HoldtimerComponent.prototype.ngOnInit = function () {
196
- this.startCallCounter();
197
- };
198
- HoldtimerComponent.prototype.startCallCounter = function () {
199
- var _this = this;
200
- var pastTimeInSeconds = this.CaculatePastHoldDuration();
201
- if (this._timerId == null) {
202
- this._timerId = window.setInterval((function () {
203
- var currentTime = new Date().getTime() / 1000;
204
- var secondsPassedCurrentCall = Math.floor((currentTime) - (_this.holdCounterData.currentHoldStartTime / 1000));
205
- _this.displayTime = secondsToHms(secondsPassedCurrentCall) +
206
- '/' + secondsToHms(pastTimeInSeconds + secondsPassedCurrentCall);
207
- }), 1000);
208
- }
209
- };
210
- HoldtimerComponent.prototype.CaculatePastHoldDuration = function () {
211
- var pastTimeInSeconds = 0;
212
- if (this.holdCounterData.pastCallDurations) {
213
- this.holdCounterData.pastCallDurations.forEach((function (holdTimerIterator) {
214
- pastTimeInSeconds += (holdTimerIterator.endTime - holdTimerIterator.startTime) / 1000;
215
- }));
216
- }
217
- return pastTimeInSeconds;
218
- };
219
- HoldtimerComponent.prototype.ngOnDestroy = function () {
220
- if (this._timerId != null) {
221
- clearInterval(this._timerId);
222
- this._timerId = null;
223
- }
224
- };
225
- return HoldtimerComponent;
226
- }());
227
- HoldtimerComponent.decorators = [
228
- { type: Component, args: [{
229
- selector: 'amc-holdtimer',
230
- template: "<div class=\"holdCallDurationDiv\">\n <input class=\"holdCallDurationTimer\" name=\"HoldCallDuration/TotalHoldCallDuration\" type=\"text\" [value]=\"displayTime\"\n readonly>\n</div>\n",
231
- styles: ["", "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:6px 0 0 5px;cursor:pointer}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;-webkit-box-sizing:border-box;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:-webkit-box;display:-ms-flexbox;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}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}"]
232
- },] },
233
- ];
234
- HoldtimerComponent.ctorParameters = function () { return []; };
235
- HoldtimerComponent.propDecorators = {
236
- holdCounterData: [{ type: Input }]
237
- };
238
- var DurationComponent = /** @class */ (function () {
239
- function DurationComponent() {
240
- this.displayTime = '00:00/00:00';
241
- }
242
- DurationComponent.prototype.ngOnInit = function () {
243
- this.startCallCounter();
244
- };
245
- DurationComponent.prototype.startCallCounter = function () {
246
- var _this = this;
247
- if (this._timerId == null) {
248
- this._timerId = window.setInterval((function () {
249
- var callStartTime = _this.startTime;
250
- var currentTime = new Date().getTime() / 1000;
251
- var secondsPassed = Math.floor((currentTime) - (callStartTime / 1000));
252
- _this.displayTime = Math.floor(secondsPassed / 60) + ':' + ('0' + (secondsPassed % 60)).slice(-2);
253
- }), 1000);
254
- }
255
- };
256
- DurationComponent.prototype.ngOnDestroy = function () {
257
- if (this._timerId != null) {
258
- clearInterval(this._timerId);
259
- this._timerId = null;
260
- }
261
- };
262
- return DurationComponent;
263
- }());
264
- DurationComponent.decorators = [
265
- { type: Component, args: [{
266
- selector: 'amc-duration',
267
- template: "<div class=\"holdCallDurationDiv\">\n <input class=\"block durationInput\" name=\"CallDuration\" type=\"text\" [value]=\"displayTime\" readonly>\n</div>\n",
268
- styles: ["", "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:6px 0 0 5px;cursor:pointer}.AnswerCallFocused{border:1px solid #939598;margin-left:0;font-family:Arial;position:relative;background-color:#fff;width:100%;-webkit-box-sizing:border-box;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:-webkit-box;display:-ms-flexbox;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}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}"]
269
- },] },
270
- ];
271
- DurationComponent.ctorParameters = function () { return []; };
272
- DurationComponent.propDecorators = {
273
- startTime: [{ type: Input }]
274
- };
275
- var ChatBoxComponent = /** @class */ (function () {
276
- function ChatBoxComponent() {
277
- this.isTyping = false;
278
- this.lastCount = -1;
279
- this._isAgentTyping = false;
280
- this.isAgentTyping = new EventEmitter();
281
- this.newMessage = new EventEmitter();
282
- this.newMessageText = '';
283
- this.usernameToColor = {};
284
- this.colors = [
285
- '#81c784',
286
- '#ffab91',
287
- '#f48fb1',
288
- '#29b6f6',
289
- '#e1bee7',
290
- '#9ccc65',
291
- '#ffc107',
292
- '#26c6da',
293
- '#cddc39',
294
- ];
295
- this.colorsIndex = 0;
296
- this.agentColor = '#29b6f6';
297
- }
298
- ChatBoxComponent.prototype.ngAfterViewChecked = function () {
299
- if (this.lastCount !== this.messages.length) {
300
- this.lastCount = this.messages.length;
301
- this.scrollToBottom();
302
- }
303
- };
304
- ChatBoxComponent.prototype.getColor = function (message) {
305
- if (message.type && message.type === IChatMessageType.AGENT) {
306
- return this.agentColor;
307
- }
308
- else if (message.username) {
309
- if (!this.usernameToColor[message.username]) {
310
- this.usernameToColor[message.username] = this.colors[this.colorsIndex];
311
- this.colorsIndex = (this.colorsIndex + 1) % this.colors.length;
312
- }
313
- return this.usernameToColor[message.username];
314
- }
315
- else {
316
- return this.colors[0];
317
- }
318
- };
319
- ChatBoxComponent.prototype.shouldAlignRight = function (message) {
320
- return message.type && message.type === IChatMessageType.AGENT;
321
- };
322
- ChatBoxComponent.prototype.sendNewMessage = function () {
323
- if (this.newMessageText) {
324
- this.newMessage.emit(this.newMessageText);
325
- this.newMessageText = '';
326
- }
327
- };
328
- ChatBoxComponent.prototype.onNewMessageFocus = function (event) {
329
- var isTyping = event && this.newMessageText.length > 0;
330
- if (isTyping !== this._isAgentTyping) {
331
- this._isAgentTyping = isTyping;
332
- this.isAgentTyping.emit(isTyping);
333
- }
334
- };
335
- ChatBoxComponent.prototype.onKeyup = function () {
336
- var isTyping = this.newMessageText.length > 0;
337
- if (isTyping !== this._isAgentTyping) {
338
- this._isAgentTyping = isTyping;
339
- this.isAgentTyping.emit(isTyping);
340
- }
341
- };
342
- ChatBoxComponent.prototype.scrollToBottom = function () {
343
- try {
344
- this.messagesContainer.nativeElement.scrollTop = this.messagesContainer.nativeElement.scrollHeight;
345
- }
346
- catch (e) { }
347
- };
348
- return ChatBoxComponent;
349
- }());
350
- ChatBoxComponent.decorators = [
351
- { type: Component, args: [{
352
- selector: 'app-chat-box',
353
- template: "<div class=\"chat-box\">\n <div #MessagesContainer class=\"messages\" [style.max-height]='settings.maxHeight'>\n <ng-container *ngFor=\"let message of messages\">\n <app-chat-message [alignRight]=\"shouldAlignRight(message)\" [message]=\"message.text\" [username]=\"message.username\"\n [timestamp]=\"message.timestamp\" [image]=\"message.userIcon\" [fallbackImage]=\"settings.fallbackUserIcon\" [color]=\"getColor(message)\">\n </app-chat-message>\n </ng-container>\n\n <div *ngIf=\"isTyping\" class=\"typing-indicator\">\n Someone is typing\n <span></span>\n <span></span>\n <span></span>\n </div>\n </div>\n\n <div class=\"new-message\">\n <input #NewMessageText [(ngModel)]=\"newMessageText\" type=\"text\" placeholder=\"Type a message\" (focus)=\"onNewMessageFocus(true)\"\n (blur)=\"onNewMessageFocus(false)\" (keydown.enter)=\"sendNewMessage()\" (keyup)='onKeyup()' [disabled]=\"settings.disableSendMessage\">\n <input type=\"image\" [src]=\"settings.sendImage\" (click)=\"sendNewMessage()\" [disabled]=\"settings.disableSendMessage\">\n </div>\n</div>\n",
354
- styles: [".chat-box{background-color:#eceff1}.messages{padding:5px;overflow:auto;min-height:50px}.new-message{border-top:1px solid #000;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;height:25px}.new-message input[type=text]{-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0;background-color:#eceff1;border:none;min-width:0}.new-message input[type=image]{position:relative;top:50%;-webkit-transform:translateY(-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:1em;font-style:italic}.typing-indicator span{display:inline-block;height:10px;width:10px;border-radius:50%;background-color:#9e9e9e;margin:0 1px;opacity:.2}.typing-indicator span:nth-of-type(1){-webkit-animation:1.5s .33333s infinite blink;animation:1.5s .33333s infinite blink}.typing-indicator span:nth-of-type(2){-webkit-animation:1.5s .66666s infinite blink;animation:1.5s .66666s infinite blink}.typing-indicator span:nth-of-type(3){-webkit-animation:1.5s .99999s infinite blink;animation:1.5s .99999s infinite blink}@-webkit-keyframes blink{50%{opacity:1}}@keyframes blink{50%{opacity:1}}"],
355
- },] },
356
- ];
357
- ChatBoxComponent.ctorParameters = function () { return []; };
358
- ChatBoxComponent.propDecorators = {
359
- settings: [{ type: Input }],
360
- isTyping: [{ type: Input }],
361
- messages: [{ type: Input }],
362
- isAgentTyping: [{ type: Output }],
363
- newMessage: [{ type: Output }],
364
- messagesContainer: [{ type: ViewChild, args: ['MessagesContainer',] }]
365
- };
366
- var ChatMessageComponent = /** @class */ (function () {
367
- function ChatMessageComponent() {
368
- this.alignRight = false;
369
- }
370
- ChatMessageComponent.prototype.ngOnInit = function () {
371
- };
372
- return ChatMessageComponent;
373
- }());
374
- ChatMessageComponent.decorators = [
375
- { type: Component, args: [{
376
- selector: 'app-chat-message',
377
- template: "<div [class]=\"alignRight? 'message right-message' : 'message left-message'\">\n <div class=\"message-header\">\n <img *ngIf=\"image\" class=\"image\" [src]=\"image\" (error)=\"image = fallbackImage\" [style.border-color]=\"color\" />\n <span *ngIf=\"username\" class=\"username\">{{username}}</span>\n <span *ngIf=\"timestamp\" class=\"timestamp\">{{timestamp}}</span>\n </div>\n\n <div class=\"message-body-container\">\n <div>\n <div class=\"message-body\" [style.background-color]=\"color\" [style.border-color]=\"color\">\n <span [innerHTML]=\"message\"></span>\n </div>\n </div>\n </div>\n</div>\n",
378
- styles: [":host{display:block;margin-top:2px;margin-bottom:2px}.right-message{text-align:end}.message-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-text-emphasis:none;text-emphasis:none;font-style:italic;font-size:.7em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:.5em}.message-header .image{height:30px;border-radius:50%;border:2px solid red}.message-header .username{font-weight:700}.right-message>.message-header{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;margin-right:1px}.right-message>.message-header .image,.right-message>.message-header .username{margin-left:5px}.left-message>.message-header{margin-left:1px}.left-message>.message-header .image,.left-message>.message-header .username{margin-right:5px}.message-body-container{display:-webkit-box;display:-ms-flexbox;display:flex}.right-message>.message-body-container{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.message-body{display:inline-block;position:relative;border-radius:.4em;padding:3px;font-style:normal;font-size:1em;text-align:start;min-width:2em;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.left-message .message-body:after{content:\"\";position:absolute;left:.8em;top:-.4em;border-bottom:.4em solid #000;border-bottom-color:inherit;border-left:.4em solid transparent;border-right:.4em solid transparent}.right-message .message-body:after{content:\"\";position:absolute;right:.8em;top:-.4em;border-bottom:.4em solid #000;border-bottom-color:inherit;border-left:.4em solid transparent;border-right:.4em solid transparent}"]
379
- },] },
380
- ];
381
- ChatMessageComponent.ctorParameters = function () { return []; };
382
- ChatMessageComponent.propDecorators = {
383
- message: [{ type: Input }],
384
- alignRight: [{ type: Input }],
385
- username: [{ type: Input }],
386
- color: [{ type: Input }],
387
- timestamp: [{ type: Input }],
388
- image: [{ type: Input }],
389
- fallbackImage: [{ type: Input }]
390
- };
391
- var DispositionComponent = /** @class */ (function () {
392
- function DispositionComponent() {
393
- this.selectedDisposition = new EventEmitter();
394
- }
395
- DispositionComponent.prototype.ngOnInit = function () {
396
- };
397
- DispositionComponent.prototype.submitDisposition = function () {
398
- this.selectedDisposition.emit({ 'dispositionid': this.selectedDispositionValue,
399
- dispositionName: this.disposition.get(this.selectedDispositionValue) });
400
- };
401
- return DispositionComponent;
402
- }());
403
- DispositionComponent.decorators = [
404
- { type: Component, args: [{
405
- selector: 'app-disposition',
406
- template: "<div class=\"reasonCodeModalFrame\">\n <div>\n <div>\n <label class=\"reasonCodeLabelStyle\">{{dispositionHeader}}</label>\n <br />\n <hr />\n </div>\n <ng-container *ngFor=\"let disp of disposition\">\n <div>\n <input [required]=\"!selectedDispositionValue\" type=\"radio\" name=\"disposition_name\" value=\"{{disp.key}}\" [(ngModel)]=\"selectedDispositionValue\"/>\n <label class=\"reasonCodeLabelStyle\">{{disp.value}}</label>\n </div>\n </ng-container>\n <p>\n <input type=\"image\" src=\"https://engage.contactcanvas.com/MSCRMToolbar/Images/voice_check_normal.png\" title=\"Submit Call Result\"\n (click)=\"submitDisposition()\" style='float:right; margin-right:20px; margin-bottom:10px; width:20px; height:20px' />\n </p>\n </div>\n</div>\n",
407
- styles: [".reasonCodeModalFrame{background-color:#eef6ff;clear:none;border-radius:10px;margin:0;padding:0;white-space:nowrap;overflow:hidden!important}.reasonCodeLabelStyle{font-size:.95em!important;color:#000!important;font-family:Arial!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;width:90%;text-align:left;display:inline-block;vertical-align:middle}"]
408
- },] },
409
- ];
410
- DispositionComponent.ctorParameters = function () { return []; };
411
- DispositionComponent.propDecorators = {
412
- dispositionHeader: [{ type: Input }],
413
- disposition: [{ type: Input }],
414
- selectedDisposition: [{ type: Output }]
415
- };
416
- var ActivityComponent = /** @class */ (function () {
417
- function ActivityComponent() {
418
- this.ActivitySave = new EventEmitter();
419
- this.OnNameSelectChange = new EventEmitter();
420
- this.OnRelatedToChange = new EventEmitter();
421
- this.OnSubjectChange = new EventEmitter();
422
- this.OnCallNotesChange = new EventEmitter();
423
- this.OnQuickCommentPress = new EventEmitter();
424
- this.title = 'Activity Information';
425
- }
426
- ActivityComponent.prototype.onNameSelectChange = function (event) {
427
- if (event.currentTarget.value !== '-1') {
428
- this.activity.who = this.activity.whoList.find((function (who) { return who.entityId === event.currentTarget.value; }));
429
- this.OnNameSelectChange.emit(this.activity);
430
- }
431
- else {
432
- this.activity.who = null;
433
- this.OnNameSelectChange.emit(this.activity);
434
- }
435
- };
436
- ActivityComponent.prototype.parseWho = function (who) {
437
- return who.entityType + ': ' + who.entityName;
438
- };
439
- ActivityComponent.prototype.parseWhat = function (what) {
440
- return what.entityType + ': ' + what.entityName;
441
- };
442
- ActivityComponent.prototype.onRelatedToChange = function (event) {
443
- if (event.currentTarget.value !== '-1') {
444
- this.activity.what = this.activity.whatList.find((function (what) { return what.entityId === event.currentTarget.value; }));
445
- this.OnRelatedToChange.emit(this.activity);
446
- }
447
- else {
448
- this.activity.what = null;
449
- this.OnRelatedToChange.emit(this.activity);
450
- }
451
- };
452
- ActivityComponent.prototype.onSubjectChange = function (event) {
453
- this.activity.subject = event.srcElement.value;
454
- this.OnSubjectChange.emit(this.activity);
455
- };
456
- ActivityComponent.prototype.onCallNotesChange = function (event) {
457
- this.activity.description = event.currentTarget.value;
458
- this.OnCallNotesChange.emit(this.activity);
459
- };
460
- ActivityComponent.prototype.loadQuickComment = function (value) {
461
- if (this.activity.description) {
462
- this.activity.description = this.activity.description + '\n' + this.activity.quickCommentList[value];
463
- }
464
- else {
465
- this.activity.description = this.activity.quickCommentList[value];
466
- }
467
- this.OnQuickCommentPress.emit(this.activity.quickCommentList[value]);
468
- };
469
- ActivityComponent.prototype.activitySave = function () {
470
- this.ActivitySave.emit(this.activity);
471
- };
472
- return ActivityComponent;
473
- }());
474
- ActivityComponent.decorators = [
475
- { type: Component, args: [{
476
- selector: 'amc-activity',
477
- template: "<app-amc-collapsible-container>\n <div role=headerExpand>\n <label class=\"headerLabel\">\n <b>Activity Information</b>\n </label>\n </div>\n\n <div role=headerCollapse>\n <label class=\"headerLabel\">\n <b>Activity Information</b>\n </label>\n </div>\n\n <div role=\"body\">\n <div class=\"activityFields\">\n <form>\n <div class=\"editor displayDiv\">\n <label class=\"displayLabels\" title=\"Call From\">{{activity.nameFieldName}}</label>\n <select class=\"dropDownListStyle displayData\" data-resetperactivity=\"false\" (change)=\"onNameSelectChange($event)\">\n <option *ngFor=\"let who of activity.whoList; let i = index\" value=\"{{who.entityId}}\" [selected]=\"i===0\">{{parseWho(who)}}</option>\n <option value=\"-1\"></option>\n </select>\n </div>\n <div class=\"editor displayDiv\">\n <label class=\"displayLabels\" title=\"Related To\">{{activity.relatedToFieldName}}</label>\n <select class=\"dropDownListStyle displayData\" (change)=\"onRelatedToChange($event)\" data-resetperactivity=\"false\">\n <option *ngFor=\"let what of activity.whatList; let i = index\" value=\"{{what.entityId}}\" [selected]=\"i===0\">{{parseWhat(what)}}</option>\n <option value=\"-1\"></option>\n </select>\n </div>\n <div class=\"editor displayDiv\">\n <label class=\"displayLabels\" title=\"Subject\">{{activity.subjectFieldName}}</label>\n <input class=\"activitySubjectTextBoxStyle displayData\" (change)=\"onSubjectChange($event)\" title=\"{{activity.subject}}\"\n type=\"text\" value=\"{{activity.subject}}\">\n </div>\n <div class=\"editor displayDiv\">\n <div class=\"callNotesSection\">\n <div class=\"textAreaDiv\">\n <textarea value=\"{{activity.description}}\" placeholder=\"Click to add a comment\" class=\"activityCommentsTextBoxStyle\"\n (change)=\"onCallNotesChange($event)\" cols=\"20\" rows=\"2\" title=\"\"></textarea>\n </div>\n <div class=\"notesButtonBorder\">\n <div class=\"commentsButtonDiv\">\n <div class=\"quickCommentsDiv\">\n <input *ngFor=\"let quickComment of activity.quickCommentList ; let i = index;\" class=\"quickNotesButton\" type=\"button\"\n value=\"{{i+1}}\" (click)=\"loadQuickComment(i)\" title=\"{{quickComment}}\">\n </div>\n <div class=\"submitDiv\">\n <input class=\"submitButton\" type=\"button\" value=\"Save\" (click)=\"activitySave()\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n </div>\n</app-amc-collapsible-container>\n",
478
- styles: [".submitDiv{text-align:right;padding-right:4px}.callHeader{background-color:#f4f5fb!important;width:100%!important;margin-top:0!important;border:1px solid #939598!important}.notesButtonBorder{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}.quickNotesButton{background-color:#1e72ba;border:0;color:#fff;height:70%;width:30px;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}.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}.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:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-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:-webkit-box;display:-ms-flexbox;display:flex}.displayLabels{margin-left:5px;width:25%;margin-right:2px;color:#333}.displayData{width:70%}.commentsButtonDiv{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f6f7fb}.quickCommentsDiv{text-align:left;-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-wrap:wrap;flex-wrap:wrap;display:-webkit-box;display:-ms-flexbox;display:flex;margin:2px}.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}.headerLabel{color:#333;margin-left:10px}input[type=button]:disabled{background-color:#d3d3d3;cursor:auto}.activityFields{position:relative;z-index:0}.textAreaDiv{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}"]
479
- },] },
480
- ];
481
- ActivityComponent.ctorParameters = function () { return []; };
482
- ActivityComponent.propDecorators = {
483
- activity: [{ type: Input }],
484
- ActivitySave: [{ type: Output }],
485
- OnNameSelectChange: [{ type: Output }],
486
- OnRelatedToChange: [{ type: Output }],
487
- OnSubjectChange: [{ type: Output }],
488
- OnCallNotesChange: [{ type: Output }],
489
- OnQuickCommentPress: [{ type: Output }]
490
- };
491
- var CallerInformationComponent = /** @class */ (function () {
492
- function CallerInformationComponent() {
493
- this.agentSelectedCallerInformation = new EventEmitter();
494
- this.maximizeCallerInformation = true;
495
- this.showAllCallers = false;
496
- this.title = 'Caller Information';
497
- }
498
- CallerInformationComponent.prototype.ngOnChanges = function () {
499
- this.showAllCallers = false;
500
- };
501
- CallerInformationComponent.prototype.expandCallerInfoResults = function () {
502
- this.showAllCallers = true;
503
- };
504
- CallerInformationComponent.prototype.collapseCallerInfoResults = function () {
505
- this.showAllCallers = false;
506
- };
507
- CallerInformationComponent.prototype.onAgentSelectedCallerInformation = function (i) {
508
- this.agentSelectedCallerInformation.emit(i);
509
- };
510
- return CallerInformationComponent;
511
- }());
512
- CallerInformationComponent.decorators = [
513
- { type: Component, args: [{
514
- selector: 'app-caller-information',
515
- template: "<app-amc-collapsible-container>\n <div role=\"headerExpand\">\n <label class=\"headerLabel\">\n <b>Caller Information</b>\n </label>\n <img title=\"Multiple Matches Available\" *ngIf=\"callers.length > 1\" src=\"../../assets/images/MultiMatchAlert.png\" class=\"multiMatchImg\" />\n </div>\n\n <div role=\"headerCollapse\">\n <label class=\"headerLabel\">\n <b>Caller Information</b>\n </label>\n <img title=\"Multiple Matches Available\" *ngIf=\"callers.length > 1\" src=\"../../assets/images/MultiMatchAlert.png\" class=\"multiMatchImg\" />\n </div>\n\n <div role=\"body\">\n <div *ngIf=\"this.callers.length > 1\">\n <span class=\"overflowWrapper\">\n <img class=\"CRMResultImageMultiMatch\" src=\"{{ callers[0].imgUrl }}\"/>\n <input id=\"{{ this.callers[0].entityId }}\" name=\"{{ this.callers[0].entityName }}\" (click)=\"onAgentSelectedCallerInformation(this.callers[0])\" readonly\n class=\"multiMatchLabel\" title=\"{{ this.callers[0].entityName }}\" type=\"{{ callers[0].entityType }}\" value=\"{{ this.callers[0].entityName }}\"/>\n <span class=\"positioning\">\n <img *ngIf=\"!this.showAllCallers\" class=\"CRMExpandImage\" src=\"../../assets/images/down-arrow.png\" (click)=\"expandCallerInfoResults()\"/>\n <img *ngIf=\"this.showAllCallers\" class=\"CRMExpandImage\" src=\"../../assets/images/up-arrow.png\" (click)=\"collapseCallerInfoResults()\"/>\n </span>\n </span>\n <div *ngIf=\"this.showAllCallers\">\n <div *ngFor=\"let i of this.callers | slice: 1; let index = index\">\n <span\n class=\"overflowWrapper\"\n >\n <img class=\"CRMResultImageMultiMatch\" src=\"{{ i.imgUrl }}\"/>\n <input id=\"{{ i.entityId }}\" name=\"{{ i.entityName }}\" readonly class=\" multiMatchLabel\" (click)=\"onAgentSelectedCallerInformation(i)\"\n title=\"{{ i.entityName }}\" type=\"text\" value=\"{{ i.entityName }}\"/>\n </span>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"callers.length === 1\">\n <div class=\"editorFull displayDiv\" *ngFor=\"let i of this.callers | slice: 0:1; let index = index; let first = first\">\n <span class=\"overflowWrapper\">\n <img class=\"CRMResultImageMultiMatch\" src=\"{{ i.imgUrl }}\"/>\n <input class=\"singleSearchResultSelect singleMatchFirstWrapper\" id=\"{{ i.entityId }}\" [class.firstSingleMatchResult]=\"first\"\n value=\"{{ i.entityName }}\" title=\"{{ i.entityName }}\" (click)=\"onAgentSelectedCallerInformation(i)\" readonly/>\n </span>\n </div>\n <div class=\"editorFull displayDiv\" *ngFor=\"let i of this.callers | slice: 1; let index = index; let first = first\">\n <span class=\"overflowWrapper\">\n <label title=\"{{ i.entityName }}\" class=\"displayLabelsTabbed\">{{ i.entityName }}</label>\n <input class=\"singleSearchResultSelect singleMatchTabbedItemsWrapper singleMatchLabel\" id=\"{{ i.entityId }}\" value=\"{{ i.entityName }}\" title=\"{{ i.entityName }}\" readonly />\n </span>\n </div>\n </div>\n </div>\n</app-amc-collapsible-container>\n",
516
- styles: [".callHeader{background-color:#f4f5fb!important;width:100%!important;margin-top:0!important;border:1px solid #939598!important}.displayDiv{width:100%;display:-webkit-box;display:-ms-flexbox;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}.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;padding-bottom:1px}.callDisplay{margin-bottom:8px;display:grid;background-color:#fff;display:grid}.overflowWrapper{width:100%;overflow-x:hidden;overflow-y:hidden}.singleSearchResultSelect{border:0 solid #939598!important;height:30px!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;margin:0;outline:0}.singleMatchFirstWrapper{cursor:pointer;border:0;outline:0;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(100% - 30px)}.singleMatchTabbedItemsWrapper{width:70%}.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}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.headerLabel{margin-left:10px}.firstSingleMatchResult{font-weight:700;border:0 solid #939598!important;height:30px!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)}.positioning{float:right;margin-right:4%}"]
517
- },] },
518
- ];
519
- CallerInformationComponent.ctorParameters = function () { return []; };
520
- CallerInformationComponent.propDecorators = {
521
- callers: [{ type: Input }],
522
- agentSelectedCallerInformation: [{ type: Output }]
523
- };
524
- var RecentActivitiesComponent = /** @class */ (function () {
525
- function RecentActivitiesComponent() {
526
- this.SubjectChange = new EventEmitter();
527
- this.NameChange = new EventEmitter();
528
- this.RelatedToChange = new EventEmitter();
529
- this.CallNotesChange = new EventEmitter();
530
- this.QuickCommentChange = new EventEmitter();
531
- this.SaveActivity = new EventEmitter();
532
- this.collapseToggle = true;
533
- this.workingRecentInteractionId = null;
534
- this.isActivityMaximized = true;
535
- }
536
- RecentActivitiesComponent.prototype.expandAndCollapse = function (isExpand) {
537
- this.collapseToggle = isExpand;
538
- };
539
- RecentActivitiesComponent.prototype.expandAndCollapseRecentActivity = function (isExpand, interactionId) {
540
- return (isExpand ? this.workingRecentInteractionId = interactionId : this.workingRecentInteractionId = null);
541
- };
542
- RecentActivitiesComponent.prototype.getIndexWho = function (interactionId) {
543
- var _this = this;
544
- var index = this.savedInteractions.get(interactionId).whoList.findIndex((function (item) { return item.entityId === _this.savedInteractions.get(interactionId).who.entityId; }));
545
- return index;
546
- };
547
- RecentActivitiesComponent.prototype.getIndexWhat = function (interactionId) {
548
- var _this = this;
549
- var index = this.savedInteractions.get(interactionId).whatList.findIndex((function (item) { return item.entityId === _this.savedInteractions.get(interactionId).what.entityId; }));
550
- return index;
551
- };
552
- RecentActivitiesComponent.prototype.onSubjectChange = function (interactionId) {
553
- this.SubjectChange.emit({
554
- interactionId: interactionId,
555
- Subject: this.savedInteractions.get(interactionId).subject
556
- });
557
- };
558
- RecentActivitiesComponent.prototype.onNameChange = function (event, interactionId) {
559
- if (event.currentTarget.value === '-1') {
560
- this.NameChange.emit({
561
- interactionId: interactionId,
562
- whoObject: null
563
- });
564
- }
565
- else {
566
- this.NameChange.emit({
567
- interactionId: interactionId,
568
- whoObject: this.savedInteractions.get(interactionId).whoList[event.target.value]
569
- });
570
- }
571
- };
572
- RecentActivitiesComponent.prototype.onRelatedToChange = function (event, interactionId) {
573
- if (event.currentTarget.value === '-1') {
574
- this.RelatedToChange.emit({
575
- interactionId: interactionId,
576
- whatObject: null
577
- });
578
- }
579
- else {
580
- this.RelatedToChange.emit({
581
- interactionId: interactionId,
582
- whatObject: this.savedInteractions.get(interactionId).whatList[event.target.value]
583
- });
584
- }
585
- };
586
- RecentActivitiesComponent.prototype.onCallNotesChange = function (interactionId) {
587
- this.CallNotesChange.emit({
588
- interactionId: interactionId,
589
- Description: this.savedInteractions.get(interactionId).description
590
- });
591
- };
592
- RecentActivitiesComponent.prototype.loadQuickComment = function (commentIndex, interactionId) {
593
- this.QuickCommentChange.emit({
594
- interactionId: interactionId,
595
- commentIndex: commentIndex
596
- });
597
- };
598
- RecentActivitiesComponent.prototype.submitActivity = function (interactionId) {
599
- this.SaveActivity.emit({
600
- interactionId: interactionId,
601
- });
602
- };
603
- RecentActivitiesComponent.prototype.parseWho = function (who) {
604
- return ((who.entityType) ? who.entityType : 'Entity') + ': ' + who.entityName;
605
- };
606
- RecentActivitiesComponent.prototype.parseWhat = function (what) {
607
- return ((what.entityType) ? what.entityType : 'Entity') + ': ' + what.entityName;
608
- };
609
- return RecentActivitiesComponent;
610
- }());
611
- RecentActivitiesComponent.decorators = [
612
- { type: Component, args: [{
613
- selector: 'app-recent-activities',
614
- template: "<app-amc-collapsible-container>\n <div role=\"headerExpand\">\n <label class=\"headerLabel\">\n <b>Recent Activities</b>\n </label>\n </div>\n <div role=\"body\">\n <div class=\"callBodyBorderless\">\n <div *ngFor=\"let interaction of interactionIds; let last = last\">\n <div *ngIf=\"this.workingRecentInteractionId === interaction\">\n <div (click)=\"expandAndCollapseRecentActivity(false, interaction)\" class=\"editor callHeaderRecentActivitySelected\">\n <label class=\"headerLabelClickableLook\">\n <img src=\"/assets/images/Phone_Number_Icon.png\" class=\"RecentCallsImg\"/>\n <b>{{ savedInteractions.get(interaction).subject }}</b>\n </label>\n </div>\n <div class=\"recentBody\">\n <div class=\"activityFields\">\n <form>\n <div class=\"editor displayDiv\">\n <label class=\"displayLabels\" title=\"Subject\">Subject</label>\n <input class=\"activitySubjectTextBoxStyle displayData\" type=\"text\" value=\"{{ savedInteractions.get(interaction) }}\" (change)=\"onSubjectChange(interaction)\"\n (keyup)=\"onSubjectChange(interaction)\" name=\"subject\" [(ngModel)]=\"savedInteractions.get(interaction).subject\" />\n </div>\n <div class=\"editor displayDiv\">\n <label class=\"displayLabels\" title=\"Name\">Name</label>\n <select class=\"dropDownListStyle displayData\" (change)=\"onNameChange($event, interaction)\" name=\"whoItem\">\n <option *ngFor=\"let whoItem of savedInteractions.get(interaction).whoList; let i = index\" value=\"{{i}}\" [selected]=\"i===getIndexWho(interaction)\">{{ parseWho(whoItem) }}</option>\n <option value=\"-1\"></option>\n </select>\n </div>\n <div class=\"editor displayDiv\">\n <label class=\"displayLabels\" title=\"Regarding\">Related To</label>\n <select class=\"dropDownListStyle displayData\" (change)=\"onRelatedToChange($event, interaction)\" name=\"whatItem\">\n <option *ngFor=\"let whatItem of savedInteractions.get(interaction).whatList; let i = index\" value={{i}} [selected]=\"i===getIndexWhat(interaction)\">{{ parseWhat(whatItem) }}</option>\n <option value=\"-1\"></option>\n </select>\n </div>\n <div class=\"editor displayDiv\">\n <div class=\"callNotesSection\">\n <div class=\"callNotesTextArea\">\n <textarea placeholder=\"Click to add a comment\" (change)=\"onCallNotesChange(interaction)\" class=\"activityCommentsTextBoxStyle\" value=\"{{ savedInteractions.get(interaction) }}\"\n (keyup)=\"onCallNotesChange(interaction)\" name=\"description\" [(ngModel)]=\"savedInteractions.get(interaction).description\" rows=\"5\" title=\"\">\n </textarea>\n </div>\n <div class=\"notesButtonBorder\">\n <div class=\"commentsButtonDiv\">\n <div class=\"quickCommentsDiv\">\n <input *ngFor=\"let quickComment of savedInteractions.get(interaction).quickCommentList; let i = index;\" class=\"quickNotesButton\" type=\"button\"\n value=\"{{i+1}}\" (click)=\"loadQuickComment(i, interaction)\" title=\"{{quickComment}}\">\n </div>\n <div class=\"callNotesButtonsSection\">\n <input class=\"submitButton\" type=\"button\" value=\"Save\" (click)=\"submitActivity(interaction)\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n <div *ngIf=\"!(this.workingRecentInteractionId === interaction)\">\n <div [class.callHeaderBottomBorder]='last' (click)=\"expandAndCollapseRecentActivity(true, interaction)\" class=\"editor callHeaderRecentActivityUnselected\">\n <label class=\"headerLabelClickableLook\">\n <img src=\"/assets/images/Phone_Number_Icon.png\" class=\"RecentCallsImg\"/>\n <b>{{ savedInteractions.get(interaction).subject }}</b>\n </label>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div role=\"headerCollapse\">\n <label class=\"headerLabel\">\n <b>Recent Activities</b>\n </label>\n </div>\n</app-amc-collapsible-container>\n",
615
- styles: [".callSection{margin-left:0;font-family:Arial;position:relative;margin-top:5px;background-color:#fff}.notesButtonBorder{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;-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-wrap:wrap;flex-wrap:wrap;display:-webkit-box;display:-ms-flexbox;display:flex;margin:2px}.quickNotesButton{background-color:#1e72ba;border:0;color:#fff;height:70%;width:30px;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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f6f7fb}.callNotesButtonsSection{text-align:right;padding-right:4px}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.recentBody{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:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-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:-webkit-box;display:-ms-flexbox;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}.headerLabelClickableLook{cursor:pointer;display:inline-block;margin-left:10px;max-width:80%;overflow:hidden;text-overflow:ellipsis}input[type=button]:disabled{background-color:#d3d3d3;cursor:auto}"]
616
- },] },
617
- ];
618
- RecentActivitiesComponent.ctorParameters = function () { return []; };
619
- RecentActivitiesComponent.propDecorators = {
620
- savedInteractions: [{ type: Input }],
621
- interactionIds: [{ type: Input }],
622
- SubjectChange: [{ type: Output }],
623
- NameChange: [{ type: Output }],
624
- RelatedToChange: [{ type: Output }],
625
- CallNotesChange: [{ type: Output }],
626
- QuickCommentChange: [{ type: Output }],
627
- SaveActivity: [{ type: Output }]
628
- };
629
- var AmcCollapsibleContainerComponent = /** @class */ (function () {
630
- function AmcCollapsibleContainerComponent() {
631
- this.isActivityMaximized = true;
632
- }
633
- AmcCollapsibleContainerComponent.prototype.ngOnInit = function () {
634
- };
635
- return AmcCollapsibleContainerComponent;
636
- }());
637
- AmcCollapsibleContainerComponent.decorators = [
638
- { type: Component, args: [{
639
- selector: 'app-amc-collapsible-container',
640
- template: "<div *ngIf=\"isActivityMaximized\" class=\"callDisplay\">\n <div class=\"editor callHeader\">\n <img class=\"ViewResizeImage\" src=\"/assets/images/section_collapse.png\" (click)=\"isActivityMaximized = false\" title=\"Collapse\">\n <ng-content select=\"div[role=headerExpand]\"></ng-content>\n </div>\n <div class=\"callBody\">\n <ng-content select=\"div[role=body]\"></ng-content>\n </div>\n</div>\n\n<div *ngIf=\"!isActivityMaximized\" class=\"callDisplay\">\n <div class=\"editor callHeader\">\n <img class=\"ViewResizeImage\" src=\"assets/images/section_expand.png\" (click)=\"isActivityMaximized = true\" title=\"Expand\">\n <ng-content select=\"div[role=headerCollapse]\"></ng-content>\n </div>\n</div>\n",
641
- styles: [".callHeader{background-color:#f4f5fb!important;width:100%!important;margin-top:0!important;border:1px solid #939598!important}.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}.headerLabel{color:#333;margin-left:10px}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.callBody{border:1px solid #939598;border-top:1px solid #939598;position:relative}"]
642
- },] },
643
- ];
644
- AmcCollapsibleContainerComponent.ctorParameters = function () { return []; };
645
- var UILibraryModule = /** @class */ (function () {
646
- function UILibraryModule(injector) {
647
- this.injector = injector;
648
- }
649
- UILibraryModule.prototype.ngDoBootstrap = function (app) {
650
- if (!customElements.get('amc-webcomponents-scenario')) {
651
- var strategyFactory = new ElementZoneStrategyFactory(ScenarioComponent, this.injector);
652
- customElements.define('amc-webcomponents-scenario', createCustomElement(ScenarioComponent, {
653
- injector: this.injector,
654
- strategyFactory: strategyFactory
655
- }));
656
- }
657
- if (!customElements.get('amc-webcomponents-activity')) {
658
- var strategyFactory = new ElementZoneStrategyFactory(ActivityComponent, this.injector);
659
- customElements.define('amc-webcomponents-activity', createCustomElement(ActivityComponent, {
660
- injector: this.injector,
661
- strategyFactory: strategyFactory
662
- }));
663
- }
664
- if (!customElements.get('amc-webcomponents-callerinfo')) {
665
- var strategyFactory = new ElementZoneStrategyFactory(CallerInformationComponent, this.injector);
666
- customElements.define('amc-webcomponents-callerinfo', createCustomElement(CallerInformationComponent, {
667
- injector: this.injector,
668
- strategyFactory: strategyFactory
669
- }));
670
- }
671
- if (!customElements.get('amc-webcomponents-recentactivity')) {
672
- var strategyFactory = new ElementZoneStrategyFactory(RecentActivitiesComponent, this.injector);
673
- customElements.define('amc-webcomponents-recentactivity', createCustomElement(RecentActivitiesComponent, {
674
- injector: this.injector,
675
- strategyFactory: strategyFactory
676
- }));
677
- }
678
- if (!customElements.get('amc-webcomponents-disposition')) {
679
- var strategyFactory = new ElementZoneStrategyFactory(DispositionComponent, this.injector);
680
- customElements.define('amc-webcomponents-disposition', createCustomElement(DispositionComponent, {
681
- injector: this.injector,
682
- strategyFactory: strategyFactory
683
- }));
684
- }
685
- };
686
- return UILibraryModule;
687
- }());
688
- UILibraryModule.decorators = [
689
- { type: NgModule, args: [{
690
- imports: [BrowserModule, CommonModule, FormsModule],
691
- declarations: [
692
- InteractionComponent,
693
- ScenarioComponent,
694
- OperationComponent,
695
- PropertyComponent,
696
- HoldtimerComponent,
697
- DurationComponent,
698
- ChatBoxComponent,
699
- ChatMessageComponent,
700
- DispositionComponent,
701
- ActivityComponent,
702
- CallerInformationComponent,
703
- RecentActivitiesComponent,
704
- AmcCollapsibleContainerComponent
705
- ],
706
- entryComponents: [ScenarioComponent, ActivityComponent, CallerInformationComponent, RecentActivitiesComponent],
707
- bootstrap: [],
708
- exports: [ScenarioComponent, ActivityComponent, CallerInformationComponent, RecentActivitiesComponent]
709
- },] },
710
- ];
711
- UILibraryModule.ctorParameters = function () { return [
712
- { type: Injector }
713
- ]; };
714
-
715
- export { UILibraryModule, Property, ValueType, IChatMessageType, ActivityComponent as ɵj, AmcCollapsibleContainerComponent as ɵm, CallerInformationComponent as ɵk, ChatBoxComponent as ɵg, ChatMessageComponent as ɵh, DispositionComponent as ɵi, DurationComponent as ɵf, HoldtimerComponent as ɵe, InteractionComponent as ɵa, OperationComponent as ɵc, PropertyComponent as ɵd, RecentActivitiesComponent as ɵl, ScenarioComponent as ɵb };
716
- //# sourceMappingURL=amc-technology-ui-library.js.map
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
5
+ export { ActivityComponent as ɵj } from './projects/UILibrary/src/app/components/activity/activity.component';
6
+ export { ChatBoxComponent as ɵg } from './projects/UILibrary/src/app/components/chat-box/chat-box.component';
7
+ export { ChatMessageComponent as ɵh } from './projects/UILibrary/src/app/components/chat-message/chat-message.component';
8
+ export { DispositionComponent as ɵi } from './projects/UILibrary/src/app/components/disposition/disposition.component';
9
+ export { DurationComponent as ɵf } from './projects/UILibrary/src/app/components/duration/duration.component';
10
+ export { HoldtimerComponent as ɵe } from './projects/UILibrary/src/app/components/holdtimer/holdtimer.component';
11
+ export { InteractionComponent as ɵa } from './projects/UILibrary/src/app/components/interaction/interaction.component';
12
+ export { LoginComponent as ɵk } from './projects/UILibrary/src/app/components/login/login.component';
13
+ export { OperationComponent as ɵc } from './projects/UILibrary/src/app/components/operation/operation.component';
14
+ export { PropertyComponent as ɵd } from './projects/UILibrary/src/app/components/property/property.component';
15
+ export { ScenarioComponent as ɵb } from './projects/UILibrary/src/app/components/scenario/scenario.component';
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1jLXRlY2hub2xvZ3ktdWktbGlicmFyeS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhbWMtdGVjaG5vbG9neS91aS1saWJyYXJ5LyIsInNvdXJjZXMiOlsiYW1jLXRlY2hub2xvZ3ktdWktbGlicmFyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxpQkFBaUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxxRUFBcUUsQ0FBQztBQUM1RyxPQUFPLEVBQUMsZ0JBQWdCLElBQUksRUFBRSxFQUFDLE1BQU0scUVBQXFFLENBQUM7QUFDM0csT0FBTyxFQUFDLG9CQUFvQixJQUFJLEVBQUUsRUFBQyxNQUFNLDZFQUE2RSxDQUFDO0FBQ3ZILE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsTUFBTSwyRUFBMkUsQ0FBQztBQUNySCxPQUFPLEVBQUMsaUJBQWlCLElBQUksRUFBRSxFQUFDLE1BQU0scUVBQXFFLENBQUM7QUFDNUcsT0FBTyxFQUFDLGtCQUFrQixJQUFJLEVBQUUsRUFBQyxNQUFNLHVFQUF1RSxDQUFDO0FBQy9HLE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsTUFBTSwyRUFBMkUsQ0FBQztBQUNySCxPQUFPLEVBQUMsY0FBYyxJQUFJLEVBQUUsRUFBQyxNQUFNLCtEQUErRCxDQUFDO0FBQ25HLE9BQU8sRUFBQyxrQkFBa0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx1RUFBdUUsQ0FBQztBQUMvRyxPQUFPLEVBQUMsaUJBQWlCLElBQUksRUFBRSxFQUFDLE1BQU0scUVBQXFFLENBQUM7QUFDNUcsT0FBTyxFQUFDLGlCQUFpQixJQUFJLEVBQUUsRUFBQyxNQUFNLHFFQUFxRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge0FjdGl2aXR5Q29tcG9uZW50IGFzIMm1an0gZnJvbSAnLi9wcm9qZWN0cy9VSUxpYnJhcnkvc3JjL2FwcC9jb21wb25lbnRzL2FjdGl2aXR5L2FjdGl2aXR5LmNvbXBvbmVudCc7XG5leHBvcnQge0NoYXRCb3hDb21wb25lbnQgYXMgybVnfSBmcm9tICcuL3Byb2plY3RzL1VJTGlicmFyeS9zcmMvYXBwL2NvbXBvbmVudHMvY2hhdC1ib3gvY2hhdC1ib3guY29tcG9uZW50JztcbmV4cG9ydCB7Q2hhdE1lc3NhZ2VDb21wb25lbnQgYXMgybVofSBmcm9tICcuL3Byb2plY3RzL1VJTGlicmFyeS9zcmMvYXBwL2NvbXBvbmVudHMvY2hhdC1tZXNzYWdlL2NoYXQtbWVzc2FnZS5jb21wb25lbnQnO1xuZXhwb3J0IHtEaXNwb3NpdGlvbkNvbXBvbmVudCBhcyDJtWl9IGZyb20gJy4vcHJvamVjdHMvVUlMaWJyYXJ5L3NyYy9hcHAvY29tcG9uZW50cy9kaXNwb3NpdGlvbi9kaXNwb3NpdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0IHtEdXJhdGlvbkNvbXBvbmVudCBhcyDJtWZ9IGZyb20gJy4vcHJvamVjdHMvVUlMaWJyYXJ5L3NyYy9hcHAvY29tcG9uZW50cy9kdXJhdGlvbi9kdXJhdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0IHtIb2xkdGltZXJDb21wb25lbnQgYXMgybVlfSBmcm9tICcuL3Byb2plY3RzL1VJTGlicmFyeS9zcmMvYXBwL2NvbXBvbmVudHMvaG9sZHRpbWVyL2hvbGR0aW1lci5jb21wb25lbnQnO1xuZXhwb3J0IHtJbnRlcmFjdGlvbkNvbXBvbmVudCBhcyDJtWF9IGZyb20gJy4vcHJvamVjdHMvVUlMaWJyYXJ5L3NyYy9hcHAvY29tcG9uZW50cy9pbnRlcmFjdGlvbi9pbnRlcmFjdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0IHtMb2dpbkNvbXBvbmVudCBhcyDJtWt9IGZyb20gJy4vcHJvamVjdHMvVUlMaWJyYXJ5L3NyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9sb2dpbi5jb21wb25lbnQnO1xuZXhwb3J0IHtPcGVyYXRpb25Db21wb25lbnQgYXMgybVjfSBmcm9tICcuL3Byb2plY3RzL1VJTGlicmFyeS9zcmMvYXBwL2NvbXBvbmVudHMvb3BlcmF0aW9uL29wZXJhdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0IHtQcm9wZXJ0eUNvbXBvbmVudCBhcyDJtWR9IGZyb20gJy4vcHJvamVjdHMvVUlMaWJyYXJ5L3NyYy9hcHAvY29tcG9uZW50cy9wcm9wZXJ0eS9wcm9wZXJ0eS5jb21wb25lbnQnO1xuZXhwb3J0IHtTY2VuYXJpb0NvbXBvbmVudCBhcyDJtWJ9IGZyb20gJy4vcHJvamVjdHMvVUlMaWJyYXJ5L3NyYy9hcHAvY29tcG9uZW50cy9zY2VuYXJpby9zY2VuYXJpby5jb21wb25lbnQnOyJdfQ==