raise-common-lib 0.0.192 → 0.0.193
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/README.md +57 -57
- package/bundles/raise-common-lib.umd.js +1240 -10
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/common-grid/index.component.js +2 -2
- package/esm2015/lib/dialog/new-action-notification/new-action-notification.component.js +1 -1
- package/esm2015/lib/form/drawer-form/drawer-form.component.js +1 -1
- package/esm2015/lib/form/richtexteditor/ai-config.js +70 -0
- package/esm2015/lib/form/richtexteditor/data-config.js +273 -0
- package/esm2015/lib/form/richtexteditor/index.component.js +604 -0
- package/esm2015/lib/form/richtexteditor/openapi.js +175 -0
- package/esm2015/lib/layout/drawer/index.component.js +1 -1
- package/esm2015/lib/layout/page-tab/index.component.js +7 -3
- package/esm2015/lib/raise-common-lib.module.js +7 -2
- package/esm2015/public-api.js +2 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/common-grid/index.component.js +2 -2
- package/esm5/lib/dialog/new-action-notification/new-action-notification.component.js +1 -1
- package/esm5/lib/form/drawer-form/drawer-form.component.js +1 -1
- package/esm5/lib/form/richtexteditor/ai-config.js +73 -0
- package/esm5/lib/form/richtexteditor/data-config.js +273 -0
- package/esm5/lib/form/richtexteditor/index.component.js +684 -0
- package/esm5/lib/form/richtexteditor/openapi.js +208 -0
- package/esm5/lib/layout/drawer/index.component.js +1 -1
- package/esm5/lib/layout/page-tab/index.component.js +7 -3
- package/esm5/lib/raise-common-lib.module.js +7 -2
- package/esm5/public-api.js +2 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +1126 -12
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +1241 -12
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/richtexteditor/ai-config.d.ts +10 -0
- package/lib/form/richtexteditor/data-config.d.ts +14 -0
- package/lib/form/richtexteditor/index.component.d.ts +78 -0
- package/lib/form/richtexteditor/openapi.d.ts +3 -0
- package/lib/layout/page-tab/index.component.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/arrow_right.svg +4 -4
- package/src/assets/img/calendar-disabled.svg +6 -6
- package/src/assets/img/calendar.svg +6 -6
- package/src/assets/img/calendar_arrow_left.svg +3 -3
- package/src/assets/img/calendar_arrow_right.svg +3 -3
- package/src/assets/img/checked-vector.svg +3 -3
- package/src/assets/img/dialog-close.svg +4 -4
- package/src/assets/img/dialog-grow.svg +6 -6
- package/src/assets/img/dialog-shrink.svg +6 -6
- package/src/assets/img/editor-copy.svg +5 -0
- package/src/assets/img/info.svg +5 -0
- package/src/assets/img/plus.svg +4 -4
- package/src/assets/img/search.svg +4 -4
- package/src/assets/img/shrink-icon.svg +6 -6
- package/src/assets/img/time-disabled.svg +4 -4
- package/src/assets/img/time.svg +4 -4
- package/src/assets/img/toolbar-action-addFolder.svg +17 -17
- package/src/assets/img/toolbar-action-calculator.svg +11 -11
- package/src/assets/img/toolbar-action-collapse.svg +7 -7
- package/src/assets/img/toolbar-action-combine.svg +4 -4
- package/src/assets/img/toolbar-action-edit.svg +4 -4
- package/src/assets/img/toolbar-action-expand.svg +7 -7
- package/src/assets/img/toolbar-action-folderMove.svg +8 -8
- package/src/assets/img/toolbar-action-lock.svg +6 -6
- package/src/assets/img/toolbar-action-preview.svg +7 -7
- package/src/assets/img/toolbar-action-publish.svg +5 -5
- package/src/assets/img/toolbar-action-reminders.svg +10 -10
- package/src/assets/img/toolbar-action-rename.svg +7 -7
- package/src/assets/img/toolbar-action-saveSequence.svg +5 -5
- package/src/assets/img/toolbar-action-send-file.svg +5 -5
- package/src/assets/img/toolbar-action-settle.svg +7 -7
- package/src/assets/img/toolbar-action-share.svg +5 -5
- package/src/assets/img/toolbar-action-submitForApproval.svg +4 -4
- package/src/assets/img/toolbar-action-sync.svg +4 -4
- package/src/assets/img/toolbar-action-template.svg +6 -6
- package/src/assets/img/toolbar-action-workflow.svg +9 -9
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface AIConfig {
|
|
2
|
+
endpoint: string;
|
|
3
|
+
apiKey: string;
|
|
4
|
+
deployment: string;
|
|
5
|
+
apiVersion: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function getAIConfig(): AIConfig;
|
|
9
|
+
export declare function isAIConfigValid(config: AIConfig): boolean;
|
|
10
|
+
export declare function getAIConfigFromBackend(): Promise<AIConfig>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ItemModel } from "@syncfusion/ej2-angular-splitbuttons";
|
|
2
|
+
export declare const fontFamily: Object;
|
|
3
|
+
export declare const lineHeight_items: ItemModel[];
|
|
4
|
+
export interface BulletStyle {
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
symbol: string;
|
|
8
|
+
iconCss: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const BULLET_STYLES: BulletStyle[];
|
|
12
|
+
export declare function getBulletStyle(id: string): BulletStyle | undefined;
|
|
13
|
+
export declare function getAllBulletStyles(): BulletStyle[];
|
|
14
|
+
export declare function applyBulletStyle(ul: HTMLElement, style: BulletStyle): void;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import { DropDownListComponent } from "@syncfusion/ej2-angular-dropdowns";
|
|
3
|
+
import { RichTextEditorComponent, ToolbarSettingsModel } from "@syncfusion/ej2-angular-richtexteditor";
|
|
4
|
+
import { ButtonComponent } from "@syncfusion/ej2-angular-buttons";
|
|
5
|
+
import { DialogComponent } from "@syncfusion/ej2-angular-popups";
|
|
6
|
+
export declare class RichtexteditorComponent implements OnInit {
|
|
7
|
+
private ref;
|
|
8
|
+
rteObj: RichTextEditorComponent;
|
|
9
|
+
queryCategory: DropDownListComponent;
|
|
10
|
+
leftRte: RichTextEditorComponent;
|
|
11
|
+
rightRte: RichTextEditorComponent;
|
|
12
|
+
AIdialog: DialogComponent;
|
|
13
|
+
sentimentButton: ButtonComponent;
|
|
14
|
+
regenerateButton: ButtonComponent;
|
|
15
|
+
copyButton: ButtonComponent;
|
|
16
|
+
replaceButton: ButtonComponent;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
value: string;
|
|
19
|
+
height: number;
|
|
20
|
+
autoSaveOnIdle: boolean;
|
|
21
|
+
target: string;
|
|
22
|
+
toolbarClick: EventEmitter<any>;
|
|
23
|
+
change: EventEmitter<any>;
|
|
24
|
+
family: Object;
|
|
25
|
+
dialogWidth: string;
|
|
26
|
+
dialogHeight: string;
|
|
27
|
+
showZoomBtn: boolean;
|
|
28
|
+
showMsg: boolean;
|
|
29
|
+
insertImageSettings: {
|
|
30
|
+
saveFormat: string;
|
|
31
|
+
allowedTypes: string[];
|
|
32
|
+
display: string;
|
|
33
|
+
};
|
|
34
|
+
editorManager: any;
|
|
35
|
+
size: string;
|
|
36
|
+
selectedQuery: any;
|
|
37
|
+
dropValIndex: number;
|
|
38
|
+
queryList: {
|
|
39
|
+
id: string;
|
|
40
|
+
text: string;
|
|
41
|
+
}[];
|
|
42
|
+
rephraseTyleList: {
|
|
43
|
+
text: string;
|
|
44
|
+
id: string;
|
|
45
|
+
}[];
|
|
46
|
+
languageList: {
|
|
47
|
+
id: string;
|
|
48
|
+
text: string;
|
|
49
|
+
}[];
|
|
50
|
+
promptQuery: string;
|
|
51
|
+
isSentimentCheck: boolean;
|
|
52
|
+
subQuery: string;
|
|
53
|
+
translatelanguage: string;
|
|
54
|
+
chipValue: string;
|
|
55
|
+
apiResultData: any;
|
|
56
|
+
AIResult: string;
|
|
57
|
+
tools: ToolbarSettingsModel;
|
|
58
|
+
constructor(ref: ChangeDetectorRef);
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
onContentChange(args: any): void;
|
|
61
|
+
onCreate(): void;
|
|
62
|
+
private onSelect;
|
|
63
|
+
private aiQuerySelectedMenu;
|
|
64
|
+
dialogueOpen(selectedQuery: string): void;
|
|
65
|
+
updateAISugesstionsData(selectedQuery: string): void;
|
|
66
|
+
updateAISugesstions(): void;
|
|
67
|
+
getResponseFromOpenAI(subQuery: string, promptQuery: string): Promise<string>;
|
|
68
|
+
dialogShow(): void;
|
|
69
|
+
closeDialog(): void;
|
|
70
|
+
copyTextToClipboard(text: string): void;
|
|
71
|
+
onOverlayClick(): void;
|
|
72
|
+
onQuerySelect(args: any): void;
|
|
73
|
+
onLanguageSelect(args: any): void;
|
|
74
|
+
onChipClick(args: any): void;
|
|
75
|
+
_toolbarClick(args: any): void;
|
|
76
|
+
hideToast(): void;
|
|
77
|
+
onZoom(): void;
|
|
78
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from "./lib/form/switch-input/index.component";
|
|
|
23
23
|
export * from "./lib/form/encrypted-input/index.component";
|
|
24
24
|
export * from "./lib/form/search-input/index.component";
|
|
25
25
|
export * from "./lib/form/drawer-form/drawer-form.component";
|
|
26
|
+
export * from "./lib/form/richtexteditor/index.component";
|
|
26
27
|
export * from "./lib/form/drawer-form/constants";
|
|
27
28
|
export * from "./lib/dialog/common-dialog/index.component";
|
|
28
29
|
export * from "./lib/service/common-function.service";
|