Skip to content

Commit

Permalink
Merge pull request #3527 from IgniteUI/vnext
Browse files Browse the repository at this point in the history
Merging vnext to master to add latest fixes
  • Loading branch information
ChronosSF authored Aug 30, 2024
2 parents bcaaaff + f19cdce commit f2d5067
Show file tree
Hide file tree
Showing 15 changed files with 224 additions and 252 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"bootstrap": "5.3.2",
"file-saver": "^2.0.2",
"hammerjs": "^2.0.8",
"igniteui-angular": "^18.1.0",
"igniteui-angular": "^18.1.7",
"igniteui-angular-charts": "^18.0.0",
"igniteui-angular-core": "^18.0.0",
"igniteui-angular-extras": "^18.0.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</igx-select-item>
</igx-select>

<igx-grid-excel-style-filtering [column]="grid1.getColumnByName(gridColums.value)">
<igx-grid-excel-style-filtering [column]="grid1.getColumnByName(gridColums.value)" [maxHeight]="'590px'">
</igx-grid-excel-style-filtering>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display: flex;
flex-flow: row;
margin: 15px;
column-gap: 5px;
}

.flex-column {
Expand All @@ -12,4 +13,4 @@

.igSelect {
margin-left: 1px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!--The following template can be omitted (grid handles this internally) but it is here as an example of custom cell editor.-->
<ng-template igxCellEditor let-cell="cell">
<igx-input-group>
<input igxInput [igxFocus]='true' name="units" [(ngModel)]="cell.editValue" style="color: black" />
<input igxInput type="number" [igxFocus]='true' name="units" [(ngModel)]="cell.editValue" style="color: black" />
</igx-input-group>
</ng-template>
</igx-column>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</igx-select-item>
</igx-select>

<igx-grid-excel-style-filtering [column]="hierarchicalGrid.getColumnByName(gridColums.value)">
<igx-grid-excel-style-filtering [column]="hierarchicalGrid.getColumnByName(gridColums.value)" [maxHeight]="'590px'">
</igx-grid-excel-style-filtering>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
margin: 15px;
display: flex;
flex-flow: row;
column-gap: 5px;
}

.photo {
Expand All @@ -21,4 +22,4 @@

.igSelect {
margin-left: 1px;
}
}
134 changes: 90 additions & 44 deletions src/app/lists/list/list-chat-sample/list-chat-sample.component.html
Original file line number Diff line number Diff line change
@@ -1,53 +1,99 @@
<div class="chat-sample-wrapper">
<form class="chat-sample__form">
<igx-list #list>
<ng-template #othersMessage let-message="message" let-contact="contact" let-messageIndex="index">
<igx-list-item class="contact" *ngIf="isFirstMessage(messageIndex)">
<div class="contact__panel">
<igx-avatar [src]="contact.photo" shape="circle"></igx-avatar>
<span class="message__info">
{{ contact.name }}, {{ message.timestamp | date: 'shortTime'}}
<form #form class="sample-form">
<igx-list #list>
<ng-template
#othersMessage
let-message="message"
let-contact="contact"
let-messageIndex="index"
>
<igx-list-item class="contact" *ngIf="isFirstMessage(messageIndex)">
<section class="contact__panel">
<igx-avatar
[src]="contact.photo"
shape="circle"
></igx-avatar>
<header class="message__info">
<h6>{{ contact.name }}</h6>
<span>
{{ message.timestamp | date: "shortTime" }}
</span>
</div>
</igx-list-item>
<igx-list-item [ngClass]="{
'others-message': true,
'others-message--first': isFirstMessage(messageIndex)}">
<span>
{{ message.message }}
</span>
</igx-list-item>
</ng-template>
<ng-template #myMessage let-message="message" let-messageIndex="index">
<igx-list-item class="contact" *ngIf="isFirstMessage(messageIndex)">
<span class="my-message__info">
{{ message.timestamp | date: 'shortTime'}}
</header>
</section>
</igx-list-item>
<igx-list-item>
<div
[ngClass]="{
message: true,
'other-message': true,
'other-message--first': isFirstMessage(messageIndex)
}"
>
<span>{{ message.message }}</span>
</div>
</igx-list-item>
</ng-template>
<ng-template #myMessage let-message="message" let-messageIndex="index">
<igx-list-item class="contact" *ngIf="isFirstMessage(messageIndex)">
<header class="own-message message__info">
<h6>You</h6>
<span class="message__info">
{{ message.timestamp | date: "shortTime" }}
</span>
</igx-list-item>
<igx-list-item class="my-message" [ngClass]="{
'my-message': true,
'my-message--first': isFirstMessage(messageIndex)}">
</header>
</igx-list-item>
<igx-list-item>
<div
[ngClass]="{
message: true,
'own-message': true,
'own-message--first': isFirstMessage(messageIndex)
}"
>
<span>
{{ message.message }}
</span>
</igx-list-item>
</ng-template>
</div>
</igx-list-item>
</ng-template>

<ng-container *ngFor="let message of messagesService.getMessages(); index as i">
<ng-container *ngTemplateOutlet="getMessageTemplate(message); context: {message: message, contact: contactsService.getContact(message.authorId), index: i}">
</ng-container>
<ng-container
*ngFor="let message of messagesService.getMessages(); index as i"
>
<ng-container
*ngTemplateOutlet="
getMessageTemplate(message);
context: {
message: message,
contact: contactsService.getContact(message.authorId),
index: i
}
"
>
</ng-container>
</igx-list>
</ng-container>
</igx-list>

<div class="overflow-anchor"></div>

<div class="massage-field">
<igx-input-group type="box">
<input
#newMessage
igxInput
name="newMessage"
placeholder="Send message"
autocomplete="off"
[(ngModel)]="message"
(keypress)="onMessageKeypress($event)"
/>

<div class="chat-massage-field">
<igx-input-group class="chat-input-group" type="box">
<input class="input-round-box" placeholder="Send message" autocomplete="off" igxInput #newMessage name="newMessage"
[(ngModel)]="message" (keypress)="onMessageKeypress($event)" />
</igx-input-group>
<button class="send-message-button" igxIconButton="flat"
igxRipple="#09f" [igxRippleCentered]="true" (click)="onSendButtonClick()">
<igx-icon family="material">send</igx-icon>
<button
igxSuffix
igxIconButton="flat"
(click)="onSendButtonClick()"
>
<igx-icon name="send" family="material"></igx-icon>
</button>
</div>
</form>
</div>
</igx-input-group>
</div>
</form>
Loading

0 comments on commit f2d5067

Please sign in to comment.