@amc-technology/ui-library 1.0.100 → 1.0.102

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 (128) hide show
  1. package/README.md +25 -8
  2. package/esm2022/amc-technology-ui-library.mjs +5 -0
  3. package/esm2022/projects/UILibrary/src/app/Helpers.mjs +11 -0
  4. package/esm2022/projects/UILibrary/src/app/components/activity/activity.component.mjs +79 -0
  5. package/esm2022/projects/UILibrary/src/app/components/chat-box/chat-box.component.mjs +137 -0
  6. package/esm2022/projects/UILibrary/src/app/components/chat-message/chat-message.component.mjs +40 -0
  7. package/esm2022/projects/UILibrary/src/app/components/create/create.component.mjs +34 -0
  8. package/esm2022/projects/UILibrary/src/app/components/current-activity/current-activity.component.mjs +170 -0
  9. package/esm2022/projects/UILibrary/src/app/components/disposition/disposition.component.mjs +47 -0
  10. package/esm2022/projects/UILibrary/src/app/components/duration/duration.component.mjs +58 -0
  11. package/esm2022/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.mjs +72 -0
  12. package/esm2022/projects/UILibrary/src/app/components/interaction/interaction.component.mjs +98 -0
  13. package/esm2022/projects/UILibrary/src/app/components/login/login.component.mjs +41 -0
  14. package/esm2022/projects/UILibrary/src/app/components/operation/operation.component.mjs +56 -0
  15. package/esm2022/projects/UILibrary/src/app/components/property/property.component.mjs +106 -0
  16. package/esm2022/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.mjs +144 -0
  17. package/esm2022/projects/UILibrary/src/app/components/scenario/scenario.component.mjs +38 -0
  18. package/esm2022/projects/UILibrary/src/app/components/search-information/search-information.component.mjs +160 -0
  19. package/esm2022/projects/UILibrary/src/app/models/IActivity.mjs +2 -0
  20. package/esm2022/projects/UILibrary/src/app/models/IActivityDetails.mjs +2 -0
  21. package/esm2022/projects/UILibrary/src/app/models/IHoldActivityDetails.mjs +2 -0
  22. package/esm2022/projects/UILibrary/src/app/models/IInteractionActivityDetails.mjs +2 -0
  23. package/esm2022/projects/UILibrary/src/app/models/chat.message.mjs +7 -0
  24. package/esm2022/projects/UILibrary/src/app/models/chat.settings.mjs +2 -0
  25. package/esm2022/projects/UILibrary/src/app/models/disposition.interface.mjs +2 -0
  26. package/esm2022/projects/UILibrary/src/app/models/login.interface.mjs +2 -0
  27. package/esm2022/projects/UILibrary/src/app/models/uilibrary.model.mjs +61 -0
  28. package/esm2022/projects/UILibrary/src/app/uilibrary.module.mjs +106 -0
  29. package/esm2022/public_api.mjs +10 -0
  30. package/fesm2022/amc-technology-ui-library.mjs +1393 -0
  31. package/fesm2022/amc-technology-ui-library.mjs.map +1 -0
  32. package/index.d.ts +5 -0
  33. package/package.json +26 -21
  34. package/projects/UILibrary/src/app/Helpers.d.ts +1 -1
  35. package/projects/UILibrary/src/app/components/activity/activity.component.d.ts +26 -23
  36. package/projects/UILibrary/src/app/components/chat-box/chat-box.component.d.ts +38 -35
  37. package/projects/UILibrary/src/app/components/chat-message/chat-message.component.d.ts +16 -13
  38. package/projects/UILibrary/src/app/components/create/create.component.d.ts +14 -11
  39. package/projects/UILibrary/src/app/components/current-activity/current-activity.component.d.ts +37 -34
  40. package/projects/UILibrary/src/app/components/disposition/disposition.component.d.ts +15 -12
  41. package/projects/UILibrary/src/app/components/duration/duration.component.d.ts +19 -16
  42. package/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.d.ts +24 -21
  43. package/projects/UILibrary/src/app/components/interaction/interaction.component.d.ts +44 -41
  44. package/projects/UILibrary/src/app/components/login/login.component.d.ts +14 -11
  45. package/projects/UILibrary/src/app/components/operation/operation.component.d.ts +25 -22
  46. package/projects/UILibrary/src/app/components/property/property.component.d.ts +44 -41
  47. package/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.d.ts +38 -35
  48. package/projects/UILibrary/src/app/components/scenario/scenario.component.d.ts +16 -13
  49. package/projects/UILibrary/src/app/components/search-information/search-information.component.d.ts +29 -26
  50. package/projects/UILibrary/src/app/models/IActivity.d.ts +36 -36
  51. package/projects/UILibrary/src/app/models/IActivityDetails.d.ts +7 -7
  52. package/projects/UILibrary/src/app/models/IHoldActivityDetails.d.ts +10 -10
  53. package/projects/UILibrary/src/app/models/IInteractionActivityDetails.d.ts +9 -9
  54. package/projects/UILibrary/src/app/models/chat.message.d.ts +15 -15
  55. package/projects/UILibrary/src/app/models/chat.settings.d.ts +6 -6
  56. package/projects/UILibrary/src/app/models/disposition.interface.d.ts +12 -12
  57. package/projects/UILibrary/src/app/models/login.interface.d.ts +13 -13
  58. package/projects/UILibrary/src/app/models/uilibrary.model.d.ts +281 -281
  59. package/projects/UILibrary/src/app/uilibrary.module.d.ts +30 -7
  60. package/public_api.d.ts +9 -1
  61. package/webcomponents/webcomponents.js +3 -3
  62. package/amc-technology-ui-library.d.ts +0 -19
  63. package/amc-technology-ui-library.metadata.json +0 -1
  64. package/bundles/amc-technology-ui-library.umd.js +0 -1653
  65. package/bundles/amc-technology-ui-library.umd.js.map +0 -1
  66. package/bundles/amc-technology-ui-library.umd.min.js +0 -16
  67. package/bundles/amc-technology-ui-library.umd.min.js.map +0 -1
  68. package/esm2015/amc-technology-ui-library.js +0 -20
  69. package/esm2015/projects/UILibrary/src/app/Helpers.js +0 -11
  70. package/esm2015/projects/UILibrary/src/app/components/activity/activity.component.js +0 -83
  71. package/esm2015/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +0 -139
  72. package/esm2015/projects/UILibrary/src/app/components/chat-message/chat-message.component.js +0 -44
  73. package/esm2015/projects/UILibrary/src/app/components/create/create.component.js +0 -35
  74. package/esm2015/projects/UILibrary/src/app/components/current-activity/current-activity.component.js +0 -169
  75. package/esm2015/projects/UILibrary/src/app/components/disposition/disposition.component.js +0 -49
  76. package/esm2015/projects/UILibrary/src/app/components/duration/duration.component.js +0 -58
  77. package/esm2015/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.js +0 -72
  78. package/esm2015/projects/UILibrary/src/app/components/interaction/interaction.component.js +0 -93
  79. package/esm2015/projects/UILibrary/src/app/components/login/login.component.js +0 -43
  80. package/esm2015/projects/UILibrary/src/app/components/operation/operation.component.js +0 -57
  81. package/esm2015/projects/UILibrary/src/app/components/property/property.component.js +0 -99
  82. package/esm2015/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.js +0 -142
  83. package/esm2015/projects/UILibrary/src/app/components/scenario/scenario.component.js +0 -43
  84. package/esm2015/projects/UILibrary/src/app/components/search-information/search-information.component.js +0 -155
  85. package/esm2015/projects/UILibrary/src/app/models/IActivity.js +0 -1
  86. package/esm2015/projects/UILibrary/src/app/models/IActivityDetails.js +0 -1
  87. package/esm2015/projects/UILibrary/src/app/models/IHoldActivityDetails.js +0 -1
  88. package/esm2015/projects/UILibrary/src/app/models/IInteractionActivityDetails.js +0 -1
  89. package/esm2015/projects/UILibrary/src/app/models/chat.message.js +0 -7
  90. package/esm2015/projects/UILibrary/src/app/models/chat.settings.js +0 -1
  91. package/esm2015/projects/UILibrary/src/app/models/disposition.interface.js +0 -1
  92. package/esm2015/projects/UILibrary/src/app/models/login.interface.js +0 -1
  93. package/esm2015/projects/UILibrary/src/app/models/uilibrary.model.js +0 -40
  94. package/esm2015/projects/UILibrary/src/app/uilibrary.module.js +0 -83
  95. package/esm2015/public_api.js +0 -2
  96. package/esm5/amc-technology-ui-library.js +0 -20
  97. package/esm5/projects/UILibrary/src/app/Helpers.js +0 -11
  98. package/esm5/projects/UILibrary/src/app/components/activity/activity.component.js +0 -84
  99. package/esm5/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +0 -140
  100. package/esm5/projects/UILibrary/src/app/components/chat-message/chat-message.component.js +0 -45
  101. package/esm5/projects/UILibrary/src/app/components/create/create.component.js +0 -36
  102. package/esm5/projects/UILibrary/src/app/components/current-activity/current-activity.component.js +0 -174
  103. package/esm5/projects/UILibrary/src/app/components/disposition/disposition.component.js +0 -61
  104. package/esm5/projects/UILibrary/src/app/components/duration/duration.component.js +0 -60
  105. package/esm5/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.js +0 -74
  106. package/esm5/projects/UILibrary/src/app/components/interaction/interaction.component.js +0 -98
  107. package/esm5/projects/UILibrary/src/app/components/login/login.component.js +0 -66
  108. package/esm5/projects/UILibrary/src/app/components/operation/operation.component.js +0 -58
  109. package/esm5/projects/UILibrary/src/app/components/property/property.component.js +0 -101
  110. package/esm5/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.js +0 -144
  111. package/esm5/projects/UILibrary/src/app/components/scenario/scenario.component.js +0 -44
  112. package/esm5/projects/UILibrary/src/app/components/search-information/search-information.component.js +0 -156
  113. package/esm5/projects/UILibrary/src/app/models/IActivity.js +0 -1
  114. package/esm5/projects/UILibrary/src/app/models/IActivityDetails.js +0 -1
  115. package/esm5/projects/UILibrary/src/app/models/IHoldActivityDetails.js +0 -1
  116. package/esm5/projects/UILibrary/src/app/models/IInteractionActivityDetails.js +0 -1
  117. package/esm5/projects/UILibrary/src/app/models/chat.message.js +0 -7
  118. package/esm5/projects/UILibrary/src/app/models/chat.settings.js +0 -1
  119. package/esm5/projects/UILibrary/src/app/models/disposition.interface.js +0 -1
  120. package/esm5/projects/UILibrary/src/app/models/login.interface.js +0 -1
  121. package/esm5/projects/UILibrary/src/app/models/uilibrary.model.js +0 -43
  122. package/esm5/projects/UILibrary/src/app/uilibrary.module.js +0 -84
  123. package/esm5/public_api.js +0 -2
  124. package/fesm2015/amc-technology-ui-library.js +0 -1360
  125. package/fesm2015/amc-technology-ui-library.js.map +0 -1
  126. package/fesm5/amc-technology-ui-library.js +0 -1423
  127. package/fesm5/amc-technology-ui-library.js.map +0 -1
  128. package/src/typings.d.ts +0 -5
