fmode-ng 0.0.83 → 0.0.85
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/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.mjs +1 -1
- package/esm2022/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-header-area/comp-header-area.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-message-card/comp-message-card.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +1 -1
- package/esm2022/lib/aigc/index.mjs +1 -1
- package/esm2022/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-card/fm-story-card.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-list/fm-story-list.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-list/story-preview.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-loader/fm-story-loader.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.mjs +10 -0
- package/esm2022/lib/aigc/story/index.mjs +10 -0
- package/esm2022/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.mjs +10 -0
- package/esm2022/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.mjs +10 -0
- package/esm2022/lib/aigc/story/modal-chat-story/modal-chat-story.component.mjs +10 -0
- package/esm2022/lib/aigc/story/story.service.mjs +10 -0
- package/esm2022/lib/aigc/voice/fmode-voice.service.mjs +1 -1
- package/esm2022/lib/aigc/voice/index.mjs +1 -1
- package/esm2022/lib/aigc/voice/{audio.player.mjs → lib/audio/audio.player.mjs} +2 -2
- package/esm2022/lib/aigc/voice/lib/audio/audio.streamer.mjs +10 -0
- package/esm2022/lib/aigc/voice/lib/audio/streamer.microsoft.mjs +10 -0
- package/esm2022/lib/aigc/voice/lib/audio/streamer.pcm.mjs +10 -0
- package/esm2022/lib/aigc/voice/tts/fmode-tts-class.mjs +1 -1
- package/esm2022/lib/aigc/voice/tts/index.mjs +1 -1
- package/esm2022/lib/aigc/voice/tts/int-tts-provider.mjs +10 -0
- package/esm2022/lib/aigc/voice/tts/provider-doubao.mjs +10 -0
- package/esm2022/lib/aigc/voice/tts/provider-microsoft.mjs +10 -0
- package/esm2022/lib/core/agent/chat/completion/fmode-completion.mjs +1 -1
- package/esm2022/lib/core/agent/chat/completion/int-gpt-chat-options.mjs +10 -0
- package/esm2022/lib/core/agent/chat/fmode-chat.mjs +1 -1
- package/esm2022/lib/core/agent/chat/index.mjs +1 -1
- package/esm2022/lib/core/agent/prompt/agent.prompt.mjs +1 -1
- package/esm2022/lib/core/index.mjs +10 -0
- package/esm2022/lib/core/voice/index.mjs +10 -0
- package/esm2022/lib/icon/filetype/audio.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/avatar.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/chat.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/docx.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/file.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/filetype.pipe.mjs +10 -0
- package/esm2022/lib/icon/filetype/index.mjs +10 -0
- package/esm2022/lib/icon/filetype/md.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/pdf.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/pptx.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/svgtoblob.mjs +10 -0
- package/esm2022/lib/icon/filetype/video.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/xlsx.svg.mjs +10 -0
- package/esm2022/lib/icon/index.mjs +10 -0
- package/esm2022/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.mjs +10 -0
- package/esm2022/lib/person/comp-person-item/comp-person-item.component.mjs +10 -0
- package/esm2022/lib/person/comp-person-story/comp-person-story.component.mjs +10 -0
- package/esm2022/lib/person/edit-upload/edit-upload.component.mjs +10 -0
- package/esm2022/lib/person/edit-upload/edit-upload.module.mjs +10 -0
- package/esm2022/lib/person/index.mjs +10 -0
- package/esm2022/lib/person/modal-person-select/modal-person-select.component.mjs +10 -0
- package/esm2022/lib/person/modal-user-verify/secret-text.pipe.mjs +10 -0
- package/esm2022/lib/person/modal-user-verify/user-verify.component.mjs +10 -0
- package/esm2022/lib/person/person-detail/person-detail.component.mjs +10 -0
- package/esm2022/lib/person/person.service.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/article.service.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/draft.service.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-editor.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/outline-count.pipe.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/prompt/prompt-insertion-article.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/task-article-generation.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-draft-create.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline-edit.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-preview.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-writing-options.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-document-select.mjs +10 -0
- package/esm2022/lib/text/fm-text-quill/fm-text-quill.component.mjs +10 -0
- package/esm2022/lib/text/index.mjs +10 -0
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/fmode-ng.mjs +1 -1
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.d.ts +5 -3
- package/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.d.ts +4 -2
- package/lib/aigc/chat/chat-message-card/comp-message-card.component.d.ts +6 -1
- package/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.d.ts +6 -3
- package/lib/aigc/chat/chat-modal-input/modal-input.component.d.ts +5 -1
- package/lib/aigc/index.d.ts +1 -0
- package/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.d.ts +23 -0
- package/lib/aigc/story/fm-story-card/fm-story-card.component.d.ts +26 -0
- package/lib/aigc/story/fm-story-list/fm-story-list.component.d.ts +71 -0
- package/lib/aigc/story/fm-story-list/story-preview.d.ts +20 -0
- package/lib/aigc/story/fm-story-loader/fm-story-loader.component.d.ts +38 -0
- package/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.d.ts +13 -0
- package/lib/aigc/story/index.d.ts +5 -0
- package/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.d.ts +14 -0
- package/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.d.ts +29 -0
- package/lib/aigc/story/modal-chat-story/modal-chat-story.component.d.ts +44 -0
- package/lib/aigc/story/story.service.d.ts +12 -0
- package/lib/aigc/voice/fmode-voice.service.d.ts +3 -6
- package/lib/aigc/voice/index.d.ts +3 -2
- package/lib/aigc/voice/lib/audio/audio.streamer.d.ts +33 -0
- package/lib/aigc/voice/{stream.player.d.ts → lib/audio/streamer.microsoft.d.ts} +2 -2
- package/lib/aigc/voice/lib/audio/streamer.pcm.d.ts +45 -0
- package/lib/aigc/voice/tts/fmode-tts-class.d.ts +17 -37
- package/lib/aigc/voice/tts/index.d.ts +3 -0
- package/lib/aigc/voice/tts/int-tts-provider.d.ts +35 -0
- package/lib/aigc/voice/tts/provider-doubao.d.ts +43 -0
- package/lib/aigc/voice/tts/provider-microsoft.d.ts +21 -0
- package/lib/core/agent/chat/completion/fmode-completion.d.ts +2 -1
- package/lib/core/agent/chat/completion/int-gpt-chat-options.d.ts +72 -0
- package/lib/core/agent/chat/index.d.ts +1 -1
- package/lib/core/agent/chat/interface.d.ts +3 -0
- package/lib/core/agent/prompt/agent.prompt.d.ts +2 -1
- package/lib/core/index.d.ts +2 -0
- package/lib/core/voice/index.d.ts +1 -0
- package/lib/icon/filetype/audio.svg.d.ts +1 -0
- package/lib/icon/filetype/avatar.svg.d.ts +1 -0
- package/lib/icon/filetype/chat.svg.d.ts +1 -0
- package/lib/icon/filetype/docx.svg.d.ts +1 -0
- package/lib/icon/filetype/file.svg.d.ts +1 -0
- package/lib/icon/filetype/filetype.pipe.d.ts +8 -0
- package/lib/icon/filetype/index.d.ts +11 -0
- package/lib/icon/filetype/md.svg.d.ts +1 -0
- package/lib/icon/filetype/pdf.svg.d.ts +1 -0
- package/lib/icon/filetype/pptx.svg.d.ts +1 -0
- package/lib/icon/filetype/svgtoblob.d.ts +1 -0
- package/lib/icon/filetype/video.svg.d.ts +1 -0
- package/lib/icon/filetype/xlsx.svg.d.ts +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.d.ts +20 -0
- package/lib/person/comp-person-item/comp-person-item.component.d.ts +10 -0
- package/lib/person/comp-person-story/comp-person-story.component.d.ts +67 -0
- package/lib/person/edit-upload/edit-upload.component.d.ts +81 -0
- package/lib/person/edit-upload/edit-upload.module.d.ts +11 -0
- package/lib/person/index.d.ts +4 -0
- package/lib/person/modal-person-select/modal-person-select.component.d.ts +25 -0
- package/lib/person/modal-user-verify/secret-text.pipe.d.ts +7 -0
- package/lib/person/modal-user-verify/user-verify.component.d.ts +88 -0
- package/lib/person/person-detail/person-detail.component.d.ts +41 -0
- package/lib/person/person.service.d.ts +33 -0
- package/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.d.ts +23 -0
- package/lib/text/fm-article-editor/article.service.d.ts +41 -0
- package/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.d.ts +19 -0
- package/lib/text/fm-article-editor/draft.service.d.ts +33 -0
- package/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.d.ts +73 -0
- package/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.d.ts +81 -0
- package/lib/text/fm-article-editor/fm-article-editor.component.d.ts +90 -0
- package/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.d.ts +36 -0
- package/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.d.ts +12 -0
- package/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.d.ts +55 -0
- package/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.d.ts +31 -0
- package/lib/text/fm-article-editor/outline-count.pipe.d.ts +7 -0
- package/lib/text/fm-article-editor/prompt/prompt-insertion-article.d.ts +6 -0
- package/lib/text/fm-article-editor/task-article-generation.d.ts +23 -0
- package/lib/text/fm-article-editor/tasks/task-article-draft-create.d.ts +18 -0
- package/lib/text/fm-article-editor/tasks/task-article-outline-edit.d.ts +14 -0
- package/lib/text/fm-article-editor/tasks/task-article-outline.d.ts +19 -0
- package/lib/text/fm-article-editor/tasks/task-article-preview.d.ts +7 -0
- package/lib/text/fm-article-editor/tasks/task-article-writing-options.d.ts +14 -0
- package/lib/text/fm-article-editor/tasks/task-document-select.d.ts +14 -0
- package/lib/text/fm-text-quill/fm-text-quill.component.d.ts +39 -0
- package/lib/text/index.d.ts +3 -0
- package/package.json +6 -2
- package/public-api.d.ts +4 -0
- package/esm2022/lib/aigc/voice/lib/recorder/engine-pcm.mjs +0 -10
- package/esm2022/lib/aigc/voice/lib/recorder/engine-wav.mjs +0 -10
- package/esm2022/lib/aigc/voice/stream.player.mjs +0 -10
- package/lib/aigc/voice/lib/recorder/engine-pcm.d.ts +0 -1
- package/lib/aigc/voice/lib/recorder/engine-wav.d.ts +0 -1
- /package/lib/aigc/voice/{audio.player.d.ts → lib/audio/audio.player.d.ts} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PersonService {
|
|
5
|
+
dialog: MatDialog;
|
|
6
|
+
personMap: {
|
|
7
|
+
[key: string]: Parse.Object;
|
|
8
|
+
};
|
|
9
|
+
constructor(dialog: MatDialog);
|
|
10
|
+
loadPersonById(id: string): Promise<Parse.Object>;
|
|
11
|
+
objectMap: any;
|
|
12
|
+
loadObjectById(className: string, id: string, keys: Array<string>): Promise<Parse.Object>;
|
|
13
|
+
test(): Promise<unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* 角色关系图谱:Agent分析推理
|
|
16
|
+
*/
|
|
17
|
+
PromptTplPersonRelationCode: string;
|
|
18
|
+
/**
|
|
19
|
+
* 角色关系图谱:渲染效果生成
|
|
20
|
+
* @param personList
|
|
21
|
+
* @param personRelationList
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
loadSelfPerson(): Promise<Parse.Object<Parse.Attributes>>;
|
|
25
|
+
queryOwnPerson(options?: {
|
|
26
|
+
roleTags: any;
|
|
27
|
+
}): Promise<Parse.Object<Parse.Attributes>[]>;
|
|
28
|
+
queryAuthPerson(options?: {
|
|
29
|
+
roleTags: any;
|
|
30
|
+
}): Promise<Parse.Object<Parse.Attributes>[]>;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersonService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PersonService>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
|
3
|
+
import { NavController } from '@ionic/angular';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ArticleEditorTopbarComponent implements OnInit {
|
|
6
|
+
private navCtrl;
|
|
7
|
+
popover?: any;
|
|
8
|
+
article: Parse.Object | undefined;
|
|
9
|
+
contentChanged: boolean;
|
|
10
|
+
isSaving: boolean;
|
|
11
|
+
onNavEvent: EventEmitter<string>;
|
|
12
|
+
goBack(): void;
|
|
13
|
+
navEvent(type: string): void;
|
|
14
|
+
onPublicChange(ev: MatSlideToggleChange): void;
|
|
15
|
+
showCard: boolean;
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
presentPopover(e: Event): void;
|
|
18
|
+
showPopover: boolean;
|
|
19
|
+
constructor(navCtrl: NavController);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArticleEditorTopbarComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArticleEditorTopbarComponent, "fm-article-editor-topbar", never, { "article": { "alias": "article"; "required": false; }; "contentChanged": { "alias": "contentChanged"; "required": false; }; "isSaving": { "alias": "isSaving"; "required": false; }; }, { "onNavEvent": "onNavEvent"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { ClipboardService } from '../../aigc/comp-markdown-preview/clipboard.service';
|
|
3
|
+
import { WechatJssdkService } from '../../social/wechat/wechat-jssdk.service';
|
|
4
|
+
import Parse from "parse";
|
|
5
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
|
+
import { ModalController } from '@ionic/angular/standalone';
|
|
7
|
+
import { PersonService } from '../../person/person.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ArticleService {
|
|
10
|
+
private router;
|
|
11
|
+
private wxjssdk;
|
|
12
|
+
private clipboard;
|
|
13
|
+
private dialog;
|
|
14
|
+
private modalCtrl;
|
|
15
|
+
private personServ;
|
|
16
|
+
Article: Parse.ObjectConstructor;
|
|
17
|
+
constructor(router: Router, wxjssdk: WechatJssdkService, clipboard: ClipboardService, dialog: MatDialog, modalCtrl: ModalController, personServ: PersonService);
|
|
18
|
+
articleList: Array<Parse.Object>;
|
|
19
|
+
limit: number;
|
|
20
|
+
skip: number;
|
|
21
|
+
loadArticle(options: {
|
|
22
|
+
currentTab: string;
|
|
23
|
+
isNew: boolean;
|
|
24
|
+
}): Promise<Array<Parse.Object>>;
|
|
25
|
+
createArticle(options?: {
|
|
26
|
+
noRedirect: boolean;
|
|
27
|
+
}): Promise<Parse.Object<Parse.Attributes>>;
|
|
28
|
+
newArticleByStory(): Promise<void>;
|
|
29
|
+
newTitle(): string;
|
|
30
|
+
shareArticle(article?: Parse.Object): Promise<void>;
|
|
31
|
+
initWxShareInfo(article: Parse.Object): void;
|
|
32
|
+
getArticleBanner(article?: Parse.Object): string[];
|
|
33
|
+
loadArtcleAnalysis(articleList: Parse.Object[]): Promise<void>;
|
|
34
|
+
viewArticle(article: Parse.Object): void;
|
|
35
|
+
likeMap: any;
|
|
36
|
+
ArticleLike: any;
|
|
37
|
+
likeArticle(article?: Parse.Object, type?: string): Promise<void>;
|
|
38
|
+
collectMap: any;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArticleService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ArticleService>;
|
|
41
|
+
}
|
package/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ModalController } from '@ionic/angular/standalone';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CompUploadBookBannersComponent implements OnInit {
|
|
5
|
+
private modalCtrl;
|
|
6
|
+
articleId: any;
|
|
7
|
+
constructor(modalCtrl: ModalController);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
banner: any;
|
|
10
|
+
/**
|
|
11
|
+
* 清除上传框封面
|
|
12
|
+
*/
|
|
13
|
+
changeBanner(): void;
|
|
14
|
+
article: any;
|
|
15
|
+
getArticle(): Promise<void>;
|
|
16
|
+
saveSelection(): Promise<void>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompUploadBookBannersComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompUploadBookBannersComponent, "app-comp-upload-book-banners", never, { "articleId": { "alias": "articleId"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { PersonService } from '../../person/person.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DraftService {
|
|
7
|
+
private personServ;
|
|
8
|
+
DraftListMap: {
|
|
9
|
+
[key: string]: Parse.Object[];
|
|
10
|
+
};
|
|
11
|
+
DraftCountMap: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
total: number;
|
|
15
|
+
aiCount: number;
|
|
16
|
+
draftCount: number;
|
|
17
|
+
constructor(personServ: PersonService);
|
|
18
|
+
loadArticleDraft(article: Parse.Object): Promise<void>;
|
|
19
|
+
newSectionCreate(params: {
|
|
20
|
+
writingOptions: any;
|
|
21
|
+
person?: Parse.Object;
|
|
22
|
+
outlineJson: any;
|
|
23
|
+
contentArray: any;
|
|
24
|
+
draft: Parse.Object | undefined;
|
|
25
|
+
sectionIndex: number;
|
|
26
|
+
documentList?: Array<any>;
|
|
27
|
+
afterComplete?: Function;
|
|
28
|
+
cdRef?: ChangeDetectorRef;
|
|
29
|
+
}): Promise<Subscription>;
|
|
30
|
+
testCreateLongArticle(draft: any, contentArray: any, sectionIndex: number, afterComplete?: Function, cdRef?: any): Subscription;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DraftService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DraftService>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { AlertController, AnimationController, ModalController } from '@ionic/angular/standalone';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { FormGroup } from '@angular/forms';
|
|
5
|
+
import { ClipboardService } from '../../../aigc';
|
|
6
|
+
import { NovaUploadService } from '../../../storage';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import Quill, { Range } from 'quill';
|
|
9
|
+
import { PersonService } from '../../../person/person.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class FmArticleAitoolComponent implements OnInit {
|
|
12
|
+
private alertCtrl;
|
|
13
|
+
private modalCtrl;
|
|
14
|
+
private dialog;
|
|
15
|
+
private nupload;
|
|
16
|
+
private cdRef;
|
|
17
|
+
private clipboard;
|
|
18
|
+
private personServ;
|
|
19
|
+
article: Parse.Object | undefined;
|
|
20
|
+
aitab: string;
|
|
21
|
+
clicktab: string;
|
|
22
|
+
clickTab(clicktab: string): Promise<void>;
|
|
23
|
+
dashboardtab: string;
|
|
24
|
+
dashboardTab(dashboardtab: string): Promise<void>;
|
|
25
|
+
close(): void;
|
|
26
|
+
constructor(alertCtrl: AlertController, modalCtrl: ModalController, dialog: MatDialog, nupload: NovaUploadService, cdRef: ChangeDetectorRef, clipboard: ClipboardService, personServ: PersonService);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
cards: {
|
|
29
|
+
title: string;
|
|
30
|
+
handle: () => void;
|
|
31
|
+
content: string;
|
|
32
|
+
imageurl: string;
|
|
33
|
+
}[];
|
|
34
|
+
linkEditor(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* 文章全文生成
|
|
37
|
+
* @param afterTask
|
|
38
|
+
*/
|
|
39
|
+
taskArticleGeneration(afterTask?: Function): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* 文章段落润色
|
|
42
|
+
*/
|
|
43
|
+
/**文章内容:判定是否更改 */
|
|
44
|
+
content: string | undefined;
|
|
45
|
+
oldContent: string | undefined;
|
|
46
|
+
contentChanged: boolean;
|
|
47
|
+
/**段落内容:选中及润色 */
|
|
48
|
+
selectQuill: Quill | undefined;
|
|
49
|
+
selectText: string;
|
|
50
|
+
selectRange: Range | undefined;
|
|
51
|
+
optimizeText: string | any;
|
|
52
|
+
isOptimizing: boolean;
|
|
53
|
+
optimize$: Subscription | undefined;
|
|
54
|
+
cancelOptimize(): void;
|
|
55
|
+
optimizeContent(): void;
|
|
56
|
+
copyOptimize(): void;
|
|
57
|
+
applyOptimize(): void;
|
|
58
|
+
/** 交互组件:信息提示 */
|
|
59
|
+
presentAlert(options: {
|
|
60
|
+
message: string;
|
|
61
|
+
}): Promise<void>;
|
|
62
|
+
tempFormGroup: FormGroup<{}>;
|
|
63
|
+
uploadImage(): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmArticleAitoolComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmArticleAitoolComponent, "app-fm-article-aitool", never, { "article": { "alias": "article"; "required": false; }; }, {}, never, never, true, never>;
|
|
66
|
+
}
|
|
67
|
+
export interface AIToolOptions {
|
|
68
|
+
modalCtrl: ModalController;
|
|
69
|
+
alertCtrl: AlertController;
|
|
70
|
+
animationCtrl: AnimationController;
|
|
71
|
+
article: Parse.Object;
|
|
72
|
+
}
|
|
73
|
+
export declare function openArticleAITool(options: AIToolOptions): Promise<any>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { DraftService } from '../draft.service';
|
|
4
|
+
import Parse from "parse";
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import { MatAccordion } from '@angular/material/expansion';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FmArticleDraftComponent implements OnInit {
|
|
9
|
+
draftServ: DraftService;
|
|
10
|
+
private cdRef?;
|
|
11
|
+
expandComp: MatAccordion | undefined;
|
|
12
|
+
article: Parse.Object | undefined;
|
|
13
|
+
selectArticleDraft: Parse.Object | undefined;
|
|
14
|
+
isSelectMode: boolean;
|
|
15
|
+
constructor(draftServ: DraftService, cdRef?: ChangeDetectorRef);
|
|
16
|
+
getAcc(): void;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
onDraftConfirm: EventEmitter<string>;
|
|
19
|
+
confirmDraft(): void;
|
|
20
|
+
previewDraft(draft: Parse.Object): void;
|
|
21
|
+
currentDraft: Parse.Object | undefined;
|
|
22
|
+
currentHTML: string;
|
|
23
|
+
ArticleDraft: any;
|
|
24
|
+
isCreating: boolean | undefined;
|
|
25
|
+
isCreatingMap: {
|
|
26
|
+
[index: number]: boolean;
|
|
27
|
+
};
|
|
28
|
+
isCompleteMap: {
|
|
29
|
+
[index: number]: boolean;
|
|
30
|
+
};
|
|
31
|
+
create$: Subscription | undefined;
|
|
32
|
+
create$Map: {
|
|
33
|
+
[index: number]: Subscription;
|
|
34
|
+
};
|
|
35
|
+
createNewDraft(outlineJson: any, writingOptions: any, person?: Parse.Object, docList?: Array<any>, documentList?: Array<any>): Promise<void>;
|
|
36
|
+
contentArray: any;
|
|
37
|
+
createAllSections(documentList: any, writingOptions: any, person?: Parse.Object): Promise<void>;
|
|
38
|
+
stopCreatingAll(): void;
|
|
39
|
+
stopCreating(index: number): void;
|
|
40
|
+
checkAllComplete(index: number): boolean;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmArticleDraftComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmArticleDraftComponent, "fm-article-draft", never, { "article": { "alias": "article"; "required": false; }; }, { "onDraftConfirm": "onDraftConfirm"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
44
|
+
export declare class DialogArticleDraft {
|
|
45
|
+
dialogRef: MatDialogRef<FmArticleDraftComponent>;
|
|
46
|
+
data: {
|
|
47
|
+
person?: Parse.Object;
|
|
48
|
+
book?: Parse.Object;
|
|
49
|
+
article: Parse.Object;
|
|
50
|
+
outlineJson: any;
|
|
51
|
+
writingOptions: Array<any>;
|
|
52
|
+
documentList?: Array<any>;
|
|
53
|
+
docList?: Array<any>;
|
|
54
|
+
createNewDraft?: boolean;
|
|
55
|
+
};
|
|
56
|
+
draftComp: FmArticleDraftComponent | undefined;
|
|
57
|
+
person: Parse.Object | undefined;
|
|
58
|
+
book: Parse.Object | undefined;
|
|
59
|
+
article: Parse.Object | undefined;
|
|
60
|
+
isSelectMode: boolean;
|
|
61
|
+
selectCount: number | undefined;
|
|
62
|
+
outlineJson: any;
|
|
63
|
+
writingOptions: any;
|
|
64
|
+
docList: Array<any> | undefined;
|
|
65
|
+
documentList: Array<any> | undefined;
|
|
66
|
+
createNewDraft: boolean;
|
|
67
|
+
constructor(dialogRef: MatDialogRef<FmArticleDraftComponent>, data: {
|
|
68
|
+
person?: Parse.Object;
|
|
69
|
+
book?: Parse.Object;
|
|
70
|
+
article: Parse.Object;
|
|
71
|
+
outlineJson: any;
|
|
72
|
+
writingOptions: Array<any>;
|
|
73
|
+
documentList?: Array<any>;
|
|
74
|
+
docList?: Array<any>;
|
|
75
|
+
createNewDraft?: boolean;
|
|
76
|
+
});
|
|
77
|
+
ngOnInit(): void;
|
|
78
|
+
onConfirm(): void;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogArticleDraft, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogArticleDraft, "article-draft-dialog", never, {}, {}, never, never, true, never>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import Quill, { Range } from 'quill';
|
|
4
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
+
import { AgentTaskStep } from '../../core/agent/task/agent.task';
|
|
6
|
+
import { ClipboardService } from '../../aigc';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import { AlertController, ModalController } from '@ionic/angular/standalone';
|
|
9
|
+
import { DraftService } from './draft.service';
|
|
10
|
+
import { Router } from '@angular/router';
|
|
11
|
+
import Parse from "parse";
|
|
12
|
+
import { NovaUploadService } from '../../storage/service-upload/nova-upload.service';
|
|
13
|
+
import { PersonService } from '../../person/person.service';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class FmArticleEditorComponent implements OnInit {
|
|
16
|
+
private modalCtrl;
|
|
17
|
+
private alertController;
|
|
18
|
+
dialog: MatDialog;
|
|
19
|
+
private cdRef;
|
|
20
|
+
private clipboard;
|
|
21
|
+
draftServ: DraftService;
|
|
22
|
+
private router;
|
|
23
|
+
private nupload;
|
|
24
|
+
private personServ;
|
|
25
|
+
editorComp: ElementRef | undefined;
|
|
26
|
+
article: Parse.Object | undefined;
|
|
27
|
+
onClose: EventEmitter<boolean>;
|
|
28
|
+
book: Parse.Object | undefined;
|
|
29
|
+
readOnly: boolean;
|
|
30
|
+
quill: Quill | undefined;
|
|
31
|
+
ngOnInit(): Promise<void>;
|
|
32
|
+
setContent(content: any, arrayItem?: any): void;
|
|
33
|
+
selectChange(event: any): void;
|
|
34
|
+
goOptimizeText(event: any): void;
|
|
35
|
+
title: string;
|
|
36
|
+
/**文章内容:判定是否更改 */
|
|
37
|
+
content: string | undefined;
|
|
38
|
+
oldContent: string | undefined;
|
|
39
|
+
contentChanged: boolean;
|
|
40
|
+
/**段落内容:选中及润色 */
|
|
41
|
+
selectQuill: Quill | undefined;
|
|
42
|
+
selectText: string;
|
|
43
|
+
selectRange: Range | undefined;
|
|
44
|
+
optimizeText: string | any;
|
|
45
|
+
isOptimizing: boolean;
|
|
46
|
+
optimize$: Subscription | undefined;
|
|
47
|
+
cancelOptimize(): void;
|
|
48
|
+
optimizeContent(): void;
|
|
49
|
+
copyOptimize(): void;
|
|
50
|
+
applyOptimize(): void;
|
|
51
|
+
handleNavEvent(eventType: any, options?: any): void;
|
|
52
|
+
isSaving: boolean;
|
|
53
|
+
saveArticleContent(): Promise<void>;
|
|
54
|
+
close(): void;
|
|
55
|
+
isDivHidden: boolean;
|
|
56
|
+
/** 交互组件:信息提示 */
|
|
57
|
+
presentAlert(options: {
|
|
58
|
+
message: string;
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
/**全部 */
|
|
61
|
+
aitab: string;
|
|
62
|
+
aiTab(aitab: string): Promise<void>;
|
|
63
|
+
clicktab: string;
|
|
64
|
+
clickTab(clicktab: string): Promise<void>;
|
|
65
|
+
dashboardtab: string;
|
|
66
|
+
dashboardTab(dashboardtab: string): Promise<void>;
|
|
67
|
+
selectedContent: string;
|
|
68
|
+
showContent(content: string): void;
|
|
69
|
+
constructor(modalCtrl: ModalController, alertController: AlertController, dialog: MatDialog, cdRef: ChangeDetectorRef, clipboard: ClipboardService, draftServ: DraftService, router: Router, nupload: NovaUploadService, personServ: PersonService);
|
|
70
|
+
cards: {
|
|
71
|
+
title: string;
|
|
72
|
+
handle: () => void;
|
|
73
|
+
content: string;
|
|
74
|
+
imageurl: string;
|
|
75
|
+
}[];
|
|
76
|
+
enableButton(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Agent 序列任务
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* 文章全文生成
|
|
82
|
+
* @param afterTask
|
|
83
|
+
*/
|
|
84
|
+
taskArticleGeneration(afterTask?: Function): Promise<void>;
|
|
85
|
+
doArticleTask(stepList: Array<AgentTaskStep>, shareData: any, afterTask?: Function): void;
|
|
86
|
+
tempFormGroup: FormGroup<{}>;
|
|
87
|
+
uploadImage(): void;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmArticleEditorComponent, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmArticleEditorComponent, "fm-article-editor", never, { "article": { "alias": "article"; "required": false; }; "book": { "alias": "book"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, { "onClose": "onClose"; }, never, never, true, never>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FmArticleOutlineComponent implements OnInit {
|
|
5
|
+
article: Parse.Object | undefined;
|
|
6
|
+
outlineJson: any;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmArticleOutlineComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmArticleOutlineComponent, "fm-article-outline", never, { "article": { "alias": "article"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class DialogArticleOutline {
|
|
13
|
+
dialogRef: MatDialogRef<FmArticleOutlineComponent>;
|
|
14
|
+
data: {
|
|
15
|
+
person?: Parse.Object;
|
|
16
|
+
book?: Parse.Object;
|
|
17
|
+
article: Parse.Object;
|
|
18
|
+
};
|
|
19
|
+
storySelectComp: FmArticleOutlineComponent | undefined;
|
|
20
|
+
person: Parse.Object | undefined;
|
|
21
|
+
book: Parse.Object | undefined;
|
|
22
|
+
article: Parse.Object | undefined;
|
|
23
|
+
isSelectMode: boolean;
|
|
24
|
+
selectCount: number | undefined;
|
|
25
|
+
outline: object | string;
|
|
26
|
+
writingOptions: any;
|
|
27
|
+
confirmOutline(): void;
|
|
28
|
+
constructor(dialogRef: MatDialogRef<FmArticleOutlineComponent>, data: {
|
|
29
|
+
person?: Parse.Object;
|
|
30
|
+
book?: Parse.Object;
|
|
31
|
+
article: Parse.Object;
|
|
32
|
+
});
|
|
33
|
+
onConfirm(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogArticleOutline, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogArticleOutline, "article-outline-dialog", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FmArticleOutlineLeftitemComponent implements OnInit {
|
|
4
|
+
section: any;
|
|
5
|
+
index: number | undefined;
|
|
6
|
+
readOnly: boolean;
|
|
7
|
+
width: string;
|
|
8
|
+
constructor();
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmArticleOutlineLeftitemComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmArticleOutlineLeftitemComponent, "fm-article-outline-leftitem", never, { "section": { "alias": "section"; "required": false; }; "index": { "alias": "index"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
|
3
|
+
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { Swiper } from 'swiper';
|
|
5
|
+
import { AlertController, AnimationController, ModalController, NavController } from '@ionic/angular/standalone';
|
|
6
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
|
+
import { ArticleService } from '../article.service';
|
|
8
|
+
import Parse from "parse";
|
|
9
|
+
import { DraftService } from '../draft.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class FmArticlePreviewComponent implements OnInit {
|
|
12
|
+
private route;
|
|
13
|
+
private router;
|
|
14
|
+
private dialog;
|
|
15
|
+
private navCtrl;
|
|
16
|
+
private modalCtrl;
|
|
17
|
+
private animationCtrl;
|
|
18
|
+
articleServ: ArticleService;
|
|
19
|
+
private alertCtrl;
|
|
20
|
+
draftServ: DraftService;
|
|
21
|
+
article: Parse.Object | undefined;
|
|
22
|
+
isDisplayEdit: boolean;
|
|
23
|
+
isDisplayPublic: boolean;
|
|
24
|
+
isDisplayUploadImage: boolean;
|
|
25
|
+
constructor(route: ActivatedRoute, router: Router, dialog: MatDialog, navCtrl: NavController, modalCtrl: ModalController, animationCtrl: AnimationController, articleServ: ArticleService, alertCtrl: AlertController, draftServ: DraftService);
|
|
26
|
+
isAuthor: boolean;
|
|
27
|
+
previewStyle: string;
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
handleNavEvent(eventType: any, options?: any): void;
|
|
30
|
+
loadArticle(id: string): Promise<void>;
|
|
31
|
+
shareArticle(): void;
|
|
32
|
+
editArticle(): Promise<void>;
|
|
33
|
+
bannerList: Array<string>;
|
|
34
|
+
initArticleBanner(): void;
|
|
35
|
+
back(): void;
|
|
36
|
+
onPublicChange(ev: MatSlideToggleChange): void;
|
|
37
|
+
delete(): Promise<void>;
|
|
38
|
+
onScroll(event: WheelEvent): void;
|
|
39
|
+
pageSwiper: Swiper | undefined | any;
|
|
40
|
+
initSwiperTimeEvent(): void;
|
|
41
|
+
isShare: boolean;
|
|
42
|
+
openOverlay(): void;
|
|
43
|
+
closeOverlay(): void;
|
|
44
|
+
openUploadBanner(): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmArticlePreviewComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmArticlePreviewComponent, "fm-article-preview", never, { "article": { "alias": "article"; "required": false; }; "isDisplayEdit": { "alias": "isDisplayEdit"; "required": false; }; "isDisplayPublic": { "alias": "isDisplayPublic"; "required": false; }; "isDisplayUploadImage": { "alias": "isDisplayUploadImage"; "required": false; }; }, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
export declare class DialogArticlePreview {
|
|
49
|
+
dialogRef: MatDialogRef<DialogArticlePreview>;
|
|
50
|
+
data: any;
|
|
51
|
+
constructor(dialogRef: MatDialogRef<DialogArticlePreview>, data: any);
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogArticlePreview, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogArticlePreview, "article-preview-dialog", never, {}, {}, never, never, true, never>;
|
|
54
|
+
}
|
|
55
|
+
export declare function openUploadBannerModal(modalCtrl: ModalController, articleId: string): Promise<any>;
|
package/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { FmAgentTaskComponent } from '../../../aigc';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FmArticleWriteOptionsComponent implements OnInit {
|
|
7
|
+
dialogRef: MatDialogRef<FmAgentTaskComponent>;
|
|
8
|
+
data: {
|
|
9
|
+
writingOptions?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
writingOptions: any;
|
|
14
|
+
writingStyleList: string[];
|
|
15
|
+
writingPersonList: string[];
|
|
16
|
+
wordCountLimit: FormControl<string>;
|
|
17
|
+
validatorMaxCount(control: AbstractControl): ValidationErrors | null;
|
|
18
|
+
wordCountList: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: number;
|
|
21
|
+
}[];
|
|
22
|
+
genWordCountList(options: any): void;
|
|
23
|
+
constructor(dialogRef: MatDialogRef<FmAgentTaskComponent>, data: {
|
|
24
|
+
writingOptions?: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FmArticleWriteOptionsComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FmArticleWriteOptionsComponent, "app-fm-article-write-options", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OutlineCountPipe implements PipeTransform {
|
|
4
|
+
transform(value: unknown, ...args: unknown[]): unknown;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OutlineCountPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<OutlineCountPipe, "outlineCount", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Parse from "parse";
|
|
2
|
+
import { PersonService } from "../../../person/person.service";
|
|
3
|
+
export declare function getRelationByDocList(documentList?: Parse.Object[], storyList?: Parse.Object[]): Promise<Parse.Object<Parse.Attributes>[]>;
|
|
4
|
+
export declare function PromptInsertionRoleList(documentList?: any[], storyList?: any[]): Promise<string | void>;
|
|
5
|
+
export declare function PromptInsertionDocumentList(documentList?: any[], storyList?: any[], personServ?: PersonService): Promise<string | void>;
|
|
6
|
+
export declare function storyJsonToContent(story: Parse.Object, personServ?: PersonService): Promise<string>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
2
|
+
import { AgentTaskStep } from "../../core";
|
|
3
|
+
import { ModalController } from "@ionic/angular/standalone";
|
|
4
|
+
import { PersonService } from "../../person";
|
|
5
|
+
/**
|
|
6
|
+
* 文章全文生成
|
|
7
|
+
* @param afterTask
|
|
8
|
+
*/
|
|
9
|
+
export declare function taskArticleGeneration(afterTask?: Function, options?: {
|
|
10
|
+
shareData: any;
|
|
11
|
+
book?: Parse.Object;
|
|
12
|
+
person?: Parse.Object;
|
|
13
|
+
dialog: MatDialog;
|
|
14
|
+
modalCtrl: ModalController;
|
|
15
|
+
article: any;
|
|
16
|
+
personServ: PersonService;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
export declare function doArticleTask(stepList: Array<AgentTaskStep>, options?: {
|
|
19
|
+
shareData: any;
|
|
20
|
+
article?: Parse.Object;
|
|
21
|
+
person?: Parse.Object;
|
|
22
|
+
dialog: MatDialog;
|
|
23
|
+
}, afterTask?: Function): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AgentTaskStep } from "../../../core/agent/task/agent.task";
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
4
|
+
import { ModalController } from "@ionic/angular/standalone";
|
|
5
|
+
/**
|
|
6
|
+
* 任务:整篇文章草稿创作
|
|
7
|
+
* @param sharedData.article.outline 文章对象-写作提纲
|
|
8
|
+
* @param sharedData.article.writingOptions 文章对象-写作参数
|
|
9
|
+
*/
|
|
10
|
+
export declare function TaskArticleDraft(options: {
|
|
11
|
+
isSelectedMode?: boolean;
|
|
12
|
+
editOnly?: boolean;
|
|
13
|
+
person?: Parse.Object;
|
|
14
|
+
book?: Parse.Object;
|
|
15
|
+
shareData: any;
|
|
16
|
+
modalCtrl: ModalController;
|
|
17
|
+
dialog: MatDialog;
|
|
18
|
+
}): AgentTaskStep;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AgentTaskStep } from "../../../core";
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
4
|
+
/**
|
|
5
|
+
* 任务:编辑修订写作大纲
|
|
6
|
+
* @param sharedData.writingOptions 写作参数
|
|
7
|
+
*/
|
|
8
|
+
export declare function TaskArticleOutlineEdit(options: {
|
|
9
|
+
editOnly?: boolean;
|
|
10
|
+
person?: Parse.Object;
|
|
11
|
+
book?: Parse.Object;
|
|
12
|
+
shareData: any;
|
|
13
|
+
dialog: MatDialog;
|
|
14
|
+
}): AgentTaskStep;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AgentTaskStep } from "../../../core";
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
4
|
+
import { PersonService } from "../../../person/person.service";
|
|
5
|
+
/**
|
|
6
|
+
* 任务:推理生成文章大纲
|
|
7
|
+
* @desc
|
|
8
|
+
* Article 文章表
|
|
9
|
+
* ArticlePart 文章结构表 type=section 章节 type=paragraph 段落 outline content
|
|
10
|
+
* @param shareData.documentList
|
|
11
|
+
* @returns shareData.articleOutline 文章大纲文本
|
|
12
|
+
*/
|
|
13
|
+
export declare function TaskArticleOutline(options: {
|
|
14
|
+
person?: Parse.Object;
|
|
15
|
+
book?: Parse.Object;
|
|
16
|
+
shareData: any;
|
|
17
|
+
dialog: MatDialog;
|
|
18
|
+
personServ: PersonService;
|
|
19
|
+
}): AgentTaskStep;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AgentTaskStep } from "../../../core";
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
4
|
+
/**
|
|
5
|
+
* 任务:设定写作参数详情
|
|
6
|
+
* @param sharedData.writingOptions 写作参数
|
|
7
|
+
*/
|
|
8
|
+
export declare function TaskArticleWritingOptions(options: {
|
|
9
|
+
editOnly?: boolean;
|
|
10
|
+
person?: Parse.Object;
|
|
11
|
+
book?: Parse.Object;
|
|
12
|
+
shareData: any;
|
|
13
|
+
dialog: MatDialog;
|
|
14
|
+
}): AgentTaskStep;
|