UNPKG

@mescius/inputman.comment.angular

Version:

このパッケージには、Angular用の[InputManJS](https://developer.mescius.jp/inputmanjs)コンポーネントが含まれます。

94 lines (93 loc) 7.1 kB
import { OnChanges, OnDestroy, AfterContentInit, ElementRef, SimpleChanges, EventEmitter } from "@angular/core"; import { GC } from "../inputman"; import { PropertyDictionary } from "./common"; import * as i0 from "@angular/core"; export declare class GcCommentComponent implements OnChanges, AfterContentInit, OnDestroy { protected _container: Element; protected _imGcComment: GC.InputMan.GcComment; protected propDic: PropertyDictionary; constructor(ref: ElementRef); ngOnChanges(changes: SimpleChanges): void; protected setValueToIMControl(key: string, value: any): void; private hasRealMethod; private isSetAccessor; private tryGetPropertyOperator; ngAfterContentInit(): void; protected bindEvent(): void; ngOnDestroy(): void; private initGcComment; private createTemplate; getNestedIMControl(): GC.InputMan.GcComment; userInfo?: GC.InputMan.UserInfo; candidateReactionList?: string[]; candidateReactionListColumns?: number; postTimeFormatter?: GC.InputMan.DateFormatter; updateTimeFormatter?: GC.InputMan.DateFormatter; showIcon?: boolean; addCommentEditorPosition?: GC.InputMan.GcCommentEditorPosition; commentMode?: GC.InputMan.GcCommentMode; header?: (string | GC.InputMan.GcCommentHeaderFooterItem)[]; footer?: (string | GC.InputMan.GcCommentHeaderFooterItem)[]; headerFooterItems?: { [key: string]: (gcComment: GC.InputMan.GcComment) => GC.InputMan.IHeaderFooterItem; }; commentAction?: (string | GC.InputMan.GcCommentCommentActionItem)[]; commentInfoAction?: (string | GC.InputMan.GcCommentCommentInfoActionItem)[]; commentActionItem?: { [key: string]: GC.InputMan.ICommentActionItem; }; commentInfoActionItem?: { [key: string]: GC.InputMan.ICommentInfoActionItem; }; commentActionButtonType?: GC.InputMan.GcCommentActionButtonType; pageSize?: number; loadOnDemand?: boolean; allowAnonymous?: boolean; anonymousUserInfo?: GC.InputMan.UserInfo; warningMessage?: GC.InputMan.IWarningMessage; watermark?: GC.InputMan.IWaterMark; commentFormatter?: GC.InputMan.CommentFormatter; editorConfig?: GC.InputMan.EditorConfig; avatarType?: GC.InputMan.GcCommentUserIconType; loadUsersInfoHandler?: GC.InputMan.LoadUsersCallback; loadComments?: (args: GC.InputMan.LoadMoreCommentsInfo) => GC.InputMan.LoadCommentsResult; addNewCommentTo?: GC.InputMan.AddNewCommentPosition; keepDraft?: boolean; dataSource?: GC.InputMan.IGcCommentDataSource; loadCommentCount?: () => number | Promise<number>; commentCountFormatter?: (n: number) => string | HTMLElement; loadReactionCount?: () => number | Promise<number>; reactionCountFormatter?: (n: number) => string | HTMLElement; sortInfo?: GC.InputMan.SortInfo; createEditor?: (args: GC.InputMan.CreateEditorArgs) => GC.InputMan.ICommentEditor; loadRepliesOnDemand?: boolean; replyLevel?: number; collapseRepliesMode?: GC.InputMan.GcCommentCollapseRepliesMode; showCurrentUserName?: boolean; contextToolbar?: (string | GC.InputMan.GcCommentContextToolbar | GC.InputMan.ContextToolbarOption)[]; contextToolbarItem?: { [key: string]: GC.InputMan.ICommentContextToolbarItem; }; loadCommentReplies?: (comment: GC.InputMan.IComment, loadedCount: number) => GC.InputMan.LoadCommentsResult; comments?: GC.InputMan.IComment[]; stickedComment?: GC.InputMan.IComment; copiedLinkDisplayTextFormatter?: (comment: GC.InputMan.IComment) => GC.InputMan.ICopiedLinkDisplayTextConfig; copiedLinkFormatter?: (comment: GC.InputMan.IComment) => string; copiedLinkSearchParams?: (GC.InputMan.GcCommentLinkSearchParams | GC.InputMan.CustomLinkSearchParam)[]; pastedLinkType?: GC.InputMan.GcCommentPasteLinkType; showLinkTypeContextToolbar?: boolean; loadCommentByLink?: (link: string) => Promise<GC.InputMan.LoadCommentByLinkResult>; openLinkMode?: GC.InputMan.OpenLinkMode; loadStickedComment?: () => GC.InputMan.IComment | null; showZeroReaction?: boolean; showOpenReactionListButton?: boolean; editorCreated: EventEmitter<object>; preprocessError: EventEmitter<object>; beforeExecuteCommand: EventEmitter<object>; afterExecuteCommand: EventEmitter<object>; beforeFirstLoad: EventEmitter<object>; afterFirstLoad: EventEmitter<object>; onInitialized: EventEmitter<object>; static ɵfac: i0.ɵɵFactoryDeclaration<GcCommentComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<GcCommentComponent, "gc-comment", never, { "userInfo": "userInfo"; "candidateReactionList": "candidateReactionList"; "candidateReactionListColumns": "candidateReactionListColumns"; "postTimeFormatter": "postTimeFormatter"; "updateTimeFormatter": "updateTimeFormatter"; "showIcon": "showIcon"; "addCommentEditorPosition": "addCommentEditorPosition"; "commentMode": "commentMode"; "header": "header"; "footer": "footer"; "headerFooterItems": "headerFooterItems"; "commentAction": "commentAction"; "commentInfoAction": "commentInfoAction"; "commentActionItem": "commentActionItem"; "commentInfoActionItem": "commentInfoActionItem"; "commentActionButtonType": "commentActionButtonType"; "pageSize": "pageSize"; "loadOnDemand": "loadOnDemand"; "allowAnonymous": "allowAnonymous"; "anonymousUserInfo": "anonymousUserInfo"; "warningMessage": "warningMessage"; "watermark": "watermark"; "commentFormatter": "commentFormatter"; "editorConfig": "editorConfig"; "avatarType": "avatarType"; "loadUsersInfoHandler": "loadUsersInfoHandler"; "loadComments": "loadComments"; "addNewCommentTo": "addNewCommentTo"; "keepDraft": "keepDraft"; "dataSource": "dataSource"; "loadCommentCount": "loadCommentCount"; "commentCountFormatter": "commentCountFormatter"; "loadReactionCount": "loadReactionCount"; "reactionCountFormatter": "reactionCountFormatter"; "sortInfo": "sortInfo"; "createEditor": "createEditor"; "loadRepliesOnDemand": "loadRepliesOnDemand"; "replyLevel": "replyLevel"; "collapseRepliesMode": "collapseRepliesMode"; "showCurrentUserName": "showCurrentUserName"; "contextToolbar": "contextToolbar"; "contextToolbarItem": "contextToolbarItem"; "loadCommentReplies": "loadCommentReplies"; "comments": "comments"; "stickedComment": "stickedComment"; "copiedLinkDisplayTextFormatter": "copiedLinkDisplayTextFormatter"; "copiedLinkFormatter": "copiedLinkFormatter"; "copiedLinkSearchParams": "copiedLinkSearchParams"; "pastedLinkType": "pastedLinkType"; "showLinkTypeContextToolbar": "showLinkTypeContextToolbar"; "loadCommentByLink": "loadCommentByLink"; "openLinkMode": "openLinkMode"; "loadStickedComment": "loadStickedComment"; "showZeroReaction": "showZeroReaction"; "showOpenReactionListButton": "showOpenReactionListButton"; }, { "editorCreated": "editorCreated"; "preprocessError": "preprocessError"; "beforeExecuteCommand": "beforeExecuteCommand"; "afterExecuteCommand": "afterExecuteCommand"; "beforeFirstLoad": "beforeFirstLoad"; "afterFirstLoad": "afterFirstLoad"; "onInitialized": "onInitialized"; }, never, ["*"], false, never>; }