@progress/kendo-angular-conversational-ui 13.4.0-develop.1 → 13.4.0-develop.3

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.
@@ -14,7 +14,7 @@ import * as i2 from '@angular/common';
14
14
  import { CommonModule } from '@angular/common';
15
15
  import * as i1 from '@progress/kendo-angular-intl';
16
16
  import { debounceTime } from 'rxjs/operators';
17
- import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
17
+ import { chevronLeftIcon, chevronRightIcon, paperPlaneIcon } from '@progress/kendo-svg-icons';
18
18
  import * as i1$1 from '@progress/kendo-angular-buttons';
19
19
  import { ButtonModule } from '@progress/kendo-angular-buttons';
20
20
 
@@ -119,8 +119,8 @@ const packageMetadata = {
119
119
  name: '@progress/kendo-angular-conversational-ui',
120
120
  productName: 'Kendo UI for Angular',
121
121
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
122
- publishDate: 1692286422,
123
- version: '13.4.0-develop.1',
122
+ publishDate: 1692370663,
123
+ version: '13.4.0-develop.3',
124
124
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
125
125
  };
126
126
 
@@ -400,41 +400,41 @@ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
400
400
  useExisting: forwardRef(() => MessageComponent)
401
401
  }], usesInheritance: true, ngImport: i0, template: `
402
402
  <time
403
- [attr.aria-hidden]="!selected"
404
- class="k-message-time"
405
- *ngIf="message.timestamp"
403
+ [attr.aria-hidden]="!selected"
404
+ class="k-message-time"
405
+ *ngIf="message.timestamp"
406
406
  >
407
- {{ formatTimeStamp(message.timestamp) }}
407
+ {{ formatTimeStamp(message.timestamp) }}
408
408
  </time>
409
409
 
410
410
  <ng-container *ngIf="!message.typing; else typing">
411
- <div class="k-bubble" *ngIf="template">
412
- <ng-container
413
- *ngTemplateOutlet="template.templateRef; context: { $implicit: message };"
414
- >
415
- </ng-container>
416
- </div>
411
+ <div class="k-chat-bubble" *ngIf="template">
412
+ <ng-container
413
+ *ngTemplateOutlet="template.templateRef; context: { $implicit: message };"
414
+ >
415
+ </ng-container>
416
+ </div>
417
417
 
418
- <div class="k-bubble" *ngIf="!template && message.text">
419
- {{message.text}}
420
- </div>
418
+ <div class="k-chat-bubble" *ngIf="!template && message.text">
419
+ {{message.text}}
420
+ </div>
421
421
  </ng-container>
422
422
 
423
423
  <span
424
- class="k-message-status"
425
- *ngIf="message.status"
424
+ class="k-message-status"
425
+ *ngIf="message.status"
426
426
  >
427
- {{ message.status }}
427
+ {{ message.status }}
428
428
  </span>
429
429
 
430
430
  <ng-template #typing>
431
- <div class="k-bubble">
432
- <div class="k-typing-indicator">
433
- <span></span>
434
- <span></span>
435
- <span></span>
431
+ <div class="k-chat-bubble">
432
+ <div class="k-typing-indicator">
433
+ <span></span>
434
+ <span></span>
435
+ <span></span>
436
+ </div>
436
437
  </div>
437
- </div>
438
438
  </ng-template>
439
439
  `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
440
440
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageComponent, decorators: [{
@@ -447,41 +447,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
447
447
  }],
