raise-common-lib 0.0.249 → 0.0.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +57 -57
  2. package/bundles/raise-common-lib.umd.js +197 -788
  3. package/bundles/raise-common-lib.umd.js.map +1 -1
  4. package/bundles/raise-common-lib.umd.min.js +1 -1
  5. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  6. package/esm2015/lib/dialog/common-dialog/index.component.js +1 -1
  7. package/esm2015/lib/form/richtexteditor/data-config.js +68 -1
  8. package/esm2015/lib/form/richtexteditor/index.component.js +130 -470
  9. package/esm5/lib/dialog/common-dialog/index.component.js +1 -1
  10. package/esm5/lib/form/richtexteditor/data-config.js +68 -1
  11. package/esm5/lib/form/richtexteditor/index.component.js +132 -519
  12. package/fesm2015/raise-common-lib.js +196 -704
  13. package/fesm2015/raise-common-lib.js.map +1 -1
  14. package/fesm5/raise-common-lib.js +198 -789
  15. package/fesm5/raise-common-lib.js.map +1 -1
  16. package/lib/form/richtexteditor/data-config.d.ts +8 -0
  17. package/lib/form/richtexteditor/index.component.d.ts +41 -64
  18. package/package.json +1 -1
  19. package/raise-common-lib.metadata.json +1 -1
  20. package/src/assets/img/arrow_right.svg +4 -4
  21. package/src/assets/img/bullet-dash.svg +3 -0
  22. package/src/assets/img/calendar-disabled.svg +6 -6
  23. package/src/assets/img/calendar.svg +6 -6
  24. package/src/assets/img/calendar_arrow_left.svg +3 -3
  25. package/src/assets/img/calendar_arrow_right.svg +3 -3
  26. package/src/assets/img/checked-vector.svg +3 -3
  27. package/src/assets/img/dialog-close.svg +4 -4
  28. package/src/assets/img/dialog-grow.svg +6 -6
  29. package/src/assets/img/dialog-shrink.svg +6 -6
  30. package/src/assets/img/plus.svg +4 -4
  31. package/src/assets/img/search.svg +4 -4
  32. package/src/assets/img/shrink-icon.svg +6 -6
  33. package/src/assets/img/time-disabled.svg +4 -4
  34. package/src/assets/img/time.svg +4 -4
  35. package/src/assets/img/toolbar-action-addFolder.svg +17 -17
  36. package/src/assets/img/toolbar-action-calculator.svg +11 -11
  37. package/src/assets/img/toolbar-action-collapse.svg +7 -7
  38. package/src/assets/img/toolbar-action-combine.svg +4 -4
  39. package/src/assets/img/toolbar-action-edit.svg +4 -4
  40. package/src/assets/img/toolbar-action-expand.svg +7 -7
  41. package/src/assets/img/toolbar-action-folderMove.svg +8 -8
  42. package/src/assets/img/toolbar-action-lock.svg +6 -6
  43. package/src/assets/img/toolbar-action-preview.svg +7 -7
  44. package/src/assets/img/toolbar-action-publish.svg +5 -5
  45. package/src/assets/img/toolbar-action-reminders.svg +10 -10
  46. package/src/assets/img/toolbar-action-rename.svg +7 -7
  47. package/src/assets/img/toolbar-action-saveSequence.svg +5 -5
  48. package/src/assets/img/toolbar-action-send-file.svg +5 -5
  49. package/src/assets/img/toolbar-action-settle.svg +7 -7
  50. package/src/assets/img/toolbar-action-share.svg +5 -5
  51. package/src/assets/img/toolbar-action-submitForApproval.svg +4 -4
  52. package/src/assets/img/toolbar-action-sync.svg +4 -4
  53. package/src/assets/img/toolbar-action-template.svg +6 -6
  54. package/src/assets/img/toolbar-action-workflow.svg +9 -9
  55. package/src/assets/style/reset/button.scss +5 -1
  56. package/esm2015/lib/form/richtexteditor/ai-config.js +0 -70
  57. package/esm2015/lib/form/richtexteditor/openapi.js +0 -175
  58. package/esm5/lib/form/richtexteditor/ai-config.js +0 -73
  59. package/esm5/lib/form/richtexteditor/openapi.js +0 -208
  60. package/lib/form/richtexteditor/ai-config.d.ts +0 -10
  61. package/lib/form/richtexteditor/openapi.d.ts +0 -3
