@amc-technology/ui-library 1.0.100 → 1.0.101

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 (127) hide show
  1. package/esm2022/amc-technology-ui-library.mjs +5 -0
  2. package/esm2022/projects/UILibrary/src/app/Helpers.mjs +11 -0
  3. package/esm2022/projects/UILibrary/src/app/components/activity/activity.component.mjs +79 -0
  4. package/esm2022/projects/UILibrary/src/app/components/chat-box/chat-box.component.mjs +137 -0
  5. package/esm2022/projects/UILibrary/src/app/components/chat-message/chat-message.component.mjs +40 -0
  6. package/esm2022/projects/UILibrary/src/app/components/create/create.component.mjs +34 -0
  7. package/esm2022/projects/UILibrary/src/app/components/current-activity/current-activity.component.mjs +170 -0
  8. package/esm2022/projects/UILibrary/src/app/components/disposition/disposition.component.mjs +47 -0
  9. package/esm2022/projects/UILibrary/src/app/components/duration/duration.component.mjs +58 -0
  10. package/esm2022/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.mjs +72 -0
  11. package/esm2022/projects/UILibrary/src/app/components/interaction/interaction.component.mjs +98 -0
  12. package/esm2022/projects/UILibrary/src/app/components/login/login.component.mjs +41 -0
  13. package/esm2022/projects/UILibrary/src/app/components/operation/operation.component.mjs +56 -0
  14. package/esm2022/projects/UILibrary/src/app/components/property/property.component.mjs +106 -0
  15. package/esm2022/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.mjs +144 -0
  16. package/esm2022/projects/UILibrary/src/app/components/scenario/scenario.component.mjs +38 -0
  17. package/esm2022/projects/UILibrary/src/app/components/search-information/search-information.component.mjs +160 -0
  18. package/esm2022/projects/UILibrary/src/app/models/IActivity.mjs +2 -0
  19. package/esm2022/projects/UILibrary/src/app/models/IActivityDetails.mjs +2 -0
  20. package/esm2022/projects/UILibrary/src/app/models/IHoldActivityDetails.mjs +2 -0
  21. package/esm2022/projects/UILibrary/src/app/models/IInteractionActivityDetails.mjs +2 -0
  22. package/esm2022/projects/UILibrary/src/app/models/chat.message.mjs +7 -0
  23. package/esm2022/projects/UILibrary/src/app/models/chat.settings.mjs +2 -0
  24. package/esm2022/projects/UILibrary/src/app/models/disposition.interface.mjs +2 -0
  25. package/esm2022/projects/UILibrary/src/app/models/login.interface.mjs +2 -0
  26. package/esm2022/projects/UILibrary/src/app/models/uilibrary.model.mjs +61 -0
  27. package/esm2022/projects/UILibrary/src/app/uilibrary.module.mjs +106 -0
  28. package/esm2022/public_api.mjs +10 -0
  29. package/fesm2022/amc-technology-ui-library.mjs +1393 -0
  30. package/fesm2022/amc-technology-ui-library.mjs.map +1 -0
  31. package/index.d.ts +5 -0
  32. package/package.json +26 -21
  33. package/projects/UILibrary/src/app/Helpers.d.ts +1 -1
  34. package/projects/UILibrary/src/app/components/activity/activity.component.d.ts +26 -23
  35. package/projects/UILibrary/src/app/components/chat-box/chat-box.component.d.ts +38 -35
  36. package/projects/UILibrary/src/app/components/chat-message/chat-message.component.d.ts +16 -13
  37. package/projects/UILibrary/src/app/components/create/create.component.d.ts +14 -11
  38. package/projects/UILibrary/src/app/components/current-activity/current-activity.component.d.ts +37 -34
  39. package/projects/UILibrary/src/app/components/disposition/disposition.component.d.ts +15 -12
  40. package/projects/UILibrary/src/app/components/duration/duration.component.d.ts +19 -16
  41. package/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.d.ts +24 -21
  42. package/projects/UILibrary/src/app/components/interaction/interaction.component.d.ts +44 -41
  43. package/projects/UILibrary/src/app/components/login/login.component.d.ts +14 -11
  44. package/projects/UILibrary/src/app/components/operation/operation.component.d.ts +25 -22
  45. package/projects/UILibrary/src/app/components/property/property.component.d.ts +44 -41
  46. package/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.d.ts +38 -35
  47. package/projects/UILibrary/src/app/components/scenario/scenario.component.d.ts +16 -13
  48. package/projects/UILibrary/src/app/components/search-information/search-information.component.d.ts +29 -26
  49. package/projects/UILibrary/src/app/models/IActivity.d.ts +36 -36
  50. package/projects/UILibrary/src/app/models/IActivityDetails.d.ts +7 -7
  51. package/projects/UILibrary/src/app/models/IHoldActivityDetails.d.ts +10 -10
  52. package/projects/UILibrary/src/app/models/IInteractionActivityDetails.d.ts +9 -9
  53. package/projects/UILibrary/src/app/models/chat.message.d.ts +15 -15
  54. package/projects/UILibrary/src/app/models/chat.settings.d.ts +6 -6
  55. package/projects/UILibrary/src/app/models/disposition.interface.d.ts +12 -12
  56. package/projects/UILibrary/src/app/models/login.interface.d.ts +13 -13
  57. package/projects/UILibrary/src/app/models/uilibrary.model.d.ts +281 -281
  58. package/projects/UILibrary/src/app/uilibrary.module.d.ts +30 -7
  59. package/public_api.d.ts +9 -1
  60. package/webcomponents/webcomponents.js +3 -3
  61. package/amc-technology-ui-library.d.ts +0 -19
  62. package/amc-technology-ui-library.metadata.json +0 -1
  63. package/bundles/amc-technology-ui-library.umd.js +0 -1653
  64. package/bundles/amc-technology-ui-library.umd.js.map +0 -1
  65. package/bundles/amc-technology-ui-library.umd.min.js +0 -16
  66. package/bundles/amc-technology-ui-library.umd.min.js.map +0 -1
  67. package/esm2015/amc-technology-ui-library.js +0 -20
  68. package/esm2015/projects/UILibrary/src/app/Helpers.js +0 -11
  69. package/esm2015/projects/UILibrary/src/app/components/activity/activity.component.js +0 -83
  70. package/esm2015/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +0 -139
  71. package/esm2015/projects/UILibrary/src/app/components/chat-message/chat-message.component.js +0 -44
  72. package/esm2015/projects/UILibrary/src/app/components/create/create.component.js +0 -35
  73. package/esm2015/projects/UILibrary/src/app/components/current-activity/current-activity.component.js +0 -169
  74. package/esm2015/projects/UILibrary/src/app/components/disposition/disposition.component.js +0 -49
  75. package/esm2015/projects/UILibrary/src/app/components/duration/duration.component.js +0 -58
  76. package/esm2015/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.js +0 -72
  77. package/esm2015/projects/UILibrary/src/app/components/interaction/interaction.component.js +0 -93
  78. package/esm2015/projects/UILibrary/src/app/components/login/login.component.js +0 -43
  79. package/esm2015/projects/UILibrary/src/app/components/operation/operation.component.js +0 -57
  80. package/esm2015/projects/UILibrary/src/app/components/property/property.component.js +0 -99
  81. package/esm2015/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.js +0 -142
  82. package/esm2015/projects/UILibrary/src/app/components/scenario/scenario.component.js +0 -43
  83. package/esm2015/projects/UILibrary/src/app/components/search-information/search-information.component.js +0 -155
  84. package/esm2015/projects/UILibrary/src/app/models/IActivity.js +0 -1
  85. package/esm2015/projects/UILibrary/src/app/models/IActivityDetails.js +0 -1
  86. package/esm2015/projects/UILibrary/src/app/models/IHoldActivityDetails.js +0 -1
  87. package/esm2015/projects/UILibrary/src/app/models/IInteractionActivityDetails.js +0 -1
  88. package/esm2015/projects/UILibrary/src/app/models/chat.message.js +0 -7
  89. package/esm2015/projects/UILibrary/src/app/models/chat.settings.js +0 -1
  90. package/esm2015/projects/UILibrary/src/app/models/disposition.interface.js +0 -1
  91. package/esm2015/projects/UILibrary/src/app/models/login.interface.js +0 -1
  92. package/esm2015/projects/UILibrary/src/app/models/uilibrary.model.js +0 -40
  93. package/esm2015/projects/UILibrary/src/app/uilibrary.module.js +0 -83
  94. package/esm2015/public_api.js +0 -2
  95. package/esm5/amc-technology-ui-library.js +0 -20
  96. package/esm5/projects/UILibrary/src/app/Helpers.js +0 -11
  97. package/esm5/projects/UILibrary/src/app/components/activity/activity.component.js +0 -84
  98. package/esm5/projects/UILibrary/src/app/components/chat-box/chat-box.component.js +0 -140
  99. package/esm5/projects/UILibrary/src/app/components/chat-message/chat-message.component.js +0 -45
  100. package/esm5/projects/UILibrary/src/app/components/create/create.component.js +0 -36
  101. package/esm5/projects/UILibrary/src/app/components/current-activity/current-activity.component.js +0 -174
  102. package/esm5/projects/UILibrary/src/app/components/disposition/disposition.component.js +0 -61
  103. package/esm5/projects/UILibrary/src/app/components/duration/duration.component.js +0 -60
  104. package/esm5/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.js +0 -74
  105. package/esm5/projects/UILibrary/src/app/components/interaction/interaction.component.js +0 -98
  106. package/esm5/projects/UILibrary/src/app/components/login/login.component.js +0 -66
  107. package/esm5/projects/UILibrary/src/app/components/operation/operation.component.js +0 -58
  108. package/esm5/projects/UILibrary/src/app/components/property/property.component.js +0 -101
  109. package/esm5/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.js +0 -144
  110. package/esm5/projects/UILibrary/src/app/components/scenario/scenario.component.js +0 -44
  111. package/esm5/projects/UILibrary/src/app/components/search-information/search-information.component.js +0 -156
  112. package/esm5/projects/UILibrary/src/app/models/IActivity.js +0 -1
  113. package/esm5/projects/UILibrary/src/app/models/IActivityDetails.js +0 -1
  114. package/esm5/projects/UILibrary/src/app/models/IHoldActivityDetails.js +0 -1
  115. package/esm5/projects/UILibrary/src/app/models/IInteractionActivityDetails.js +0 -1
  116. package/esm5/projects/UILibrary/src/app/models/chat.message.js +0 -7
  117. package/esm5/projects/UILibrary/src/app/models/chat.settings.js +0 -1
  118. package/esm5/projects/UILibrary/src/app/models/disposition.interface.js +0 -1
  119. package/esm5/projects/UILibrary/src/app/models/login.interface.js +0 -1
  120. package/esm5/projects/UILibrary/src/app/models/uilibrary.model.js +0 -43
  121. package/esm5/projects/UILibrary/src/app/uilibrary.module.js +0 -84
  122. package/esm5/public_api.js +0 -2
  123. package/fesm2015/amc-technology-ui-library.js +0 -1360
  124. package/fesm2015/amc-technology-ui-library.js.map +0 -1
  125. package/fesm5/amc-technology-ui-library.js +0 -1423
  126. package/fesm5/amc-technology-ui-library.js.map +0 -1
  127. package/src/typings.d.ts +0 -5
