@amc-technology/ui-library 1.0.101 → 1.0.103

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 (36) hide show
  1. package/README.md +34 -8
  2. package/esm2022/projects/UILibrary/src/app/components/activity/activity.component.mjs +5 -5
  3. package/esm2022/projects/UILibrary/src/app/components/chat-box/chat-box.component.mjs +41 -26
  4. package/esm2022/projects/UILibrary/src/app/components/chat-message/chat-message.component.mjs +5 -5
  5. package/esm2022/projects/UILibrary/src/app/components/create/create.component.mjs +5 -5
  6. package/esm2022/projects/UILibrary/src/app/components/current-activity/current-activity.component.mjs +5 -5
  7. package/esm2022/projects/UILibrary/src/app/components/disposition/disposition.component.mjs +4 -4
  8. package/esm2022/projects/UILibrary/src/app/components/duration/duration.component.mjs +5 -5
  9. package/esm2022/projects/UILibrary/src/app/components/hold-timer/hold-timer.component.mjs +72 -0
  10. package/esm2022/projects/UILibrary/src/app/components/interaction/interaction.component.mjs +7 -10
  11. package/esm2022/projects/UILibrary/src/app/components/login/login.component.mjs +5 -5
  12. package/esm2022/projects/UILibrary/src/app/components/operation/operation.component.mjs +5 -5
  13. package/esm2022/projects/UILibrary/src/app/components/property/property.component.mjs +5 -5
  14. package/esm2022/projects/UILibrary/src/app/components/recent-activity/recent-activity.component.mjs +5 -5
  15. package/esm2022/projects/UILibrary/src/app/components/scenario/scenario.component.mjs +6 -9
  16. package/esm2022/projects/UILibrary/src/app/components/search-information/search-information.component.mjs +5 -5
  17. package/esm2022/projects/UILibrary/src/app/models/chat.settings.mjs +1 -1
  18. package/esm2022/projects/UILibrary/src/app/models/uilibrary.model.mjs +1 -1
  19. package/esm2022/projects/UILibrary/src/app/uilibrary.module.mjs +22 -22
  20. package/fesm2022/amc-technology-ui-library.mjs +767 -757
  21. package/fesm2022/amc-technology-ui-library.mjs.map +1 -1
  22. package/package.json +2 -2
  23. package/projects/UILibrary/src/app/components/chat-box/chat-box.component.d.ts +9 -5
  24. package/projects/UILibrary/src/app/components/chat-message/chat-message.component.d.ts +3 -3
  25. package/projects/UILibrary/src/app/components/{holdtimer/holdtimer.component.d.ts → hold-timer/hold-timer.component.d.ts} +4 -4
  26. package/projects/UILibrary/src/app/components/interaction/interaction.component.d.ts +3 -4
  27. package/projects/UILibrary/src/app/components/login/login.component.d.ts +1 -1
  28. package/projects/UILibrary/src/app/components/scenario/scenario.component.d.ts +3 -4
  29. package/projects/UILibrary/src/app/models/chat.settings.d.ts +2 -0
  30. package/projects/UILibrary/src/app/models/uilibrary.model.d.ts +13 -0
  31. package/projects/UILibrary/src/app/uilibrary.module.d.ts +2 -2
  32. package/webcomponents/webcomponents.js +2 -2
  33. package/esm2022/projects/UILibrary/src/app/components/holdtimer/holdtimer.component.mjs +0 -72
  34. package/esm2022/projects/UILibrary/src/app/models/login.interface.mjs +0 -2
  35. package/projects/UILibrary/src/app/models/login.interface.d.ts +0 -13
  36. package/webcomponents/styles.css +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amc-technology/ui-library",
3
- "version": "1.0.101",
3
+ "version": "1.0.103",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "dependencies": {
@@ -19,7 +19,7 @@
19
19
  "clean": "^4.0.2",
20
20
  "core-js": "^2.5.5",
21
21
  "rxjs": "^7.8.0",
22
- "tslib": "^2.0.0",
22
+ "tslib": "^2.6.2",
23
23
  "url-polyfill": "^1.0.13",
24
24
  "zone.js": "~0.13.0"
25
25
  },
@@ -1,13 +1,13 @@
1
- import { EventEmitter, ElementRef, AfterViewChecked, AfterViewInit, OnInit, Renderer2 } from '@angular/core';
1
+ import { AfterViewChecked, AfterViewInit, ElementRef, EventEmitter, IterableDiffers, OnInit, Renderer2 } from '@angular/core';
2
2
  import { IChatMessage } from '../../models/chat.message';