@@ -32,7 +32,7 @@ import { DropDownListModule, DropDownTreeModule, MultiSelectAllModule, AutoCompl
32
32
  import { ToolbarService, FieldListService, NumberFormattingService, CalculatedFieldService, GroupingBarService, VirtualScrollService as VirtualScrollService$1, DrillThroughService, PivotViewAllModule, PivotFieldListAllModule } from '@syncfusion/ej2-angular-pivotview';
33
33
  import { ChartAllModule, AccumulationChartAllModule, RangeNavigatorAllModule, AccumulationChartModule, PieSeriesService, AccumulationLegendService, AccumulationTooltipService, AccumulationAnnotationService, AccumulationDataLabelService } from '@syncfusion/ej2-angular-charts';
34
34
  import { PdfViewerModule, LinkAnnotationService, BookmarkViewService, MagnificationService, ThumbnailViewService, ToolbarService as ToolbarService$2, NavigationService, TextSearchService, TextSelectionService, PrintService } from '@syncfusion/ej2-angular-pdfviewer';
35
- import { DropDownButton, DropDownButtonModule, SplitButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
35
+ import { DropDownButtonModule, SplitButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
36
36
  import { RichTextEditorAllModule, HtmlEditorService, ToolbarService as ToolbarService$3 } from '@syncfusion/ej2-angular-richtexteditor';
37
37
  import { MatMenuModule } from '@angular/material/menu';
38
38
  import { MatTooltipModule } from '@angular/material/tooltip';
@@ -25783,7 +25783,7 @@ var CommonDialogComponent = /** @class */ (function () {
25783
25783
  { type: Component, args: [{
25784
25784
  selector: "rs-common-dialog",
25785
25785
  template: "<div class=\"dialog\" [ngClass]=\"size\" [ngStyle]=\"dialogStyle\">\r\n <!-- \u5934\u90E8 -->\r\n <div *ngIf=\"!hideHeader\" mat-dialog-title class=\"dialog__header\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"header__title\">\r\n <img\r\n src=\"../../../assets/img/notification-status-warning.svg\"\r\n alt=\"\"\r\n *ngIf=\"showErrorIcon\"\r\n />\r\n {{ title }}\r\n </div>\r\n </ng-template>\r\n <!-- <div class=\"header__title\">\r\n <img\r\n src=\"../../../assets/img/notification-status-warning.svg\"\r\n alt=\"\"\r\n *ngIf=\"showErrorIcon\"\r\n />\r\n {{ title }}\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </div> -->\r\n <div class=\"header__actions\">\r\n <div *ngIf=\"showZoomBtn\" class=\"header-btn\" (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 *ngIf=\"!hideCloseIcon\" class=\"header-btn\" (click)=\"onClose()\">\r\n <img class=\"header-icon\" src=\"../../../assets/img/dialog-close.svg\" />\r\n </div>\r\n </div>\r\n </div>\r\n <!-- \u5185\u5BB9 -->\r\n <div class=\"dialog__content\" mat-dialog-content>\r\n <ng-content></ng-content>\r\n </div>\r\n <!-- \u5E95\u90E8\u6309\u94AE -->\r\n <div mat-dialog-actions class=\"dialog__footer\">\r\n <ng-content select=\"[footerSlot]\"></ng-content>\r\n <!-- \u9ED8\u8BA4\u5C55\u793A\u4FDD\u5B58/\u5173\u95ED\u6309\u94AE -->\r\n <ng-container *ngIf=\"!customFooter\">\r\n <ng-template [ngTemplateOutlet]=\"defaultTemplate\"></ng-template>\r\n </ng-container>\r\n <ng-template #defaultTemplate>\r\n <button *ngIf=\"!hideCloseBtn\" class=\"e-btn\" (click)=\"onClose()\">\r\n {{ cancelBtnLabel }}\r\n </button>\r\n <button *ngIf=\"!hideDiscardBtn\" class=\"e-btn\" (click)=\"onDiscard()\">\r\n {{ discardBtnLabel }}\r\n </button>\r\n <button *ngIf=\"!hideSaveBtn\" class=\"e-btn e-primary\" (click)=\"onSave()\">\r\n {{ saveBtnLabel }}\r\n </button>\r\n </ng-template>\r\n </div>\r\n <!-- loading -->\r\n <div class=\"dialog__loading\" [hidden]=\"!loading\">\r\n <img src=\"../../../assets/img/raise_loading.gif\" alt=\"\" />\r\n </div>\r\n</div>\r\n",
25786
- styles: [":host::ng-deep .dialog{position:relative;max-height:90vh;font-weight:400;padding:20px;overflow:hidden;display:flex;flex-direction:column}:host::ng-deep .dialog.largest{width:96vw!important;height:88vh!important;max-width:2100px;padding:20px}:host::ng-deep .dialog.medium{width:500px;padding:20px}:host::ng-deep .dialog.small{width:350px;padding:20px 16px}:host::ng-deep .dialog.small .dialog__header{color:#002c4f;margin-bottom:16px}:host::ng-deep .dialog.small .dialog__header .header__title{font-size:13px;line-height:16px}:host::ng-deep .dialog.small .dialog__content{font-size:12px;line-height:16px}:host::ng-deep .dialog.small .dialog__footer{min-height:42px;padding:16px 0 0;font-size:12px;line-height:14px}:host::ng-deep .dialog.small .dialog__footer button{padding:6px 12px;min-width:60px}:host::ng-deep .dialog.large{width:800px;padding:20px}:host::ng-deep .dialog .dialog__header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:0}:host::ng-deep .dialog .dialog__header::before{display:none}:host::ng-deep .dialog .dialog__header .header__title{color:#002c4f;font-family:Arial;font-size:15px;font-weight:700;line-height:18px;flex:1;overflow:hidden;display:flex;align-items:center;gap:8px}:host::ng-deep .dialog .dialog__header .header__actions{display:flex;align-items:center;gap:20px}:host::ng-deep .dialog .dialog__header .header-icon{display:block}:host::ng-deep .dialog .dialog__header .header-btn{cursor:pointer;padding:2px;display:flex;justify-content:center;align-items:center}:host::ng-deep .dialog .dialog__content{width:100%;min-height:38px;position:relative;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;font-size:13px;line-height:19px;flex:1;height:0}:host::ng-deep .dialog .dialog__footer{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:20px 0 0;font-size:13px;line-height:16px;margin-bottom:0}:host::ng-deep .dialog .dialog__loading{height:100%;background:0 0;position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999}:host::ng-deep .dialog .dialog__loading img{position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%)}"]
25786
+ styles: [":host::ng-deep .dialog{position:relative;max-height:90vh;max-width:90vw;font-weight:400;padding:20px;overflow:hidden;display:flex;flex-direction:column}:host::ng-deep .dialog.largest{width:96vw!important;height:88vh!important;max-width:2100px;padding:20px}:host::ng-deep .dialog.medium{width:500px;padding:20px}:host::ng-deep .dialog.small{width:350px;padding:20px 16px}:host::ng-deep .dialog.small .dialog__header{color:#002c4f;margin-bottom:16px}:host::ng-deep .dialog.small .dialog__header .header__title{font-size:13px;line-height:16px}:host::ng-deep .dialog.small .dialog__content{font-size:12px;line-height:16px}:host::ng-deep .dialog.small .dialog__footer{min-height:42px;padding:16px 0 0;font-size:12px;line-height:14px}:host::ng-deep .dialog.small .dialog__footer button{padding:6px 12px;min-width:60px}:host::ng-deep .dialog.large{width:800px;padding:20px}:host::ng-deep .dialog .dialog__header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:0}:host::ng-deep .dialog .dialog__header::before{display:none}:host::ng-deep .dialog .dialog__header .header__title{color:#002c4f;font-family:Arial;font-size:15px;font-weight:700;line-height:18px;flex:1;overflow:hidden;display:flex;align-items:center;gap:8px}:host::ng-deep .dialog .dialog__header .header__actions{display:flex;align-items:center;gap:20px}:host::ng-deep .dialog .dialog__header .header-icon{display:block}:host::ng-deep .dialog .dialog__header .header-btn{cursor:pointer;padding:2px;display:flex;justify-content:center;align-items:center}:host::ng-deep .dialog .dialog__content{width:100%;min-height:38px;position:relative;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;font-size:13px;line-height:19px;flex:1;height:0}:host::ng-deep .dialog .dialog__footer{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:20px 0 0;font-size:13px;line-height:16px;margin-bottom:0}:host::ng-deep .dialog .dialog__loading{height:100%;background:0 0;position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999}:host::ng-deep .dialog .dialog__loading img{position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%)}"]
25787
25787
  }] }
25788
25788
  ];
25789
25789
  /** @nocollapse */
@@ -38002,284 +38002,6 @@ if (false) {
38002
38002
  ConfirmSelectComponent.prototype.isInteracted;
38003
38003
  }
38004
38004
 
38005
- /**
38006
- * @fileoverview added by tsickle
38007
- * Generated from: lib/form/richtexteditor/ai-config.ts
38008
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
38009
- */
38010
- /**
38011
- * @record
38012
- */
38013
- function AIConfig() { }
38014
- if (false) {
38015
- /** @type {?} */
38016
- AIConfig.prototype.endpoint;
38017
- /** @type {?} */
38018
- AIConfig.prototype.apiKey;
38019
- /** @type {?} */
38020
- AIConfig.prototype.deployment;
38021
- /** @type {?} */
38022
- AIConfig.prototype.apiVersion;
38023
- /** @type {?} */
38024
- AIConfig.prototype.enabled;
38025
- }
38026
- // 从环境配置获取AI配置
38027
- /**
38028
- * @return {?}
38029
- */
38030
- function getAIConfig() {
38031
- return {
38032
- endpoint: "https://aidevused.openai.azure.com/",
38033
- apiKey: "ccba76e279f64653a50ac4fee90afe5c",
38034
- deployment: "gpt-4",
38035
- apiVersion: "2025-01-01-preview",
38036
- enabled: true,
38037
- };
38038
- }
38039
- // 检查配置是否有效
38040
- /**
38041
- * @param {?} config
38042
- * @return {?}
38043
- */
38044
- function isAIConfigValid(config) {
38045
- // 检查是否为aidevused端点且有有效API密钥
38046
- return !!((config.endpoint &&
38047
- config.apiKey &&
38048
- config.deployment &&
38049
- config.enabled &&
38050
- config.endpoint === "https://aidevused.openai.azure.com/" &&
38051
- config.apiKey !== "your-api-key-here") // Azure OpenAI API密钥通常以sk-开头
38052
- );
38053
- }
38054
- // 从后端API获取AI配置(推荐方式)
38055
- /**
38056
- * @return {?}
38057
- * @this {*}
38058
- */
38059
- function getAIConfigFromBackend() {
38060
- return __awaiter(this, void 0, void 0, function () {
38061
- return __generator(this, function (_a) {
38062
- try {
38063
- // 这里应该调用你的后端API来获取AI配置
38064
- // 例如:return await this.http.get('/api/ai-config');
38065
- // 临时返回默认配置
38066
- return [2 /*return*/, getAIConfig()];
38067
- }
38068
- catch (error) {
38069
- console.error("Failed to get AI config from backend:", error);
38070
- return [2 /*return*/, getAIConfig()];
38071
- }
38072
- return [2 /*return*/];
38073
- });
38074
- });
38075
- }
38076
-
38077
- /**
38078
- * @fileoverview added by tsickle
38079
- * Generated from: lib/form/richtexteditor/openapi.ts
38080
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
38081
- */
38082
- // import { testAIFunction } from './ai-test';
38083
- // testAIFunction();
38084
- // 使用fetch API发送请求到Azure OpenAI
38085
- /**
38086
- * @param {?} messages
38087
- * @param {?} config
38088
- * @return {?}
38089
- * @this {*}
38090
- */
38091
- function sendAIRequest(messages, config) {
38092
- return __awaiter(this, void 0, void 0, function () {
38093
- var url, url1, response, errorText, data, error_1;
38094
- return __generator(this, function (_a) {
38095
- switch (_a.label) {
38096
- case 0:
38097
- _a.trys.push([0, 5, , 6]);
38098
- url = config.endpoint + "/openai/deployments/" + config.deployment + "/chat/completions?api-version=" + config.apiVersion;
38099
- url1 = "" + config.endpoint;
38100
- return [4 /*yield*/, fetch(url, {
38101
- method: 'POST',
38102
- headers: {
38103
- 'Content-Type': 'application/json',
38104
- 'api-key': config.apiKey,
38105
- },
38106
- body: JSON.stringify({
38107
- messages: messages,
38108
- max_tokens: 1000,
38109
- temperature: 0.7,
38110
- top_p: 1,
38111
- frequency_penalty: 0,
38112
- presence_penalty: 0,
38113
- }),
38114
- })];
38115
- case 1:
38116
- response = _a.sent();
38117
- if (!!response.ok) return [3 /*break*/, 3];
38118
- return [4 /*yield*/, response.text()];
38119
- case 2:
38120
- errorText = _a.sent();
38121
- throw new Error("HTTP error! status: " + response.status + ", message: " + errorText);
38122
- case 3: return [4 /*yield*/, response.json()];
38123
- case 4:
38124
- data = _a.sent();
38125
- if (!data.choices || !data.choices[0] || !data.choices[0].message) {
38126
- throw new Error('Invalid response format from AI service');
38127
- }
38128
- return [2 /*return*/, data.choices[0].message.content];
38129
- case 5:
38130
- error_1 = _a.sent();
38131
- console.error('AI request failed:', error_1);
38132
- throw error_1;
38133
- case 6: return [2 /*return*/];
38134
- }
38135
- });
38136
- });
38137
- }
38138
- // 备用方案:使用模拟数据(用于开发测试)
38139
- /**
38140
- * @param {?} subQuery
38141
- * @param {?} promptQuery
38142
- * @return {?}
38143
- */
38144
- function getMockAIResponse(subQuery, promptQuery) {
38145
- var e_1, _a;
38146
- /** @type {?} */
38147
- var mockResponses = {
38148
- Rephrase: "Rephrased: " + promptQuery,
38149
- Grammar: "Corrected: " + promptQuery,
38150
- Summarize: "Summary: " + promptQuery.substring(0, 100) + "...",
38151
- Elaborate: "Elaborated: " + promptQuery + " with additional details and context.",
38152
- Translate: "Translated: " + promptQuery,
38153
- SentimentAnalysis: '😊 Positive',
38154
- };
38155
- try {
38156
- for (var _b = __values(Object.entries(mockResponses)), _c = _b.next(); !_c.done; _c = _b.next()) {
38157
- var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
38158
- if (subQuery.includes(key)) {
38159
- return value;
38160
- }
38161
- }
38162
- }
38163
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
38164
- finally {
38165
- try {
38166
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
38167
- }
38168
- finally { if (e_1) throw e_1.error; }
38169
- }
38170
- return "AI processed: " + promptQuery;
38171
- }
38172
- // 主要的AI请求方法
38173
- /**
38174
- * @param {?} subQuery
38175
- * @param {?} promptQuery
38176
- * @return {?}
38177
- * @this {*}
38178
- */
38179
- function OpenAiModelRTE(subQuery, promptQuery) {
38180
- return __awaiter(this, void 0, void 0, function () {
38181
- var config, messages, result, error_2;
38182
- return __generator(this, function (_a) {
38183
- switch (_a.label) {
38184
- case 0:
38185
- _a.trys.push([0, 2, , 3]);
38186
- config = getAIConfig();
38187
- // 检查配置是否有效
38188
- if (!isAIConfigValid(config)) {
38189
- console.warn('AI configuration is incomplete or disabled, using mock response');
38190
- return [2 /*return*/, getMockAIResponse(subQuery, promptQuery)];
38191
- }
38192
- messages = [
38193
- {
38194
- role: 'system',
38195
- content: subQuery.includes('emoji followed by the sentiment in the format')
38196
- ? 'You are a helpful assistant. Please respond in string format.'
38197
- : "NOTE: Return same html format just do changes content only. don't change html formats.",
38198
- },
38199
- {
38200
- role: 'user',
38201
- content: subQuery + " " + promptQuery,
38202
- },
38203
- ];
38204
- return [4 /*yield*/, sendAIRequest(messages, config)];
38205
- case 1:
38206
- result = _a.sent();
38207
- return [2 /*return*/, result];
38208
- case 2:
38209
- error_2 = _a.sent();
38210
- console.error('AI request failed, using mock response:', error_2);
38211
- return [2 /*return*/, getMockAIResponse(subQuery, promptQuery)];
38212
- case 3: return [2 /*return*/];
38213
- }
38214
- });
38215
- });
38216
- }
38217
- // 兼容性方法(保持向后兼容)
38218
- /**
38219
- * @param {?} options
38220
- * @return {?}
38221
- * @this {*}
38222
- */
38223
- function getAzureChatAIRequest(options) {
38224
- return __awaiter(this, void 0, void 0, function () {
38225
- var config, result, err_1;
38226
- return __generator(this, function (_a) {
38227
- switch (_a.label) {
38228
- case 0:
38229
- _a.trys.push([0, 2, , 3]);
38230
- config = getAIConfig();
38231
- if (!isAIConfigValid(config)) {
38232
- return [2 /*return*/, null];
38233
- }
38234
- return [4 /*yield*/, sendAIRequest(options.messages, config)];
38235
- case 1:
38236
- result = _a.sent();
38237
- return [2 /*return*/, result];
38238
- case 2:
38239
- err_1 = _a.sent();
38240
- console.error('Error occurred:', err_1);
38241
- return [2 /*return*/, null];
38242
- case 3: return [2 /*return*/];
38243
- }
38244
- });
38245
- });
38246
- }
38247
- /**
38248
- * @param {?} prompt
38249
- * @return {?}
38250
- * @this {*}
38251
- */
38252
- function getAzureTextAIRequest(prompt) {
38253
- return __awaiter(this, void 0, void 0, function () {
38254
- var config, messages, result, err_2;
38255
- return __generator(this, function (_a) {
38256
- switch (_a.label) {
38257
- case 0:
38258
- _a.trys.push([0, 2, , 3]);
38259
- config = getAIConfig();
38260
- if (!isAIConfigValid(config)) {
38261
- return [2 /*return*/, undefined];
38262
- }
38263
- messages = [
38264
- {
38265
- role: 'user',
38266
- content: prompt,
38267
- },
38268
- ];
38269
- return [4 /*yield*/, sendAIRequest(messages, config)];
38270
- case 1:
38271
- result = _a.sent();
38272
- return [2 /*return*/, result];
38273
- case 2:
38274
- err_2 = _a.sent();
38275
- console.error('Error occurred:', err_2);
38276
- return [2 /*return*/, undefined];
38277
- case 3: return [2 /*return*/];
38278
- }
38279
- });
38280
- });
38281
- }
38282
-
38283
38005
  /**
38284
38006
  * @fileoverview added by tsickle
38285
38007
  * Generated from: lib/form/richtexteditor/data-config.ts
@@ -38374,6 +38096,73 @@ var fontFamily = {
38374
38096
  command: "Font",
38375
38097
  subCommand: "FontName",
38376
38098
  },
38099
+ // New fonts
38100
+ {
38101
+ text: "Tiempos Headline - Semibold",
38102
+ value: "Tiempos Headline Semibold",
38103
+ cssClass: "e-tiempos-headline",
38104
+ command: "Font",
38105
+ subCommand: "FontName",
38106
+ },
38107
+ {
38108
+ text: "微软雅黑",
38109
+ value: "Microsoft YaHei,微软雅黑,SimHei, sans-serif",
38110
+ cssClass: "e-yahei",
38111
+ command: "Font",
38112
+ subCommand: "FontName",
38113
+ },
38114
+ {
38115
+ text: "等线",
38116
+ value: "DengXian,等线,sans-serif",
38117
+ cssClass: "e-dengxian",
38118
+ command: "Font",
38119
+ subCommand: "FontName",
38120
+ },
38121
+ {
38122
+ text: "思源黑体",
38123
+ value: "Source Han Sans CN, Microsoft YaHei,'微软雅黑', sans-serif",
38124
+ cssClass: "e-source-han-sans-cn-regular",
38125
+ command: "Font",
38126
+ subCommand: "FontName",
38127
+ },
38128
+ {
38129
+ text: "思源宋体",
38130
+ value: "Source Han Serif CN, SimSun,'宋体',serif",
38131
+ cssClass: "e-source-han-serif-cn-regular",
38132
+ command: "Font",
38133
+ subCommand: "FontName",
38134
+ },
38135
+ {
38136
+ text: "霞鹜文楷",
38137
+ value: "LXGW WenKai,'霞鹜文楷',STKaiti, KaiTi, '楷体', '华文楷体', Arial, sans-serif",
38138
+ cssClass: "e-lxgw",
38139
+ command: "Font",
38140
+ subCommand: "FontName",
38141
+ },
38142
+ // Ping Fang SC 系列
38143
+ {
38144
+ text: "Ping Fang SC - Light",
38145
+ value: "苹方-简",
38146
+ cssClass: "e-ping-fang-sc-light",
38147
+ command: "Font",
38148
+ subCommand: "FontName",
38149
+ },
38150
+ ],
38151
+ };
38152
+ /** @type {?} */
38153
+ var size = {
38154
+ default: "11pt",
38155
+ width: "40px",
38156
+ items: [
38157
+ { text: "8 pt", value: "8pt" },
38158
+ { text: "9 pt", value: "9pt" },
38159
+ { text: "10 pt", value: "10pt" },
38160
+ { text: "11 pt", value: "11pt" },
38161
+ { text: "12 pt", value: "12pt" },
38162
+ { text: "14 pt", value: "14pt" },
38163
+ { text: "18 pt", value: "18pt" },
38164
+ { text: "24 pt", value: "24pt" },
38165
+ { text: "36 pt", value: "36pt" },
38377
38166
  ],
38378
38167
  };
38379
38168
  // line height配置
@@ -38559,71 +38348,30 @@ function applyBulletStyle(ul, style) {
38559
38348
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
38560
38349
  */
38561
38350
  var RichtexteditorComponent = /** @class */ (function () {
38562
- function RichtexteditorComponent(ref) {
38563
- this.ref = ref;
38564
- // @ViewChild("chipList", { static: false }) public chipList!: ChipListComponent;
38565
- this.placeholder = "";
38351
+ function RichtexteditorComponent() {
38566
38352
  this.value = "";
38353
+ this.editorId = "editorId";
38567
38354
  this.height = 150;
38568
38355
  this.autoSaveOnIdle = true;
38569
- this.target = "#container"; // dialog 弹窗父级
38570
- // dialog 弹窗父级
38571
- this.toolbarClick = new EventEmitter();
38572
- this.change = new EventEmitter();
38573
- // @Output() change = new EventEmitter();
38574
- this.family = fontFamily;
38575
- this.dialogWidth = "800px";
38576
- this.dialogHeight = "642px";
38577
- this.showZoomBtn = true;
38578
- this.showMsg = false;
38356
+ this.disabled = false;
38579
38357
  this.insertImageSettings = {
38580
38358
  saveFormat: "Blob",
38581
38359
  allowedTypes: [".svg", ".png"],
38582
38360
  display: "none",
38583
38361
  };
38584
- this.size = "";
38585
- this.dropValIndex = 0;
38586
- this.queryList = [
38587
- { id: "Rephrase", text: "Rephrase" },
38588
- { id: "Grammar", text: "Correct Grammar" },
38589
- { id: "Summarize", text: "Summarize" },
38590
- { id: "Elaborate", text: "Elaborate" },
38591
- { id: "Translate", text: "Translate" },
38592
- { id: "SentimentAnalysis", text: "Sentiment Analysis" },
38593
- ];
38594
- this.rephraseTyleList = [
38595
- { text: "Standard", id: "Standard" },
38596
- { text: "Fluent", id: "Fluent" },
38597
- { text: "Professional", id: "Professional" },
38598
- ];
38599
- this.languageList = [
38600
- { id: "EN", text: "English" },
38601
- { id: "ZH", text: "Chinese (Simplified)" },
38602
- { id: "ES", text: "Spanish" },
38603
- { id: "ZHT", text: "Chinese (Traditional)" },
38604
- { id: "HI", text: "Hindi" },
38605
- { id: "AR", text: "Arabic" },
38606
- { id: "BN", text: "Bengali" },
38607
- { id: "PT", text: "Portuguese" },
38608
- { id: "RU", text: "Russian" },
38609
- { id: "JA", text: "Japanese" },
38610
- { id: "DE", text: "German" },
38611
- { id: "KO", text: "Korean" },
38612
- { id: "FR", text: "French" },
38613
- { id: "IT", text: "Italian" },
38614
- { id: "TR", text: "Turkish" },
38615
- ];
38616
- this.promptQuery = "";
38617
- this.isSentimentCheck = false;
38618
- this.subQuery = "";
38619
- this.chipValue = "Standard";
38362
+ this.toolbarClick = new EventEmitter();
38363
+ this.change = new EventEmitter();
38364
+ this.created = new EventEmitter();
38365
+ this.actionBegin = new EventEmitter();
38366
+ this.input = new EventEmitter();
38367
+ this.focus = new EventEmitter();
38368
+ this.blur = new EventEmitter();
38369
+ this.actionComplete = new EventEmitter();
38370
+ this.family = fontFamily;
38371
+ this.fontSize = size;
38620
38372
  this.tools = {
38621
38373
  enableFloating: false,
38622
38374
  items: [
38623
- {
38624
- tooltipText: "AI Assist",
38625
- template: '<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>',
38626
- },
38627
38375
  "Bold",
38628
38376
  "Italic",
38629
38377
  "Underline",
@@ -38638,21 +38386,12 @@ var RichtexteditorComponent = /** @class */ (function () {
38638
38386
  "CreateTable",
38639
38387
  "Formats",
38640
38388
  "Alignments",
38641
- {
38642
- tooltipText: "Line Height",
38643
- template: '<button class="e-tbar-btn e-btn" tabindex="-1" id="lineheight_tbar" style="width:100%"></button>',
38644
- },
38645
- "OrderedList",
38646
- "UnorderedList",
38389
+ "BulletFormatList",
38390
+ "NumberFormatList",
38647
38391
  "Outdent",
38648
38392
  "Indent",
38649
38393
  "|",
38650
38394
  "CreateLink",
38651
- {
38652
- tooltipText: "",
38653
- template: '<button class="e-tbar-btn e-btn" tabindex="-1" id="custom_tbar" style="width:100%">' +
38654
- '<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>',
38655
- },
38656
38395
  "|",
38657
38396
  "FormatPainter",
38658
38397
  "ClearFormat",
@@ -38661,14 +38400,64 @@ var RichtexteditorComponent = /** @class */ (function () {
38661
38400
  "Redo",
38662
38401
  ],
38663
38402
  };
38403
+ /**
38404
+ * 表格快捷工具栏:含 TableCell(合并/拆分单元格)
38405
+ */
38406
+ this.quickToolbarSettings = {
38407
+ table: [
38408
+ "Tableheader",
38409
+ "TableRemove",
38410
+ "|",
38411
+ "TableRows",
38412
+ "TableColumns",
38413
+ "TableCell",
38414
+ "|",
38415
+ "Styles",
38416
+ "BackgroundColor",
38417
+ "Alignments",
38418
+ "TableCellVerticalAlign",
38419
+ ],
38420
+ };
38421
+ this.bulletFormatList = {
38422
+ types: [
38423
+ { text: "None", value: "none" },
38424
+ { text: "●", value: "disc" },
38425
+ { text: "○", value: "circle" },
38426
+ { text: "■", value: "square" },
38427
+ { text: "-", value: "dash" },
38428
+ ],
38429
+ };
38430
+ this.numberFormatList = {
38431
+ types: [
38432
+ { text: "None", value: "none" },
38433
+ { text: "1, 2, 3, …", value: "decimal" },
38434
+ {
38435
+ text: "α, β, γ, …",
38436
+ value: "lowerGreek",
38437
+ },
38438
+ {
38439
+ text: "i, ii, iii, …",
38440
+ value: "lowerRoman",
38441
+ },
38442
+ {
38443
+ text: "A, B, C, …",
38444
+ value: "upperAlpha",
38445
+ },
38446
+ {
38447
+ text: "a, b, c, …",
38448
+ value: "lowerAlpha",
38449
+ },
38450
+ {
38451
+ text: "I, II, III, …",
38452
+ value: "upperRoman",
38453
+ },
38454
+ {
38455
+ text: "(1), (2), (3), …",
38456
+ value: "parentheses",
38457
+ },
38458
+ ],
38459
+ };
38664
38460
  }
38665
- /**
38666
- * @return {?}
38667
- */
38668
- RichtexteditorComponent.prototype.ngOnInit = /**
38669
- * @return {?}
38670
- */
38671
- function () { };
38672
38461
  /**
38673
38462
  * @param {?} args
38674
38463
  * @return {?}
@@ -38678,32 +38467,6 @@ var RichtexteditorComponent = /** @class */ (function () {
38678
38467
  * @return {?}
38679
38468
  */
38680
38469
  function (args) {
38681
- /** @type {?} */
38682
- var tables = document.querySelectorAll("table.e-rte-table");
38683
- tables.forEach((/**
38684
- * @param {?} table
38685
- * @return {?}
38686
- */
38687
- function (table) {
38688
- /** @type {?} */
38689
- var htmlTable = (/** @type {?} */ (table));
38690
- htmlTable.style.marginBottom = "10px";
38691
- htmlTable.style.borderCollapse = "collapse";
38692
- htmlTable.style.emptyCells = "show";
38693
- /** @type {?} */
38694
- var tdElements = table.querySelectorAll("td");
38695
- tdElements.forEach((/**
38696
- * @param {?} td
38697
- * @return {?}
38698
- */
38699
- function (td) {
38700
- td.style.border = "1px solid #adb5bd";
38701
- td.style.height = "20px";
38702
- td.style.minWidth = "20px";
38703
- td.style.padding = "2px 5px";
38704
- td.style.boxSizing = "border-box";
38705
- }));
38706
- }));
38707
38470
  this.change.emit(args);
38708
38471
  };
38709
38472
  /**
@@ -38713,431 +38476,111 @@ var RichtexteditorComponent = /** @class */ (function () {
38713
38476
  * @return {?}
38714
38477
  */
38715
38478
  function () {
38716
- var _this = this;
38717
- //bind the a click event
38718
- // let editorContent = this.rteObj.contentModule.getEditPanel() as HTMLElement;
38719
- // editorContent.addEventListener('click', this.OnClicked.bind(this));
38720
- //add the line height
38721
- this.editorManager = this.rteObj.formatter.editorManager;
38722
- /** @type {?} */
38723
- var splitButton = new DropDownButton({
38724
- items: lineHeight_items,
38725
- iconCss: "e-icons e-line-spacing",
38726
- select: this.onSelect.bind(this),
38727
- });
38728
- splitButton.appendTo("#lineheight_tbar");
38729
- // ai assist
38730
- /** @type {?} */
38731
- var aiassistantButton = new DropDownButton({
38732
- items: this.queryList,
38733
- // iconCss: "e-btn-icon e-icons e-assistview-icon e-icon-left",
38734
- select: (/**
38735
- * @param {?} args
38736
- * @return {?}
38737
- */
38738
- function (args) { return _this.aiQuerySelectedMenu(args); }),
38739
- });
38740
- aiassistantButton.appendTo("#ai_assistant_button_tbar");
38479
+ this.created.emit();
38741
38480
  };
38742
38481
  /**
38743
- * @private
38744
38482
  * @param {?} args
38745
38483
  * @return {?}
38746
38484
  */
38747
- RichtexteditorComponent.prototype.onSelect = /**
38748
- * @private
38485
+ RichtexteditorComponent.prototype._toolbarClick = /**
38749
38486
  * @param {?} args
38750
38487
  * @return {?}
38751
38488
  */
38752
38489
  function (args) {
38753
- if (this.rteObj.formatter.getUndoRedoStack().length === 0) {
38754
- this.rteObj.formatter.saveData();
38755
- }
38756
- /** @type {?} */
38757
- var nodes = this.editorManager.domNode.blockNodes();
38758
- for (var i = 0; nodes.length > i; i++) {
38759
- ((/** @type {?} */ (nodes[i]))).style.lineHeight = args.item.text;
38760
- }
38761
- this.rteObj.formatter.saveData();
38762
- this.rteObj.formatter.enableUndo(this.rteObj);
38490
+ this.toolbarClick.emit(args);
38763
38491
  };
38764
38492
  /**
38765
- * @private
38766
38493
  * @param {?} args
38767
38494
  * @return {?}
38768
38495
  */
38769
- RichtexteditorComponent.prototype.aiQuerySelectedMenu = /**
38770
- * @private
38496
+ RichtexteditorComponent.prototype._actionBegin = /**
38771
38497
  * @param {?} args
38772
38498
  * @return {?}
38773
38499
  */
38774
38500
  function (args) {
38775
- this.dialogueOpen(args.item.text);
38776
- };
38777
- /**
38778
- * @param {?} selectedQuery
38779
- * @return {?}
38780
- */
38781
- RichtexteditorComponent.prototype.dialogueOpen = /**
38782
- * @param {?} selectedQuery
38783
- * @return {?}
38784
- */
38785
- function (selectedQuery) {
38786
- var _this = this;
38787
- /** @type {?} */
38788
- var selectionText = this.rteObj.getSelectedHtml();
38789
- this.selectedQuery = selectedQuery;
38790
- if (selectionText) {
38791
- /** @type {?} */
38792
- var range = ((/** @type {?} */ (this.rteObj))).formatter.editorManager.nodeSelection.getRange(((/** @type {?} */ (this.rteObj))).contentModule.getDocument());
38793
- ((/** @type {?} */ (this.rteObj))).formatter.editorManager.nodeSelection.save(range, ((/** @type {?} */ (this.rteObj))).contentModule.getDocument());
38794
- this.dropValIndex = this.queryList.findIndex((/**
38795
- * @param {?} q
38796
- * @return {?}
38797
- */
38798
- function (q) { return q.text.toLowerCase() === selectedQuery.toLowerCase(); }));
38799
- this.queryCategory.index = this.dropValIndex;
38800
- this.leftRte.value = this.promptQuery = selectionText;
38801
- this.leftRte.refreshUI();
38802
- this.AIdialog.show();
38803
- this.updateAISugesstionsData(selectedQuery);
38804
- }
38805
- else {
38806
- this.showMsg = true;
38807
- setTimeout((/**
38808
- * @return {?}
38809
- */
38810
- function () {
38811
- _this.showMsg = false;
38812
- }), 3000);
38813
- console.log("Please select the content to perform the AI operation.");
38814
- }
38815
- };
38816
- /**
38817
- * @param {?} selectedQuery
38818
- * @return {?}
38819
- */
38820
- RichtexteditorComponent.prototype.updateAISugesstionsData = /**
38821
- * @param {?} selectedQuery
38822
- * @return {?}
38823
- */
38824
- function (selectedQuery) {
38825
- this.isSentimentCheck = false;
38826
- switch (selectedQuery) {
38827
- case "Summarize":
38828
- this.subQuery = "Summarize the upcoming sentence shortly.";
38829
- break;
38830
- case "Elaborate":
38831
- this.subQuery = "Elaborate on the upcoming sentence.";
38832
- break;
38833
- case "Rephrase":
38834
- this.subQuery = this.chipValue + " rephrase the upcoming sentence.";
38835
- break;
38836
- case "Correct Grammar":
38837
- this.subQuery = "Correct the grammar of the upcoming sentence.";
38838
- break;
38839
- case "Translate":
38840
- this.subQuery =
38841
- "Translate the upcoming sentence to " + this.translatelanguage + ".";
38842
- break;
38843
- case "Sentiment Analysis":
38844
- this.isSentimentCheck = true;
38845
- this.subQuery =
38846
- '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:';
38847
- break;
38848
- }
38849
- this.updateAISugesstions();
38850
- };
38851
- /**
38852
- * @return {?}
38853
- */
38854
- RichtexteditorComponent.prototype.updateAISugesstions = /**
38855
- * @return {?}
38856
- */
38857
- function () {
38858
- var _this = this;
38859
- try {
38860
- if (this.promptQuery) {
38861
- ((/** @type {?} */ (document.getElementById("skeletonId")))).style.display =
38862
- "";
38863
- ((/** @type {?} */ (document.getElementById("rightRte")))).style.display =
38864
- "none";
38865
- this.sentimentButton.element.style.display = "none";
38866
- this.regenerateButton.disabled = true;
38867
- this.copyButton.disabled = true;
38868
- this.replaceButton.disabled = true;
38869
- this.apiResultData = this.getResponseFromOpenAI(this.subQuery, this.promptQuery);
38870
- this.apiResultData.then((/**
38871
- * @param {?} result
38872
- * @return {?}
38873
- */
38874
- function (result) {
38875
- _this.AIResult = _this.isSentimentCheck ? _this.promptQuery : result;
38876
- _this.sentimentButton.content = result
38877
- .toLowerCase()
38878
- .includes("positive")
38879
- ? "😊 Positive"
38880
- : result.toLowerCase().includes("negative")
38881
- ? "😞 Negative"
38882
- : "😐 Neutral";
38883
- _this.sentimentButton.element.style.display = !_this.isSentimentCheck
38884
- ? "none"
38885
- : "";
38886
- _this.rightRte.value = _this.AIResult;
38887
- /** @type {?} */
38888
- var noResultsFound = !(_this.AIResult || _this.promptQuery);
38889
- ((/** @type {?} */ (document.getElementById("no-results-found")))).style.display = noResultsFound ? "" : "none";
38890
- _this.regenerateButton.disabled = noResultsFound;
38891
- _this.copyButton.disabled = noResultsFound;
38892
- _this.replaceButton.disabled = noResultsFound;
38893
- ((/** @type {?} */ (document.getElementById("skeletonId")))).style.display =
38894
- "none";
38895
- ((/** @type {?} */ (document.getElementById("rightRte")))).style.display =
38896
- noResultsFound ? "none" : "";
38897
- console.log(noResultsFound, ((/** @type {?} */ (document.getElementById("rightRte")))).style);
38898
- // this.ref.markForCheck();
38899
- }));
38900
- }
38901
- }
38902
- catch (_a) {
38903
- // this.toastObj.show();
38904
- }
38905
- };
38906
- /**
38907
- * @param {?} subQuery
38908
- * @param {?} promptQuery
38909
- * @return {?}
38910
- */
38911
- RichtexteditorComponent.prototype.getResponseFromOpenAI = /**
38912
- * @param {?} subQuery
38913
- * @param {?} promptQuery
38914
- * @return {?}
38915
- */
38916
- function (subQuery, promptQuery) {
38917
- return __awaiter(this, void 0, void 0, function () {
38918
- var content;
38919
- return __generator(this, function (_a) {
38920
- switch (_a.label) {
38921
- case 0: return [4 /*yield*/, OpenAiModelRTE(subQuery, promptQuery)];
38922
- case 1:
38923
- content = _a.sent();
38924
- return [2 /*return*/, content ? ((/** @type {?} */ (content))) : ""];
38925
- }
38926
- });
38927
- });
38928
- };
38929
- /**
38930
- * @return {?}
38931
- */
38932
- RichtexteditorComponent.prototype.dialogShow = /**
38933
- * @return {?}
38934
- */
38935
- function () {
38936
- var _this = this;
38937
- (/** @type {?} */ (this.regenerateButton)).element.addEventListener("click", (/**
38938
- * @return {?}
38939
- */
38940
- function () {
38941
- _this.updateAISugesstions();
38942
- }));
38943
- (/** @type {?} */ (this.copyButton)).element.addEventListener("click", (/**
38944
- * @return {?}
38945
- */
38946
- function () {
38947
- _this.copyTextToClipboard(_this.AIResult);
38948
- }));
38949
- (/** @type {?} */ (this.replaceButton)).element.addEventListener("click", (/**
38950
- * @return {?}
38951
- */
38952
- function () {
38953
- /** @type {?} */
38954
- var range = ((/** @type {?} */ (_this.rteObj))).formatter.editorManager.nodeSelection.getRange(((/** @type {?} */ (_this.rteObj))).contentModule.getDocument());
38955
- ((/** @type {?} */ (_this.rteObj))).formatter.editorManager.nodeSelection.restore(range);
38956
- ((/** @type {?} */ (_this.rteObj))).executeCommand("insertHTML", _this.AIResult, {
38957
- undo: true,
38958
- });
38959
- _this.closeDialog();
38960
- }));
38961
- ((/** @type {?} */ (this.AIdialog))).element.style.display = "";
38962
- };
38963
- /**
38964
- * @return {?}
38965
- */
38966
- RichtexteditorComponent.prototype.closeDialog = /**
38967
- * @return {?}
38968
- */
38969
- function () {
38970
- this.AIdialog.hide();
38971
- this.rightRte.value = "";
38972
- this.leftRte.value = "";
38973
- this.promptQuery = "";
38974
- this.chipValue = "Standard";
38975
- this.AIResult = "";
38976
- this.dropValIndex = 0;
38977
- this.selectedQuery = "Rephrase";
38978
- this.sentimentButton.content = "😊 Neutral";
38979
- };
38980
- /**
38981
- * @param {?} text
38982
- * @return {?}
38983
- */
38984
- RichtexteditorComponent.prototype.copyTextToClipboard = /**
38985
- * @param {?} text
38986
- * @return {?}
38987
- */
38988
- function (text) {
38989
- if (navigator.clipboard) {
38990
- navigator.clipboard
38991
- .writeText(text)
38992
- .then((/**
38993
- * @return {?}
38994
- */
38995
- function () {
38996
- console.log("Text copied to clipboard successfully!");
38997
- }))
38998
- .catch((/**
38999
- * @param {?} err
39000
- * @return {?}
39001
- */
39002
- function (err) {
39003
- console.error("Failed to copy text: ", err);
39004
- }));
39005
- }
39006
- else {
39007
- // Fallback for browsers that do not support the Clipboard API
39008
- /** @type {?} */
39009
- var textarea = document.createElement("textarea");
39010
- textarea.value = text;
39011
- document.body.appendChild(textarea);
39012
- textarea.select();
39013
- try {
39014
- document.execCommand("copy");
39015
- console.log("Text copied to clipboard using execCommand");
39016
- }
39017
- catch (err) {
39018
- console.error("Failed to copy text: ", err);
39019
- }
39020
- finally {
39021
- document.body.removeChild(textarea);
39022
- }
39023
- }
39024
- };
39025
- /**
39026
- * @return {?}
39027
- */
39028
- RichtexteditorComponent.prototype.onOverlayClick = /**
39029
- * @return {?}
39030
- */
39031
- function () {
39032
- /** @type {?} */
39033
- var activeEle = this.AIdialog.element.querySelector(".char_block.e-active");
39034
- if (activeEle) {
39035
- activeEle.classList.remove("e-active");
39036
- }
39037
- this.closeDialog();
38501
+ this.actionBegin.emit(args);
39038
38502
  };
39039
38503
  /**
39040
38504
  * @param {?} args
39041
38505
  * @return {?}
39042
38506
  */
39043
- RichtexteditorComponent.prototype.onQuerySelect = /**
38507
+ RichtexteditorComponent.prototype._input = /**
39044
38508
  * @param {?} args
39045
38509
  * @return {?}
39046
38510
  */
39047
38511
  function (args) {
39048
- // this.chipList.selectedChips = 0;
39049
- this.translatelanguage = "EN";
39050
- this.selectedQuery = args.itemData.text;
39051
- this.updateAISugesstionsData(args.itemData.text);
38512
+ this.input.emit(args);
39052
38513
  };
39053
38514
  /**
39054
38515
  * @param {?} args
39055
38516
  * @return {?}
39056
38517
  */
39057
- RichtexteditorComponent.prototype.onLanguageSelect = /**
38518
+ RichtexteditorComponent.prototype._actionComplete = /**
39058
38519
  * @param {?} args
39059
38520
  * @return {?}
39060
38521
  */
39061
38522
  function (args) {
39062
- this.translatelanguage = args.itemData.id;
39063
- this.updateAISugesstionsData("Translate");
38523
+ if (args.requestType == "UL") {
38524
+ if (args.elements[0].parentElement.style.listStyleType == "dash") {
38525
+ args.elements[0].parentElement.style.listStyleImage =
38526
+ "url('../../../assets/img/bullet-dash.svg')";
38527
+ args.elements[0].parentElement.style.listStyleType = "none";
38528
+ }
38529
+ }
38530
+ else if (args.requestType == "OL") {
38531
+ args.elements[0].parentElement.classList.remove("custom-list", "parentheses");
38532
+ if (args.elements[0].parentElement.style.listStyleType == "parentheses") {
38533
+ args.elements[0].parentElement.classList = "custom-list";
38534
+ args.elements[0].parentElement.classList.add("parentheses");
38535
+ }
38536
+ }
38537
+ this.actionComplete.emit(args);
39064
38538
  };
39065
38539
  /**
39066
38540
  * @param {?} args
39067
38541
  * @return {?}
39068
38542
  */
39069
- RichtexteditorComponent.prototype.onChipClick = /**
38543
+ RichtexteditorComponent.prototype._focus = /**
39070
38544
  * @param {?} args
39071
38545
  * @return {?}
39072
38546
  */
39073
38547
  function (args) {
39074
- this.chipValue = args.itemData.text;
39075
- // 事件会触发两次 必须判断args.text是否有值
39076
- if (args.itemData.text)
39077
- this.updateAISugesstionsData("Rephrase");
38548
+ this.focus.emit(args);
39078
38549
  };
39079
38550
  /**
39080
38551
  * @param {?} args
39081
38552
  * @return {?}
39082
38553
  */
39083
- RichtexteditorComponent.prototype._toolbarClick = /**
38554
+ RichtexteditorComponent.prototype._blur = /**
39084
38555
  * @param {?} args
39085
38556
  * @return {?}
39086
38557
  */
39087
38558
  function (args) {
39088
- this.toolbarClick.emit(args);
39089
- };
39090
- /**
39091
- * @return {?}
39092
- */
39093
- RichtexteditorComponent.prototype.hideToast = /**
39094
- * @return {?}
39095
- */
39096
- function () {
39097
- this.showMsg = false;
39098
- };
39099
- /**
39100
- * @return {?}
39101
- */
39102
- RichtexteditorComponent.prototype.onZoom = /**
39103
- * @return {?}
39104
- */
39105
- function () {
39106
- if (this.size === "largest") {
39107
- this.size = ""; // 恢复到原始大小
39108
- }
39109
- else {
39110
- this.size = "largest"; // 设置为最大化
39111
- }
38559
+ this.blur.emit(args);
39112
38560
  };
39113
38561
  RichtexteditorComponent.decorators = [
39114
38562
  { type: Component, args: [{
39115
38563
  selector: "rs-richtext-editor",
39116
- template: "<div class=\"editor_box\" id=\"container\">\r\n <ejs-richtexteditor\r\n #editor\r\n id=\"editor\"\r\n [height]=\"height\"\r\n [saveInterval]=\"0\"\r\n [autoSaveOnIdle]=\"autoSaveOnIdle\"\r\n [toolbarSettings]=\"tools\"\r\n [fontFamily]=\"family\"\r\n [insertImageSettings]=\"insertImageSettings\"\r\n [(value)]=\"value\"\r\n (change)=\"onContentChange($event)\"\r\n (created)=\"onCreate()\"\r\n (toolbarClick)=\"_toolbarClick($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\" style=\"display: none\">\r\n <ejs-skeleton\r\n #skeletonId1\r\n shape=\"Rectangle\"\r\n height=\"20px\"\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=\"20px\"\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=\"20px\"\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=\"20px\"\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=\"20px\"\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=\"20px\"\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",
38564
+ 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 [quickToolbarSettings]=\"quickToolbarSettings\"\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 [(value)]=\"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 >\r\n </ejs-richtexteditor>\r\n</div>\r\n",
39117
38565
  styles: [".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(../../assets/img/info.svg);display:inline-block;width:16px;height:16px;vertical-align:bottom;margin-right:8px}.editor_box .toast .close_icon{background-image:url(../../assets/img/notification-close.svg);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:0 solid #dee2e6!important}.custom-dialog-rte .dialog-content .custom-row-0{border-top:0 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(../../assets/img/editor-copy.svg);vertical-align:middle;margin-right:6px}.custom-dialog-rte .e-footer-content .e-control.e-btn.e-primary{color:#fff;background:#1364b3}.editor_box .e-dialog.largest{width:96vw!important;height:88vh!important;max-height:88vh;max-width:2100px}"]
39118
38566
  }] }
39119
38567
  ];
39120
- /** @nocollapse */
39121
- RichtexteditorComponent.ctorParameters = function () { return [
39122
- { type: ChangeDetectorRef }
39123
- ]; };
39124
38568
  RichtexteditorComponent.propDecorators = {
39125
38569
  rteObj: [{ type: ViewChild, args: ["editor", { static: false },] }],
39126
- queryCategory: [{ type: ViewChild, args: ["queryCategory", { static: false },] }],
39127
- leftRte: [{ type: ViewChild, args: ["leftRte", { static: false },] }],
39128
- rightRte: [{ type: ViewChild, args: ["rightRte", { static: false },] }],
39129
- AIdialog: [{ type: ViewChild, args: ["AIdialog", { static: true },] }],
39130
- sentimentButton: [{ type: ViewChild, args: ["sentimentButton", { static: false },] }],
39131
- regenerateButton: [{ type: ViewChild, args: ["regenerateButton", { static: false },] }],
39132
- copyButton: [{ type: ViewChild, args: ["copyButton", { static: false },] }],
39133
- replaceButton: [{ type: ViewChild, args: ["replaceButton", { static: false },] }],
39134
- placeholder: [{ type: Input }],
39135
38570
  value: [{ type: Input }],
38571
+ editorId: [{ type: Input }],
39136
38572
  height: [{ type: Input }],
39137
38573
  autoSaveOnIdle: [{ type: Input }],
39138
- target: [{ type: Input }],
38574
+ disabled: [{ type: Input }],
38575
+ insertImageSettings: [{ type: Input }],
39139
38576
  toolbarClick: [{ type: Output }],
39140
- change: [{ type: Output }]
38577
+ change: [{ type: Output }],
38578
+ created: [{ type: Output }],
38579
+ actionBegin: [{ type: Output }],
38580
+ input: [{ type: Output }],
38581
+ focus: [{ type: Output }],
38582
+ blur: [{ type: Output }],
38583
+ actionComplete: [{ type: Output }]
39141
38584
  };
39142
38585
  return RichtexteditorComponent;
39143
38586
  }());
@@ -39145,82 +38588,48 @@ if (false) {
39145
38588
  /** @type {?} */
39146
38589
  RichtexteditorComponent.prototype.rteObj;
39147
38590
  /** @type {?} */
39148
- RichtexteditorComponent.prototype.queryCategory;
39149
- /** @type {?} */
39150
- RichtexteditorComponent.prototype.leftRte;
39151
- /** @type {?} */
39152
- RichtexteditorComponent.prototype.rightRte;
39153
- /** @type {?} */
39154
- RichtexteditorComponent.prototype.AIdialog;
39155
- /** @type {?} */
39156
- RichtexteditorComponent.prototype.sentimentButton;
39157
- /** @type {?} */
39158
- RichtexteditorComponent.prototype.regenerateButton;
39159
- /** @type {?} */
39160
- RichtexteditorComponent.prototype.copyButton;
39161
- /** @type {?} */
39162
- RichtexteditorComponent.prototype.replaceButton;
39163
- /** @type {?} */
39164
- RichtexteditorComponent.prototype.placeholder;
39165
- /** @type {?} */
39166
38591
  RichtexteditorComponent.prototype.value;
39167
38592
  /** @type {?} */
38593
+ RichtexteditorComponent.prototype.editorId;
38594
+ /** @type {?} */
39168
38595
  RichtexteditorComponent.prototype.height;
39169
38596
  /** @type {?} */
39170
38597
  RichtexteditorComponent.prototype.autoSaveOnIdle;
39171
38598
  /** @type {?} */
39172
- RichtexteditorComponent.prototype.target;
39173
- /** @type {?} */
39174
- RichtexteditorComponent.prototype.toolbarClick;
39175
- /** @type {?} */
39176
- RichtexteditorComponent.prototype.change;
39177
- /** @type {?} */
39178
- RichtexteditorComponent.prototype.family;
39179
- /** @type {?} */
39180
- RichtexteditorComponent.prototype.dialogWidth;
39181
- /** @type {?} */
39182
- RichtexteditorComponent.prototype.dialogHeight;
39183
- /** @type {?} */
39184
- RichtexteditorComponent.prototype.showZoomBtn;
39185
- /** @type {?} */
39186
- RichtexteditorComponent.prototype.showMsg;
38599
+ RichtexteditorComponent.prototype.disabled;
39187
38600
  /** @type {?} */
39188
38601
  RichtexteditorComponent.prototype.insertImageSettings;
39189
38602
  /** @type {?} */
39190
- RichtexteditorComponent.prototype.editorManager;
39191
- /** @type {?} */
39192
- RichtexteditorComponent.prototype.size;
39193
- /** @type {?} */
39194
- RichtexteditorComponent.prototype.selectedQuery;
39195
- /** @type {?} */
39196
- RichtexteditorComponent.prototype.dropValIndex;
39197
- /** @type {?} */
39198
- RichtexteditorComponent.prototype.queryList;
38603
+ RichtexteditorComponent.prototype.toolbarClick;
39199
38604
  /** @type {?} */
39200
- RichtexteditorComponent.prototype.rephraseTyleList;
38605
+ RichtexteditorComponent.prototype.change;
39201
38606
  /** @type {?} */
39202
- RichtexteditorComponent.prototype.languageList;
38607
+ RichtexteditorComponent.prototype.created;
39203
38608
  /** @type {?} */
39204
- RichtexteditorComponent.prototype.promptQuery;
38609
+ RichtexteditorComponent.prototype.actionBegin;
39205
38610
  /** @type {?} */
39206
- RichtexteditorComponent.prototype.isSentimentCheck;
38611
+ RichtexteditorComponent.prototype.input;
39207
38612
  /** @type {?} */
39208
- RichtexteditorComponent.prototype.subQuery;
38613
+ RichtexteditorComponent.prototype.focus;
39209
38614
  /** @type {?} */
39210
- RichtexteditorComponent.prototype.translatelanguage;
38615
+ RichtexteditorComponent.prototype.blur;
39211
38616
  /** @type {?} */
39212
- RichtexteditorComponent.prototype.chipValue;
38617
+ RichtexteditorComponent.prototype.actionComplete;
39213
38618
  /** @type {?} */
39214
- RichtexteditorComponent.prototype.apiResultData;
38619
+ RichtexteditorComponent.prototype.family;
39215
38620
  /** @type {?} */
39216
- RichtexteditorComponent.prototype.AIResult;
38621
+ RichtexteditorComponent.prototype.fontSize;
39217
38622
  /** @type {?} */
39218
38623
  RichtexteditorComponent.prototype.tools;
39219
38624
  /**
38625
+ * 表格快捷工具栏:含 TableCell(合并/拆分单元格)
39220
38626
  * @type {?}
39221
- * @private
39222
38627
  */
39223
- RichtexteditorComponent.prototype.ref;
38628
+ RichtexteditorComponent.prototype.quickToolbarSettings;
38629
+ /** @type {?} */
38630
+ RichtexteditorComponent.prototype.bulletFormatList;
38631
+ /** @type {?} */
38632
+ RichtexteditorComponent.prototype.numberFormatList;
39224
38633
  }
39225
38634
 
39226
38635
  /**