raise-common-lib 0.0.192 → 0.0.194

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 (38) hide show
  1. package/bundles/raise-common-lib.umd.js +1357 -49
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +1 -1
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/common-grid/index.component.js +2 -2
  6. package/esm2015/lib/form/drawer-form/drawer-form.component.js +112 -44
  7. package/esm2015/lib/form/richtexteditor/ai-config.js +70 -0
  8. package/esm2015/lib/form/richtexteditor/data-config.js +273 -0
  9. package/esm2015/lib/form/richtexteditor/index.component.js +601 -0
  10. package/esm2015/lib/form/richtexteditor/openapi.js +175 -0
  11. package/esm2015/lib/layout/page-tab/index.component.js +6 -2
  12. package/esm2015/lib/raise-common-lib.module.js +7 -2
  13. package/esm2015/raise-common-lib.js +5 -4
  14. package/esm5/lib/common-grid/index.component.js +2 -2
  15. package/esm5/lib/form/drawer-form/drawer-form.component.js +123 -45
  16. package/esm5/lib/form/richtexteditor/ai-config.js +73 -0
  17. package/esm5/lib/form/richtexteditor/data-config.js +273 -0
  18. package/esm5/lib/form/richtexteditor/index.component.js +681 -0
  19. package/esm5/lib/form/richtexteditor/openapi.js +208 -0
  20. package/esm5/lib/layout/page-tab/index.component.js +6 -2
  21. package/esm5/lib/raise-common-lib.module.js +7 -2
  22. package/esm5/raise-common-lib.js +5 -4
  23. package/fesm2015/raise-common-lib.js +1230 -48
  24. package/fesm2015/raise-common-lib.js.map +1 -1
  25. package/fesm5/raise-common-lib.js +1356 -49
  26. package/fesm5/raise-common-lib.js.map +1 -1
  27. package/lib/form/drawer-form/drawer-form.component.d.ts +10 -5
  28. package/lib/form/richtexteditor/ai-config.d.ts +10 -0
  29. package/lib/form/richtexteditor/data-config.d.ts +14 -0
  30. package/lib/form/richtexteditor/index.component.d.ts +78 -0
  31. package/lib/form/richtexteditor/openapi.d.ts +3 -0
  32. package/lib/layout/page-tab/index.component.d.ts +1 -0
  33. package/package.json +1 -1
  34. package/raise-common-lib.d.ts +4 -3
  35. package/raise-common-lib.metadata.json +1 -1
  36. package/src/assets/img/editor-copy.svg +5 -0
  37. package/src/assets/img/info.svg +5 -0
  38. package/src/assets/style/reset/grid.scss +2 -1
@@ -3,12 +3,13 @@ import { FilteringEventArgs } from "@syncfusion/ej2-angular-dropdowns";
3
3
  import { FieldItem, SectionItem } from "./constants";
4
4
  export declare class DrawerFormComponent implements OnInit, OnChanges, AfterViewInit {
5
5
  private ref;
6
+ _form: Record<string, any>;
6
7
  _sections: SectionItem[];
7
8
  optionsMap: Record<string, any[]>;
8
- customTemplate: TemplateRef<any>;
9
- customSectionTemplate: Record<string, TemplateRef<any>>;
10
9
  formDisabled: boolean;
11
10
  showAnchor: boolean;
11
+ customTemplate: TemplateRef<any>;
12
+ customSectionTemplate: Record<string, TemplateRef<any>>;
12
13
  optionFields: {
13
14
  text: string;
14
15
  value: string;
@@ -16,7 +17,8 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
16
17
  groupBy: any;
17
18
  };
18
19
  showFilterNumber: number;
19
- form: Record<string, any>;
20
+ numberFormat: string;
21
+ dateFormat: string;
20
22
  formChange: EventEmitter<Record<string, any>>;
21
23
  fieldChange: EventEmitter<{
22
24
  field: FieldItem;
@@ -26,8 +28,9 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
26
28
  private containers;
27
29
  private sectionContainers;
28
30
  sections: SectionItem[];
29
- filterOptionsMap: Record<string, any[]>;
31
+ form: Record<string, any>;
30
32
  fieldValidMap: Record<string, boolean>;
33
+ dateForm: Record<string, Date>;
31
34
  dateValidMap: Record<string, boolean>;
32
35
  constructor(ref: ChangeDetectorRef);
33
36
  ngOnInit(): void;
@@ -36,7 +39,9 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
36
39
  customTemplateRender(containers: QueryList<ViewContainerRef>): void;
37
40
  customSectionRender(containers: QueryList<ViewContainerRef>): void;
38
41
  checkFormChange(previous: Record<string, any>, current: Record<string, any>): void;
42
+ syncFormToDateForm(field: FieldItem, value: any): void;
39
43
  formatForm(sections: SectionItem[]): void;
44
+ getFormProxy(form: Record<string, any>): Record<string, any>;
40
45
  updateForm(value: any, field: FieldItem): void;
41
46
  formItemValidator(field: FieldItem, isAuto?: boolean): boolean;
42
47
  preCheckFormIsValid(): boolean;
@@ -50,7 +55,7 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
50
55
  onFocus(field: FieldItem): void;
51
56
  onBlur(field: FieldItem): void;
52
57
  onFiltering(event: FilteringEventArgs, field: FieldItem): void;
53
- getValue(field: FieldItem): any;
58
+ getOptions(field: FieldItem): any[];
54
59
  getDisabled(field: FieldItem): boolean;
55
60
  getOptionFields(field: FieldItem): {
56
61
  text: string;
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ export declare function OpenAiModelRTE(subQuery: string, promptQuery: string): Promise<string>;
2
+ export declare function getAzureChatAIRequest(options: any): Promise<any>;
3
+ export declare function getAzureTextAIRequest(prompt: string): Promise<string | undefined>;
@@ -7,6 +7,7 @@ export declare class RsPageTabComponent implements OnInit, AfterViewInit {
7
7
  tabList: any[];
8
8
  currentTab: any;
9
9
  tabChange: EventEmitter<any>;
10
+ selectedItemIndex: number;
10
11
  animation: object;
11
12
  ngOnInit(): void;
12
13
  ngAfterViewInit(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib",
3
- "version": "0.0.192",
3
+ "version": "0.0.194",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^8.2.3 || ^9.0.0",
6
6
  "@angular/core": "^8.2.3 || ^9.0.0"
@@ -2,7 +2,8 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './public-api';
5
- export { CommonDeleteComponent as ɵd } from './lib/dialog/common-delete-dialog/index.component';
6
- export { NewActionNotificationComponent as ɵc } from './lib/dialog/new-action-notification/new-action-notification.component';
7
- export { ConfirmSelectComponent as ɵb } from './lib/form/confirm-select/index.component';
5
+ export { CommonDeleteComponent as ɵe } from './lib/dialog/common-delete-dialog/index.component';
6
+ export { NewActionNotificationComponent as ɵd } from './lib/dialog/new-action-notification/new-action-notification.component';
7
+ export { ConfirmSelectComponent as ɵc } from './lib/form/confirm-select/index.component';
8
+ export { RichtexteditorComponent as ɵb } from './lib/form/richtexteditor/index.component';
8
9
  export { Debounce as ɵa } from './lib/utils/decorator';