448
448
  template: `
449
449
  <time
450
- [attr.aria-hidden]="!selected"
451
- class="k-message-time"
452
- *ngIf="message.timestamp"
450
+ [attr.aria-hidden]="!selected"
451
+ class="k-message-time"
452
+ *ngIf="message.timestamp"
453
453
  >
454
- {{ formatTimeStamp(message.timestamp) }}
454
+ {{ formatTimeStamp(message.timestamp) }}
455
455
  </time>
456
456
 
457
457
  <ng-container *ngIf="!message.typing; else typing">
458
- <div class="k-bubble" *ngIf="template">
459
- <ng-container
460
- *ngTemplateOutlet="template.templateRef; context: { $implicit: message };"
461
- >
462
- </ng-container>
463
- </div>
458
+ <div class="k-chat-bubble" *ngIf="template">
459
+ <ng-container
460
+ *ngTemplateOutlet="template.templateRef; context: { $implicit: message };"
461
+ >
462
+ </ng-container>
463
+ </div>
464
464
 
465
- <div class="k-bubble" *ngIf="!template && message.text">
466
- {{message.text}}
467
- </div>
465
+ <div class="k-chat-bubble" *ngIf="!template && message.text">
466
+ {{message.text}}
467
+ </div>
468
468
  </ng-container>
469
469
 
470
470
  <span
471
- class="k-message-status"
472
- *ngIf="message.status"
471
+ class="k-message-status"
472
+ *ngIf="message.status"
473
473
  >
474
- {{ message.status }}
474
+ {{ message.status }}
475
475
  </span>
476
476
 
477
477
  <ng-template #typing>
478
- <div class="k-bubble">
479
- <div class="k-typing-indicator">
480
- <span></span>
481
- <span></span>
482
- <span></span>
478
+ <div class="k-chat-bubble">
479
+ <div class="k-typing-indicator">
480
+ <span></span>
481
+ <span></span>
482
+ <span></span>
483
+ </div>
483
484
  </div>
484
- </div>
485
485
  </ng-template>
486
486
  `
487
487
  }]
@@ -697,21 +697,25 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
697
697
  icon="chevron-left"
698
698
  >
699
699
  </button>
700
- <div #deck [class.k-card-deck]="carousel">
701
- <kendo-chat-attachment #item
702
- *ngFor="let att of attachments; index as index; first as first; last as last"
703
- [attachment]="att"
704
- [template]="template"
705
- [class.k-selected]="isSelected(index)"
706
- [class.k-focus]="isSelected(index)"
707
- [class.k-card-wrap]="true"
708
- [class.k-first]="first"
709
- [class.k-last]="last"
710
- [attr.tabindex]="tabbable && isSelected(index) ? '0' : '-1'"
711
- (click)="itemClick(index)"
712
- (keydown)="itemKeydown($event, att)"
700
+ <div
701
+ #deck
702
+ [class.k-card-deck]="carousel"
703
+ [class.k-card-list]="!carousel"
713
704
  >
714
- </kendo-chat-attachment>
705
+ <kendo-chat-attachment #item
706
+ *ngFor="let att of attachments; index as index; first as first; last as last"
707
+ [attachment]="att"
708
+ [template]="template"
709
+ [class.k-selected]="isSelected(index)"
710
+ [class.k-focus]="isSelected(index)"
711
+ [class.k-card-wrap]="true"
712
+ [class.k-first]="first"
713
+ [class.k-last]="last"
714
+ [attr.tabindex]="tabbable && isSelected(index) ? '0' : '-1'"
715
+ (click)="itemClick(index)"
716
+ (keydown)="itemKeydown($event, att)"
717
+ >
718
+ </kendo-chat-attachment>
715
719
  </div>
716
720
  <button
717
721
  *ngIf="carousel && scrollPosition < 1"
@@ -743,21 +747,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
743
747
  icon="chevron-left"
744
748
  >
745
749
  </button>
746
- <div #deck [class.k-card-deck]="carousel">
747
- <kendo-chat-attachment #item
748
- *ngFor="let att of attachments; index as index; first as first; last as last"
749
- [attachment]="att"
750
- [template]="template"
751
- [class.k-selected]="isSelected(index)"
752
- [class.k-focus]="isSelected(index)"
753
- [class.k-card-wrap]="true"
754
- [class.k-first]="first"
755
- [class.k-last]="last"
756
- [attr.tabindex]="tabbable && isSelected(index) ? '0' : '-1'"
757
- (click)="itemClick(index)"
758
- (keydown)="itemKeydown($event, att)"
750
+ <div
751
+ #deck
752
+ [class.k-card-deck]="carousel"
753
+ [class.k-card-list]="!carousel"
759
754
  >
