raise-common-lib-new 0.0.57 → 0.0.59
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/esm2022/lib/form/richtexteditor/index.component.mjs +296 -161
- package/fesm2022/raise-common-lib-new.mjs +289 -156
- package/fesm2022/raise-common-lib-new.mjs.map +1 -1
- package/lib/float-box/index.component.d.ts +2 -2
- package/lib/form/richtexteditor/index.component.d.ts +18 -6
- package/package.json +1 -1
- package/src/assets/img/dialog-narrow.svg +1 -0
|
@@ -37,7 +37,7 @@ import { setCulture, L10n } from '@syncfusion/ej2-base';
|
|
|
37
37
|
import * as i1$4 from '@angular/common/http';
|
|
38
38
|
import { HttpClientModule } from '@angular/common/http';
|
|
39
39
|
import * as i3$1 from '@syncfusion/ej2-angular-splitbuttons';
|
|
40
|
-
import { DropDownButtonModule, SplitButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
|
|
40
|
+
import { DropDownButton, DropDownButtonModule, SplitButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
|
|
41
41
|
import * as i3$2 from '@syncfusion/ej2-angular-buttons';
|
|
42
42
|
import { SwitchModule, CheckBoxModule, RadioButtonModule, ButtonModule } from '@syncfusion/ej2-angular-buttons';
|
|
43
43
|
import { Query } from '@syncfusion/ej2-data';
|
|
@@ -46,9 +46,9 @@ import * as i4$1 from '@syncfusion/ej2-angular-calendars';
|
|
|
46
46
|
import { DatePickerModule, DateRangePickerModule, DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';
|
|
47
47
|
import * as i6$1 from '@syncfusion/ej2-angular-dropdowns';
|
|
48
48
|
import { DropDownListModule, DropDownTreeModule, MultiSelectAllModule, AutoCompleteModule, ListBoxModule } from '@syncfusion/ej2-angular-dropdowns';
|
|
49
|
-
import * as
|
|
49
|
+
import * as i9 from '@syncfusion/ej2-angular-notifications';
|
|
50
50
|
import { SkeletonModule } from '@syncfusion/ej2-angular-notifications';
|
|
51
|
-
import * as
|
|
51
|
+
import * as i10 from '@syncfusion/ej2-angular-richtexteditor';
|
|
52
52
|
import { RichTextEditorAllModule, HtmlEditorService, ToolbarService as ToolbarService$2 } from '@syncfusion/ej2-angular-richtexteditor';
|
|
53
53
|
import * as i2$6 from '@angular/platform-browser';
|
|
54
54
|
import { DiagramModule } from '@syncfusion/ej2-angular-diagrams';
|
|
@@ -20384,6 +20384,7 @@ class RichtexteditorComponent {
|
|
|
20384
20384
|
ref;
|
|
20385
20385
|
http;
|
|
20386
20386
|
dialog;
|
|
20387
|
+
snackBar;
|
|
20387
20388
|
rteObj;
|
|
20388
20389
|
queryCategory;
|
|
20389
20390
|
leftRte;
|
|
@@ -20416,6 +20417,7 @@ class RichtexteditorComponent {
|
|
|
20416
20417
|
focus = new EventEmitter();
|
|
20417
20418
|
blur = new EventEmitter();
|
|
20418
20419
|
actionComplete = new EventEmitter();
|
|
20420
|
+
afterPasteCleanup = new EventEmitter();
|
|
20419
20421
|
family = fontFamily;
|
|
20420
20422
|
fontSize = size;
|
|
20421
20423
|
dialogWidth = "800px";
|
|
@@ -20426,36 +20428,9 @@ class RichtexteditorComponent {
|
|
|
20426
20428
|
size = "";
|
|
20427
20429
|
selectedQuery;
|
|
20428
20430
|
dropValIndex = 0;
|
|
20429
|
-
queryList = [
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
{ id: "Summarize", text: "Summarize" },
|
|
20433
|
-
{ id: "Elaborate", text: "Elaborate" },
|
|
20434
|
-
{ id: "Translate", text: "Translate" },
|
|
20435
|
-
{ id: "SentimentAnalysis", text: "Sentiment Analysis" },
|
|
20436
|
-
];
|
|
20437
|
-
rephraseTyleList = [
|
|
20438
|
-
{ text: "Standard", id: "Standard" },
|
|
20439
|
-
{ text: "Fluent", id: "Fluent" },
|
|
20440
|
-
{ text: "Professional", id: "Professional" },
|
|
20441
|
-
];
|
|
20442
|
-
languageList = [
|
|
20443
|
-
{ id: "EN", text: "English" },
|
|
20444
|
-
{ id: "ZH", text: "Chinese (Simplified)" },
|
|
20445
|
-
{ id: "ES", text: "Spanish" },
|
|
20446
|
-
{ id: "ZHT", text: "Chinese (Traditional)" },
|
|
20447
|
-
{ id: "HI", text: "Hindi" },
|
|
20448
|
-
{ id: "AR", text: "Arabic" },
|
|
20449
|
-
{ id: "BN", text: "Bengali" },
|
|
20450
|
-
{ id: "PT", text: "Portuguese" },
|
|
20451
|
-
{ id: "RU", text: "Russian" },
|
|
20452
|
-
{ id: "JA", text: "Japanese" },
|
|
20453
|
-
{ id: "DE", text: "German" },
|
|
20454
|
-
{ id: "KO", text: "Korean" },
|
|
20455
|
-
{ id: "FR", text: "French" },
|
|
20456
|
-
{ id: "IT", text: "Italian" },
|
|
20457
|
-
{ id: "TR", text: "Turkish" },
|
|
20458
|
-
];
|
|
20431
|
+
queryList = [];
|
|
20432
|
+
rephraseTyleList = [];
|
|
20433
|
+
languageList = [];
|
|
20459
20434
|
promptQuery = "";
|
|
20460
20435
|
isSentimentCheck = false;
|
|
20461
20436
|
subQuery = "";
|
|
@@ -20463,54 +20438,8 @@ class RichtexteditorComponent {
|
|
|
20463
20438
|
chipValue = "Standard";
|
|
20464
20439
|
apiResultData;
|
|
20465
20440
|
AIResult;
|
|
20466
|
-
tools
|
|
20467
|
-
|
|
20468
|
-
items: [
|
|
20469
|
-
// {
|
|
20470
|
-
// tooltipText: "AI Assist",
|
|
20471
|
-
// template:
|
|
20472
|
-
// '<button class="e-tbar-btn e-btn" tabindex="-1" id="ai_assistant_button_tbar" style="width:100%"><div class="e-rte-dropdown-btn-text">AI Assist</div></button>',
|
|
20473
|
-
// },
|
|
20474
|
-
"Bold",
|
|
20475
|
-
"Italic",
|
|
20476
|
-
"Underline",
|
|
20477
|
-
"StrikeThrough",
|
|
20478
|
-
"FontName",
|
|
20479
|
-
"FontSize",
|
|
20480
|
-
"FontColor",
|
|
20481
|
-
"BackgroundColor",
|
|
20482
|
-
"LowerCase",
|
|
20483
|
-
"UpperCase",
|
|
20484
|
-
"|",
|
|
20485
|
-
"CreateTable",
|
|
20486
|
-
"Formats",
|
|
20487
|
-
"Alignments",
|
|
20488
|
-
// {
|
|
20489
|
-
// tooltipText: "Line Height",
|
|
20490
|
-
// template:
|
|
20491
|
-
// '<button class="e-tbar-btn e-btn" tabindex="-1" id="lineheight_tbar" style="width:100%"></button>',
|
|
20492
|
-
// },
|
|
20493
|
-
"bulletFormatList",
|
|
20494
|
-
"NumberFormatList",
|
|
20495
|
-
"Outdent",
|
|
20496
|
-
"Indent",
|
|
20497
|
-
"|",
|
|
20498
|
-
"CreateLink",
|
|
20499
|
-
// {
|
|
20500
|
-
// tooltipText: "",
|
|
20501
|
-
// template:
|
|
20502
|
-
// '<button class="e-tbar-btn e-btn" tabindex="-1" id="custom_tbar" style="width:100%">' +
|
|
20503
|
-
// '<div class="e-tbar-btn-text" style="font-weight: 500;"><img src="/assets/img/file-icon.svg" style="position: relative;top: -2px;"/><div class="uploadActions"><div id="uploadFromUser">Computer File</div><div id="relationDom">Ticket Attachment</div></div></div></button>',
|
|
20504
|
-
// },
|
|
20505
|
-
"|",
|
|
20506
|
-
"FormatPainter",
|
|
20507
|
-
"ClearFormat",
|
|
20508
|
-
"|",
|
|
20509
|
-
"Undo",
|
|
20510
|
-
"Redo",
|
|
20511
|
-
//'SourceCode',
|
|
20512
|
-
],
|
|
20513
|
-
};
|
|
20441
|
+
tools;
|
|
20442
|
+
isDialogVisible = false;
|
|
20514
20443
|
bulletFormatList = {
|
|
20515
20444
|
types: [
|
|
20516
20445
|
{ text: "None", value: "none" },
|
|
@@ -20552,12 +20481,99 @@ class RichtexteditorComponent {
|
|
|
20552
20481
|
},
|
|
20553
20482
|
],
|
|
20554
20483
|
};
|
|
20555
|
-
|
|
20484
|
+
translation;
|
|
20485
|
+
constructor(ref, http, dialog, snackBar) {
|
|
20556
20486
|
this.ref = ref;
|
|
20557
20487
|
this.http = http;
|
|
20558
20488
|
this.dialog = dialog;
|
|
20489
|
+
this.snackBar = snackBar;
|
|
20559
20490
|
}
|
|
20560
20491
|
ngOnInit() {
|
|
20492
|
+
this.translation = JSON.parse(localStorage.getItem("translation")) || {};
|
|
20493
|
+
this.queryList = [
|
|
20494
|
+
{ id: "Rephrase", text: this.translation.REPHRASE || ".Rephrase" },
|
|
20495
|
+
{
|
|
20496
|
+
id: "Grammar",
|
|
20497
|
+
text: this.translation.CORRECT_GRAMMAR || ".Correct Grammar",
|
|
20498
|
+
},
|
|
20499
|
+
{ id: "Summarize", text: this.translation.SUMMARIZE || ".Summarize" },
|
|
20500
|
+
{ id: "Elaborate", text: this.translation.ELABORATE || ".Elaborate" },
|
|
20501
|
+
{ id: "Translate", text: this.translation.TRANSLATE || ".Translate" },
|
|
20502
|
+
{
|
|
20503
|
+
id: "SentimentAnalysis",
|
|
20504
|
+
text: this.translation.SENTIMENT_ANALYSIS || ".Sentiment Analysis",
|
|
20505
|
+
},
|
|
20506
|
+
];
|
|
20507
|
+
this.rephraseTyleList = [
|
|
20508
|
+
{ id: "Standard", text: this.translation.STANDARD || ".Standard" },
|
|
20509
|
+
{ id: "Fluent", text: this.translation.FLUENT || ".Fluent" },
|
|
20510
|
+
{
|
|
20511
|
+
id: "Professional",
|
|
20512
|
+
text: this.translation.PROFESSIONAL || ".Professional",
|
|
20513
|
+
},
|
|
20514
|
+
];
|
|
20515
|
+
this.languageList = [
|
|
20516
|
+
{ id: "EN", text: this.translation.ENGLISH || ".English" },
|
|
20517
|
+
{
|
|
20518
|
+
id: "ZH",
|
|
20519
|
+
text: this.translation.CHINESE_SIMPLIFIED || ".Chinese (Simplified)",
|
|
20520
|
+
},
|
|
20521
|
+
{ id: "ES", text: this.translation.SPANISH || ".Spanish" },
|
|
20522
|
+
{
|
|
20523
|
+
id: "ZHT",
|
|
20524
|
+
text: this.translation.CHINESE_TRADITIONAL || ".Chinese (Traditional)",
|
|
20525
|
+
},
|
|
20526
|
+
{ id: "HI", text: this.translation.HINDI || ".Hindi" },
|
|
20527
|
+
{ id: "AR", text: this.translation.ARABIC || ".Arabic" },
|
|
20528
|
+
{ id: "BN", text: this.translation.BENGALI || ".Bengali" },
|
|
20529
|
+
{ id: "PT", text: this.translation.PORTUGUESE || ".Portuguese" },
|
|
20530
|
+
{ id: "RU", text: this.translation.RUSSIAN || ".Russian" },
|
|
20531
|
+
{ id: "JA", text: this.translation.JAPANESE || ".Japanese" },
|
|
20532
|
+
{ id: "DE", text: this.translation.GERMAN || ".German" },
|
|
20533
|
+
{ id: "KO", text: this.translation.KOREAN || ".Korean" },
|
|
20534
|
+
{ id: "FR", text: this.translation.FRENCH || ".French" },
|
|
20535
|
+
{ id: "IT", text: this.translation.ITALIAN || ".Italian" },
|
|
20536
|
+
{ id: "TR", text: this.translation.TURKISH || ".Turkish" },
|
|
20537
|
+
];
|
|
20538
|
+
const dynamicAiButtonId = `ai_assistant_button_tbar_${this.editorId}`;
|
|
20539
|
+
this.tools = {
|
|
20540
|
+
enableFloating: false,
|
|
20541
|
+
items: [
|
|
20542
|
+
{
|
|
20543
|
+
tooltipText: this.translation.AI_ASSIST || ".AI Assist",
|
|
20544
|
+
template: `<button class="e-tbar-btn e-btn" tabindex="-1" id="${dynamicAiButtonId}" style="width:100%">
|
|
20545
|
+
<div class="e-rte-dropdown-btn-text">${this.translation.AI_ASSIST || ".AI Assist"}</div>
|
|
20546
|
+
</button>`,
|
|
20547
|
+
},
|
|
20548
|
+
"Bold",
|
|
20549
|
+
"Italic",
|
|
20550
|
+
"Underline",
|
|
20551
|
+
"StrikeThrough",
|
|
20552
|
+
"FontName",
|
|
20553
|
+
"FontSize",
|
|
20554
|
+
"FontColor",
|
|
20555
|
+
"BackgroundColor",
|
|
20556
|
+
"LowerCase",
|
|
20557
|
+
"UpperCase",
|
|
20558
|
+
"|",
|
|
20559
|
+
"CreateTable",
|
|
20560
|
+
"Formats",
|
|
20561
|
+
"Alignments",
|
|
20562
|
+
"bulletFormatList",
|
|
20563
|
+
"NumberFormatList",
|
|
20564
|
+
"Outdent",
|
|
20565
|
+
"Indent",
|
|
20566
|
+
"|",
|
|
20567
|
+
"CreateLink",
|
|
20568
|
+
"|",
|
|
20569
|
+
"FormatPainter",
|
|
20570
|
+
"ClearFormat",
|
|
20571
|
+
"|",
|
|
20572
|
+
"Undo",
|
|
20573
|
+
"Redo",
|
|
20574
|
+
//'SourceCode',
|
|
20575
|
+
],
|
|
20576
|
+
};
|
|
20561
20577
|
if (this.showTicketAttachment) {
|
|
20562
20578
|
const item = {
|
|
20563
20579
|
tooltipText: "",
|
|
@@ -20595,12 +20611,12 @@ class RichtexteditorComponent {
|
|
|
20595
20611
|
// });
|
|
20596
20612
|
// splitButton.appendTo("#lineheight_tbar");
|
|
20597
20613
|
// // ai assist
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20614
|
+
let aiassistantButton = new DropDownButton({
|
|
20615
|
+
items: this.queryList,
|
|
20616
|
+
// iconCss: "e-btn-icon e-icons e-assistview-icon e-icon-left",
|
|
20617
|
+
select: (args) => this.aiQuerySelectedMenu(args),
|
|
20618
|
+
});
|
|
20619
|
+
aiassistantButton.appendTo("#ai_assistant_button_tbar_" + this.editorId);
|
|
20604
20620
|
this.created.emit();
|
|
20605
20621
|
}
|
|
20606
20622
|
onSelect(args) {
|
|
@@ -20615,7 +20631,7 @@ class RichtexteditorComponent {
|
|
|
20615
20631
|
this.rteObj.formatter.enableUndo(this.rteObj);
|
|
20616
20632
|
}
|
|
20617
20633
|
aiQuerySelectedMenu(args) {
|
|
20618
|
-
this.dialogueOpen(args.item.
|
|
20634
|
+
this.dialogueOpen(args.item.id);
|
|
20619
20635
|
}
|
|
20620
20636
|
dialogueOpen(selectedQuery) {
|
|
20621
20637
|
var selectionText = this.rteObj.getSelectedHtml();
|
|
@@ -20631,11 +20647,14 @@ class RichtexteditorComponent {
|
|
|
20631
20647
|
this.updateAISugesstionsData(selectedQuery);
|
|
20632
20648
|
}
|
|
20633
20649
|
else {
|
|
20634
|
-
this.showMsg = true;
|
|
20635
|
-
setTimeout(() => {
|
|
20636
|
-
|
|
20637
|
-
}, 3000);
|
|
20638
|
-
console.log("Please select the content to perform the AI operation.");
|
|
20650
|
+
// this.showMsg = true;
|
|
20651
|
+
// setTimeout(() => {
|
|
20652
|
+
// this.showMsg = false;
|
|
20653
|
+
// }, 3000);
|
|
20654
|
+
// console.log("Please select the content to perform the AI operation.");
|
|
20655
|
+
this.dialog.showNotification(this.translation.FIRST_SELECT_SOME_TEXT || "First, Select some text", {
|
|
20656
|
+
status: "Warning",
|
|
20657
|
+
});
|
|
20639
20658
|
}
|
|
20640
20659
|
}
|
|
20641
20660
|
updateAISugesstionsData(selectedQuery) {
|
|
@@ -20650,14 +20669,14 @@ class RichtexteditorComponent {
|
|
|
20650
20669
|
case "Rephrase":
|
|
20651
20670
|
this.subQuery = this.chipValue + " rephrase the upcoming sentence.";
|
|
20652
20671
|
break;
|
|
20653
|
-
case "
|
|
20672
|
+
case "Grammar":
|
|
20654
20673
|
this.subQuery = "Correct the grammar of the upcoming sentence.";
|
|
20655
20674
|
break;
|
|
20656
20675
|
case "Translate":
|
|
20657
20676
|
this.subQuery =
|
|
20658
20677
|
"Translate the upcoming sentence to " + this.translatelanguage + ".";
|
|
20659
20678
|
break;
|
|
20660
|
-
case "
|
|
20679
|
+
case "SentimentAnalysis":
|
|
20661
20680
|
this.isSentimentCheck = true;
|
|
20662
20681
|
this.subQuery =
|
|
20663
20682
|
'Analyze the sentiment and grammar of the following paragraphs and provide the expression score with an emoji followed by the sentiment in the format: "😊 Neutral". \n\nNOTE: Avoid any additional text or explanation:';
|
|
@@ -20676,6 +20695,9 @@ class RichtexteditorComponent {
|
|
|
20676
20695
|
this.regenerateButton.disabled = true;
|
|
20677
20696
|
this.copyButton.disabled = true;
|
|
20678
20697
|
this.replaceButton.disabled = true;
|
|
20698
|
+
if (this.isDialogVisible) {
|
|
20699
|
+
this.promptQuery = this.leftRte.getHtml();
|
|
20700
|
+
}
|
|
20679
20701
|
this.apiResultData = this.getResponseFromOpenAI(this.subQuery, this.promptQuery);
|
|
20680
20702
|
this.apiResultData.then((result) => {
|
|
20681
20703
|
this.AIResult = this.isSentimentCheck ? this.promptQuery : result;
|
|
@@ -20695,12 +20717,7 @@ class RichtexteditorComponent {
|
|
|
20695
20717
|
this.regenerateButton.disabled = noResultsFound;
|
|
20696
20718
|
this.copyButton.disabled = noResultsFound;
|
|
20697
20719
|
this.replaceButton.disabled = noResultsFound;
|
|
20698
|
-
|
|
20699
|
-
"none";
|
|
20700
|
-
document.getElementById("rightRte").style.display =
|
|
20701
|
-
noResultsFound ? "none" : "";
|
|
20702
|
-
console.log(noResultsFound, document.getElementById("rightRte").style);
|
|
20703
|
-
// this.ref.markForCheck();
|
|
20720
|
+
this.ref.markForCheck();
|
|
20704
20721
|
});
|
|
20705
20722
|
}
|
|
20706
20723
|
}
|
|
@@ -20708,6 +20725,7 @@ class RichtexteditorComponent {
|
|
|
20708
20725
|
// this.toastObj.show();
|
|
20709
20726
|
}
|
|
20710
20727
|
}
|
|
20728
|
+
fullResponse = "";
|
|
20711
20729
|
async getResponseFromOpenAI(subQuery, promptQuery) {
|
|
20712
20730
|
const messages = [
|
|
20713
20731
|
{
|
|
@@ -20729,33 +20747,77 @@ class RichtexteditorComponent {
|
|
|
20729
20747
|
frequency_penalty: 0,
|
|
20730
20748
|
presence_penalty: 0,
|
|
20731
20749
|
};
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
20735
|
-
|
|
20736
|
-
|
|
20737
|
-
resolve("request error!");
|
|
20738
|
-
throw new Error("Invalid response format from AI service");
|
|
20739
|
-
}
|
|
20740
|
-
resolve(res["choices"][0].message.content);
|
|
20750
|
+
try {
|
|
20751
|
+
const response = await fetch("api/ai/chat-stream", {
|
|
20752
|
+
method: "POST",
|
|
20753
|
+
headers: { "Content-Type": "application/json" },
|
|
20754
|
+
body: JSON.stringify(param),
|
|
20741
20755
|
});
|
|
20742
|
-
|
|
20756
|
+
if (!response.ok) {
|
|
20757
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
20758
|
+
}
|
|
20759
|
+
document.getElementById("skeletonId").style.display =
|
|
20760
|
+
"none";
|
|
20761
|
+
document.getElementById("rightRte").style.display = "";
|
|
20762
|
+
this.ref.detectChanges();
|
|
20763
|
+
this.fullResponse = "";
|
|
20764
|
+
this.rightRte.value = "";
|
|
20765
|
+
const reader = response.body.getReader();
|
|
20766
|
+
const decoder = new TextDecoder();
|
|
20767
|
+
while (true) {
|
|
20768
|
+
const { done, value } = await reader.read();
|
|
20769
|
+
if (done) {
|
|
20770
|
+
break;
|
|
20771
|
+
}
|
|
20772
|
+
const chunk = decoder.decode(value, { stream: true });
|
|
20773
|
+
const lines = chunk.split("\n");
|
|
20774
|
+
for (const line of lines) {
|
|
20775
|
+
if (line.startsWith("data: ")) {
|
|
20776
|
+
const data = line.substring(6).trim();
|
|
20777
|
+
if (data === "[DONE]") {
|
|
20778
|
+
//this.showDialog();
|
|
20779
|
+
return this.fullResponse;
|
|
20780
|
+
}
|
|
20781
|
+
try {
|
|
20782
|
+
const parsed = JSON.parse(data);
|
|
20783
|
+
const content = parsed.choices?.[0]?.delta?.content;
|
|
20784
|
+
if (content) {
|
|
20785
|
+
this.fullResponse += content;
|
|
20786
|
+
setTimeout(() => this.scrollToBottom(content));
|
|
20787
|
+
}
|
|
20788
|
+
}
|
|
20789
|
+
catch (e) {
|
|
20790
|
+
console.error("Parse error:", e, "Data:", data);
|
|
20791
|
+
}
|
|
20792
|
+
}
|
|
20793
|
+
}
|
|
20794
|
+
}
|
|
20795
|
+
return this.fullResponse;
|
|
20796
|
+
}
|
|
20797
|
+
catch (error) {
|
|
20798
|
+
console.error("Stream error:", error);
|
|
20799
|
+
throw error;
|
|
20800
|
+
}
|
|
20743
20801
|
}
|
|
20744
20802
|
dialogShow() {
|
|
20745
|
-
this.regenerateButton
|
|
20746
|
-
|
|
20747
|
-
});
|
|
20748
|
-
this.copyButton
|
|
20749
|
-
|
|
20750
|
-
});
|
|
20751
|
-
this.replaceButton
|
|
20752
|
-
|
|
20753
|
-
|
|
20754
|
-
|
|
20755
|
-
|
|
20756
|
-
|
|
20757
|
-
|
|
20758
|
-
|
|
20803
|
+
// this.regenerateButton!.element.addEventListener("click", () => {
|
|
20804
|
+
// this.updateAISugesstions();
|
|
20805
|
+
// });
|
|
20806
|
+
// this.copyButton!.element.addEventListener("click", () => {
|
|
20807
|
+
// this.copyTextToClipboard(this.AIResult);
|
|
20808
|
+
// });
|
|
20809
|
+
// this.replaceButton!.element.addEventListener("click", () => {
|
|
20810
|
+
// let range: Range = (
|
|
20811
|
+
// this.rteObj as any
|
|
20812
|
+
// ).formatter.editorManager.nodeSelection.getRange(
|
|
20813
|
+
// (this.rteObj as any).contentModule.getDocument()
|
|
20814
|
+
// );
|
|
20815
|
+
// (this.rteObj as any).formatter.editorManager.nodeSelection.restore(range);
|
|
20816
|
+
// (this.rteObj as any).executeCommand("insertHTML", this.AIResult, {
|
|
20817
|
+
// undo: true,
|
|
20818
|
+
// });
|
|
20819
|
+
// this.closeDialog();
|
|
20820
|
+
// });
|
|
20759
20821
|
this.AIdialog.element.style.display = "";
|
|
20760
20822
|
}
|
|
20761
20823
|
closeDialog() {
|
|
@@ -20771,33 +20833,54 @@ class RichtexteditorComponent {
|
|
|
20771
20833
|
this.size = "";
|
|
20772
20834
|
}
|
|
20773
20835
|
copyTextToClipboard(text) {
|
|
20774
|
-
if (
|
|
20775
|
-
|
|
20776
|
-
.writeText(text)
|
|
20777
|
-
.then(() => {
|
|
20778
|
-
console.log("Text copied to clipboard successfully!");
|
|
20779
|
-
})
|
|
20780
|
-
.catch((err) => {
|
|
20781
|
-
console.error("Failed to copy text: ", err);
|
|
20782
|
-
});
|
|
20836
|
+
if (!this.rightRte) {
|
|
20837
|
+
return;
|
|
20783
20838
|
}
|
|
20784
|
-
|
|
20785
|
-
|
|
20786
|
-
|
|
20787
|
-
|
|
20788
|
-
|
|
20789
|
-
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
|
|
20793
|
-
|
|
20794
|
-
|
|
20795
|
-
|
|
20839
|
+
this.rightRte.selectAll();
|
|
20840
|
+
const selection = window.getSelection();
|
|
20841
|
+
if (!selection || selection.rangeCount === 0) {
|
|
20842
|
+
console.error("No selected content");
|
|
20843
|
+
return;
|
|
20844
|
+
}
|
|
20845
|
+
try {
|
|
20846
|
+
const range = selection.getRangeAt(0);
|
|
20847
|
+
selection.removeAllRanges();
|
|
20848
|
+
selection.addRange(range);
|
|
20849
|
+
const success = document.execCommand("copy");
|
|
20850
|
+
if (success) {
|
|
20851
|
+
console.log("Text copied to clipboard successfully!");
|
|
20796
20852
|
}
|
|
20797
|
-
|
|
20798
|
-
|
|
20853
|
+
else {
|
|
20854
|
+
console.error("Failed to copy text");
|
|
20799
20855
|
}
|
|
20800
20856
|
}
|
|
20857
|
+
catch (err) {
|
|
20858
|
+
console.error("Failed to copy text: ", err);
|
|
20859
|
+
}
|
|
20860
|
+
// if (navigator.clipboard) {
|
|
20861
|
+
// navigator.clipboard
|
|
20862
|
+
// .writeText(text)
|
|
20863
|
+
// .then(() => {
|
|
20864
|
+
// console.log("Text copied to clipboard successfully!");
|
|
20865
|
+
// })
|
|
20866
|
+
// .catch((err) => {
|
|
20867
|
+
// console.error("Failed to copy text: ", err);
|
|
20868
|
+
// });
|
|
20869
|
+
// } else {
|
|
20870
|
+
// // Fallback for browsers that do not support the Clipboard API
|
|
20871
|
+
// const textarea = document.createElement("textarea");
|
|
20872
|
+
// textarea.value = text;
|
|
20873
|
+
// document.body.appendChild(textarea);
|
|
20874
|
+
// textarea.select();
|
|
20875
|
+
// try {
|
|
20876
|
+
// document.execCommand("copy");
|
|
20877
|
+
// console.log("Text copied to clipboard using execCommand");
|
|
20878
|
+
// } catch (err) {
|
|
20879
|
+
// console.error("Failed to copy text: ", err);
|
|
20880
|
+
// } finally {
|
|
20881
|
+
// document.body.removeChild(textarea);
|
|
20882
|
+
// }
|
|
20883
|
+
// }
|
|
20801
20884
|
}
|
|
20802
20885
|
onOverlayClick() {
|
|
20803
20886
|
let activeEle = this.AIdialog.element.querySelector(".char_block.e-active");
|
|
@@ -20809,8 +20892,8 @@ class RichtexteditorComponent {
|
|
|
20809
20892
|
onQuerySelect(args) {
|
|
20810
20893
|
// this.chipList.selectedChips = 0;
|
|
20811
20894
|
this.translatelanguage = "EN";
|
|
20812
|
-
this.selectedQuery = args.itemData.
|
|
20813
|
-
this.updateAISugesstionsData(args.itemData.
|
|
20895
|
+
this.selectedQuery = args.itemData.id;
|
|
20896
|
+
this.updateAISugesstionsData(args.itemData.id);
|
|
20814
20897
|
}
|
|
20815
20898
|
onLanguageSelect(args) {
|
|
20816
20899
|
this.translatelanguage = args.itemData.id;
|
|
@@ -20832,7 +20915,6 @@ class RichtexteditorComponent {
|
|
|
20832
20915
|
this.input.emit(args);
|
|
20833
20916
|
}
|
|
20834
20917
|
_actionComplete(args) {
|
|
20835
|
-
console.log(args);
|
|
20836
20918
|
if (args.requestType == "UL") {
|
|
20837
20919
|
if (args.elements[0].parentElement.style.listStyleType == "dash") {
|
|
20838
20920
|
// Apply custom styling for dash bullets
|
|
@@ -20882,6 +20964,17 @@ class RichtexteditorComponent {
|
|
|
20882
20964
|
});
|
|
20883
20965
|
}
|
|
20884
20966
|
}
|
|
20967
|
+
_afterPasteCleanup(args) {
|
|
20968
|
+
args.value = this.unescapeHtml(args.value);
|
|
20969
|
+
}
|
|
20970
|
+
unescapeHtml(escapedHtml) {
|
|
20971
|
+
return escapedHtml
|
|
20972
|
+
.replace(/</g, "<")
|
|
20973
|
+
.replace(/>/g, ">")
|
|
20974
|
+
.replace(/&/g, "&")
|
|
20975
|
+
.replace(/"/g, '"')
|
|
20976
|
+
.replace(/'/g, "'");
|
|
20977
|
+
}
|
|
20885
20978
|
hideToast() {
|
|
20886
20979
|
this.showMsg = false;
|
|
20887
20980
|
}
|
|
@@ -20893,13 +20986,51 @@ class RichtexteditorComponent {
|
|
|
20893
20986
|
this.size = "largest"; // 设置为最大化
|
|
20894
20987
|
}
|
|
20895
20988
|
}
|
|
20896
|
-
|
|
20897
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RichtexteditorComponent, selector: "rs-richtext-editor", inputs: { placeholder: "placeholder", value: "value", editorId: "editorId", saveInterval: "saveInterval", height: "height", autoSaveOnIdle: "autoSaveOnIdle", disabled: "disabled", target: "target", insertImageSettings: "insertImageSettings", showTicketAttachment: "showTicketAttachment" }, outputs: { toolbarClick: "toolbarClick", change: "change", created: "created", actionBegin: "actionBegin", input: "input", focus: "focus", blur: "blur", actionComplete: "actionComplete" }, viewQueries: [{ propertyName: "rteObj", first: true, predicate: ["editor"], descendants: true }, { propertyName: "queryCategory", first: true, predicate: ["queryCategory"], descendants: true }, { propertyName: "leftRte", first: true, predicate: ["leftRte"], descendants: true }, { propertyName: "rightRte", first: true, predicate: ["rightRte"], descendants: true }, { propertyName: "AIdialog", first: true, predicate: ["AIdialog"], descendants: true, static: true }, { propertyName: "sentimentButton", first: true, predicate: ["sentimentButton"], descendants: true }, { propertyName: "regenerateButton", first: true, predicate: ["regenerateButton"], descendants: true }, { propertyName: "copyButton", first: true, predicate: ["copyButton"], descendants: true }, { propertyName: "replaceButton", first: true, predicate: ["replaceButton"], descendants: true }], ngImport: i0, template: "<div class=\"editor_box\" id=\"container\">\r\n <ejs-richtexteditor\r\n #editor\r\n [id]=\"editorId\"\r\n [height]=\"height\"\r\n [saveInterval]=\"0\"\r\n [autoSaveOnIdle]=\"autoSaveOnIdle\"\r\n [toolbarSettings]=\"tools\"\r\n [bulletFormatList]=\"bulletFormatList\"\r\n [numberFormatList]=\"numberFormatList\"\r\n [fontFamily]=\"family\"\r\n [fontSize]=\"fontSize\"\r\n [disabled]=\"disabled\"\r\n [insertImageSettings]=\"insertImageSettings\"\r\n [(ngModel)]=\"value\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (change)=\"onContentChange($event)\"\r\n (created)=\"onCreate()\"\r\n (toolbarClick)=\"_toolbarClick($event)\"\r\n (input)=\"_input($event)\"\r\n (focus)=\"_focus($event)\"\r\n (blur)=\"_blur($event)\"\r\n (actionComplete)=\"_actionComplete($event)\"\r\n (dialogOpen)=\"_dialogOpen($event)\"\r\n >\r\n </ejs-richtexteditor>\r\n <ejs-dialog\r\n #AIdialog\r\n id=\"AIdialog\"\r\n [ngClass]=\"size\"\r\n [visible]=\"false\"\r\n [target]=\"target\"\r\n [isModal]=\"true\"\r\n [height]=\"dialogHeight\"\r\n [width]=\"dialogWidth\"\r\n maxHeight=\"80%\"\r\n cssClass=\"e-rte-elements custom-dialog-rte\"\r\n zIndex=\"1000\"\r\n (close)=\"closeDialog()\"\r\n (overlayClick)=\"onOverlayClick()\"\r\n (open)=\"dialogShow()\"\r\n >\r\n <ng-template #header>\r\n <div class=\"header-title\">AI Assist</div>\r\n <div class=\"header-buttons\">\r\n <div *ngIf=\"showZoomBtn\" class=\"header-zoom\" (click)=\"onZoom()\">\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size === 'largest'\"\r\n src=\"../../../assets/img/dialog-shrink.svg\"\r\n />\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size !== 'largest'\"\r\n src=\"../../../assets/img/dialog-grow.svg\"\r\n />\r\n </div>\r\n <div class=\"header-btn\" (click)=\"closeDialog()\">\r\n <img class=\"header-icon\" src=\"../../../assets/img/dialog-close.svg\" />\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #footerTemplate>\r\n <div id=\"dialog-footer-content\">\r\n <div class=\"custom-row-0\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"width: 100%; align-items: center; justify-content: left\"\r\n ></div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <div style=\"text-align: right; width: 100%\">\r\n <button\r\n ejs-button\r\n #sentimentButton\r\n content=\"\uD83D\uDE0A Neutral\"\r\n disabled=\"false\"\r\n cssClass=\"sentiment\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #copyButton\r\n content=\"Copy\"\r\n disabled=\"false\"\r\n class=\"copy-btn\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #replaceButton\r\n content=\"Replace\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n ></button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #content>\r\n <div class=\"dialog-content\" style=\"height: 100%\">\r\n <div class=\"custom-row-0\">\r\n <div class=\"cuscol-0\" style=\"width: 100%\">\r\n <ejs-dropdownlist\r\n #queryCategory\r\n style=\"width: 200px\"\r\n id=\"queryCategory\"\r\n [dataSource]=\"queryList\"\r\n index=\"0\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onQuerySelect($event)\"\r\n >\r\n Rephrase\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Rephrase'\"\r\n id=\"chips-container\"\r\n #chipList\r\n style=\"width: 160px\"\r\n [(ngModel)]=\"chipValue\"\r\n [dataSource]=\"rephraseTyleList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onChipClick($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Translate'\"\r\n #languageCategory\r\n index=\"0\"\r\n id=\"language-Category\"\r\n [dataSource]=\"languageList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onLanguageSelect($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n justify-content: space-between;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <!-- <ejs-chiplist\r\n id=\"chips-container\"\r\n #chipList\r\n [chips]=\"['Standard', 'Fluent', 'Professional']\"\r\n selection=\"Single\"\r\n cssClass=\"e-outline\"\r\n [selectedChips]=\"[0]\"\r\n (click)=\"onChipClick($event)\"\r\n >\r\n </ejs-chiplist> -->\r\n <button\r\n ejs-button\r\n #regenerateButton\r\n content=\"Regenerate\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n ></button>\r\n </div>\r\n </div>\r\n <div class=\"custom-row-1\" style=\"height: calc(100% - 40px)\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n justify-content: left;\r\n \"\r\n >\r\n <div style=\"text-align: left; height: 100%\">\r\n <ejs-richtexteditor\r\n #leftRte\r\n id=\"leftRte\"\r\n height=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n placeholder=\"Analysis of AI Support\"\r\n cssClass=\"e-outline\"\r\n >\r\n </ejs-richtexteditor>\r\n </div>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n display: flex;\r\n justify-content: space-between;\r\n width: 100%;\r\n height: 100%;\r\n \"\r\n >\r\n <div style=\"text-align: left; width: 100%; height: 100%\">\r\n <ejs-richtexteditor\r\n #rightRte\r\n id=\"rightRte\"\r\n height=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n placeholder=\"Analysis of AI Support\"\r\n cssClass=\"e-outline\"\r\n >\r\n <!-- style=\"display: none\" -->\r\n </ejs-richtexteditor>\r\n <div\r\n class=\"no-results-found\"\r\n id=\"no-results-found\"\r\n style=\"display: none; height: 244px; align-content: center\"\r\n >\r\n <img\r\n height=\"50\"\r\n width=\"50\"\r\n src=\"https://storage.googleapis.com/cdn-bolddesk/agent-angular-app/images/light/no-records-warning.svg\"\r\n />\r\n <div>No results found</div>\r\n </div>\r\n <div id=\"skeletonId\">\r\n <ejs-skeleton\r\n #skeletonId1\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"100%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId2\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"90%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId3\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"70%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId4\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"50%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId5\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"30%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId6\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"10%\"\r\n ></ejs-skeleton\r\n ><br />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ejs-dialog>\r\n <div class=\"toast\" *ngIf=\"showMsg\">\r\n <span class=\"toast_text\">First, Select some text</span\r\n ><span class=\"close_icon\" (click)=\"hideToast()\"></span>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.editor_box{position:relative;width:100%;height:100%}.editor_box .toast{position:absolute;left:35%;top:110px;z-index:1;width:400px;border-radius:4px;border:1px solid #e8f2ff;background:#f4f8ff;padding:4px 12px;color:#1f3f5c;font-size:12px;font-style:normal;font-weight:400;height:32px;font-family:Arial;display:flex;align-items:center;justify-content:space-between}.editor_box .toast .toast_text:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2217%22 viewBox%3D%220 0 16 17%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Ccircle cx%3D%228%22 cy%3D%228.5%22 r%3D%226.5%22 stroke%3D%22%236B6B6B%22%2F%3E%0D%3Cpath d%3D%22M8 8.5V11.5%22 stroke%3D%22%236B6B6B%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Ccircle cx%3D%228%22 cy%3D%225.5%22 r%3D%221%22 fill%3D%22%236B6B6B%22%2F%3E%0D%3C%2Fsvg%3E%0D\");display:inline-block;width:16px;height:16px;vertical-align:bottom;margin-right:8px}.editor_box .toast .close_icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M3.50021 12.9999L12.5001 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Cpath d%3D%22M12.4999 12.9999L3.50007 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");cursor:pointer;display:inline-block;width:16px;height:16px}.custom-dialog-rte{padding:0 20px;border-radius:10px}.custom-row-0,.custom-row-1,.custom-row-2{display:flex;align-items:center;padding:12px 24px}.e-rte-dropdown-btn-text{padding-left:4px}.no-results-found{text-align:center}.no-results-found img{display:block;margin:0 auto}.e-custom{margin-right:.5rem;border-radius:25px!important}.custom-dialog-rte .skeleton-rectangle{border-radius:4px}@media (max-width: 767px){.cuscol-0,.cuscol-1,.cuscol-2{justify-content:center!important}.custom-row-0,.custom-row-1,.custom-row-2{flex-direction:column!important}.cuscol-1{border-right:none!important}.cuscol-0{width:100%;align-items:center}::ng-deep:host .e-dialog{max-height:80%!important}.custom-dialog-rte .e-dialog .e-dlg-content{overflow-y:auto!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor{height:100px!important}.cuscol-noresult{padding-bottom:20px!important}.e-chip-list{padding:5px!important}.cuscol{padding-right:.2rem!important;width:auto!important}.custom-row-1{height:auto!important}}.cuscol-1{display:flex;flex-direction:row!important}.cuscol-2{display:flex;flex-direction:column!important}.sentiment{color:#000!important}.custom-dialog-rte .e-dialog .e-dlg-content{padding:0!important;overflow-y:hidden}.custom-dialog-rte .e-dialog .e-dlg-header-content{padding:20px 0!important;border:0!important}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header{display:flex;align-items:center;line-height:18px;justify-content:space-between}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header .header-title{font-family:Arial;font-size:15px;font-weight:700;font-style:normal}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons{display:flex}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons img{width:16px;height:16px;cursor:pointer;padding:2px;margin-left:12px}.custom-dialog-rte .e-dialog .e-footer-content{padding:0!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor.e-rte-tb-expand .e-rte-content,.e-richtexteditor.e-rte-tb-expand .e-source-content{border:0;border-bottom:1px solid #dee2e6;border-top:0px solid #dee2e6!important}.custom-dialog-rte .dialog-content .custom-row-0{border-top:0px solid #ddd!important;padding:0;margin-bottom:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-0{justify-content:left;border-right:none!important;padding:0;display:flex;gap:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1{padding:0;margin-left:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1 .e-primary{color:#44566c;border-radius:4px;border:1px solid #dbe1e7;background:#fff;width:87px;margin:0;padding:2px 12px;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px;height:28px}.custom-dialog-rte .dialog-content .custom-row-1{padding:0;height:calc(100% - 40px);gap:12px}.custom-dialog-rte .e-footer-content{border:0}.custom-dialog-rte .e-footer-content .custom-row-0{padding:20px 0}.custom-dialog-rte .e-footer-content .e-control.e-btn{font-family:Arial;font-size:12px;line-height:14px;padding:2px 12px;height:28px;background:#fff;color:#44566c}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn{border-color:#dbe1e7}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Crect width%3D%2216%22 height%3D%2216%22 fill%3D%22white%22%2F%3E%0D%3Crect x%3D%224.5%22 y%3D%224.5%22 width%3D%229%22 height%3D%229%22 rx%3D%221.5%22 stroke%3D%22%236C7C90%22%2F%3E%0D%3Cpath d%3D%22M11.5 2.5H4.5C3.39543 2.5 2.5 3.39543 2.5 4.5V11.5%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");vertical-align:middle;margin-right:6px}.custom-dialog-rte .e-footer-content .e-control.e-btn.e-primary{color:#fff;background:#1364b3}.e-dialog.largest{width:96vw!important;height:88vh!important;max-height:88vh;max-width:2100px}::ng-deep ol.custom-list{list-style:none!important;counter-reset:list-counter}::ng-deep ol.custom-list li{counter-increment:list-counter}::ng-deep ol.parentheses li::marker{content:\"(\" counter(list-counter) \") \"}::ng-deep .e-tiempos-headline{font-family:Tiempos Headline Semibold!important}::ng-deep .e-avenir-lt-pro-black{font-family:\"Avenir LT Pro 65 Medium\"!important}::ng-deep .e-avenir-lt-pro-black-oblique{font-family:Avenir LT Pro-Black Oblique!important}::ng-deep .e-avenir-lt-pro-heavy{font-family:\"Avenir LT Pro 55 Roman\"!important}::ng-deep .e-avenir-lt-pro-heavy-oblique{font-family:Avenir LT Pro-Heavy Oblique!important}::ng-deep .e-avenir-lt-pro-light{font-family:\"Avenir LT Pro 35 Light\"!important}::ng-deep .e-avenir-lt-pro-light-oblique{font-family:Avenir LT Pro-Light Oblique!important}::ng-deep .e-avenir-lt-pro-medium{font-family:Avenir LT Pro-Medium!important}::ng-deep .e-avenir-lt-pro-medium-oblique{font-family:Avenir LT Pro-Medium Oblique!important}::ng-deep .e-avenir-next-lt-pro-bold{font-family:AvenirNext LT Pro Bold!important}::ng-deep .e-avenir-next-lt-pro-demi{font-family:AvenirNext LT Pro Regular!important}::ng-deep .e-avenir-next-lt-pro-demilt{font-family:Avenir Next LT Pro-Demilt!important}::ng-deep .e-avenir-next-lt-pro-heavy{font-family:AvenirNext LT Pro Heavy!important}::ng-deep .e-avenir-next-lt-pro-heavylt{font-family:AvenirNext LT Pro Heavylt!important}::ng-deep .e-avenir-next-lt-pro-it{font-family:Avenir Next LT Pro-It!important}::ng-deep .e-avenir-next-lt-pro-light{font-family:Avenir Next LT Pro Light!important}::ng-deep .e-avenir-next-lt-pro-mediumlt{font-family:AvenirNext LT Pro Medium!important}::ng-deep .e-avenir-next-lt-pro-regular{font-family:Avenir Next LT Pro-Regular!important}::ng-deep .e-avenir-next-lt-pro-ultlt{font-family:AvenirNext LT Pro UltLight!important}::ng-deep .e-avenir-next-lt-pro-ultltlt{font-family:AvenirNext LT Pro UltLightlt!important}::ng-deep .e-source-han-sans-cn-extralight{font-family:\\601d\\6e90\\9ed1\\4f53 CN ExtraLight!important}::ng-deep .e-source-han-sans-cn-regular{font-family:Source Han Sans CN!important}::ng-deep .e-source-han-sans-cn-medium{font-family:\\601d\\6e90\\9ed1\\4f53 CN Medium!important}::ng-deep .e-source-han-sans-cn-bold{font-family:\\601d\\6e90\\9ed1\\4f53 CN!important}::ng-deep .e-ping-fang-sc-light{font-family:\\82f9\\65b9-\\7b80!important}::ng-deep .e-ping-fang-sc-medium{font-family:Ping Fang SC-Medium!important}::ng-deep .e-ping-fang-sc-regular{font-family:Ping Fang SC-Regular!important}::ng-deep .e-ping-fang-sc-semibold{font-family:Ping Fang SC-Semibold!important}.e-color-palette{width:270px!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$2.ButtonComponent, selector: "[ejs-button]", inputs: ["content", "cssClass", "disabled", "enableHtmlSanitizer", "enablePersistence", "enableRtl", "iconCss", "iconPosition", "isPrimary", "isToggle", "locale"], outputs: ["created"] }, { kind: "component", type: i6.DialogComponent, selector: "ejs-dialog", inputs: ["allowDragging", "animationSettings", "buttons", "closeOnEscape", "content", "cssClass", "enableHtmlSanitizer", "enablePersistence", "enableResize", "enableRtl", "footerTemplate", "header", "height", "isModal", "locale", "minHeight", "position", "resizeHandles", "showCloseIcon", "target", "visible", "width", "zIndex"], outputs: ["beforeClose", "beforeOpen", "beforeSanitizeHtml", "close", "created", "destroyed", "drag", "dragStart", "dragStop", "open", "overlayClick", "resizeStart", "resizeStop", "resizing", "visibleChange"] }, { kind: "component", type: i6$1.DropDownListComponent, selector: "ejs-dropdownlist", inputs: ["actionFailureTemplate", "allowFiltering", "allowObjectBinding", "cssClass", "dataSource", "enablePersistence", "enableRtl", "enableVirtualization", "enabled", "fields", "filterBarPlaceholder", "filterType", "floatLabelType", "footerTemplate", "groupTemplate", "headerTemplate", "htmlAttributes", "ignoreAccent", "ignoreCase", "index", "isDeviceFullScreen", "itemTemplate", "locale", "noRecordsTemplate", "placeholder", "popupHeight", "popupWidth", "query", "readonly", "showClearButton", "sortOrder", "text", "value", "valueTemplate", "width", "zIndex"], outputs: ["actionBegin", "actionComplete", "actionFailure", "beforeOpen", "blur", "change", "close", "created", "dataBound", "destroyed", "filtering", "focus", "open", "select", "valueChange"] }, { kind: "component", type: i8.SkeletonComponent, selector: "ejs-skeleton", inputs: ["cssClass", "enablePersistence", "enableRtl", "height", "label", "locale", "shape", "shimmerEffect", "visible", "width"] }, { kind: "component", type: i9.RichTextEditorComponent, selector: "ejs-richtexteditor", inputs: ["autoSaveOnIdle", "backgroundColor", "bulletFormatList", "cssClass", "editorMode", "emojiPickerSettings", "enableAutoUrl", "enableHtmlEncode", "enableHtmlSanitizer", "enablePersistence", "enableResize", "enableRtl", "enableTabKey", "enableXhtml", "enabled", "enterKey", "exportPdf", "exportWord", "fileManagerSettings", "floatingToolbarOffset", "fontColor", "fontFamily", "fontSize", "format", "formatPainterSettings", "formatter", "height", "htmlAttributes", "iframeSettings", "importWord", "inlineMode", "insertAudioSettings", "insertImageSettings", "insertVideoSettings", "keyConfig", "locale", "maxLength", "numberFormatList", "pasteCleanupSettings", "placeholder", "quickToolbarSettings", "readonly", "saveInterval", "shiftEnterKey", "showCharCount", "showTooltip", "slashMenuSettings", "tableSettings", "toolbarSettings", "undoRedoSteps", "undoRedoTimer", "value", "valueTemplate", "width"], outputs: ["actionBegin", "actionComplete", "afterImageDelete", "afterMediaDelete", "afterPasteCleanup", "beforeDialogClose", "beforeDialogOpen", "beforeFileUpload", "beforeImageDrop", "beforeImageUpload", "beforePasteCleanup", "beforeQuickToolbarOpen", "beforeSanitizeHtml", "blur", "change", "created", "destroyed", "dialogClose", "dialogOpen", "fileRemoving", "fileSelected", "fileUploadFailed", "fileUploadSuccess", "fileUploading", "focus", "imageRemoving", "imageSelected", "imageUploadFailed", "imageUploadSuccess", "imageUploading", "quickToolbarClose", "quickToolbarOpen", "resizeStart", "resizeStop", "resizing", "slashMenuItemSelect", "toolbarClick", "toolbarStatusUpdate", "updatedToolbarStatus", "valueChange"] }] });
|
|
20989
|
+
regenerateClick() {
|
|
20990
|
+
this.updateAISugesstions();
|
|
20991
|
+
}
|
|
20992
|
+
copyClick() {
|
|
20993
|
+
this.copyTextToClipboard(this.AIResult);
|
|
20994
|
+
}
|
|
20995
|
+
replaceClick() {
|
|
20996
|
+
let range = this.rteObj.formatter.editorManager.nodeSelection.getRange(this.rteObj.contentModule.getDocument());
|
|
20997
|
+
this.rteObj.formatter.editorManager.nodeSelection.restore(range);
|
|
20998
|
+
this.rteObj.executeCommand("insertHTML", this.AIResult, {
|
|
20999
|
+
undo: true,
|
|
21000
|
+
});
|
|
21001
|
+
this.closeDialog();
|
|
21002
|
+
}
|
|
21003
|
+
scrollToBottom(content) {
|
|
21004
|
+
this.insertHtmlToEditor(content);
|
|
21005
|
+
const rteContainer = document.getElementById("rightRte");
|
|
21006
|
+
const scrollableElement = rteContainer?.querySelector(".e-rte-content");
|
|
21007
|
+
if (scrollableElement) {
|
|
21008
|
+
scrollableElement.scrollTop =
|
|
21009
|
+
scrollableElement.scrollHeight - scrollableElement.clientHeight;
|
|
21010
|
+
this.ref.detectChanges();
|
|
21011
|
+
}
|
|
21012
|
+
}
|
|
21013
|
+
onMinimize() {
|
|
21014
|
+
this.AIdialog.element.style.display = "none";
|
|
21015
|
+
this.dialog.showLoadingNotification({
|
|
21016
|
+
loadingCallback: (callback) => { },
|
|
21017
|
+
message: this.translation.AI_IN_PROGRESS || "AI is in progress",
|
|
21018
|
+
});
|
|
21019
|
+
}
|
|
21020
|
+
showDialog() {
|
|
21021
|
+
this.AIdialog.element.style.display = "";
|
|
21022
|
+
this.snackBar.dismiss();
|
|
21023
|
+
}
|
|
21024
|
+
insertHtmlToEditor(html) {
|
|
21025
|
+
this.rightRte.executeCommand("insertText", html);
|
|
21026
|
+
}
|
|
21027
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RichtexteditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$4.HttpClient }, { token: DialogService }, { token: i1$2.MatSnackBar }], target: i0.ɵɵFactoryTarget.Component });
|
|
21028
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RichtexteditorComponent, selector: "rs-richtext-editor", inputs: { placeholder: "placeholder", value: "value", editorId: "editorId", saveInterval: "saveInterval", height: "height", autoSaveOnIdle: "autoSaveOnIdle", disabled: "disabled", target: "target", insertImageSettings: "insertImageSettings", showTicketAttachment: "showTicketAttachment" }, outputs: { toolbarClick: "toolbarClick", change: "change", created: "created", actionBegin: "actionBegin", input: "input", focus: "focus", blur: "blur", actionComplete: "actionComplete", afterPasteCleanup: "afterPasteCleanup" }, viewQueries: [{ propertyName: "rteObj", first: true, predicate: ["editor"], descendants: true }, { propertyName: "queryCategory", first: true, predicate: ["queryCategory"], descendants: true }, { propertyName: "leftRte", first: true, predicate: ["leftRte"], descendants: true }, { propertyName: "rightRte", first: true, predicate: ["rightRte"], descendants: true }, { propertyName: "AIdialog", first: true, predicate: ["AIdialog"], descendants: true, static: true }, { propertyName: "sentimentButton", first: true, predicate: ["sentimentButton"], descendants: true }, { propertyName: "regenerateButton", first: true, predicate: ["regenerateButton"], descendants: true }, { propertyName: "copyButton", first: true, predicate: ["copyButton"], descendants: true }, { propertyName: "replaceButton", first: true, predicate: ["replaceButton"], descendants: true }], ngImport: i0, template: "<div class=\"editor_box\" id=\"container\">\r\n <ejs-richtexteditor\r\n #editor\r\n [id]=\"editorId\"\r\n [height]=\"height\"\r\n [saveInterval]=\"0\"\r\n [autoSaveOnIdle]=\"autoSaveOnIdle\"\r\n [toolbarSettings]=\"tools\"\r\n [bulletFormatList]=\"bulletFormatList\"\r\n [numberFormatList]=\"numberFormatList\"\r\n [fontFamily]=\"family\"\r\n [fontSize]=\"fontSize\"\r\n [disabled]=\"disabled\"\r\n [insertImageSettings]=\"insertImageSettings\"\r\n [(ngModel)]=\"value\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (change)=\"onContentChange($event)\"\r\n (created)=\"onCreate()\"\r\n (toolbarClick)=\"_toolbarClick($event)\"\r\n (input)=\"_input($event)\"\r\n (focus)=\"_focus($event)\"\r\n (blur)=\"_blur($event)\"\r\n (actionComplete)=\"_actionComplete($event)\"\r\n (dialogOpen)=\"_dialogOpen($event)\"\r\n (afterPasteCleanup)=\"_afterPasteCleanup($event)\"\r\n >\r\n </ejs-richtexteditor>\r\n <ejs-dialog\r\n #AIdialog\r\n id=\"AIdialog\"\r\n [ngClass]=\"size\"\r\n [visible]=\"false\"\r\n [target]=\"target\"\r\n [isModal]=\"true\"\r\n [height]=\"dialogHeight\"\r\n [width]=\"dialogWidth\"\r\n maxHeight=\"80%\"\r\n cssClass=\"e-rte-elements custom-dialog-rte\"\r\n zIndex=\"1000\"\r\n (close)=\"closeDialog()\"\r\n (overlayClick)=\"onOverlayClick()\"\r\n (open)=\"dialogShow()\"\r\n >\r\n <ng-template #header>\r\n <div class=\"header-title\">\r\n {{ translation.AI_ASSIST || \".AI Assist\" }}\r\n </div>\r\n <div class=\"header-buttons\">\r\n <!-- <div class=\"header-btn\">\r\n <img\r\n src=\"/assets/img/dialog-narrow.svg\"\r\n class=\"header-icon\"\r\n (click)=\"onMinimize()\"\r\n />\r\n </div> -->\r\n <div *ngIf=\"showZoomBtn\" class=\"header-zoom\" (click)=\"onZoom()\">\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size === 'largest'\"\r\n src=\"../../../assets/img/dialog-shrink.svg\"\r\n />\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size !== 'largest'\"\r\n src=\"../../../assets/img/dialog-grow.svg\"\r\n />\r\n </div>\r\n <div class=\"header-btn\" (click)=\"closeDialog()\">\r\n <img class=\"header-icon\" src=\"../../../assets/img/dialog-close.svg\" />\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #footerTemplate>\r\n <div id=\"dialog-footer-content\">\r\n <div class=\"custom-row-0\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"width: 100%; align-items: center; justify-content: left\"\r\n ></div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <div style=\"text-align: right; width: 100%\">\r\n <button\r\n ejs-button\r\n #sentimentButton\r\n [content]=\"'\uD83D\uDE0A ' + (translation.NEUTRAL || '.Neutral')\"\r\n disabled=\"false\"\r\n cssClass=\"sentiment\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #copyButton\r\n [content]=\"translation.COPY || '.Copy'\"\r\n disabled=\"false\"\r\n class=\"copy-btn\"\r\n (click)=\"copyClick()\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #replaceButton\r\n [content]=\"translation.REPLACE || '.Replace'\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n (click)=\"replaceClick()\"\r\n ></button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #content>\r\n <div class=\"dialog-content\" style=\"height: 100%\">\r\n <div class=\"custom-row-0\">\r\n <div class=\"cuscol-0\" style=\"width: 100%\">\r\n <ejs-dropdownlist\r\n #queryCategory\r\n style=\"width: 200px\"\r\n id=\"queryCategory\"\r\n [dataSource]=\"queryList\"\r\n index=\"0\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onQuerySelect($event)\"\r\n >\r\n {{ translation.REPHRASE || \".Rephrase\" }}\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Rephrase'\"\r\n id=\"chips-container\"\r\n #chipList\r\n style=\"width: 160px\"\r\n [(ngModel)]=\"chipValue\"\r\n [dataSource]=\"rephraseTyleList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onChipClick($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Translate'\"\r\n #languageCategory\r\n index=\"0\"\r\n id=\"language-Category\"\r\n [dataSource]=\"languageList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onLanguageSelect($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n justify-content: space-between;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <!-- <ejs-chiplist\r\n id=\"chips-container\"\r\n #chipList\r\n [chips]=\"['Standard', 'Fluent', 'Professional']\"\r\n selection=\"Single\"\r\n cssClass=\"e-outline\"\r\n [selectedChips]=\"[0]\"\r\n (click)=\"onChipClick($event)\"\r\n >\r\n </ejs-chiplist> -->\r\n <button\r\n ejs-button\r\n #regenerateButton\r\n [content]=\"translation.REGENERATE || '.Regenerate'\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n (click)=\"regenerateClick()\"\r\n ></button>\r\n </div>\r\n </div>\r\n <div class=\"custom-row-1\" style=\"height: calc(100% - 40px)\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"\r\n flex: 1;\r\n height: 100%;\r\n align-items: center;\r\n justify-content: left;\r\n overflow: auto;\r\n \"\r\n >\r\n <div style=\"text-align: left; height: 100%\">\r\n <ejs-richtexteditor\r\n #leftRte\r\n id=\"leftRte\"\r\n height=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n [placeholder]=\"\r\n translation.ANALYSIS_OF_AI_SUPPORT ||\r\n '.Analysis of AI Support'\r\n \"\r\n cssClass=\"e-outline\"\r\n >\r\n </ejs-richtexteditor>\r\n </div>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n flex: 1;\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n overflow: hidden;\r\n \"\r\n >\r\n <div style=\"flex: 1; min-height: 0; overflow: hidden\">\r\n <ejs-richtexteditor\r\n #rightRte\r\n id=\"rightRte\"\r\n height=\"100%\"\r\n width=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n [placeholder]=\"\r\n translation.ANALYSIS_OF_AI_SUPPORT ||\r\n '.Analysis of AI Support'\r\n \"\r\n cssClass=\"e-outline\"\r\n >\r\n </ejs-richtexteditor>\r\n <div\r\n class=\"no-results-found\"\r\n id=\"no-results-found\"\r\n style=\"display: none; height: 244px; align-content: center\"\r\n >\r\n <img\r\n height=\"50\"\r\n width=\"50\"\r\n src=\"https://storage.googleapis.com/cdn-bolddesk/agent-angular-app/images/light/no-records-warning.svg\"\r\n />\r\n <div>\r\n {{ translation.NO_RESULTS_FOUND || \".No results found\" }}\r\n </div>\r\n </div>\r\n <div id=\"skeletonId\">\r\n <ejs-skeleton\r\n #skeletonId1\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"100%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId2\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"90%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId3\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"70%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId4\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"50%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId5\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"30%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId6\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"10%\"\r\n ></ejs-skeleton\r\n ><br />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ejs-dialog>\r\n <!-- <div class=\"toast\" *ngIf=\"showMsg\">\r\n <span class=\"toast_text\">First, Select some text</span\r\n ><span class=\"close_icon\" (click)=\"hideToast()\"></span>\r\n </div> -->\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.editor_box{position:relative;width:100%;height:100%}.editor_box .toast{position:absolute;left:35%;top:110px;z-index:1;width:400px;border-radius:4px;border:1px solid #e8f2ff;background:#f4f8ff;padding:4px 12px;color:#1f3f5c;font-size:12px;font-style:normal;font-weight:400;height:32px;font-family:Arial;display:flex;align-items:center;justify-content:space-between}.editor_box .toast .toast_text:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2217%22 viewBox%3D%220 0 16 17%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Ccircle cx%3D%228%22 cy%3D%228.5%22 r%3D%226.5%22 stroke%3D%22%236B6B6B%22%2F%3E%0D%3Cpath d%3D%22M8 8.5V11.5%22 stroke%3D%22%236B6B6B%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Ccircle cx%3D%228%22 cy%3D%225.5%22 r%3D%221%22 fill%3D%22%236B6B6B%22%2F%3E%0D%3C%2Fsvg%3E%0D\");display:inline-block;width:16px;height:16px;vertical-align:bottom;margin-right:8px}.editor_box .toast .close_icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M3.50021 12.9999L12.5001 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Cpath d%3D%22M12.4999 12.9999L3.50007 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");cursor:pointer;display:inline-block;width:16px;height:16px}.custom-dialog-rte{padding:0 20px;border-radius:10px}.custom-row-0,.custom-row-1,.custom-row-2{display:flex;align-items:center;padding:12px 24px}.e-rte-dropdown-btn-text{padding-left:4px}.no-results-found{text-align:center}.no-results-found img{display:block;margin:0 auto}.e-custom{margin-right:.5rem;border-radius:25px!important}.custom-dialog-rte .skeleton-rectangle{border-radius:4px}@media (max-width: 767px){.cuscol-0,.cuscol-1,.cuscol-2{justify-content:center!important}.custom-row-0,.custom-row-1,.custom-row-2{flex-direction:column!important}.cuscol-1{border-right:none!important}.cuscol-0{width:100%;align-items:center}::ng-deep:host .e-dialog{max-height:80%!important}.custom-dialog-rte .e-dialog .e-dlg-content{overflow-y:auto!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor{height:100px!important}.cuscol-noresult{padding-bottom:20px!important}.e-chip-list{padding:5px!important}.cuscol{padding-right:.2rem!important;width:auto!important}.custom-row-1{height:auto!important}}.cuscol-1{display:flex;flex-direction:row!important}.cuscol-2{display:flex;flex-direction:column!important}.sentiment{color:#000!important}.custom-dialog-rte .e-dialog .e-dlg-content{padding:0!important;overflow-y:hidden}.custom-dialog-rte .e-dialog .e-dlg-header-content{padding:20px 0!important;border:0!important}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header{display:flex;align-items:center;line-height:18px;justify-content:space-between}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header .header-title{font-family:Arial;font-size:15px;font-weight:700;font-style:normal}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons{display:flex}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons img{width:16px;height:16px;cursor:pointer;padding:2px;margin-left:12px}.custom-dialog-rte .e-dialog .e-footer-content{padding:0!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor.e-rte-tb-expand .e-rte-content,.e-richtexteditor.e-rte-tb-expand .e-source-content{border:0;border-bottom:1px solid #dee2e6;border-top:0px solid #dee2e6!important}.custom-dialog-rte .dialog-content .custom-row-0{border-top:0px solid #ddd!important;padding:0;margin-bottom:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-0{justify-content:left;border-right:none!important;padding:0;display:flex;gap:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1{padding:0;margin-left:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1 .e-primary{color:#44566c;border-radius:4px;border:1px solid #dbe1e7;background:#fff;width:87px;margin:0;padding:2px 12px;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px;height:28px}.custom-dialog-rte .dialog-content .custom-row-1{padding:0;height:calc(100% - 40px);gap:12px}.custom-dialog-rte .e-footer-content{border:0}.custom-dialog-rte .e-footer-content .custom-row-0{padding:20px 0}.custom-dialog-rte .e-footer-content .e-control.e-btn{font-family:Arial;font-size:12px;line-height:14px;padding:2px 12px;height:28px;background:#fff;color:#44566c}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn{border-color:#dbe1e7}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Crect width%3D%2216%22 height%3D%2216%22 fill%3D%22white%22%2F%3E%0D%3Crect x%3D%224.5%22 y%3D%224.5%22 width%3D%229%22 height%3D%229%22 rx%3D%221.5%22 stroke%3D%22%236C7C90%22%2F%3E%0D%3Cpath d%3D%22M11.5 2.5H4.5C3.39543 2.5 2.5 3.39543 2.5 4.5V11.5%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");vertical-align:middle;margin-right:6px}.custom-dialog-rte .e-footer-content .e-control.e-btn.e-primary{color:#fff;background:#1364b3}.e-dialog.largest{width:96vw!important;height:88vh!important;max-height:88vh;max-width:2100px}::ng-deep ol.custom-list{list-style:none!important;counter-reset:list-counter}::ng-deep ol.custom-list li{counter-increment:list-counter}::ng-deep ol.parentheses li::marker{content:\"(\" counter(list-counter) \") \"}::ng-deep .e-tiempos-headline{font-family:Tiempos Headline Semibold!important}::ng-deep .e-avenir-lt-pro-black{font-family:\"Avenir LT Pro 65 Medium\"!important}::ng-deep .e-avenir-lt-pro-black-oblique{font-family:Avenir LT Pro-Black Oblique!important}::ng-deep .e-avenir-lt-pro-heavy{font-family:\"Avenir LT Pro 55 Roman\"!important}::ng-deep .e-avenir-lt-pro-heavy-oblique{font-family:Avenir LT Pro-Heavy Oblique!important}::ng-deep .e-avenir-lt-pro-light{font-family:\"Avenir LT Pro 35 Light\"!important}::ng-deep .e-avenir-lt-pro-light-oblique{font-family:Avenir LT Pro-Light Oblique!important}::ng-deep .e-avenir-lt-pro-medium{font-family:Avenir LT Pro-Medium!important}::ng-deep .e-avenir-lt-pro-medium-oblique{font-family:Avenir LT Pro-Medium Oblique!important}::ng-deep .e-avenir-next-lt-pro-bold{font-family:AvenirNext LT Pro Bold!important}::ng-deep .e-avenir-next-lt-pro-demi{font-family:AvenirNext LT Pro Regular!important}::ng-deep .e-avenir-next-lt-pro-demilt{font-family:Avenir Next LT Pro-Demilt!important}::ng-deep .e-avenir-next-lt-pro-heavy{font-family:AvenirNext LT Pro Heavy!important}::ng-deep .e-avenir-next-lt-pro-heavylt{font-family:AvenirNext LT Pro Heavylt!important}::ng-deep .e-avenir-next-lt-pro-it{font-family:Avenir Next LT Pro-It!important}::ng-deep .e-avenir-next-lt-pro-light{font-family:Avenir Next LT Pro Light!important}::ng-deep .e-avenir-next-lt-pro-mediumlt{font-family:AvenirNext LT Pro Medium!important}::ng-deep .e-avenir-next-lt-pro-regular{font-family:Avenir Next LT Pro-Regular!important}::ng-deep .e-avenir-next-lt-pro-ultlt{font-family:AvenirNext LT Pro UltLight!important}::ng-deep .e-avenir-next-lt-pro-ultltlt{font-family:AvenirNext LT Pro UltLightlt!important}::ng-deep .e-source-han-sans-cn-extralight{font-family:\\601d\\6e90\\9ed1\\4f53 CN ExtraLight!important}::ng-deep .e-source-han-sans-cn-regular{font-family:Source Han Sans CN!important}::ng-deep .e-source-han-sans-cn-medium{font-family:\\601d\\6e90\\9ed1\\4f53 CN Medium!important}::ng-deep .e-source-han-sans-cn-bold{font-family:\\601d\\6e90\\9ed1\\4f53 CN!important}::ng-deep .e-ping-fang-sc-light{font-family:\\82f9\\65b9-\\7b80!important}::ng-deep .e-ping-fang-sc-medium{font-family:Ping Fang SC-Medium!important}::ng-deep .e-ping-fang-sc-regular{font-family:Ping Fang SC-Regular!important}::ng-deep .e-ping-fang-sc-semibold{font-family:Ping Fang SC-Semibold!important}.e-color-palette{width:270px!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$2.ButtonComponent, selector: "[ejs-button]", inputs: ["content", "cssClass", "disabled", "enableHtmlSanitizer", "enablePersistence", "enableRtl", "iconCss", "iconPosition", "isPrimary", "isToggle", "locale"], outputs: ["created"] }, { kind: "component", type: i6.DialogComponent, selector: "ejs-dialog", inputs: ["allowDragging", "animationSettings", "buttons", "closeOnEscape", "content", "cssClass", "enableHtmlSanitizer", "enablePersistence", "enableResize", "enableRtl", "footerTemplate", "header", "height", "isModal", "locale", "minHeight", "position", "resizeHandles", "showCloseIcon", "target", "visible", "width", "zIndex"], outputs: ["beforeClose", "beforeOpen", "beforeSanitizeHtml", "close", "created", "destroyed", "drag", "dragStart", "dragStop", "open", "overlayClick", "resizeStart", "resizeStop", "resizing", "visibleChange"] }, { kind: "component", type: i6$1.DropDownListComponent, selector: "ejs-dropdownlist", inputs: ["actionFailureTemplate", "allowFiltering", "allowObjectBinding", "cssClass", "dataSource", "enablePersistence", "enableRtl", "enableVirtualization", "enabled", "fields", "filterBarPlaceholder", "filterType", "floatLabelType", "footerTemplate", "groupTemplate", "headerTemplate", "htmlAttributes", "ignoreAccent", "ignoreCase", "index", "isDeviceFullScreen", "itemTemplate", "locale", "noRecordsTemplate", "placeholder", "popupHeight", "popupWidth", "query", "readonly", "showClearButton", "sortOrder", "text", "value", "valueTemplate", "width", "zIndex"], outputs: ["actionBegin", "actionComplete", "actionFailure", "beforeOpen", "blur", "change", "close", "created", "dataBound", "destroyed", "filtering", "focus", "open", "select", "valueChange"] }, { kind: "component", type: i9.SkeletonComponent, selector: "ejs-skeleton", inputs: ["cssClass", "enablePersistence", "enableRtl", "height", "label", "locale", "shape", "shimmerEffect", "visible", "width"] }, { kind: "component", type: i10.RichTextEditorComponent, selector: "ejs-richtexteditor", inputs: ["autoSaveOnIdle", "backgroundColor", "bulletFormatList", "cssClass", "editorMode", "emojiPickerSettings", "enableAutoUrl", "enableHtmlEncode", "enableHtmlSanitizer", "enablePersistence", "enableResize", "enableRtl", "enableTabKey", "enableXhtml", "enabled", "enterKey", "exportPdf", "exportWord", "fileManagerSettings", "floatingToolbarOffset", "fontColor", "fontFamily", "fontSize", "format", "formatPainterSettings", "formatter", "height", "htmlAttributes", "iframeSettings", "importWord", "inlineMode", "insertAudioSettings", "insertImageSettings", "insertVideoSettings", "keyConfig", "locale", "maxLength", "numberFormatList", "pasteCleanupSettings", "placeholder", "quickToolbarSettings", "readonly", "saveInterval", "shiftEnterKey", "showCharCount", "showTooltip", "slashMenuSettings", "tableSettings", "toolbarSettings", "undoRedoSteps", "undoRedoTimer", "value", "valueTemplate", "width"], outputs: ["actionBegin", "actionComplete", "afterImageDelete", "afterMediaDelete", "afterPasteCleanup", "beforeDialogClose", "beforeDialogOpen", "beforeFileUpload", "beforeImageDrop", "beforeImageUpload", "beforePasteCleanup", "beforeQuickToolbarOpen", "beforeSanitizeHtml", "blur", "change", "created", "destroyed", "dialogClose", "dialogOpen", "fileRemoving", "fileSelected", "fileUploadFailed", "fileUploadSuccess", "fileUploading", "focus", "imageRemoving", "imageSelected", "imageUploadFailed", "imageUploadSuccess", "imageUploading", "quickToolbarClose", "quickToolbarOpen", "resizeStart", "resizeStop", "resizing", "slashMenuItemSelect", "toolbarClick", "toolbarStatusUpdate", "updatedToolbarStatus", "valueChange"] }] });
|
|
20898
21029
|
}
|
|
20899
21030
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RichtexteditorComponent, decorators: [{
|
|
20900
21031
|
type: Component,
|
|
20901
|
-
args: [{ selector: "rs-richtext-editor", template: "<div class=\"editor_box\" id=\"container\">\r\n <ejs-richtexteditor\r\n #editor\r\n [id]=\"editorId\"\r\n [height]=\"height\"\r\n [saveInterval]=\"0\"\r\n [autoSaveOnIdle]=\"autoSaveOnIdle\"\r\n [toolbarSettings]=\"tools\"\r\n [bulletFormatList]=\"bulletFormatList\"\r\n [numberFormatList]=\"numberFormatList\"\r\n [fontFamily]=\"family\"\r\n [fontSize]=\"fontSize\"\r\n [disabled]=\"disabled\"\r\n [insertImageSettings]=\"insertImageSettings\"\r\n [(ngModel)]=\"value\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (change)=\"onContentChange($event)\"\r\n (created)=\"onCreate()\"\r\n (toolbarClick)=\"_toolbarClick($event)\"\r\n (input)=\"_input($event)\"\r\n (focus)=\"_focus($event)\"\r\n (blur)=\"_blur($event)\"\r\n (actionComplete)=\"_actionComplete($event)\"\r\n (dialogOpen)=\"_dialogOpen($event)\"\r\n >\r\n </ejs-richtexteditor>\r\n <ejs-dialog\r\n #AIdialog\r\n id=\"AIdialog\"\r\n [ngClass]=\"size\"\r\n [visible]=\"false\"\r\n [target]=\"target\"\r\n [isModal]=\"true\"\r\n [height]=\"dialogHeight\"\r\n [width]=\"dialogWidth\"\r\n maxHeight=\"80%\"\r\n cssClass=\"e-rte-elements custom-dialog-rte\"\r\n zIndex=\"1000\"\r\n (close)=\"closeDialog()\"\r\n (overlayClick)=\"onOverlayClick()\"\r\n (open)=\"dialogShow()\"\r\n >\r\n <ng-template #header>\r\n <div class=\"header-title\">AI Assist</div>\r\n <div class=\"header-buttons\">\r\n <div *ngIf=\"showZoomBtn\" class=\"header-zoom\" (click)=\"onZoom()\">\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size === 'largest'\"\r\n src=\"../../../assets/img/dialog-shrink.svg\"\r\n />\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size !== 'largest'\"\r\n src=\"../../../assets/img/dialog-grow.svg\"\r\n />\r\n </div>\r\n <div class=\"header-btn\" (click)=\"closeDialog()\">\r\n <img class=\"header-icon\" src=\"../../../assets/img/dialog-close.svg\" />\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #footerTemplate>\r\n <div id=\"dialog-footer-content\">\r\n <div class=\"custom-row-0\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"width: 100%; align-items: center; justify-content: left\"\r\n ></div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <div style=\"text-align: right; width: 100%\">\r\n <button\r\n ejs-button\r\n #sentimentButton\r\n content=\"\uD83D\uDE0A Neutral\"\r\n disabled=\"false\"\r\n cssClass=\"sentiment\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #copyButton\r\n content=\"Copy\"\r\n disabled=\"false\"\r\n class=\"copy-btn\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #replaceButton\r\n content=\"Replace\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n ></button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #content>\r\n <div class=\"dialog-content\" style=\"height: 100%\">\r\n <div class=\"custom-row-0\">\r\n <div class=\"cuscol-0\" style=\"width: 100%\">\r\n <ejs-dropdownlist\r\n #queryCategory\r\n style=\"width: 200px\"\r\n id=\"queryCategory\"\r\n [dataSource]=\"queryList\"\r\n index=\"0\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onQuerySelect($event)\"\r\n >\r\n Rephrase\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Rephrase'\"\r\n id=\"chips-container\"\r\n #chipList\r\n style=\"width: 160px\"\r\n [(ngModel)]=\"chipValue\"\r\n [dataSource]=\"rephraseTyleList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onChipClick($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Translate'\"\r\n #languageCategory\r\n index=\"0\"\r\n id=\"language-Category\"\r\n [dataSource]=\"languageList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onLanguageSelect($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n justify-content: space-between;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <!-- <ejs-chiplist\r\n id=\"chips-container\"\r\n #chipList\r\n [chips]=\"['Standard', 'Fluent', 'Professional']\"\r\n selection=\"Single\"\r\n cssClass=\"e-outline\"\r\n [selectedChips]=\"[0]\"\r\n (click)=\"onChipClick($event)\"\r\n >\r\n </ejs-chiplist> -->\r\n <button\r\n ejs-button\r\n #regenerateButton\r\n content=\"Regenerate\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n ></button>\r\n </div>\r\n </div>\r\n <div class=\"custom-row-1\" style=\"height: calc(100% - 40px)\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n justify-content: left;\r\n \"\r\n >\r\n <div style=\"text-align: left; height: 100%\">\r\n <ejs-richtexteditor\r\n #leftRte\r\n id=\"leftRte\"\r\n height=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n placeholder=\"Analysis of AI Support\"\r\n cssClass=\"e-outline\"\r\n >\r\n </ejs-richtexteditor>\r\n </div>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n display: flex;\r\n justify-content: space-between;\r\n width: 100%;\r\n height: 100%;\r\n \"\r\n >\r\n <div style=\"text-align: left; width: 100%; height: 100%\">\r\n <ejs-richtexteditor\r\n #rightRte\r\n id=\"rightRte\"\r\n height=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n placeholder=\"Analysis of AI Support\"\r\n cssClass=\"e-outline\"\r\n >\r\n <!-- style=\"display: none\" -->\r\n </ejs-richtexteditor>\r\n <div\r\n class=\"no-results-found\"\r\n id=\"no-results-found\"\r\n style=\"display: none; height: 244px; align-content: center\"\r\n >\r\n <img\r\n height=\"50\"\r\n width=\"50\"\r\n src=\"https://storage.googleapis.com/cdn-bolddesk/agent-angular-app/images/light/no-records-warning.svg\"\r\n />\r\n <div>No results found</div>\r\n </div>\r\n <div id=\"skeletonId\">\r\n <ejs-skeleton\r\n #skeletonId1\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"100%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId2\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"90%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId3\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"70%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId4\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"50%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId5\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"30%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId6\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"10%\"\r\n ></ejs-skeleton\r\n ><br />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ejs-dialog>\r\n <div class=\"toast\" *ngIf=\"showMsg\">\r\n <span class=\"toast_text\">First, Select some text</span\r\n ><span class=\"close_icon\" (click)=\"hideToast()\"></span>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.editor_box{position:relative;width:100%;height:100%}.editor_box .toast{position:absolute;left:35%;top:110px;z-index:1;width:400px;border-radius:4px;border:1px solid #e8f2ff;background:#f4f8ff;padding:4px 12px;color:#1f3f5c;font-size:12px;font-style:normal;font-weight:400;height:32px;font-family:Arial;display:flex;align-items:center;justify-content:space-between}.editor_box .toast .toast_text:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2217%22 viewBox%3D%220 0 16 17%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Ccircle cx%3D%228%22 cy%3D%228.5%22 r%3D%226.5%22 stroke%3D%22%236B6B6B%22%2F%3E%0D%3Cpath d%3D%22M8 8.5V11.5%22 stroke%3D%22%236B6B6B%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Ccircle cx%3D%228%22 cy%3D%225.5%22 r%3D%221%22 fill%3D%22%236B6B6B%22%2F%3E%0D%3C%2Fsvg%3E%0D\");display:inline-block;width:16px;height:16px;vertical-align:bottom;margin-right:8px}.editor_box .toast .close_icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M3.50021 12.9999L12.5001 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Cpath d%3D%22M12.4999 12.9999L3.50007 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");cursor:pointer;display:inline-block;width:16px;height:16px}.custom-dialog-rte{padding:0 20px;border-radius:10px}.custom-row-0,.custom-row-1,.custom-row-2{display:flex;align-items:center;padding:12px 24px}.e-rte-dropdown-btn-text{padding-left:4px}.no-results-found{text-align:center}.no-results-found img{display:block;margin:0 auto}.e-custom{margin-right:.5rem;border-radius:25px!important}.custom-dialog-rte .skeleton-rectangle{border-radius:4px}@media (max-width: 767px){.cuscol-0,.cuscol-1,.cuscol-2{justify-content:center!important}.custom-row-0,.custom-row-1,.custom-row-2{flex-direction:column!important}.cuscol-1{border-right:none!important}.cuscol-0{width:100%;align-items:center}::ng-deep:host .e-dialog{max-height:80%!important}.custom-dialog-rte .e-dialog .e-dlg-content{overflow-y:auto!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor{height:100px!important}.cuscol-noresult{padding-bottom:20px!important}.e-chip-list{padding:5px!important}.cuscol{padding-right:.2rem!important;width:auto!important}.custom-row-1{height:auto!important}}.cuscol-1{display:flex;flex-direction:row!important}.cuscol-2{display:flex;flex-direction:column!important}.sentiment{color:#000!important}.custom-dialog-rte .e-dialog .e-dlg-content{padding:0!important;overflow-y:hidden}.custom-dialog-rte .e-dialog .e-dlg-header-content{padding:20px 0!important;border:0!important}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header{display:flex;align-items:center;line-height:18px;justify-content:space-between}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header .header-title{font-family:Arial;font-size:15px;font-weight:700;font-style:normal}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons{display:flex}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons img{width:16px;height:16px;cursor:pointer;padding:2px;margin-left:12px}.custom-dialog-rte .e-dialog .e-footer-content{padding:0!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor.e-rte-tb-expand .e-rte-content,.e-richtexteditor.e-rte-tb-expand .e-source-content{border:0;border-bottom:1px solid #dee2e6;border-top:0px solid #dee2e6!important}.custom-dialog-rte .dialog-content .custom-row-0{border-top:0px solid #ddd!important;padding:0;margin-bottom:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-0{justify-content:left;border-right:none!important;padding:0;display:flex;gap:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1{padding:0;margin-left:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1 .e-primary{color:#44566c;border-radius:4px;border:1px solid #dbe1e7;background:#fff;width:87px;margin:0;padding:2px 12px;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px;height:28px}.custom-dialog-rte .dialog-content .custom-row-1{padding:0;height:calc(100% - 40px);gap:12px}.custom-dialog-rte .e-footer-content{border:0}.custom-dialog-rte .e-footer-content .custom-row-0{padding:20px 0}.custom-dialog-rte .e-footer-content .e-control.e-btn{font-family:Arial;font-size:12px;line-height:14px;padding:2px 12px;height:28px;background:#fff;color:#44566c}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn{border-color:#dbe1e7}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Crect width%3D%2216%22 height%3D%2216%22 fill%3D%22white%22%2F%3E%0D%3Crect x%3D%224.5%22 y%3D%224.5%22 width%3D%229%22 height%3D%229%22 rx%3D%221.5%22 stroke%3D%22%236C7C90%22%2F%3E%0D%3Cpath d%3D%22M11.5 2.5H4.5C3.39543 2.5 2.5 3.39543 2.5 4.5V11.5%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");vertical-align:middle;margin-right:6px}.custom-dialog-rte .e-footer-content .e-control.e-btn.e-primary{color:#fff;background:#1364b3}.e-dialog.largest{width:96vw!important;height:88vh!important;max-height:88vh;max-width:2100px}::ng-deep ol.custom-list{list-style:none!important;counter-reset:list-counter}::ng-deep ol.custom-list li{counter-increment:list-counter}::ng-deep ol.parentheses li::marker{content:\"(\" counter(list-counter) \") \"}::ng-deep .e-tiempos-headline{font-family:Tiempos Headline Semibold!important}::ng-deep .e-avenir-lt-pro-black{font-family:\"Avenir LT Pro 65 Medium\"!important}::ng-deep .e-avenir-lt-pro-black-oblique{font-family:Avenir LT Pro-Black Oblique!important}::ng-deep .e-avenir-lt-pro-heavy{font-family:\"Avenir LT Pro 55 Roman\"!important}::ng-deep .e-avenir-lt-pro-heavy-oblique{font-family:Avenir LT Pro-Heavy Oblique!important}::ng-deep .e-avenir-lt-pro-light{font-family:\"Avenir LT Pro 35 Light\"!important}::ng-deep .e-avenir-lt-pro-light-oblique{font-family:Avenir LT Pro-Light Oblique!important}::ng-deep .e-avenir-lt-pro-medium{font-family:Avenir LT Pro-Medium!important}::ng-deep .e-avenir-lt-pro-medium-oblique{font-family:Avenir LT Pro-Medium Oblique!important}::ng-deep .e-avenir-next-lt-pro-bold{font-family:AvenirNext LT Pro Bold!important}::ng-deep .e-avenir-next-lt-pro-demi{font-family:AvenirNext LT Pro Regular!important}::ng-deep .e-avenir-next-lt-pro-demilt{font-family:Avenir Next LT Pro-Demilt!important}::ng-deep .e-avenir-next-lt-pro-heavy{font-family:AvenirNext LT Pro Heavy!important}::ng-deep .e-avenir-next-lt-pro-heavylt{font-family:AvenirNext LT Pro Heavylt!important}::ng-deep .e-avenir-next-lt-pro-it{font-family:Avenir Next LT Pro-It!important}::ng-deep .e-avenir-next-lt-pro-light{font-family:Avenir Next LT Pro Light!important}::ng-deep .e-avenir-next-lt-pro-mediumlt{font-family:AvenirNext LT Pro Medium!important}::ng-deep .e-avenir-next-lt-pro-regular{font-family:Avenir Next LT Pro-Regular!important}::ng-deep .e-avenir-next-lt-pro-ultlt{font-family:AvenirNext LT Pro UltLight!important}::ng-deep .e-avenir-next-lt-pro-ultltlt{font-family:AvenirNext LT Pro UltLightlt!important}::ng-deep .e-source-han-sans-cn-extralight{font-family:\\601d\\6e90\\9ed1\\4f53 CN ExtraLight!important}::ng-deep .e-source-han-sans-cn-regular{font-family:Source Han Sans CN!important}::ng-deep .e-source-han-sans-cn-medium{font-family:\\601d\\6e90\\9ed1\\4f53 CN Medium!important}::ng-deep .e-source-han-sans-cn-bold{font-family:\\601d\\6e90\\9ed1\\4f53 CN!important}::ng-deep .e-ping-fang-sc-light{font-family:\\82f9\\65b9-\\7b80!important}::ng-deep .e-ping-fang-sc-medium{font-family:Ping Fang SC-Medium!important}::ng-deep .e-ping-fang-sc-regular{font-family:Ping Fang SC-Regular!important}::ng-deep .e-ping-fang-sc-semibold{font-family:Ping Fang SC-Semibold!important}.e-color-palette{width:270px!important}\n"] }]
|
|
20902
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$4.HttpClient }, { type: DialogService }]; }, propDecorators: { rteObj: [{
|
|
21032
|
+
args: [{ selector: "rs-richtext-editor", template: "<div class=\"editor_box\" id=\"container\">\r\n <ejs-richtexteditor\r\n #editor\r\n [id]=\"editorId\"\r\n [height]=\"height\"\r\n [saveInterval]=\"0\"\r\n [autoSaveOnIdle]=\"autoSaveOnIdle\"\r\n [toolbarSettings]=\"tools\"\r\n [bulletFormatList]=\"bulletFormatList\"\r\n [numberFormatList]=\"numberFormatList\"\r\n [fontFamily]=\"family\"\r\n [fontSize]=\"fontSize\"\r\n [disabled]=\"disabled\"\r\n [insertImageSettings]=\"insertImageSettings\"\r\n [(ngModel)]=\"value\"\r\n (actionBegin)=\"_actionBegin($event)\"\r\n (change)=\"onContentChange($event)\"\r\n (created)=\"onCreate()\"\r\n (toolbarClick)=\"_toolbarClick($event)\"\r\n (input)=\"_input($event)\"\r\n (focus)=\"_focus($event)\"\r\n (blur)=\"_blur($event)\"\r\n (actionComplete)=\"_actionComplete($event)\"\r\n (dialogOpen)=\"_dialogOpen($event)\"\r\n (afterPasteCleanup)=\"_afterPasteCleanup($event)\"\r\n >\r\n </ejs-richtexteditor>\r\n <ejs-dialog\r\n #AIdialog\r\n id=\"AIdialog\"\r\n [ngClass]=\"size\"\r\n [visible]=\"false\"\r\n [target]=\"target\"\r\n [isModal]=\"true\"\r\n [height]=\"dialogHeight\"\r\n [width]=\"dialogWidth\"\r\n maxHeight=\"80%\"\r\n cssClass=\"e-rte-elements custom-dialog-rte\"\r\n zIndex=\"1000\"\r\n (close)=\"closeDialog()\"\r\n (overlayClick)=\"onOverlayClick()\"\r\n (open)=\"dialogShow()\"\r\n >\r\n <ng-template #header>\r\n <div class=\"header-title\">\r\n {{ translation.AI_ASSIST || \".AI Assist\" }}\r\n </div>\r\n <div class=\"header-buttons\">\r\n <!-- <div class=\"header-btn\">\r\n <img\r\n src=\"/assets/img/dialog-narrow.svg\"\r\n class=\"header-icon\"\r\n (click)=\"onMinimize()\"\r\n />\r\n </div> -->\r\n <div *ngIf=\"showZoomBtn\" class=\"header-zoom\" (click)=\"onZoom()\">\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size === 'largest'\"\r\n src=\"../../../assets/img/dialog-shrink.svg\"\r\n />\r\n <img\r\n class=\"header-icon\"\r\n *ngIf=\"size !== 'largest'\"\r\n src=\"../../../assets/img/dialog-grow.svg\"\r\n />\r\n </div>\r\n <div class=\"header-btn\" (click)=\"closeDialog()\">\r\n <img class=\"header-icon\" src=\"../../../assets/img/dialog-close.svg\" />\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #footerTemplate>\r\n <div id=\"dialog-footer-content\">\r\n <div class=\"custom-row-0\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"width: 100%; align-items: center; justify-content: left\"\r\n ></div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <div style=\"text-align: right; width: 100%\">\r\n <button\r\n ejs-button\r\n #sentimentButton\r\n [content]=\"'\uD83D\uDE0A ' + (translation.NEUTRAL || '.Neutral')\"\r\n disabled=\"false\"\r\n cssClass=\"sentiment\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #copyButton\r\n [content]=\"translation.COPY || '.Copy'\"\r\n disabled=\"false\"\r\n class=\"copy-btn\"\r\n (click)=\"copyClick()\"\r\n ></button>\r\n <button\r\n ejs-button\r\n #replaceButton\r\n [content]=\"translation.REPLACE || '.Replace'\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n (click)=\"replaceClick()\"\r\n ></button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #content>\r\n <div class=\"dialog-content\" style=\"height: 100%\">\r\n <div class=\"custom-row-0\">\r\n <div class=\"cuscol-0\" style=\"width: 100%\">\r\n <ejs-dropdownlist\r\n #queryCategory\r\n style=\"width: 200px\"\r\n id=\"queryCategory\"\r\n [dataSource]=\"queryList\"\r\n index=\"0\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onQuerySelect($event)\"\r\n >\r\n {{ translation.REPHRASE || \".Rephrase\" }}\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Rephrase'\"\r\n id=\"chips-container\"\r\n #chipList\r\n style=\"width: 160px\"\r\n [(ngModel)]=\"chipValue\"\r\n [dataSource]=\"rephraseTyleList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onChipClick($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n <ejs-dropdownlist\r\n *ngIf=\"selectedQuery == 'Translate'\"\r\n #languageCategory\r\n index=\"0\"\r\n id=\"language-Category\"\r\n [dataSource]=\"languageList\"\r\n [fields]=\"{ text: 'text', value: 'id' }\"\r\n (select)=\"onLanguageSelect($event)\"\r\n >\r\n </ejs-dropdownlist>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n justify-content: space-between;\r\n align-items: center;\r\n width: 100%;\r\n \"\r\n >\r\n <!-- <ejs-chiplist\r\n id=\"chips-container\"\r\n #chipList\r\n [chips]=\"['Standard', 'Fluent', 'Professional']\"\r\n selection=\"Single\"\r\n cssClass=\"e-outline\"\r\n [selectedChips]=\"[0]\"\r\n (click)=\"onChipClick($event)\"\r\n >\r\n </ejs-chiplist> -->\r\n <button\r\n ejs-button\r\n #regenerateButton\r\n [content]=\"translation.REGENERATE || '.Regenerate'\"\r\n isPrimary=\"true\"\r\n disabled=\"false\"\r\n (click)=\"regenerateClick()\"\r\n ></button>\r\n </div>\r\n </div>\r\n <div class=\"custom-row-1\" style=\"height: calc(100% - 40px)\">\r\n <div\r\n class=\"cuscol-0\"\r\n style=\"\r\n flex: 1;\r\n height: 100%;\r\n align-items: center;\r\n justify-content: left;\r\n overflow: auto;\r\n \"\r\n >\r\n <div style=\"text-align: left; height: 100%\">\r\n <ejs-richtexteditor\r\n #leftRte\r\n id=\"leftRte\"\r\n height=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n [placeholder]=\"\r\n translation.ANALYSIS_OF_AI_SUPPORT ||\r\n '.Analysis of AI Support'\r\n \"\r\n cssClass=\"e-outline\"\r\n >\r\n </ejs-richtexteditor>\r\n </div>\r\n </div>\r\n <div\r\n class=\"cuscol-1\"\r\n style=\"\r\n flex: 1;\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n overflow: hidden;\r\n \"\r\n >\r\n <div style=\"flex: 1; min-height: 0; overflow: hidden\">\r\n <ejs-richtexteditor\r\n #rightRte\r\n id=\"rightRte\"\r\n height=\"100%\"\r\n width=\"100%\"\r\n [toolbarSettings]=\"{ enable: false }\"\r\n [placeholder]=\"\r\n translation.ANALYSIS_OF_AI_SUPPORT ||\r\n '.Analysis of AI Support'\r\n \"\r\n cssClass=\"e-outline\"\r\n >\r\n </ejs-richtexteditor>\r\n <div\r\n class=\"no-results-found\"\r\n id=\"no-results-found\"\r\n style=\"display: none; height: 244px; align-content: center\"\r\n >\r\n <img\r\n height=\"50\"\r\n width=\"50\"\r\n src=\"https://storage.googleapis.com/cdn-bolddesk/agent-angular-app/images/light/no-records-warning.svg\"\r\n />\r\n <div>\r\n {{ translation.NO_RESULTS_FOUND || \".No results found\" }}\r\n </div>\r\n </div>\r\n <div id=\"skeletonId\">\r\n <ejs-skeleton\r\n #skeletonId1\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"100%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId2\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"90%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId3\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"70%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId4\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"50%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId5\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"30%\"\r\n ></ejs-skeleton\r\n ><br />\r\n <ejs-skeleton\r\n #skeletonId6\r\n shape=\"Rectangle\"\r\n height=\"16px\"\r\n width=\"10%\"\r\n ></ejs-skeleton\r\n ><br />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ejs-dialog>\r\n <!-- <div class=\"toast\" *ngIf=\"showMsg\">\r\n <span class=\"toast_text\">First, Select some text</span\r\n ><span class=\"close_icon\" (click)=\"hideToast()\"></span>\r\n </div> -->\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.editor_box{position:relative;width:100%;height:100%}.editor_box .toast{position:absolute;left:35%;top:110px;z-index:1;width:400px;border-radius:4px;border:1px solid #e8f2ff;background:#f4f8ff;padding:4px 12px;color:#1f3f5c;font-size:12px;font-style:normal;font-weight:400;height:32px;font-family:Arial;display:flex;align-items:center;justify-content:space-between}.editor_box .toast .toast_text:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2217%22 viewBox%3D%220 0 16 17%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Ccircle cx%3D%228%22 cy%3D%228.5%22 r%3D%226.5%22 stroke%3D%22%236B6B6B%22%2F%3E%0D%3Cpath d%3D%22M8 8.5V11.5%22 stroke%3D%22%236B6B6B%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Ccircle cx%3D%228%22 cy%3D%225.5%22 r%3D%221%22 fill%3D%22%236B6B6B%22%2F%3E%0D%3C%2Fsvg%3E%0D\");display:inline-block;width:16px;height:16px;vertical-align:bottom;margin-right:8px}.editor_box .toast .close_icon{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M3.50021 12.9999L12.5001 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3Cpath d%3D%22M12.4999 12.9999L3.50007 4.00007%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");cursor:pointer;display:inline-block;width:16px;height:16px}.custom-dialog-rte{padding:0 20px;border-radius:10px}.custom-row-0,.custom-row-1,.custom-row-2{display:flex;align-items:center;padding:12px 24px}.e-rte-dropdown-btn-text{padding-left:4px}.no-results-found{text-align:center}.no-results-found img{display:block;margin:0 auto}.e-custom{margin-right:.5rem;border-radius:25px!important}.custom-dialog-rte .skeleton-rectangle{border-radius:4px}@media (max-width: 767px){.cuscol-0,.cuscol-1,.cuscol-2{justify-content:center!important}.custom-row-0,.custom-row-1,.custom-row-2{flex-direction:column!important}.cuscol-1{border-right:none!important}.cuscol-0{width:100%;align-items:center}::ng-deep:host .e-dialog{max-height:80%!important}.custom-dialog-rte .e-dialog .e-dlg-content{overflow-y:auto!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor{height:100px!important}.cuscol-noresult{padding-bottom:20px!important}.e-chip-list{padding:5px!important}.cuscol{padding-right:.2rem!important;width:auto!important}.custom-row-1{height:auto!important}}.cuscol-1{display:flex;flex-direction:row!important}.cuscol-2{display:flex;flex-direction:column!important}.sentiment{color:#000!important}.custom-dialog-rte .e-dialog .e-dlg-content{padding:0!important;overflow-y:hidden}.custom-dialog-rte .e-dialog .e-dlg-header-content{padding:20px 0!important;border:0!important}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header{display:flex;align-items:center;line-height:18px;justify-content:space-between}.custom-dialog-rte .e-dialog .e-dlg-header-content .e-dlg-header .header-title{font-family:Arial;font-size:15px;font-weight:700;font-style:normal}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons{display:flex}.custom-dialog-rte .e-dialog .e-dlg-header-content .header-buttons img{width:16px;height:16px;cursor:pointer;padding:2px;margin-left:12px}.custom-dialog-rte .e-dialog .e-footer-content{padding:0!important}.custom-dialog-rte .e-dialog .e-dlg-content .e-richtexteditor.e-rte-tb-expand .e-rte-content,.e-richtexteditor.e-rte-tb-expand .e-source-content{border:0;border-bottom:1px solid #dee2e6;border-top:0px solid #dee2e6!important}.custom-dialog-rte .dialog-content .custom-row-0{border-top:0px solid #ddd!important;padding:0;margin-bottom:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-0{justify-content:left;border-right:none!important;padding:0;display:flex;gap:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1{padding:0;margin-left:12px}.custom-dialog-rte .dialog-content .custom-row-0 .cuscol-1 .e-primary{color:#44566c;border-radius:4px;border:1px solid #dbe1e7;background:#fff;width:87px;margin:0;padding:2px 12px;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px;height:28px}.custom-dialog-rte .dialog-content .custom-row-1{padding:0;height:calc(100% - 40px);gap:12px}.custom-dialog-rte .e-footer-content{border:0}.custom-dialog-rte .e-footer-content .custom-row-0{padding:20px 0}.custom-dialog-rte .e-footer-content .e-control.e-btn{font-family:Arial;font-size:12px;line-height:14px;padding:2px 12px;height:28px;background:#fff;color:#44566c}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn{border-color:#dbe1e7}.custom-dialog-rte .e-footer-content .e-control.e-btn.copy-btn:before{content:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Crect width%3D%2216%22 height%3D%2216%22 fill%3D%22white%22%2F%3E%0D%3Crect x%3D%224.5%22 y%3D%224.5%22 width%3D%229%22 height%3D%229%22 rx%3D%221.5%22 stroke%3D%22%236C7C90%22%2F%3E%0D%3Cpath d%3D%22M11.5 2.5H4.5C3.39543 2.5 2.5 3.39543 2.5 4.5V11.5%22 stroke%3D%22%236C7C90%22 stroke-linecap%3D%22round%22%2F%3E%0D%3C%2Fsvg%3E%0D\");vertical-align:middle;margin-right:6px}.custom-dialog-rte .e-footer-content .e-control.e-btn.e-primary{color:#fff;background:#1364b3}.e-dialog.largest{width:96vw!important;height:88vh!important;max-height:88vh;max-width:2100px}::ng-deep ol.custom-list{list-style:none!important;counter-reset:list-counter}::ng-deep ol.custom-list li{counter-increment:list-counter}::ng-deep ol.parentheses li::marker{content:\"(\" counter(list-counter) \") \"}::ng-deep .e-tiempos-headline{font-family:Tiempos Headline Semibold!important}::ng-deep .e-avenir-lt-pro-black{font-family:\"Avenir LT Pro 65 Medium\"!important}::ng-deep .e-avenir-lt-pro-black-oblique{font-family:Avenir LT Pro-Black Oblique!important}::ng-deep .e-avenir-lt-pro-heavy{font-family:\"Avenir LT Pro 55 Roman\"!important}::ng-deep .e-avenir-lt-pro-heavy-oblique{font-family:Avenir LT Pro-Heavy Oblique!important}::ng-deep .e-avenir-lt-pro-light{font-family:\"Avenir LT Pro 35 Light\"!important}::ng-deep .e-avenir-lt-pro-light-oblique{font-family:Avenir LT Pro-Light Oblique!important}::ng-deep .e-avenir-lt-pro-medium{font-family:Avenir LT Pro-Medium!important}::ng-deep .e-avenir-lt-pro-medium-oblique{font-family:Avenir LT Pro-Medium Oblique!important}::ng-deep .e-avenir-next-lt-pro-bold{font-family:AvenirNext LT Pro Bold!important}::ng-deep .e-avenir-next-lt-pro-demi{font-family:AvenirNext LT Pro Regular!important}::ng-deep .e-avenir-next-lt-pro-demilt{font-family:Avenir Next LT Pro-Demilt!important}::ng-deep .e-avenir-next-lt-pro-heavy{font-family:AvenirNext LT Pro Heavy!important}::ng-deep .e-avenir-next-lt-pro-heavylt{font-family:AvenirNext LT Pro Heavylt!important}::ng-deep .e-avenir-next-lt-pro-it{font-family:Avenir Next LT Pro-It!important}::ng-deep .e-avenir-next-lt-pro-light{font-family:Avenir Next LT Pro Light!important}::ng-deep .e-avenir-next-lt-pro-mediumlt{font-family:AvenirNext LT Pro Medium!important}::ng-deep .e-avenir-next-lt-pro-regular{font-family:Avenir Next LT Pro-Regular!important}::ng-deep .e-avenir-next-lt-pro-ultlt{font-family:AvenirNext LT Pro UltLight!important}::ng-deep .e-avenir-next-lt-pro-ultltlt{font-family:AvenirNext LT Pro UltLightlt!important}::ng-deep .e-source-han-sans-cn-extralight{font-family:\\601d\\6e90\\9ed1\\4f53 CN ExtraLight!important}::ng-deep .e-source-han-sans-cn-regular{font-family:Source Han Sans CN!important}::ng-deep .e-source-han-sans-cn-medium{font-family:\\601d\\6e90\\9ed1\\4f53 CN Medium!important}::ng-deep .e-source-han-sans-cn-bold{font-family:\\601d\\6e90\\9ed1\\4f53 CN!important}::ng-deep .e-ping-fang-sc-light{font-family:\\82f9\\65b9-\\7b80!important}::ng-deep .e-ping-fang-sc-medium{font-family:Ping Fang SC-Medium!important}::ng-deep .e-ping-fang-sc-regular{font-family:Ping Fang SC-Regular!important}::ng-deep .e-ping-fang-sc-semibold{font-family:Ping Fang SC-Semibold!important}.e-color-palette{width:270px!important}\n"] }]
|
|
21033
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$4.HttpClient }, { type: DialogService }, { type: i1$2.MatSnackBar }]; }, propDecorators: { rteObj: [{
|
|
20903
21034
|
type: ViewChild,
|
|
20904
21035
|
args: ["editor", { static: false }]
|
|
20905
21036
|
}], queryCategory: [{
|
|
@@ -20962,6 +21093,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
20962
21093
|
type: Output
|
|
20963
21094
|
}], actionComplete: [{
|
|
20964
21095
|
type: Output
|
|
21096
|
+
}], afterPasteCleanup: [{
|
|
21097
|
+
type: Output
|
|
20965
21098
|
}] } });
|
|
20966
21099
|
|
|
20967
21100
|
class ConfirmSelectComponent {
|