3
3
  import { IChatSettings } from '../../models/chat.settings';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ChatBoxComponent implements AfterViewChecked, AfterViewInit, OnInit {
6
6
  private renderer;
7
+ private iterableDiffers;
7
8
  settings: IChatSettings;
8
9
  isTyping: boolean;
9
10
  messages: IChatMessage[];
10
- newMsgs: IChatMessage[];
11
11
  private lastCount;
12
12
  _isAgentTyping: boolean;
13
13
  isAgentTyping: EventEmitter<boolean>;
@@ -21,10 +21,13 @@ export declare class ChatBoxComponent implements AfterViewChecked, AfterViewInit
21
21
  colors: string[];
22
22
  colorsIndex: number;
23
23
  agentColor: string;
24
- constructor(renderer: Renderer2);
24
+ private scrollAtBottom;
25
+ private iterableDiffer;
26
+ sendButtonText: string;
27
+ constructor(renderer: Renderer2, iterableDiffers: IterableDiffers);
25
28
  ngOnInit(): void;
29
+ ngDoCheck(): void;
26
30
  ngAfterViewInit(): void;
27
- updatedMessage(): IChatMessage[];
28
31
  ngAfterViewChecked(): void;
29
32
  getColor(message: IChatMessage): string;
30
33
  shouldAlignRight(message: IChatMessage): boolean;
@@ -33,6 +36,7 @@ export declare class ChatBoxComponent implements AfterViewChecked, AfterViewInit
33
36
  onNewMessageFocus(event: boolean): void;
34
37
  onKeyup(): void;
35
38
  scrollToBottom(): void;
39
+ checkIfScrollAtBottom(): void;
36
40
  static ɵfac: i0.ɵɵFactoryDeclaration<ChatBoxComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatBoxComponent, "app-chat-box", never, { "settings": { "alias": "settings"; "required": false; }; "isTyping": { "alias": "isTyping"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "newMsgs": { "alias": "newMsgs"; "required": false; }; }, { "isAgentTyping": "isAgentTyping"; "newMessage": "newMessage"; }, never, never, false, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatBoxComponent, "app-chat-box", never, { "settings": { "alias": "settings"; "required": false; }; "isTyping": { "alias": "isTyping"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; }, { "isAgentTyping": "isAgentTyping"; "newMessage": "newMessage"; }, never, never, false, never>;
38
42
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ChatMessageComponent implements OnInit {
4
4
  message: string;
@@ -6,8 +6,8 @@ export declare class ChatMessageComponent implements OnInit {
6
6
  username: string;
7
7
  color: string;
8
8
  timestamp: string;
9
- image: string;
10
- fallbackImage: string;
9
+ image: string | URL;
10
+ fallbackImage: string | URL;
11
11
  focusOn: EventEmitter<any>;
12
12
  constructor();
13
13
  ngOnInit(): void;
@@ -1,7 +1,7 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { IHoldCounterData } from '../../models/uilibrary.model';
3
3
  import * as i0 from "@angular/core";
4
- export declare class HoldtimerComponent implements OnInit, OnDestroy {
4
+ export declare class HoldTimerComponent implements OnInit, OnDestroy {
5
5
  holdCounterData: IHoldCounterData;
6
6
  statusText: string;
7
7
  callId: string;
@@ -19,6 +19,6 @@ export declare class HoldtimerComponent implements OnInit, OnDestroy {
19
19
  * @ignore
20
20
  */
21
21
  ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<HoldtimerComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<HoldtimerComponent, "amc-holdtimer", never, { "holdCounterData": { "alias": "holdCounterData"; "required": false; }; "statusText": { "alias": "statusText"; "required": false; }; "callId": { "alias": "callId"; "required": false; }; }, {}, never, never, false, never>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<HoldTimerComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<HoldTimerComponent, "amc-holdTimer", never, { "holdCounterData": { "alias": "holdCounterData"; "required": false; }; "statusText": { "alias": "statusText"; "required": false; }; "callId": { "alias": "callId"; "required": false; }; }, {}, never, never, false, never>;
24
24
  }
@@ -1,12 +1,11 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
2
- import { IChatMessage, IInteraction } from '../../models/uilibrary.model';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { IInteraction } from '../../models/uilibrary.model';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * @ignore
6
6
  */
7
7
  export declare class InteractionComponent implements OnInit {
8
8
  interaction: IInteraction;
9
- newMsgs: IChatMessage[];
10
9
  minimizedChanged: EventEmitter<boolean>;
11
10
  isAgentTyping: EventEmitter<boolean>;
12
11
  newMessage: EventEmitter<string>;
@@ -40,5 +39,5 @@ export declare class InteractionComponent implements OnInit {
40
39
  expandKeypress(event: KeyboardEvent): void;
41
40
  clickEvent(id: any): void;
42
41
  static ɵfac: i0.ɵɵFactoryDeclaration<InteractionComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<InteractionComponent, "amc-interaction", never, { "interaction": { "alias": "interaction"; "required": false; }; "newMsgs": { "alias": "newMsgs"; "required": false; }; }, { "minimizedChanged": "minimizedChanged"; "isAgentTyping": "isAgentTyping"; "newMessage": "newMessage"; }, never, never, false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<InteractionComponent, "amc-interaction", never, { "interaction": { "alias": "interaction"; "required": false; }; }, { "minimizedChanged": "minimizedChanged"; "isAgentTyping": "isAgentTyping"; "newMessage": "newMessage"; }, never, never, false, never>;
44
43
  }
@@ -1,4 +1,4 @@
1
- import { ILoginData } from './../../models/login.interface';
1
+ import { ILoginData } from './../../models/uilibrary.model';
2
2
  import { EventEmitter, OnInit } from '@angular/core';
3
3
  import { NgForm } from '@angular/forms';
4
4
  import * as i0 from "@angular/core";
@@ -1,9 +1,8 @@
1
- import { EventEmitter, AfterViewChecked } from '@angular/core';
2
- import { IChatMessage, IScenario } from '../../models/uilibrary.model';
1
+ import { AfterViewChecked, EventEmitter } from '@angular/core';
2
+ import { IScenario } from '../../models/uilibrary.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ScenarioComponent implements AfterViewChecked {
5
5
  scenario: IScenario;
6
- newMsgs: IChatMessage[];
7
6
  minimizedChanged: EventEmitter<any>;
8
7
  isAgentTyping: EventEmitter<boolean>;
9
8
  newMessage: EventEmitter<string>;
@@ -12,5 +11,5 @@ export declare class ScenarioComponent implements AfterViewChecked {
12
11
  ngAfterViewChecked(): void;
13
12
  onMinimizedChanged(): void;
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ScenarioComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ScenarioComponent, "amc-scenario", never, { "scenario": { "alias": "scenario"; "required": false; }; "newMsgs": { "alias": "newMsgs"; "required": false; }; }, { "minimizedChanged": "minimizedChanged"; "isAgentTyping": "isAgentTyping"; "newMessage": "newMessage"; "afterViewChecked": "afterViewChecked"; }, never, never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScenarioComponent, "amc-scenario", never, { "scenario": { "alias": "scenario"; "required": false; }; }, { "minimizedChanged": "minimizedChanged"; "isAgentTyping": "isAgentTyping"; "newMessage": "newMessage"; "afterViewChecked": "afterViewChecked"; }, never, never, false, never>;
16
15
  }
@@ -3,4 +3,6 @@ export interface IChatSettings {
3
3
  maxHeight?: string;
4
4
  fallbackUserIcon?: URL;
5
5
  disableSendMessage?: boolean;
6
+ hideSendMessage?: boolean;
7
+ sendMessageText?: string;
6
8
  }
@@ -2,6 +2,19 @@ import { IChatSettings } from './chat.settings';
2
2
  import { IChatMessage } from './chat.message';
3
3
  export * from './chat.message';
4
4
  export * from './chat.settings';
5
+ export interface ILoginData {
6
+ header: string;
7
+ fields: ILoginField[];
8
+ }
9
+ export interface ILoginField {
10
+ name: string;
11
+ type: string;
12
+ value?: string;
13
+ placeholder?: string;
14
+ isRequired?: boolean;
15
+ invalidMessage: string;
16
+ isInvalid?: boolean;
17
+ }
5
18
  /**
6
19
  * It is collection of Interaction which need to be displayed on scenario component.
7
20
  */
@@ -4,7 +4,7 @@ import * as i1 from "./components/interaction/interaction.component";
4
4
  import * as i2 from "./components/scenario/scenario.component";
5
5
  import * as i3 from "./components/operation/operation.component";
6
6
  import * as i4 from "./components/property/property.component";
7
- import * as i5 from "./components/holdtimer/holdtimer.component";
7
+ import * as i5 from "./components/hold-timer/hold-timer.component";
8
8
  import * as i6 from "./components/duration/duration.component";
9
9
  import * as i7 from "./components/chat-box/chat-box.component";
10
10
  import * as i8 from "./components/chat-message/chat-message.component";
@@ -24,7 +24,7 @@ export declare class UILibraryModule {
24
24
  constructor(injector: Injector);
25
25
  ngDoBootstrap(app: any): void;
26
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]>;
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
28
  static ɵinj: i0.ɵɵInjectorDeclaration<UILibraryModule>;
29
29
  }
30
30
  export * from './models/uilibrary.model';