760
- </kendo-chat-attachment>
755
+ <kendo-chat-attachment #item
756
+ *ngFor="let att of attachments; index as index; first as first; last as last"
757
+ [attachment]="att"
758
+ [template]="template"
759
+ [class.k-selected]="isSelected(index)"
760
+ [class.k-focus]="isSelected(index)"
761
+ [class.k-card-wrap]="true"
762
+ [class.k-first]="first"
763
+ [class.k-last]="last"
764
+ [attr.tabindex]="tabbable && isSelected(index) ? '0' : '-1'"
765
+ (click)="itemClick(index)"
766
+ (keydown)="itemKeydown($event, att)"
767
+ >
768
+ </kendo-chat-attachment>
761
769
  </div>
762
770
  <button
763
771
  *ngIf="carousel && scrollPosition < 1"
@@ -926,73 +934,84 @@ class MessageListComponent {
926
934
  MessageListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
927
935
  MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", localization: "localization", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
928
936
  <ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
929
- <ng-container [ngSwitch]="group.type">
930
- <div
931
- *ngSwitchCase="'date-marker'"
932
- class="k-timestamp"
933
- >
934
- {{ formatTimeStamp(group.timestamp) }}
935
- </div>
936
- <div
937
- *ngSwitchCase="'message-group'"
938
- class="k-message-group"
939
- [class.k-alt]="isOwnMessage(group.messages[0])"
940
- [class.k-no-avatar]="!group.author.avatarUrl"
941
- >
942
- <img
943
- *ngIf="group.author.avatarUrl"
944
- [attr.src]="group.author.avatarUrl"
945
- [alt]="textFor('messageAvatarAlt')"
946
- class="k-avatar"
947
- />
948
- <p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
949
- <ng-container
950
- *ngFor="let msg of group.messages; first as firstMessage; last as lastMessage"
951
- >
952
- <img *ngIf="msg.user?.avatarUrl" [src]="msg.user?.avatarUrl" class="k-avatar">
953
- <kendo-chat-message #message
954
- [message]="msg"
955
- [tabbable]="lastGroup && lastMessage"
956
- [template]="messageTemplate"
957
- (click)="select(message)"
958
- (focus)="select(message)"
959
- [class.k-only]="group.messages.length === 1"
960
- [class.k-first]="group.messages.length > 1 && firstMessage"
961
- [class.k-last]="group.messages.length > 1 && lastMessage"
937
+ <ng-container [ngSwitch]="group.type">
938
+ <div
939
+ *ngSwitchCase="'date-marker'"
940
+ class="k-timestamp"
941
+ >
942
+ {{ formatTimeStamp(group.timestamp) }}
943
+ </div>
944
+ <div
945
+ *ngSwitchCase="'message-group'"
946
+ class="k-message-group"
947
+ [class.k-alt]="isOwnMessage(group.messages[0])"
948
+ [class.k-no-avatar]="!group.author.avatarUrl"
962
949
  >
963
- </kendo-chat-message>
950
+ <div
951
+ *ngIf="group.author.avatarUrl"
952
+ class="k-avatar k-avatar-md k-avatar-solid k-avatar-solid-primary k-rounded-full"
953
+ >
954
+ <span class="k-avatar-image">
955
+ <img
956
+ [attr.src]="group.author.avatarUrl"
957
+ [alt]="textFor('messageAvatarAlt')"
958
+ />
959
+ </span>
960
+ </div>
961
+ <ng-container
962
+ *ngFor="let msg of group.messages; first as firstMessage; last as lastMessage"
963
+ >
964
+ <div
965
+ *ngIf="msg.user?.avatarUrl"
966
+ class="k-avatar k-avatar-md k-avatar-solid k-avatar-solid-primary k-rounded-full"
967
+ >
968
+ <span class="k-avatar-image">
969
+ <img [src]="msg.user?.avatarUrl">
970
+ </span>
971
+ </div>
972
+ <kendo-chat-message #message
973
+ [message]="msg"
974
+ [tabbable]="lastGroup && lastMessage"
975
+ [template]="messageTemplate"
976
+ (click)="select(message)"
977
+ (focus)="select(message)"
978
+ [class.k-only]="group.messages.length === 1"
979
+ [class.k-first]="group.messages.length > 1 && firstMessage"
980
+ [class.k-last]="group.messages.length > 1 && lastMessage"
981
+ >
982
+ </kendo-chat-message>
964
983
 
965
- <kendo-chat-attachment
966
- *ngIf="msg.attachments && msg.attachments.length === 1"
967
- [attachment]="msg.attachments[0]"
968
- [template]="attachmentTemplate"
984
+ <kendo-chat-attachment
985
+ *ngIf="msg.attachments && msg.attachments.length === 1"
986
+ [attachment]="msg.attachments[0]"
987
+ [template]="attachmentTemplate"
988
+ >
989
+ </kendo-chat-attachment>
990
+ </ng-container>
991
+ </div>
992
+
993
+ <kendo-chat-message-attachments #attachments
994
+ *ngSwitchCase="'attachment-group'"
995
+ [attachments]="group.attachments"
996
+ [layout]="group.attachmentLayout"
997
+ [localization]="localization"
998
+ [tabbable]="lastGroup"
999
+ [template]="attachmentTemplate"
1000
+ (click)="select(attachments)"
1001
+ (focus)="select(attachments)"
969
1002
  >
970
- </kendo-chat-attachment>
971
- </ng-container>
972
- </div>
1003
+ </kendo-chat-message-attachments>
973
1004
 
974
- <kendo-chat-message-attachments #attachments
975
- *ngSwitchCase="'attachment-group'"
976
- [attachments]="group.attachments"
977
- [layout]="group.attachmentLayout"
978
- [localization]="localization"
979
- [tabbable]="lastGroup"
980
- [template]="attachmentTemplate"
981
- (click)="select(attachments)"
982
- (focus)="select(attachments)"
983
- >
984
- </kendo-chat-message-attachments>
985
-
986
- <kendo-chat-suggested-actions #actions
987
- *ngSwitchCase="'action-group'"
988
- [actions]="group.actions"
989
- [tabbable]="lastGroup"
990
- (dispatch)="dispatchAction($event, last(group.messages))"
991
- (click)="select(actions)"
992
- (focus)="select(actions)"
993
- >
994
- </kendo-chat-suggested-actions>
995
- </ng-container>
1005
+ <kendo-chat-suggested-actions #actions
1006
+ *ngSwitchCase="'action-group'"
1007
+ [actions]="group.actions"
1008
+ [tabbable]="lastGroup"
1009
+ (dispatch)="dispatchAction($event, last(group.messages))"
1010
+ (click)="select(actions)"
1011
+ (focus)="select(actions)"
1012
+ >
1013
+ </kendo-chat-suggested-actions>
1014
+ </ng-container>
996
1015
  </ng-container>
997
1016
  <kendo-resize-sensor (resize)="onResize()">
998
1017
  </kendo-resize-sensor>
@@ -1003,73 +1022,84 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1003
1022
  selector: 'kendo-chat-message-list',
1004
1023
  template: `
1005
1024
  <ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
1006
- <ng-container [ngSwitch]="group.type">
1007
- <div
1008
- *ngSwitchCase="'date-marker'"
1009
- class="k-timestamp"
1010
- >
1011
- {{ formatTimeStamp(group.timestamp) }}
1012
- </div>
1013
- <div
1014
- *ngSwitchCase="'message-group'"
1015
- class="k-message-group"
1016
- [class.k-alt]="isOwnMessage(group.messages[0])"
1017
- [class.k-no-avatar]="!group.author.avatarUrl"
1018
- >
1019
- <img
1020
- *ngIf="group.author.avatarUrl"
1021
- [attr.src]="group.author.avatarUrl"
1022
- [alt]="textFor('messageAvatarAlt')"
1023
- class="k-avatar"
1024
- />
1025
- <p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
1026
- <ng-container
1027
- *ngFor="let msg of group.messages; first as firstMessage; last as lastMessage"
1028
- >
1029
- <img *ngIf="msg.user?.avatarUrl" [src]="msg.user?.avatarUrl" class="k-avatar">
1030
- <kendo-chat-message #message
1031
- [message]="msg"
1032
- [tabbable]="lastGroup && lastMessage"
1033
- [template]="messageTemplate"
1034
- (click)="select(message)"
1035
- (focus)="select(message)"
1036
- [class.k-only]="group.messages.length === 1"
1037
- [class.k-first]="group.messages.length > 1 && firstMessage"
1038
- [class.k-last]="group.messages.length > 1 && lastMessage"
1025
+ <ng-container [ngSwitch]="group.type">
1026
+ <div
1027
+ *ngSwitchCase="'date-marker'"
1028
+ class="k-timestamp"
1039
1029
  >
1040
- </kendo-chat-message>
1030
+ {{ formatTimeStamp(group.timestamp) }}
1031
+ </div>
1032
+ <div
1033
+ *ngSwitchCase="'message-group'"
1034
+ class="k-message-group"
1035
+ [class.k-alt]="isOwnMessage(group.messages[0])"
1036
+ [class.k-no-avatar]="!group.author.avatarUrl"
1037
+ >
1038
+ <div
1039
+ *ngIf="group.author.avatarUrl"
1040
+ class="k-avatar k-avatar-md k-avatar-solid k-avatar-solid-primary k-rounded-full"
1041
+ >
1042
+ <span class="k-avatar-image">
1043
+ <img
1044
+ [attr.src]="group.author.avatarUrl"
1045
+ [alt]="textFor('messageAvatarAlt')"
1046
+ />
1047
+ </span>
1048
+ </div>
1049
+ <ng-container
1050
+ *ngFor="let msg of group.messages; first as firstMessage; last as lastMessage"
1051
+ >
1052
+ <div
1053
+ *ngIf="msg.user?.avatarUrl"
1054
+ class="k-avatar k-avatar-md k-avatar-solid k-avatar-solid-primary k-rounded-full"
1055
+ >
1056
+ <span class="k-avatar-image">
1057
+ <img [src]="msg.user?.avatarUrl">
1058
+ </span>
1059
+ </div>
1060
+ <kendo-chat-message #message
1061
+ [message]="msg"
1062
+ [tabbable]="lastGroup && lastMessage"
1063
+ [template]="messageTemplate"
1064
+ (click)="select(message)"
1065
+ (focus)="select(message)"
1066
+ [class.k-only]="group.messages.length === 1"
1067
+ [class.k-first]="group.messages.length > 1 && firstMessage"
1068
+ [class.k-last]="group.messages.length > 1 && lastMessage"
1069
+ >
1070
+ </kendo-chat-message>
1071
+
1072
+ <kendo-chat-attachment
1073
+ *ngIf="msg.attachments && msg.attachments.length === 1"
1074
+ [attachment]="msg.attachments[0]"
1075
+ [template]="attachmentTemplate"
1076
+ >
1077
+ </kendo-chat-attachment>
1078
+ </ng-container>
1079
+ </div>
1041
1080
 
1042
- <kendo-chat-attachment
1043
- *ngIf="msg.attachments && msg.attachments.length === 1"
1044
- [attachment]="msg.attachments[0]"
1045
- [template]="attachmentTemplate"
1081
+ <kendo-chat-message-attachments #attachments
1082
+ *ngSwitchCase="'attachment-group'"
1083
+ [attachments]="group.attachments"
1084
+ [layout]="group.attachmentLayout"
1085
+ [localization]="localization"
1086
+ [tabbable]="lastGroup"
1087
+ [template]="attachmentTemplate"
1088
+ (click)="select(attachments)"
1089
+ (focus)="select(attachments)"
1046
1090
  >
1047
- </kendo-chat-attachment>
1048
- </ng-container>
1049
- </div>
1091
+ </kendo-chat-message-attachments>
1050
1092
 
1051
- <kendo-chat-message-attachments #attachments
1052
- *ngSwitchCase="'attachment-group'"
1053
- [attachments]="group.attachments"
1054
- [layout]="group.attachmentLayout"
1055
- [localization]="localization"
1056
- [tabbable]="lastGroup"
1057
- [template]="attachmentTemplate"
1058
- (click)="select(attachments)"
1059
- (focus)="select(attachments)"
1060
- >
1061
- </kendo-chat-message-attachments>
1062
-
1063
- <kendo-chat-suggested-actions #actions
1064
- *ngSwitchCase="'action-group'"
1065
- [actions]="group.actions"
1066
- [tabbable]="lastGroup"
1067
- (dispatch)="dispatchAction($event, last(group.messages))"
1068
- (click)="select(actions)"
1069
- (focus)="select(actions)"
1070
- >
1071
- </kendo-chat-suggested-actions>
1072
- </ng-container>
1093
+ <kendo-chat-suggested-actions #actions
1094
+ *ngSwitchCase="'action-group'"
1095
+ [actions]="group.actions"
1096
+ [tabbable]="lastGroup"
1097
+ (dispatch)="dispatchAction($event, last(group.messages))"
1098
+ (click)="select(actions)"
1099
+ (focus)="select(actions)"
1100
+ >
1101
+ </kendo-chat-suggested-actions>
1102
+ </ng-container>
1073
1103
  </ng-container>
1074
1104
  <kendo-resize-sensor (resize)="onResize()">
1075
1105
  </kendo-resize-sensor>
@@ -1131,8 +1161,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1131
1161
  args: ['focusout']
1132
1162
  }] } });
1133
1163
 
1134
- // tslint:disable-next-line:max-line-length
1135
- const sendIcon = '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16"><path d="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z"/></svg>';
1136
1164
  /**
1137
1165
  * @hidden
1138
1166
  */
@@ -1140,6 +1168,10 @@ class MessageBoxComponent {
1140
1168
  constructor() {
1141
1169
  this.hostClasses = 'k-message-box k-input k-input-md k-rounded-md k-input-solid';
1142
1170
  this.sendMessage = new EventEmitter();
1171
+ /**
1172
+ * @hidden
1173
+ */
1174
+ this.sendIcon = paperPlaneIcon;
1143
1175
  }
1144
1176
  get messageBoxValue() {
1145
1177
  return this.type === 'textarea';
@@ -1197,7 +1229,47 @@ class MessageBoxComponent {
1197
1229
  }
1198
1230
  }
1199
1231
  MessageBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1200
- MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageBoxComponent, selector: "kendo-message-box", inputs: { user: "user", autoScroll: "autoScroll", type: "type", localization: "localization", messageBoxTemplate: "messageBoxTemplate" }, outputs: { sendMessage: "sendMessage" }, host: { properties: { "class": "this.hostClasses", "class.!k-align-items-end": "this.messageBoxValue" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: "\n <ng-container *ngIf=\"!messageBoxTemplate\">\n <input\n *ngIf=\"type === 'textbox'\"\n #messageBoxInput\n [attr.role]=\"'textbox'\"\n kendoChatFocusedState\n type=\"text\"\n class=\"k-textbox k-input k-input-md k-input-solid\"\n [attr.aria-label]=\"textFor('messageBoxInputLabel')\"\n [placeholder]=\"textFor('messagePlaceholder')\"\n (keydown)=\"inputKeydown($event)\"\n />\n\n <textarea\n *ngIf=\"type === 'textarea'\"\n #messageBoxInput\n [attr.role]=\"'textbox'\"\n kendoChatFocusedState\n [rows]=\"3\"\n class=\"k-textarea k-input k-input-md k-input-solid !k-overflow-y-auto k-resize-none\"\n [attr.aria-label]=\"textFor('messageBoxInputLabel')\"\n [placeholder]=\"textFor('messagePlaceholder')\"\n (keydown)=\"textAreaKeydown($event)\"\n ></textarea>\n\n <button\n kendoButton\n fillMode=\"flat\"\n class=\"k-button-send\"\n [tabindex]=\"0\"\n [attr.title]=\"textFor('send')\"\n (click)=\"sendClick()\"\n >\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 16 16\"><path d=\"M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z\"/></svg>\n </button>\n </ng-container>\n\n <ng-template *ngIf=\"messageBoxTemplate\" [ngTemplateOutlet]=\"messageBoxTemplate?.templateRef\"></ng-template>\n", isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FocusedStateDirective, selector: "[kendoChatFocusedState]" }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1232
+ MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageBoxComponent, selector: "kendo-message-box", inputs: { user: "user", autoScroll: "autoScroll", type: "type", localization: "localization", messageBoxTemplate: "messageBoxTemplate" }, outputs: { sendMessage: "sendMessage" }, host: { properties: { "class": "this.hostClasses", "class.!k-align-items-end": "this.messageBoxValue" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: `
1233
+ <ng-container *ngIf="!messageBoxTemplate">
1234
+ <input
1235
+ *ngIf="type === 'textbox'"
1236
+ #messageBoxInput
1237
+ [attr.role]="'textbox'"
1238
+ kendoChatFocusedState
1239
+ type="text"
1240
+ class="k-textbox k-input k-input-md k-input-solid"
1241
+ [attr.aria-label]="textFor('messageBoxInputLabel')"
1242
+ [placeholder]="textFor('messagePlaceholder')"
1243
+ (keydown)="inputKeydown($event)"
1244
+ />
1245
+
1246
+ <textarea
1247
+ *ngIf="type === 'textarea'"
1248
+ #messageBoxInput
1249
+ [attr.role]="'textbox'"
1250
+ kendoChatFocusedState
1251
+ [rows]="3"
1252
+ class="k-textarea k-input k-input-md k-input-solid !k-overflow-y-auto k-resize-none"
1253
+ [attr.aria-label]="textFor('messageBoxInputLabel')"
1254
+ [placeholder]="textFor('messagePlaceholder')"
1255
+ (keydown)="textAreaKeydown($event)"
1256
+ ></textarea>
1257
+
1258
+ <button
1259
+ kendoButton
1260
+ fillMode="flat"
1261
+ class="k-chat-send"
1262
+ icon="paper-plane"
1263
+ [svgIcon]="sendIcon"
1264
+ [tabindex]="0"
1265
+ [attr.title]="textFor('send')"
1266
+ (click)="sendClick()"
1267
+ >
1268
+ </button>
1269
+ </ng-container>
1270
+
1271
+ <ng-template *ngIf="messageBoxTemplate" [ngTemplateOutlet]="messageBoxTemplate?.templateRef"></ng-template>
1272
+ `, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FocusedStateDirective, selector: "[kendoChatFocusedState]" }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1201
1273
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageBoxComponent, decorators: [{
1202
1274
  type: Component,
1203
1275
  args: [{
@@ -1231,12 +1303,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1231
1303
  <button
1232
1304
  kendoButton
1233
1305
  fillMode="flat"
1234
- class="k-button-send"
1306
+ class="k-chat-send"
1307
+ icon="paper-plane"
1308
+ [svgIcon]="sendIcon"
1235
1309
  [tabindex]="0"
1236
1310
  [attr.title]="textFor('send')"
1237
1311
  (click)="sendClick()"
1238
1312
  >
1239
- ${sendIcon}
1240
1313
  </button>
1241
1314
  </ng-container>
1242
1315