@@ -1,1653 +0,0 @@
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'), 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
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- function __createBinding(o, m, k, k2) {
113
- if (k2 === undefined) k2 = k;
114
- o[k2] = m[k];
115
- }
116
-
117
- function __exportStar(m, exports) {
118
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
- }
120
-
121
- function __values(o) {
122
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
- if (m) return m.call(o);
124
- if (o && typeof o.length === "number") return {
125
- next: function () {
126
- if (o && i >= o.length) o = void 0;
127
- return { value: o && o[i++], done: !o };
128
- }
129
- };
130
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
- }
132
-
133
- function __read(o, n) {
134
- var m = typeof Symbol === "function" && o[Symbol.iterator];
135
- if (!m) return o;
136
- var i = m.call(o), r, ar = [], e;
137
- try {
138
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
- }
140
- catch (error) { e = { error: error }; }
141
- finally {
142
- try {
143
- if (r && !r.done && (m = i["return"])) m.call(i);
144
- }
145
- finally { if (e) throw e.error; }
146
- }
147
- return ar;
148
- }
149
-
150
- function __spread() {
151
- for (var ar = [], i = 0; i < arguments.length; i++)
152
- ar = ar.concat(__read(arguments[i]));
153
- return ar;
154
- }
155
-
156
- function __spreadArrays() {
157
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
- r[k] = a[j];
161
- return r;
162
- };
163
-
164
- function __await(v) {
165
- return this instanceof __await ? (this.v = v, this) : new __await(v);
166
- }
167
-
168
- function __asyncGenerator(thisArg, _arguments, generator) {
169
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
- function fulfill(value) { resume("next", value); }
176
- function reject(value) { resume("throw", value); }
177
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
- }
179
-
180
- function __asyncDelegator(o) {
181
- var i, p;
182
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
184
- }
185
-
186
- function __asyncValues(o) {
187
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
- var m = o[Symbol.asyncIterator], i;
189
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
190
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
191
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
- }
193
-
194
- function __makeTemplateObject(cooked, raw) {
195
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
- return cooked;
197
- };
198
-
199
- function __importStar(mod) {
200
- if (mod && mod.__esModule) return mod;
201
- var result = {};
202
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
- result.default = mod;
204
- return result;
205
- }
206
-
207
- function __importDefault(mod) {
208
- return (mod && mod.__esModule) ? mod : { default: mod };
209
- }
210
-
211
- function __classPrivateFieldGet(receiver, privateMap) {
212
- if (!privateMap.has(receiver)) {
213
- throw new TypeError("attempted to get private field on non-instance");
214
- }
215
- return privateMap.get(receiver);
216
- }
217
-
218
- function __classPrivateFieldSet(receiver, privateMap, value) {
219
- if (!privateMap.has(receiver)) {
220
- throw new TypeError("attempted to set private field on non-instance");
221
- }
222
- privateMap.set(receiver, value);
223
- return value;
224
- }
225
-
226
- /**
227
- * @ignore
228
- */
229
- var InteractionComponent = /** @class */ (function () {
230
- /**
231
- * @ignore
232
- */
233
- function InteractionComponent() {
234
- this.minimizedChanged = new core.EventEmitter();
235
- this.isAgentTyping = new core.EventEmitter();
236
- this.newMessage = new core.EventEmitter();
237
- this._minimized = false;
238
- }
239
- Object.defineProperty(InteractionComponent.prototype, "_minimized", {
240
- get: function () {
241
- return this.minimized;
242
- },
243
- set: function (value) {
244
- this.minimized = value;
245
- this.minimizedChanged.emit(value);
246
- },
247
- enumerable: true,
248
- configurable: true
249
- });
250
- /**
251
- * @ignore
252
- */
253
- InteractionComponent.prototype.ngOnInit = function () {
254
- };
255
- /**
256
- * @ignore
257
- */
258
- InteractionComponent.prototype.minimize = function () {
259
- this._minimized = true;
260
- };
261
- /**
262
- * @ignore
263
- */
264
- InteractionComponent.prototype.maximize = function () {
265
- this._minimized = false;
266
- };
267
- /**
268
- * @ignore
269
- */
270
- InteractionComponent.prototype.isConferenceCall = function () {
271
- if (this.interaction.parties && this.interaction.parties.length > 1) {
272
- return true;
273
- }
274
- return false;
275
- };
276
- InteractionComponent.prototype.collapseKeypress = function (event) {
277
- if (event.code === 'Enter') {
278
- this.minimize();
279
- }
280
- };
281
- InteractionComponent.prototype.expandKeypress = function (event) {
282
- if (event.code === 'Enter') {
283
- this.maximize();
284
- }
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
- };
296
- __decorate([
297
- core.Input()
298
- ], InteractionComponent.prototype, "interaction", void 0);
299
- __decorate([
300
- core.Input()
301
- ], InteractionComponent.prototype, "newMsgs", void 0);
302
- __decorate([
303
- core.Output()
304
- ], InteractionComponent.prototype, "minimizedChanged", void 0);
305
- __decorate([
306
- core.Output()
307
- ], InteractionComponent.prototype, "isAgentTyping", void 0);
308
- __decorate([
309
- core.Output()
310
- ], InteractionComponent.prototype, "newMessage", void 0);
311
- InteractionComponent = __decorate([
312
- core.Component({
313
- selector: 'amc-interaction',
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}"]
316
- })
317
- ], InteractionComponent);
318
- return InteractionComponent;
319
- }());
320
-
321
- var ScenarioComponent = /** @class */ (function () {
322
- function ScenarioComponent() {
323
- this.minimizedChanged = new core.EventEmitter();
324
- this.isAgentTyping = new core.EventEmitter();
325
- this.newMessage = new core.EventEmitter();
326
- this.afterViewChecked = new core.EventEmitter();
327
- }
328
- ScenarioComponent.prototype.ngAfterViewChecked = function () {
329
- this.afterViewChecked.emit();
330
- };
331
- ScenarioComponent.prototype.onMinimizedChanged = function () {
332
- this.minimizedChanged.emit();
333
- };
334
- __decorate([
335
- core.Input()
336
- ], ScenarioComponent.prototype, "scenario", void 0);
337
- __decorate([
338
- core.Input()
339
- ], ScenarioComponent.prototype, "newMsgs", void 0);
340
- __decorate([
341
- core.Output()
342
- ], ScenarioComponent.prototype, "minimizedChanged", void 0);
343
- __decorate([
344
- core.Output()
345
- ], ScenarioComponent.prototype, "isAgentTyping", void 0);
346
- __decorate([
347
- core.Output()
348
- ], ScenarioComponent.prototype, "newMessage", void 0);
349
- __decorate([
350
- core.Output()
351
- ], ScenarioComponent.prototype, "afterViewChecked", void 0);
352
- ScenarioComponent = __decorate([
353
- core.Component({
354
- selector: 'amc-scenario',
355
- template: "<ng-container *ngIf=\"scenario && scenario.interactions\">\r\n <amc-interaction *ngFor=\"let interaction of scenario.interactions\" [interaction]=\"interaction\" [newMsgs]=\"newMsgs\"\r\n (minimizedChanged)=\"onMinimizedChanged()\" (isAgentTyping)=\"isAgentTyping.emit($event)\"\r\n (newMessage)=\"newMessage.emit($event)\">\r\n </amc-interaction>\r\n</ng-container>\r\n",
356
- 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: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}"]
357
- })
358
- ], ScenarioComponent);
359
- return ScenarioComponent;
360
- }());
361
-
362
- /**
363
- * @ignore
364
- */
365
- var OperationComponent = /** @class */ (function () {
366
- /**
367
- * @ignore
368
- */
369
- function OperationComponent() {
370
- this.labelledByText = '';
371
- this.describedByText = '';
372
- }
373
- /**
374
- * @ignore
375
- */
376
- OperationComponent.prototype.ngOnInit = function () {
377
- if (this.statusText && this.callType) {
378
- this.describedByText = this.statusText + " " + this.callType;
379
- }
380
- else if (this.statusText) {
381
- this.describedByText = this.statusText;
382
- }
383
- else if (this.callType) {
384
- this.describedByText = this.callType;
385
- }
386
- if (this.callId) {
387
- this.labelledByText = this.callId;
388
- }
389
- };
390
- OperationComponent.prototype.operationKeypress = function (event, operation) {
391
- if (event.code === 'Enter') {
392
- operation.handler(operation.operationName, operation.operationMetadata);
393
- }
394
- };
395
- __decorate([
396
- core.Input()
397
- ], OperationComponent.prototype, "statusText", void 0);
398
- __decorate([
399
- core.Input()
400
- ], OperationComponent.prototype, "callId", void 0);
401
- __decorate([
402
- core.Input()
403
- ], OperationComponent.prototype, "callType", void 0);
404
- __decorate([
405
- core.Input()
406
- ], OperationComponent.prototype, "operations", void 0);
407
- OperationComponent = __decorate([
408
- core.Component({
409
- selector: 'amc-operation',
410
- template: "<div class=\"callOptions\">\r\n <img\r\n class=\"AnswerCallImages\"\r\n tabindex=\"0\"\r\n role=\"button\"\r\n attr.aria-label=\"{{ operation.title }}\"\r\n *ngFor=\"let operation of operations\"\r\n [title]=\"operation.title\"\r\n [src]=\"operation.icon\"\r\n [attr.accesskey]=\"operation.accesskey || null\"\r\n [attr.aria-labelledby]=\"labelledByText || null\"\r\n [attr.aria-describedby]=\"describedByText || null\"\r\n (click)=\"operation.handler(operation.operationName, operation.operationMetadata)\"\r\n (keypress)=\"operationKeypress($event, operation)\"/>\r\n</div>\r\n",
411
- styles: [".AnswerCallImages:focus{outline:#3296da solid 2px;outline-offset:1px}", "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}"]
412
- })
413
- ], OperationComponent);
414
- return OperationComponent;
415
- }());
416
-
417
-
418
- (function (IChatMessageType) {
419
- IChatMessageType["AGENT"] = "AGENT";
420
- IChatMessageType["OTHER_PERSON"] = "OTHER_PERSON";
421
- IChatMessageType["INFORMATION"] = "INFORMATION";
422
- })(exports.IChatMessageType || (exports.IChatMessageType = {}));
423
-
424
- /**
425
- * A helper method to make instances of [IProperty]
426
- */
427
- var Property = /** @class */ (function () {
428
- /**
429
- *
430
- * @param key
431
- * @param value : if value type is COUNTER then value should be start time in MilliSeconds.
432
- * @param visible
433
- * @param valueType
434
- * @param customOperation
435
- */
436
- function Property(key, value, visible, valueType, customOperation) {
437
- var _this = this;
438
- /**
439
- * Operation responsible for generating displayKey and dispkayValur from key and value.
440
- */
441
- this.displayOperation = function () {
442
- _this.displayKey = _this.key;
443
- _this.displayValue = _this.value;
444
- };
445
- this.key = key;
446
- this.value = value;
447
- visible != null ? (this.visible = visible) : (this.visible = true);
448
- valueType != null
449
- ? (this.displayValueType = valueType)
450
- : (this.displayValueType = exports.ValueType.STRING);
451
- this.customOperations = customOperation;
452
- this.displayOperation();
453
- }
454
- return Property;
455
- }());
456
- /**
457
- * enum for Value types of PROPERTY.
458
- */
459
-
460
- (function (ValueType) {
461
- ValueType[ValueType["STRING"] = 0] = "STRING";
462
- ValueType[ValueType["COUNTER"] = 1] = "COUNTER";
463
- })(exports.ValueType || (exports.ValueType = {}));
464
-
465
- function secondsToHms(seconds_in) {
466
- seconds_in = Number(seconds_in);
467
- var h = Math.floor(seconds_in / 3600);
468
- var m = Math.floor(seconds_in % 3600 / 60);
469
- var s = Math.floor(seconds_in % 3600 % 60);
470
- var hDisplay = h > 0 ? h.toString() + ':' : '';
471
- var mDisplay = m > 0 ? ('0' + m.toString()).slice(-2) + ':' : '00:';
472
- var sDisplay = s > 0 ? ('0' + s.toString()).slice(-2) : '00';
473
- return hDisplay + mDisplay + sDisplay;
474
- }
475
-
476
- /**
477
- * @ignore
478
- */
479
- var PropertyComponent = /** @class */ (function () {
480
- /**
481
- * @ignore
482
- */
483
- function PropertyComponent() {
484
- this.labelledByText = '';
485
- this.title = '';
486
- this._timerId = null;
487
- this.processedDisplayValue = '';
488
- }
489
- /**
490
- * @ignore
491
- */
492
- PropertyComponent.prototype.ngOnInit = function () {
493
- if (this.statusText && this.callType) {
494
- this.labelledByText = this.statusText + " " + this.callType;
495
- }
496
- else if (this.statusText) {
497
- this.labelledByText = this.statusText;
498
- }
499
- else if (this.callType) {
500
- this.labelledByText = this.callType;
501
- }
502
- if (this.callType && this.callId) {
503
- this.title = this.callType + " " + this.callId;
504
- }
505
- else if (this.callType) {
506
- this.title = this.callType;
507
- }
508
- else if (this.callId) {
509
- this.title = this.callId;
510
- }
511
- this.initValues();
512
- };
513
- /**
514
- * @ignore
515
- */
516
- PropertyComponent.prototype.initValues = function () {
517
- if (this.property.displayValueType === exports.ValueType.COUNTER) {
518
- this.startCallCounter();
519
- }
520
- else {
521
- this.processedDisplayValue = this.property.displayValue;
522
- }
523
- };
524
- /**
525
- * @ignore
526
- */
527
- PropertyComponent.prototype.startCallCounter = function () {
528
- var _this = this;
529
- if (this._timerId == null) {
530
- this._timerId = window.setInterval(function () {
531
- var callStartTime = _this.property.displayValue;
532
- var currentTime = new Date().getTime() / 1000;
533
- var secondsPassed = Math.floor((currentTime) - (callStartTime / 1000));
534
- _this.processedDisplayValue = secondsToHms(secondsPassed);
535
- }, 1000);
536
- }
537
- };
538
- /**
539
- * @ignore
540
- */
541
- PropertyComponent.prototype.ngOnDestroy = function () {
542
- if (this.property.displayValueType === exports.ValueType.COUNTER) {
543
- // clear the timer.
544
- if (this._timerId != null) {
545
- clearInterval(this._timerId);
546
- this._timerId = null;
547
- }
548
- }
549
- };
550
- __decorate([
551
- core.Input()
552
- ], PropertyComponent.prototype, "statusText", void 0);
553
- __decorate([
554
- core.Input()
555
- ], PropertyComponent.prototype, "callId", void 0);
556
- __decorate([
557
- core.Input()
558
- ], PropertyComponent.prototype, "callType", void 0);
559
- __decorate([
560
- core.Input()
561
- ], PropertyComponent.prototype, "property", void 0);
562
- PropertyComponent = __decorate([
563
- core.Component({
564
- selector: 'amc-property',
565
- template: "<input\r\n readonly\r\n *ngIf=\"!property.customOperations\"\r\n class=\"displayData\"\r\n tabindex=\"0\"\r\n type=\"text\"\r\n [name]=\"processedDisplayValue\"\r\n [title]=\"title || null\"\r\n [attr.aria-labelledby]=\"labelledByText || null\"\r\n [value]=\"processedDisplayValue\"/>\r\n\r\n <input\r\n readonly\r\n *ngIf=\"property.customOperations\"\r\n class=\"cursor displayData\"\r\n type=\"text\"\r\n tabindex=\"0\"\r\n [name]=\"processedDisplayValue\"\r\n [title]=\"title || null\"\r\n [value]=\"processedDisplayValue\"\r\n [attr.aria-labelledby]=\"labelledByText || null\"\r\n (click)=\"property.customOperations.handler(property.customOperations.eventName, property.customOperations.eventMetadata)\" />\r\n",
566
- 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: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}"]
567
- })
568
- ], PropertyComponent);
569
- return PropertyComponent;
570
- }());
571
-
572
- var HoldtimerComponent = /** @class */ (function () {
573
- function HoldtimerComponent() {
574
- this.labelledByText = '';
575
- this.displayTime = '00:00/00:00';
576
- }
577
- HoldtimerComponent.prototype.ngOnInit = function () {
578
- if (this.statusText && this.callId) {
579
- this.labelledByText = this.statusText + " " + this.callId;
580
- }
581
- else if (this.statusText) {
582
- this.labelledByText = this.statusText;
583
- }
584
- else if (this.callId) {
585
- this.labelledByText = this.callId;
586
- }
587
- this.startCallCounter();
588
- };
589
- /**
590
- * @ignore
591
- */
592
- HoldtimerComponent.prototype.startCallCounter = function () {
593
- var _this = this;
594
- var pastTimeInSeconds = this.CaculatePastHoldDuration();
595
- if (this._timerId == null) {
596
- this._timerId = window.setInterval(function () {
597
- var currentTime = new Date().getTime() / 1000;
598
- var secondsPassedCurrentCall = Math.floor((currentTime) - (_this.holdCounterData.currentHoldStartTime / 1000));
599
- _this.displayTime = secondsToHms(secondsPassedCurrentCall) +
600
- '/' + secondsToHms(pastTimeInSeconds + secondsPassedCurrentCall);
601
- }, 1000);
602
- }
603
- };
604
- HoldtimerComponent.prototype.CaculatePastHoldDuration = function () {
605
- var pastTimeInSeconds = 0;
606
- if (this.holdCounterData.pastCallDurations) {
607
- this.holdCounterData.pastCallDurations.forEach(function (holdTimerIterator) {
608
- pastTimeInSeconds += (holdTimerIterator.endTime - holdTimerIterator.startTime) / 1000;
609
- });
610
- }
611
- return pastTimeInSeconds;
612
- };
613
- /**
614
- * @ignore
615
- */
616
- HoldtimerComponent.prototype.ngOnDestroy = function () {
617
- // clear the timer.
618
- if (this._timerId != null) {
619
- clearInterval(this._timerId);
620
- this._timerId = null;
621
- }
622
- };
623
- __decorate([
624
- core.Input()
625
- ], HoldtimerComponent.prototype, "holdCounterData", void 0);
626
- __decorate([
627
- core.Input()
628
- ], HoldtimerComponent.prototype, "statusText", void 0);
629
- __decorate([
630
- core.Input()
631
- ], HoldtimerComponent.prototype, "callId", void 0);
632
- HoldtimerComponent = __decorate([
633
- core.Component({
634
- selector: 'amc-holdtimer',
635
- template: "<div class=\"holdCallDurationDiv\">\r\n <input\r\n readonly\r\n class=\"holdCallDurationTimer\"\r\n name=\"HoldCallDuration/TotalHoldCallDuration\"\r\n type=\"text\"\r\n tabindex=\"-1\"\r\n title=\"Hold Duration\"\r\n [attr.aria-labelledby]=\"labelledByText || null\"\r\n [value]=\"displayTime\">\r\n</div>\r\n",
636
- styles: [".holdCallDurationTimer: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}"]
637
- })
638
- ], HoldtimerComponent);
639
- return HoldtimerComponent;
640
- }());
641
-
642
- var DurationComponent = /** @class */ (function () {
643
- function DurationComponent() {
644
- this.labelledByText = '';
645
- this.displayTime = '00:00/00:00';
646
- }
647
- DurationComponent.prototype.ngOnInit = function () {
648
- if (this.statusText && this.callId) {
649
- this.labelledByText = this.statusText + " " + this.callId;
650
- }
651
- else if (this.statusText) {
652
- this.labelledByText = this.statusText;
653
- }
654
- else if (this.callId) {
655
- this.labelledByText = this.callId;
656
- }
657
- this.startCallCounter();
658
- };
659
- /**
660
- * @ignore
661
- */
662
- DurationComponent.prototype.startCallCounter = function () {
663
- var _this = this;
664
- if (this._timerId == null) {
665
- this._timerId = window.setInterval(function () {
666
- var callStartTime = _this.startTime;
667
- var currentTime = new Date().getTime() / 1000;
668
- var secondsPassed = Math.floor((currentTime) - (callStartTime / 1000));
669
- _this.displayTime = Math.floor(secondsPassed / 60) + ':' + ('0' + (secondsPassed % 60)).slice(-2);
670
- }, 1000);
671
- }
672
- };
673
- DurationComponent.prototype.ngOnDestroy = function () {
674
- // clear the timer.
675
- if (this._timerId != null) {
676
- clearInterval(this._timerId);
677
- this._timerId = null;
678
- }
679
- };
680
- __decorate([
681
- core.Input()
682
- ], DurationComponent.prototype, "statusText", void 0);
683
- __decorate([
684
- core.Input()
685
- ], DurationComponent.prototype, "callId", void 0);
686
- __decorate([
687
- core.Input()
688
- ], DurationComponent.prototype, "startTime", void 0);
689
- DurationComponent = __decorate([
690
- core.Component({
691
- selector: 'amc-duration',
692
- template: "<div class=\"holdCallDurationDiv\">\r\n <input\r\n readonly\r\n class=\"block durationInput\"\r\n name=\"CallDuration\"\r\n type=\"text\"\r\n tabindex=\"-1\"\r\n title=\"Call Duration\"\r\n [value]=\"displayTime\"\r\n [attr.aria-labelledby]=\"labelledByText || null\">\r\n</div>\r\n",
693
- styles: [".durationInput: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}"]
694
- })
695
- ], DurationComponent);
696
- return DurationComponent;
697
- }());
698
-
699
- var ChatBoxComponent = /** @class */ (function () {
700
- function ChatBoxComponent(renderer) {
701
- this.renderer = renderer;
702
- this.isTyping = false;
703
- this.lastCount = -1;
704
- this._isAgentTyping = false;
705
- this.isAgentTyping = new core.EventEmitter();
706
- this.newMessage = new core.EventEmitter();
707
- this.newMessageText = '';
708
- this.usernameToColor = {};
709
- this.colors = [
710
- '#c2c4c4',
711
- '#ffab91',
712
- '#f48fb1',
713
- '#29b6f6',
714
- '#e1bee7',
715
- '#9ccc65',
716
- '#ffc107',
717
- '#26c6da',
718
- '#cddc39',
719
- ];
720
- this.colorsIndex = 0;
721
- this.agentColor = '#2db0e0';
722
- }
723
- ChatBoxComponent.prototype.ngOnInit = function () {
724
- this.renderer.selectRootElement('#autofocus').focus();
725
- };
726
- ChatBoxComponent.prototype.ngAfterViewInit = function () {
727
- this.renderer.selectRootElement('#autofocus').focus();
728
- };
729
- ChatBoxComponent.prototype.updatedMessage = function () {
730
- try {
731
- if (typeof this.newMsgs !== 'undefined' && this.newMsgs.length > 0) {
732
- return this.newMsgs;
733
- }
734
- else {
735
- return this.messages;
736
- }
737
- }
738
- catch (e) { }
739
- finally {
740
- this.scrollToBottom();
741
- }
742
- };
743
- ChatBoxComponent.prototype.ngAfterViewChecked = function () {
744
- if (this.lastCount !== this.messages.length) {
745
- this.lastCount = this.messages.length;
746
- this.scrollToBottom();
747
- }
748
- };
749
- ChatBoxComponent.prototype.getColor = function (message) {
750
- if (message.type && message.type === exports.IChatMessageType.AGENT) {
751
- return this.agentColor;
752
- }
753
- else if (message.username) {
754
- if (!this.usernameToColor[message.username]) {
755
- this.usernameToColor[message.username] = this.colors[this.colorsIndex];
756
- this.colorsIndex = (this.colorsIndex + 1) % this.colors.length;
757
- }
758
- return this.usernameToColor[message.username];
759
- }
760
- else {
761
- return this.colors[0];
762
- }
763
- };
764
- ChatBoxComponent.prototype.shouldAlignRight = function (message) {
765
- return message.type && message.type === exports.IChatMessageType.AGENT;
766
- };
767
- ChatBoxComponent.prototype.sendNewMessage = function (event) {
768
- event.preventDefault();
769
- if (this.newMessageText) {
770
- this.newMessage.emit(this.newMessageText);
771
- this.newMessageText = '';
772
- }
773
- this.renderer.selectRootElement('#autofocus').focus();
774
- };
775
- ChatBoxComponent.prototype.setOnFocus = function (event) {
776
- this.renderer.selectRootElement('#autofocus').focus();
777
- };
778
- ChatBoxComponent.prototype.onNewMessageFocus = function (event) {
779
- var isTyping = event && this.newMessageText.length > 0;
780
- if (isTyping !== this._isAgentTyping) {
781
- this._isAgentTyping = isTyping;
782
- this.isAgentTyping.emit(isTyping);
783
- }
784
- };
785
- ChatBoxComponent.prototype.onKeyup = function () {
786
- var isTyping = this.newMessageText.length > 0;
787
- if (isTyping !== this._isAgentTyping) {
788
- this._isAgentTyping = isTyping;
789
- this.isAgentTyping.emit(isTyping);
790
- }
791
- };
792
- ChatBoxComponent.prototype.scrollToBottom = function () {
793
- try {
794
- this.messagesContainer.nativeElement.scrollTop = this.messagesContainer.nativeElement.scrollHeight;
795
- }
796
- catch (e) { }
797
- };
798
- ChatBoxComponent.ctorParameters = function () { return [
799
- { type: core.Renderer2 }
800
- ]; };
801
- __decorate([
802
- core.Input()
803
- ], ChatBoxComponent.prototype, "settings", void 0);
804
- __decorate([
805
- core.Input()
806
- ], ChatBoxComponent.prototype, "isTyping", void 0);
807
- __decorate([
808
- core.Input()
809
- ], ChatBoxComponent.prototype, "messages", void 0);
810
- __decorate([
811
- core.Input()
812
- ], ChatBoxComponent.prototype, "newMsgs", void 0);
813
- __decorate([
814
- core.Output()
815
- ], ChatBoxComponent.prototype, "isAgentTyping", void 0);
816
- __decorate([
817
- core.Output()
818
- ], ChatBoxComponent.prototype, "newMessage", void 0);
819
- __decorate([
820
- core.ViewChild('MessagesContainer', { static: true })
821
- ], ChatBoxComponent.prototype, "messagesContainer", void 0);
822
- __decorate([
823
- core.ViewChild('autofocus', { static: false })
824
- ], ChatBoxComponent.prototype, "autofocus", void 0);
825
- ChatBoxComponent = __decorate([
826
- core.Component({
827
- selector: 'app-chat-box',
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}}"]
830
- })
831
- ], ChatBoxComponent);
832
- return ChatBoxComponent;
833
- }());
834
-
835
- var ChatMessageComponent = /** @class */ (function () {
836
- function ChatMessageComponent() {
837
- this.alignRight = false;
838
- this.focusOn = new core.EventEmitter();
839
- }
840
- ChatMessageComponent.prototype.ngOnInit = function () {
841
- this.focusOn.emit(true);
842
- };
843
- __decorate([
844
- core.Input()
845
- ], ChatMessageComponent.prototype, "message", void 0);
846
- __decorate([
847
- core.Input()
848
- ], ChatMessageComponent.prototype, "alignRight", void 0);
849
- __decorate([
850
- core.Input()
851
- ], ChatMessageComponent.prototype, "username", void 0);
852
- __decorate([
853
- core.Input()
854
- ], ChatMessageComponent.prototype, "color", void 0);
855
- __decorate([
856
- core.Input()
857
- ], ChatMessageComponent.prototype, "timestamp", void 0);
858
- __decorate([
859
- core.Input()
860
- ], ChatMessageComponent.prototype, "image", void 0);
861
- __decorate([
862
- core.Input()
863
- ], ChatMessageComponent.prototype, "fallbackImage", void 0);
864
- __decorate([
865
- core.Output()
866
- ], ChatMessageComponent.prototype, "focusOn", void 0);
867
- ChatMessageComponent = __decorate([
868
- core.Component({
869
- selector: 'app-chat-message',
870
- template: "<div [class]=\"alignRight? 'message right-message' : 'message left-message'\">\r\n <div class=\"message-header\">\r\n <img *ngIf=\"image\" class=\"image\" [src]=\"image\" (error)=\"image = fallbackImage\" [style.border-color]=\"color\" />\r\n <span *ngIf=\"username\" class=\"username\">{{username}}</span>\r\n </div>\r\n\r\n <div class=\"message-body-container\">\r\n <div>\r\n <div class=\"message-body\" [style.background-color]=\"color\" [style.border-color]=\"color\">\r\n <span [innerHTML]=\"message\"></span>\r\n </div>\r\n </div>\r\n </div>\r\n <span *ngIf=\"timestamp\" class=\"timestamp\">{{timestamp}}</span>\r\n</div>\r\n",
871
- styles: [":host{display:block;margin-top:2px;margin-bottom:2px}.right-message{text-align:end}.timestamp{font-size:10px;margin-right:30px;margin-left:30px}.message-header{display:flex;-webkit-text-emphasis:none;text-emphasis:none;font-style:italic;font-size:.7em;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{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:flex}.right-message>.message-body-container{flex-direction:row-reverse}.message-body{display:inline-block;position:relative;border-radius:1em;padding:6px;font-style:normal;font-size:.8em;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;-webkit-hyphens:auto;hyphens:auto}.left-message .message-body:after{content:\"\";position:absolute;border-left:10px solid #000;border-color:inherit;border-right:10px solid transparent;border-bottom:10px solid transparent;left:1px;bottom:-2px}.right-message .message-body:after{content:\"\";position:absolute;border-left:10px solid transparent;border-top:10px solid #000;border-top-color:inherit;border-bottom:0 solid transparent;right:1px;bottom:-2px}"]
872
- })
873
- ], ChatMessageComponent);
874
- return ChatMessageComponent;
875
- }());
876
-
877
- var DispositionComponent = /** @class */ (function () {
878
- function DispositionComponent() {
879
- this.dispositionEmitter = new core.EventEmitter();
880
- this.selectedDispositionValue = '';
881
- this.dispositionName = '';
882
- }
883
- DispositionComponent.prototype.ngOnInit = function () {
884
- var e_1, _a;
885
- try {
886
- for (var _b = __values(this.disposition.dispositionMetadata), _c = _b.next(); !_c.done; _c = _b.next()) {
887
- var metadata = _c.value;
888
- if (metadata.key === 'callId') {
889
- this.dispositionName = "disposition_" + metadata.value;
890
- break;
891
- }
892
- }
893
- }
894
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
895
- finally {
896
- try {
897
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
898
- }
899
- finally { if (e_1) throw e_1.error; }
900
- }
901
- if (this.disposition.checkedDisposition) {
902
- this.selectedDispositionValue = this.disposition.checkedDisposition;
903
- }
904
- };
905
- DispositionComponent.prototype.submitDisposition = function () {
906
- var selectedDisposition = {
907
- dispositionId: this.selectedDispositionValue,
908
- dispositionName: this.disposition.disposition.get(this.selectedDispositionValue),
909
- dispositionMetadata: this.disposition.dispositionMetadata
910
- };
911
- this.dispositionEmitter.emit(selectedDisposition);
912
- };
913
- DispositionComponent.prototype.selectAndSubmitDisposition = function (event, dispositionKey) {
914
- if (event.code === 'Enter') {
915
- this.selectedDispositionValue = dispositionKey;
916
- this.submitDisposition();
917
- }
918
- };
919
- __decorate([
920
- core.Input()
921
- ], DispositionComponent.prototype, "disposition", void 0);
922
- __decorate([
923
- core.Output()
924
- ], DispositionComponent.prototype, "dispositionEmitter", void 0);
925
- DispositionComponent = __decorate([
926
- core.Component({
927
- selector: 'amc-disposition',
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",
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}"]
930
- })
931
- ], DispositionComponent);
932
- return DispositionComponent;
933
- }());
934
-
935
- var ActivityComponent = /** @class */ (function () {
936
- function ActivityComponent() {
937
- this.ActivitySave = new core.EventEmitter();
938
- this.OnNameSelectChange = new core.EventEmitter();
939
- this.OnRelatedToChange = new core.EventEmitter();
940
- this.OnSubjectChange = new core.EventEmitter();
941
- this.OnCallNotesChange = new core.EventEmitter();
942
- this.isActivityMaximized = true;
943
- }
944
- ActivityComponent.prototype.ngOnInit = function () {
945
- };
946
- ActivityComponent.prototype.onNameSelectChange = function (event) {
947
- this.activity.WhoObject = this.getWho(event.currentTarget.value);
948
- this.OnNameSelectChange.emit(this.activity);
949
- };
950
- ActivityComponent.prototype.parseWhoObject = function (whoObject) {
951
- return whoObject.objectType + ': ' + whoObject.objectName;
952
- };
953
- ActivityComponent.prototype.parseWhatObject = function (whatObject) {
954
- return whatObject.objectType + ': ' + whatObject.objectName;
955
- };
956
- ActivityComponent.prototype.onRelatedToChange = function (event) {
957
- this.activity.WhatObject = this.getWhat(event.currentTarget.value);
958
- this.OnRelatedToChange.emit(this.activity);
959
- };
960
- ActivityComponent.prototype.onSubjectChange = function (event) {
961
- this.activity.Subject = event.srcElement.value;
962
- this.OnSubjectChange.emit(this.activity);
963
- };
964
- ActivityComponent.prototype.onCallNotesChange = function (event) {
965
- this.activity.Subject = event.srcElement.value.trim();
966
- this.OnCallNotesChange.emit(this.activity);
967
- };
968
- ActivityComponent.prototype.getWho = function (id) {
969
- for (var i = 0; i < this.activity.whoList.length; i++) {
970
- if (this.activity.whoList[i].objectId === id) {
971
- return this.activity.whoList[i];
972
- }
973
- }
974
- };
975
- ActivityComponent.prototype.getWhat = function (id) {
976
- for (var i = 0; i < this.activity.whatList.length; i++) {
977
- if (this.activity.whatList[i].objectId === id) {
978
- return this.activity.whatList[i];
979
- }
980
- }
981
- };
982
- ActivityComponent.prototype.loadQuickComment = function (value) {
983
- this.activity.Description = this.activity.Description + this.activity.quickCommentList[value];
984
- };
985
- ActivityComponent.prototype.activitySave = function (clearActivityFields) {
986
- this.ActivitySave.emit(this.activity);
987
- };
988
- __decorate([
989
- core.Input()
990
- ], ActivityComponent.prototype, "activity", void 0);
991
- __decorate([
992
- core.Output()
993
- ], ActivityComponent.prototype, "ActivitySave", void 0);
994
- __decorate([
995
- core.Output()
996
- ], ActivityComponent.prototype, "OnNameSelectChange", void 0);
997
- __decorate([
998
- core.Output()
999
- ], ActivityComponent.prototype, "OnRelatedToChange", void 0);
1000
- __decorate([
1001
- core.Output()
1002
- ], ActivityComponent.prototype, "OnSubjectChange", void 0);
1003
- __decorate([
1004
- core.Output()
1005
- ], ActivityComponent.prototype, "OnCallNotesChange", void 0);
1006
- ActivityComponent = __decorate([
1007
- core.Component({
1008
- selector: 'app-activity',
1009
- 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\" title=\"Collapse\">\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=\"Call From\">{{activity.NameFieldName}}</label>\r\n <select class=\"dropDownListStyle displayData\" data-resetperactivity=\"false\" (change)=\"onNameSelectChange($event)\">\r\n <option *ngFor=\"let who of activity.whoList\" value=\"{{who.objectId}}\">{{parseWhoObject(who)}}</option>\r\n </select>\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" title=\"Related To\">{{activity.RelatedToFieldName}}</label>\r\n <select class=\"dropDownListStyle displayData\" (change)=\"onRelatedToChange($event)\" data-resetperactivity=\"false\">\r\n <option *ngFor=\"let what of activity.whatList\" value=\"{{what.objectId}}\">{{parseWhatObject(what)}}</option>\r\n </select>\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <label class=\"displayLabels\" title=\"Subject\">{{activity.SubjectFieldName}}</label>\r\n <input class=\"activitySubjectTextBoxStyle displayData\" (change)=\"onSubjectChange($event)\" title=\"{{activity.Subject}}\"\r\n type=\"text\" value=\"{{activity.Subject}}\">\r\n </div>\r\n <div class=\"editor displayDiv\">\r\n <div class=\"callNotesContainer\">\r\n <div class=\"textAreaDiv\">\r\n <textarea value=\"{{activity.Description}}\" placeholder=\"Click to add a comment\" class=\"activityCommentsTextBoxStyle\"\r\n (change)=\"onCallNotesChange($event)\" cols=\"20\" rows=\"2\" title=\"\"></textarea>\r\n </div>\r\n <div class=\"notesButtonBorder\">\r\n <div class=\"commentsButtonDiv\">\r\n <div class=\"quickCommentsDiv\">\r\n <input *ngFor=\"let quickComment of activity.quickCommentList ; let i = index;\" class=\"quickNotesBotton\" type=\"button\"\r\n value=\"{{i+1}}\" (click)=\"loadQuickComment(i)\" title=\"{{quickComment}}\">\r\n </div>\r\n <div class=\"submitDiv\">\r\n <input class=\"submitButton\" type=\"button\" value=\"Submit\" (click)=\"activitySave(false)\">\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\" title=\"Expand\">\r\n </div>\r\n",
1010
- styles: [".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}.callHeader{background-color:#f4f5fb!important;width:100%!important;margin-top:0!important}.headerLabel{margin-left:10px}.ViewResizeImage{width:20px;height:20px;float:right;cursor:pointer}.callBody{border-top:0;position:relative}.displayDiv{width:100%;display:flex}.displayLabels{margin-left:5px;width:25%;margin-right:2px}.displayData{width:70%}.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}.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}.commentsButtonDiv{width:100%;display:flex;align-items:center}.quickNotesBotton{background-color:#1e72ba;border:0;color:#fff;height:70%;width:20px;margin:2px;outline:0;font-size:70%}.quickCommentsDiv{text-align:left;flex:1 0 0;flex-wrap:wrap;display:flex;margin:2px}.submitDiv{text-align:right;padding-right:4px}.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}"]
1011
- })
1012
- ], ActivityComponent);
1013
- return ActivityComponent;
1014
- }());
1015
-
1016
- var LoginComponent = /** @class */ (function () {
1017
- function LoginComponent() {
1018
- this.loginDetailsProvided = new core.EventEmitter();
1019
- }
1020
- LoginComponent.prototype.ngOnInit = function () {
1021
- var e_1, _a;
1022
- if (!this.loginData.header) {
1023
- this.loginData.header = 'Login';
1024
- }
1025
- try {
1026
- for (var _b = __values(this.loginData.fields), _c = _b.next(); !_c.done; _c = _b.next()) {
1027
- var field = _c.value;
1028
- if (!field.isInvalid) {
1029
- field.isInvalid = false;
1030
- }
1031
- }
1032
- }
1033
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1034
- finally {
1035
- try {
1036
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1037
- }
1038
- finally { if (e_1) throw e_1.error; }
1039
- }
1040
- };
1041
- LoginComponent.prototype.onLogin = function (loginForm) {
1042
- var e_2, _a;
1043
- try {
1044
- for (var _b = __values(this.loginData.fields), _c = _b.next(); !_c.done; _c = _b.next()) {
1045
- var field = _c.value;
1046
- field.value = loginForm.value[field.name];
1047
- }
1048
- }
1049
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1050
- finally {
1051
- try {
1052
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1053
- }
1054
- finally { if (e_2) throw e_2.error; }
1055
- }
1056
- this.loginDetailsProvided.emit(this.loginData);
1057
- };
1058
- LoginComponent.prototype.focusOutOfInput = function (loginForm, field) {
1059
- if (!loginForm.controls[field.name].valid) {
1060
- field.isInvalid = true;
1061
- }
1062
- };
1063
- __decorate([
1064
- core.Input()
1065
- ], LoginComponent.prototype, "loginData", void 0);
1066
- __decorate([
1067
- core.Output()
1068
- ], LoginComponent.prototype, "loginDetailsProvided", void 0);
1069
- LoginComponent = __decorate([
1070
- core.Component({
1071
- selector: 'amc-login',
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",
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}"]
1074
- })
1075
- ], LoginComponent);
1076
- return LoginComponent;
1077
- }());
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]=\"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 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
-
1573
- var UILibraryModule = /** @class */ (function () {
1574
- function UILibraryModule(injector) {
1575
- this.injector = injector;
1576
- }
1577
- UILibraryModule.prototype.ngDoBootstrap = function (app) {
1578
- if (!customElements.get('amc-webcomponents-scenario')) {
1579
- var strategyFactory = new elementsZoneStrategy.ElementZoneStrategyFactory(ScenarioComponent, this.injector);
1580
- customElements.define('amc-webcomponents-scenario', elements.createCustomElement(ScenarioComponent, {
1581
- injector: this.injector,
1582
- strategyFactory: strategyFactory
1583
- }));
1584
- }
1585
- if (!customElements.get('amc-webcomponents-disposition')) {
1586
- var strategyFactory = new elementsZoneStrategy.ElementZoneStrategyFactory(DispositionComponent, this.injector);
1587
- customElements.define('amc-webcomponents-disposition', elements.createCustomElement(DispositionComponent, {
1588
- injector: this.injector,
1589
- strategyFactory: strategyFactory
1590
- }));
1591
- }
1592
- if (!customElements.get('amc-webcomponents-login')) {
1593
- var strategyFactory = new elementsZoneStrategy.ElementZoneStrategyFactory(LoginComponent, this.injector);
1594
- customElements.define('amc-webcomponents-login', elements.createCustomElement(LoginComponent, {
1595
- injector: this.injector,
1596
- strategyFactory: strategyFactory
1597
- }));
1598
- }
1599
- };
1600
- UILibraryModule.ctorParameters = function () { return [
1601
- { type: core.Injector }
1602
- ]; };
1603
- UILibraryModule = __decorate([
1604
- core.NgModule({
1605
- imports: [platformBrowser.BrowserModule, common.CommonModule, forms.FormsModule, tabs.MatTabsModule],
1606
- declarations: [
1607
- InteractionComponent,
1608
- ScenarioComponent,
1609
- OperationComponent,
1610
- PropertyComponent,
1611
- HoldtimerComponent,
1612
- DurationComponent,
1613
- ChatBoxComponent,
1614
- ChatMessageComponent,
1615
- DispositionComponent,
1616
- ActivityComponent,
1617
- LoginComponent,
1618
- CreateComponent,
1619
- RecentActivityComponent,
1620
- CurrentActivityComponent,
1621
- SearchInformationComponent
1622
- ],
1623
- providers: [],
1624
- entryComponents: [ScenarioComponent, DispositionComponent, LoginComponent, CreateComponent, RecentActivityComponent, CurrentActivityComponent, SearchInformationComponent],
1625
- bootstrap: [],
1626
- exports: [ScenarioComponent, DispositionComponent, LoginComponent, CreateComponent, RecentActivityComponent, CurrentActivityComponent, SearchInformationComponent]
1627
- })
1628
- ], UILibraryModule);
1629
- return UILibraryModule;
1630
- }());
1631
-
1632
- exports.Property = Property;
1633
- exports.UILibraryModule = UILibraryModule;
1634
- exports.ɵa = InteractionComponent;
1635
- exports.ɵb = ScenarioComponent;
1636
- exports.ɵc = OperationComponent;
1637
- exports.ɵd = PropertyComponent;
1638
- exports.ɵe = HoldtimerComponent;
1639
- exports.ɵf = DurationComponent;
1640
- exports.ɵg = ChatBoxComponent;
1641
- exports.ɵh = ChatMessageComponent;
1642
- exports.ɵi = DispositionComponent;
1643
- exports.ɵj = ActivityComponent;
1644
- exports.ɵk = LoginComponent;
1645
- exports.ɵl = CreateComponent;
1646
- exports.ɵm = RecentActivityComponent;
1647
- exports.ɵn = CurrentActivityComponent;
1648
- exports.ɵo = SearchInformationComponent;
1649
-
1650
- Object.defineProperty(exports, '__esModule', { value: true });
1651
-
1652
- })));
1653
- //# sourceMappingURL=amc-technology-ui-library.umd.js.map