@@ -1,281 +1,281 @@
1
- import { IChatSettings } from './chat.settings';
2
- import { IChatMessage } from './chat.message';
3
- export * from './chat.message';
4
- export * from './chat.settings';
5
- /**
6
- * It is collection of Interaction which need to be displayed on scenario component.
7
- */
8
- export interface IScenario {
9
- interactions: IInteraction[];
10
- }
11
- export interface IInteraction {
12
- /**
13
- * Unique id for the interaction.
14
- * Note: this interactionId is also used to provide id for the div element.
15
- */
16
- interactionId: string;
17
- properties?: Property[];
18
- associatedData?: Property[];
19
- startTime: number;
20
- displayCallTimer: boolean;
21
- /**
22
- * parties is supposed to contain data about all the participants in call except agent himself.
23
- */
24
- parties?: IParty[];
25
- /**
26
- * Operations/buttons which needs to be displayed in interaction and its handlers.
27
- */
28
- operations?: IOperation[];
29
- /**
30
- * It contains URLs for minimize, maximize, interaction specific icon urls for interaction.
31
- * And header number which needs to be displayed at top.
32
- */
33
- UIHeadersData: IInteractionUIHeaders;
34
- /**
35
- * Should contain identifying information about the main party in the interaction.
36
- */
37
- subheaderData: IPartyHeader;
38
- /**
39
- * This enables and configures the chat UI
40
- */
41
- chat?: {
42
- settings: IChatSettings;
43
- messages: IChatMessage[];
44
- isCustomerTyping?: boolean;
45
- };
46
- }
47
- export interface IActivity {
48
- interactionId: string;
49
- WhoObject: IActivityDetails;
50
- WhatObject: IActivityDetails;
51
- whoList: IActivityDetails[];
52
- whatList: IActivityDetails[];
53
- CallType: string;
54
- CallDurationInSeconds: string;
55
- Subject: string;
56
- SubjectFieldName: string;
57
- NameFieldName: string;
58
- RelatedToFieldName: string;
59
- Description: string;
60
- Status: string;
61
- ActivityDate: string;
62
- TimeStamp: Date;
63
- ActivityId: string;
64
- quickCommentList: string[];
65
- }
66
- export interface IActivityDetails {
67
- objectType: string;
68
- displayName: string;
69
- objectName: string;
70
- objectId: string;
71
- url: string;
72
- }
73
- /**
74
- * This contains the main identifying information about the interaction.
75
- */
76
- export interface IPartyHeader {
77
- /**
78
- * Image that identifies the type of interaction
79
- * or the type of the identifying information(ex: phone icon for phone number)
80
- */
81
- image?: URL;
82
- /**
83
- * The tooltip to be displayed when the image is hovered over
84
- */
85
- tooltip?: string;
86
- /**
87
- * The value to be displayed
88
- */
89
- value: string;
90
- }
91
- /**
92
- * It contains URLs for minimize, maximize, interaction specific icon urls for interaction.
93
- * And header number which needs to be displayed at top.
94
- */
95
- export interface IInteractionUIHeaders {
96
- /**
97
- * Minimize icon url.
98
- */
99
- minimizeUrl: URL;
100
- /**
101
- * Maximize Icon url.
102
- */
103
- maximizeUrl: URL;
104
- /**
105
- * This is the URL for the status image.
106
- * @memberof IInteractionUIHeaders
107
- */
108
- statusUrl: URL;
109
- /**
110
- * This is the handler for focus(Triggered on click of status).
111
- * @memberof IInteractionUIHeaders
112
- */
113
- focusHandler?: IFocus;
114
- /**
115
- * This is the text which is going to be displayed for status of the call.
116
- *
117
- * @memberof IInteractionUIHeaders
118
- */
119
- statusText: string;
120
- /**
121
- *This member will contain the text related to the direction of the call. E.g Inbound, Outbound etc.
122
- * @memberof IInteractionUIHeaders
123
- */
124
- directionText: string;
125
- /**
126
- *This data will be used to display hold counter whihc will be the combination of the current hold time and complete hold time.
127
- * @memberof IInteractionUIHeaders
128
- */
129
- holdCounterData?: IHoldCounterData;
130
- /**
131
- *If this value is set to true then hold counter is displayed based on the holdCounterData.
132
- * @memberof IInteractionUIHeaders
133
- */
134
- displayHoldCounter: boolean;
135
- }
136
- export interface ICallDuration {
137
- startTime: number;
138
- endTime: number;
139
- }
140
- export interface IHoldCounterData {
141
- pastCallDurations?: ICallDuration[];
142
- currentHoldStartTime: number;
143
- }
144
- /**
145
- * It contains Operation Icon URL and its hadlers which need to be displayed in Interaction.
146
- */
147
- export interface IFocus {
148
- /**
149
- * metadata related to operation.
150
- */
151
- operationMetadata?: IMetadata[];
152
- /**
153
- * name of the operation.
154
- */
155
- operationName: string;
156
- /**
157
- * Handler which needs to be invoked when someone clicks on the operation icon.
158
- */
159
- handler: (operationName: string, operationMetadata?: IMetadata[]) => void;
160
- }
161
- /**
162
- * It contains Operation Icon URL and its hadlers which need to be displayed in Interaction.
163
- */
164
- export interface IOperation {
165
- /**
166
- * metadata related to operation.
167
- */
168
- operationMetadata?: IMetadata[];
169
- /**
170
- * name of the operation.
171
- */
172
- operationName: string;
173
- /**
174
- * URL for the icon of operations.
175
- */
176
- icon: URL;
177
- /**
178
- * Title which needs to be doisplayed when someone hovers over the icon.
179
- */
180
- title: string;
181
- /**
182
- * Handler which needs to be invoked when someone clicks on the operation icon.
183
- */
184
- handler: (operationName: string, operationMetadata?: IMetadata[]) => void;
185
- /**
186
- * Browser accesskey to jump instantly to this operation Should conform to AMC norms and consist of a single printable character.
187
- */
188
- accesskey?: string;
189
- }
190
- /**
191
- * This contains properties and operations to be displayed for conference member.
192
- */
193
- export interface IParty {
194
- header: IPartyHeader;
195
- properties: Property[];
196
- operations: IOperation[];
197
- }
198
- /**
199
- * key value pairs which can be used amongst other interfaces/classes to store metadata of those entities.
200
- */
201
- export interface IMetadata {
202
- key: string;
203
- value: string;
204
- }
205
- /**
206
- * This interface contains key value pairs, some custom operation which generates display key and display value.
207
- * Also it includes custom operation handler for click event on properties.
208
- */
209
- export interface IProperty {
210
- /**
211
- * KEY value to be displayed on component.
212
- */
213
- displayKey?: string;
214
- /**
215
- * VALUE to be displayed on component.
216
- */
217
- displayValue?: any;
218
- displayValueType: ValueType;
219
- propertyMetadata?: IMetadata[];
220
- /**
221
- * Click event handler for property.
222
- */
223
- customOperations?: IEventHandler;
224
- /**
225
- * This flag decides if PROPERTY will be displayed on component or not.
226
- */
227
- visible: boolean;
228
- }
229
- /**
230
- * A helper method to make instances of [IProperty]
231
- */
232
- export declare class Property implements IProperty {
233
- private key;
234
- private value;
235
- /**
236
- * KEY value to be displayed on component.
237
- */
238
- displayKey?: string;
239
- /**
240
- * VALUE to be displayed on component.
241
- */
242
- displayValue?: any;
243
- displayValueType: ValueType;
244
- propertyMetadata?: IMetadata[];
245
- /**
246
- * Click event handler for property.
247
- */
248
- customOperations?: IEventHandler;
249
- /**
250
- * This flag decides if PROPERTY will be displayed on component or not.
251
- */
252
- visible: boolean;
253
- /**
254
- * Operation responsible for generating displayKey and dispkayValur from key and value.
255
- */
256
- displayOperation: () => void;
257
- /**
258
- *
259
- * @param key
260
- * @param value : if value type is COUNTER then value should be start time in MilliSeconds.
261
- * @param visible
262
- * @param valueType
263
- * @param customOperation
264
- */
265
- constructor(key: string, value: any, visible?: boolean, valueType?: ValueType, customOperation?: IEventHandler);
266
- }
267
- /**
268
- * Interface which contains eventName and handler associated with it.
269
- */
270
- export interface IEventHandler {
271
- eventName: string;
272
- handler: (eventName: string, eventMetadata?: IMetadata[]) => void;
273
- eventMetadata?: IMetadata[];
274
- }
275
- /**
276
- * enum for Value types of PROPERTY.
277
- */
278
- export declare enum ValueType {
279
- STRING = 0,
280
- COUNTER = 1
281
- }
1
+ import { IChatSettings } from './chat.settings';
2
+ import { IChatMessage } from './chat.message';
3
+ export * from './chat.message';
4
+ export * from './chat.settings';
5
+ /**
6
+ * It is collection of Interaction which need to be displayed on scenario component.
7
+ */
8
+ export interface IScenario {
9
+ interactions: IInteraction[];
10
+ }
11
+ export interface IInteraction {
12
+ /**
13
+ * Unique id for the interaction.
14
+ * Note: this interactionId is also used to provide id for the div element.
15
+ */
16
+ interactionId: string;
17
+ properties?: Property[];
18
+ associatedData?: Property[];
19
+ startTime: number;
20
+ displayCallTimer: boolean;
21
+ /**
22
+ * parties is supposed to contain data about all the participants in call except agent himself.
23
+ */
24
+ parties?: IParty[];
25
+ /**
26
+ * Operations/buttons which needs to be displayed in interaction and its handlers.
27
+ */
28
+ operations?: IOperation[];
29
+ /**
30
+ * It contains URLs for minimize, maximize, interaction specific icon urls for interaction.
31
+ * And header number which needs to be displayed at top.
32
+ */
33
+ UIHeadersData: IInteractionUIHeaders;
34
+ /**
35
+ * Should contain identifying information about the main party in the interaction.
36
+ */
37
+ subheaderData: IPartyHeader;
38
+ /**
39
+ * This enables and configures the chat UI
40
+ */
41
+ chat?: {
42
+ settings: IChatSettings;
43
+ messages: IChatMessage[];
44
+ isCustomerTyping?: boolean;
45
+ };
46
+ }
47
+ export interface IActivity {
48
+ interactionId: string;
49
+ WhoObject: IActivityDetails;
50
+ WhatObject: IActivityDetails;
51
+ whoList: IActivityDetails[];
52
+ whatList: IActivityDetails[];
53
+ CallType: string;
54
+ CallDurationInSeconds: string;
55
+ Subject: string;
56
+ SubjectFieldName: string;
57
+ NameFieldName: string;
58
+ RelatedToFieldName: string;
59
+ Description: string;
60
+ Status: string;
61
+ ActivityDate: string;
62
+ TimeStamp: Date;
63
+ ActivityId: string;
64
+ quickCommentList: string[];
65
+ }
66
+ export interface IActivityDetails {
67
+ objectType: string;
68
+ displayName: string;
69
+ objectName: string;
70
+ objectId: string;
71
+ url: string;
72
+ }
73
+ /**
74
+ * This contains the main identifying information about the interaction.
75
+ */
76
+ export interface IPartyHeader {
77
+ /**
78
+ * Image that identifies the type of interaction
79
+ * or the type of the identifying information(ex: phone icon for phone number)
80
+ */
81
+ image?: URL;
82
+ /**
83
+ * The tooltip to be displayed when the image is hovered over
84
+ */
85
+ tooltip?: string;
86
+ /**
87
+ * The value to be displayed
88
+ */
89
+ value: string;
90
+ }
91
+ /**
92
+ * It contains URLs for minimize, maximize, interaction specific icon urls for interaction.
93
+ * And header number which needs to be displayed at top.
94
+ */
95
+ export interface IInteractionUIHeaders {
96
+ /**
97
+ * Minimize icon url.
98
+ */
99
+ minimizeUrl: URL;
100
+ /**
101
+ * Maximize Icon url.
102
+ */
103
+ maximizeUrl: URL;
104
+ /**
105
+ * This is the URL for the status image.
106
+ * @memberof IInteractionUIHeaders
107
+ */
108
+ statusUrl: URL;
109
+ /**
110
+ * This is the handler for focus(Triggered on click of status).
111
+ * @memberof IInteractionUIHeaders
112
+ */
113
+ focusHandler?: IFocus;
114
+ /**
115
+ * This is the text which is going to be displayed for status of the call.
116
+ *
117
+ * @memberof IInteractionUIHeaders
118
+ */
119
+ statusText: string;
120
+ /**
121
+ *This member will contain the text related to the direction of the call. E.g Inbound, Outbound etc.
122
+ * @memberof IInteractionUIHeaders
123
+ */
124
+ directionText: string;
125
+ /**
126
+ *This data will be used to display hold counter whihc will be the combination of the current hold time and complete hold time.
127
+ * @memberof IInteractionUIHeaders
128
+ */
129
+ holdCounterData?: IHoldCounterData;
130
+ /**
131
+ *If this value is set to true then hold counter is displayed based on the holdCounterData.
132
+ * @memberof IInteractionUIHeaders
133
+ */
134
+ displayHoldCounter: boolean;
135
+ }
136
+ export interface ICallDuration {
137
+ startTime: number;
138
+ endTime: number;
139
+ }
140
+ export interface IHoldCounterData {
141
+ pastCallDurations?: ICallDuration[];
142
+ currentHoldStartTime: number;
143
+ }
144
+ /**
145
+ * It contains Operation Icon URL and its hadlers which need to be displayed in Interaction.
146
+ */
147
+ export interface IFocus {
148
+ /**
149
+ * metadata related to operation.
150
+ */
151
+ operationMetadata?: IMetadata[];
152
+ /**
153
+ * name of the operation.
154
+ */
155
+ operationName: string;
156
+ /**
157
+ * Handler which needs to be invoked when someone clicks on the operation icon.
158
+ */
159
+ handler: (operationName: string, operationMetadata?: IMetadata[]) => void;
160
+ }
161
+ /**
162
+ * It contains Operation Icon URL and its hadlers which need to be displayed in Interaction.
163
+ */
164
+ export interface IOperation {
165
+ /**
166
+ * metadata related to operation.
167
+ */
168
+ operationMetadata?: IMetadata[];
169
+ /**
170
+ * name of the operation.
171
+ */
172
+ operationName: string;
173
+ /**
174
+ * URL for the icon of operations.
175
+ */
176
+ icon: URL;
177
+ /**
178
+ * Title which needs to be doisplayed when someone hovers over the icon.
179
+ */
180
+ title: string;
181
+ /**
182
+ * Handler which needs to be invoked when someone clicks on the operation icon.
183
+ */
184
+ handler: (operationName: string, operationMetadata?: IMetadata[]) => void;
185
+ /**
186
+ * Browser accesskey to jump instantly to this operation Should conform to AMC norms and consist of a single printable character.
187
+ */
188
+ accesskey?: string;
189
+ }
190
+ /**
191
+ * This contains properties and operations to be displayed for conference member.
192
+ */
193
+ export interface IParty {
194
+ header: IPartyHeader;
195
+ properties: Property[];
196
+ operations: IOperation[];
197
+ }
198
+ /**
199
+ * key value pairs which can be used amongst other interfaces/classes to store metadata of those entities.
200
+ */
201
+ export interface IMetadata {
202
+ key: string;
203
+ value: string;
204
+ }
205
+ /**
206
+ * This interface contains key value pairs, some custom operation which generates display key and display value.
207
+ * Also it includes custom operation handler for click event on properties.
208
+ */
209
+ export interface IProperty {
210
+ /**
211
+ * KEY value to be displayed on component.
212
+ */
213
+ displayKey?: string;
214
+ /**
215
+ * VALUE to be displayed on component.
216
+ */
217
+ displayValue?: any;
218
+ displayValueType: ValueType;
219
+ propertyMetadata?: IMetadata[];
220
+ /**
221
+ * Click event handler for property.
222
+ */
223
+ customOperations?: IEventHandler;
224
+ /**
225
+ * This flag decides if PROPERTY will be displayed on component or not.
226
+ */
227
+ visible: boolean;
228
+ }
229
+ /**
230
+ * A helper method to make instances of [IProperty]
231
+ */
232
+ export declare class Property implements IProperty {
233
+ private key;
234
+ private value;
235
+ /**
236
+ * KEY value to be displayed on component.
237
+ */
238
+ displayKey?: string;
239
+ /**
240
+ * VALUE to be displayed on component.
241
+ */
242
+ displayValue?: any;
243
+ displayValueType: ValueType;
244
+ propertyMetadata?: IMetadata[];
245
+ /**
246
+ * Click event handler for property.
247
+ */
248
+ customOperations?: IEventHandler;
249
+ /**
250
+ * This flag decides if PROPERTY will be displayed on component or not.
251
+ */
252
+ visible: boolean;
253
+ /**
254
+ * Operation responsible for generating displayKey and dispkayValur from key and value.
255
+ */
256
+ displayOperation: () => void;
257
+ /**
258
+ *
259
+ * @param key
260
+ * @param value : if value type is COUNTER then value should be start time in MilliSeconds.
261
+ * @param visible
262
+ * @param valueType
263
+ * @param customOperation
264
+ */
265
+ constructor(key: string, value: any, visible?: boolean, valueType?: ValueType, customOperation?: IEventHandler);
266
+ }
267
+ /**
268
+ * Interface which contains eventName and handler associated with it.
269
+ */
270
+ export interface IEventHandler {
271
+ eventName: string;
272
+ handler: (eventName: string, eventMetadata?: IMetadata[]) => void;
273
+ eventMetadata?: IMetadata[];
274
+ }
275
+ /**
276
+ * enum for Value types of PROPERTY.
277
+ */
278
+ export declare enum ValueType {
279
+ STRING = 0,
280
+ COUNTER = 1
281
+ }
@@ -1,7 +1,30 @@
1
- import { Injector } from '@angular/core';
2
- export declare class UILibraryModule {
3
- private injector;
4
- constructor(injector: Injector);
5
- ngDoBootstrap(app: any): void;
6
- }
7
- export * from './models/uilibrary.model';
1
+ import { Injector } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./components/interaction/interaction.component";
4
+ import * as i2 from "./components/scenario/scenario.component";
5
+ import * as i3 from "./components/operation/operation.component";
6
+ import * as i4 from "./components/property/property.component";
7
+ import * as i5 from "./components/holdtimer/holdtimer.component";
8
+ import * as i6 from "./components/duration/duration.component";
9
+ import * as i7 from "./components/chat-box/chat-box.component";
10
+ import * as i8 from "./components/chat-message/chat-message.component";
11
+ import * as i9 from "./components/disposition/disposition.component";
12
+ import * as i10 from "./components/activity/activity.component";
13
+ import * as i11 from "./components/login/login.component";
14
+ import * as i12 from "./components/create/create.component";
15
+ import * as i13 from "./components/recent-activity/recent-activity.component";
16
+ import * as i14 from "./components/current-activity/current-activity.component";
17
+ import * as i15 from "./components/search-information/search-information.component";
18
+ import * as i16 from "@angular/platform-browser";
19
+ import * as i17 from "@angular/common";
20
+ import * as i18 from "@angular/forms";
21
+ import * as i19 from "@angular/material/legacy-tabs";
22
+ export declare class UILibraryModule {
23
+ private injector;
24
+ constructor(injector: Injector);
25
+ ngDoBootstrap(app: any): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<UILibraryModule, never>;
27
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UILibraryModule, [typeof i1.InteractionComponent, typeof i2.ScenarioComponent, typeof i3.OperationComponent, typeof i4.PropertyComponent, typeof i5.HoldtimerComponent, typeof i6.DurationComponent, typeof i7.ChatBoxComponent, typeof i8.ChatMessageComponent, typeof i9.DispositionComponent, typeof i10.ActivityComponent, typeof i11.LoginComponent, typeof i12.CreateComponent, typeof i13.RecentActivityComponent, typeof i14.CurrentActivityComponent, typeof i15.SearchInformationComponent], [typeof i16.BrowserModule, typeof i17.CommonModule, typeof i18.FormsModule, typeof i19.MatLegacyTabsModule], [typeof i2.ScenarioComponent, typeof i9.DispositionComponent, typeof i11.LoginComponent, typeof i12.CreateComponent, typeof i13.RecentActivityComponent, typeof i14.CurrentActivityComponent, typeof i15.SearchInformationComponent]>;
28
+ static ɵinj: i0.ɵɵInjectorDeclaration<UILibraryModule>;
29
+ }
30
+ export * from './models/uilibrary.model';
package/public_api.d.ts CHANGED
@@ -1 +1,9 @@
1
- export * from './projects/UILibrary/src/app/uilibrary.module';
1
+ export * from './projects/UILibrary/src/app/uilibrary.module';
2
+ export * from './projects/UILibrary/src/app/components/scenario/scenario.component';
3
+ export * from './projects/UILibrary/src/app/components/chat-box/chat-box.component';
4
+ export * from './projects/UILibrary/src/app/components/disposition/disposition.component';
5
+ export * from './projects/UILibrary/src/app/components/search-information/search-information.component';
6
+ export * from './projects/UILibrary/src/app/components/login/login.component';
7
+ export * from './projects/UILibrary/src/app/components/create/create.component';
8
+ export * from './projects/UILibrary/src/app/components/recent-activity/recent-activity.component';
9
+ export * from './projects/UILibrary/src/app/components/current-activity/current-activity.component';