@chat21/chat21-web-widget 5.0.57-rc.5 → 5.0.58
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.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +1 -1
- package/src/app/component/home/home.component.scss +1 -1
- package/src/app/component/last-message/last-message.component.ts +0 -3
- package/src/assets/twp/index-dev.html +16 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss
CHANGED
|
@@ -305,7 +305,7 @@ textarea:active{
|
|
|
305
305
|
vertical-align: middle;
|
|
306
306
|
object-fit: contain;
|
|
307
307
|
filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(212%) hue-rotate(173deg) brightness(92%) contrast(88%);
|
|
308
|
-
padding-right:
|
|
308
|
+
padding-right: 5px;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
b{
|
|
@@ -150,7 +150,6 @@ export class LastMessageComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
150
150
|
setTimeout(() => {
|
|
151
151
|
if(this.messageListWRP.get(this.messages.length-1)){
|
|
152
152
|
let height = getComputedStyle(this.messageListWRP.get(this.messages.length-1).nativeElement).height
|
|
153
|
-
// console.log('heightttttt--<', height, this.messages[this.messages.length-1])
|
|
154
153
|
this.g.setWidgetPreviewContainerSize(0, +height.substring(0, height.length-2))
|
|
155
154
|
}
|
|
156
155
|
}, 50);
|
|
@@ -190,12 +189,10 @@ export class LastMessageComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
onElementRenderedFN(event){
|
|
193
|
-
console.log('eventttttttt-->', event, this.messageListWRP)
|
|
194
192
|
this.messageListWRP.forEach((item, index)=> {
|
|
195
193
|
setTimeout(() => {
|
|
196
194
|
if(this.messageListWRP.get(index)){
|
|
197
195
|
let height = getComputedStyle(this.messageListWRP.get(index).nativeElement).height
|
|
198
|
-
console.log('heightttttt--<', height, this.messages[this.messages.length-1])
|
|
199
196
|
this.g.setWidgetPreviewContainerSize(0, +height.substring(0, height.length-2))
|
|
200
197
|
}
|
|
201
198
|
}, 50);
|
|
@@ -1197,6 +1197,13 @@
|
|
|
1197
1197
|
window.Tiledesk('restart')
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
|
+
function onClickFileUploadAccept(){
|
|
1201
|
+
let text = document.getElementById('fileUploadAccept').value
|
|
1202
|
+
window.tiledeskSettings['fileUploadAccept'] = text
|
|
1203
|
+
console.log('onClickFileUploadAccept:', window.tiledeskSettings)
|
|
1204
|
+
window.Tiledesk('restart')
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1200
1207
|
function onClickShowAttachmentButton(){
|
|
1201
1208
|
let status = document.querySelector('input[name="showAttachmentButton"]:checked').value
|
|
1202
1209
|
window.tiledeskSettings['showAttachmentButton'] = stringToBoolean(status)
|
|
@@ -2193,6 +2200,15 @@
|
|
|
2193
2200
|
<button class="btn btn-light" onclick="onClickParticipants()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
|
|
2194
2201
|
</div>
|
|
2195
2202
|
</div>
|
|
2203
|
+
<div class="row">
|
|
2204
|
+
<div class="col-md-5 formElement"><span><em><strong>fileUploadAccept</strong></em> (more<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers"> here</a>)</span></div>
|
|
2205
|
+
<div class="col-md-5">
|
|
2206
|
+
<input class="form-control" type="text" id="fileUploadAccept" name="fileUploadAccept" placeholder="Set a comma separated string...">
|
|
2207
|
+
</div>
|
|
2208
|
+
<div class="col-md-2">
|
|
2209
|
+
<button class="btn btn-light" onclick="onClickFileUploadAccept()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
|
|
2210
|
+
</div>
|
|
2211
|
+
</div>
|
|
2196
2212
|
<div class="row">
|
|
2197
2213
|
<div class="col-md-5 formElement"><span><em><strong>showAttachmentButton</strong></em></span></div>
|
|
2198
2214
|
<div class="col-md-5">
|