@matechat/ng 20.2.0 → 20.2.1-alpha
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/fesm2022/matechat-ng.mjs +2646 -146
- package/fesm2022/matechat-ng.mjs.map +1 -1
- package/index.d.ts +684 -43
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,130 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef,
|
|
2
|
+
import { EventEmitter, TemplateRef, ElementRef, AfterViewInit, OnDestroy, SimpleChanges, QueryList, OnInit, OnChanges, ModuleWithProviders, PipeTransform, ChangeDetectorRef, ViewContainerRef, Renderer2, AfterContentInit } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
5
|
import * as i2 from '@angular/forms';
|
|
6
|
-
import
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import markdownit, { PluginSimple, PluginWithOptions, PluginWithParams, Token, Options } from 'markdown-it';
|
|
7
8
|
import { IWhiteList } from 'xss';
|
|
9
|
+
import { Prompt } from '@matechat/common/Prompt/common/prompt-types';
|
|
10
|
+
import { PromptFoundation, PromptAdapter } from '@matechat/common/Prompt/foundation';
|
|
11
|
+
|
|
12
|
+
interface UploadOptions {
|
|
13
|
+
uri: string | URL;
|
|
14
|
+
method?: 'POST' | 'PUT' | 'PATCH';
|
|
15
|
+
headers?: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
authToken?: string;
|
|
19
|
+
authTokenHeader?: string;
|
|
20
|
+
additionalParameter?: {
|
|
21
|
+
[key: string]: string | Blob;
|
|
22
|
+
};
|
|
23
|
+
fileFieldName?: string;
|
|
24
|
+
withCredentials?: boolean;
|
|
25
|
+
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
26
|
+
}
|
|
27
|
+
type FileStatus = 'uploading' | 'downloading' | 'success' | 'uploadError' | 'downloadError';
|
|
28
|
+
interface FileItem<T = unknown, E = unknown> {
|
|
29
|
+
uid: number;
|
|
30
|
+
name: string;
|
|
31
|
+
size: number;
|
|
32
|
+
type?: string;
|
|
33
|
+
status?: FileStatus;
|
|
34
|
+
percentage?: number;
|
|
35
|
+
id?: string | number;
|
|
36
|
+
response?: T;
|
|
37
|
+
error?: E;
|
|
38
|
+
thumbUrl?: string;
|
|
39
|
+
url?: string;
|
|
40
|
+
}
|
|
41
|
+
type BeforeUpload = (file: File) => boolean | Promise<boolean>;
|
|
42
|
+
type ValidResultType = 'exceedCount' | 'unsupportedFileType' | 'exceedSizeLimit' | 'beforeUploadRejected';
|
|
43
|
+
interface IValidResult {
|
|
44
|
+
type: ValidResultType;
|
|
45
|
+
file?: File;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface ChangeEventArg {
|
|
49
|
+
file: File;
|
|
50
|
+
fileList: FileItem[];
|
|
51
|
+
}
|
|
52
|
+
interface SuccessEventArg {
|
|
53
|
+
file: File;
|
|
54
|
+
response: FileItem['response'];
|
|
55
|
+
fileList: FileItem[];
|
|
56
|
+
}
|
|
57
|
+
interface ErrorEventArg {
|
|
58
|
+
file: File;
|
|
59
|
+
error: FileItem['error'];
|
|
60
|
+
fileList: FileItem[];
|
|
61
|
+
}
|
|
62
|
+
interface ProgressEventArg {
|
|
63
|
+
file: File;
|
|
64
|
+
fileList: FileItem[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare class AttachmentComponent {
|
|
68
|
+
uploadOptions: UploadOptions;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
accept: string;
|
|
71
|
+
dropPlaceholder: string | undefined;
|
|
72
|
+
maxCount: number;
|
|
73
|
+
maxSize: number;
|
|
74
|
+
multiple: boolean;
|
|
75
|
+
draggable: boolean;
|
|
76
|
+
beforeUpload: BeforeUpload;
|
|
77
|
+
getDropContainer: () => HTMLElement;
|
|
78
|
+
change: EventEmitter<ChangeEventArg>;
|
|
79
|
+
success: EventEmitter<SuccessEventArg>;
|
|
80
|
+
error: EventEmitter<ErrorEventArg>;
|
|
81
|
+
progress: EventEmitter<ProgressEventArg>;
|
|
82
|
+
drop: EventEmitter<File[]>;
|
|
83
|
+
validChange: EventEmitter<IValidResult[]>;
|
|
84
|
+
dropPlaceholderTemplate: TemplateRef<any> | null;
|
|
85
|
+
inputEl: ElementRef<HTMLInputElement>;
|
|
86
|
+
fileList: FileItem[];
|
|
87
|
+
uid: number;
|
|
88
|
+
get isDisabled(): boolean;
|
|
89
|
+
onDrop(e: File[]): void;
|
|
90
|
+
getFileItem: (file: File) => FileItem;
|
|
91
|
+
uploadFiles: (files: File[]) => Promise<void>;
|
|
92
|
+
performUpload: (file: File, fileItem: FileItem) => void;
|
|
93
|
+
handleFileChange: (e: Event) => void;
|
|
94
|
+
handleClick(): void;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentComponent, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentComponent, "mc-attachment", never, { "uploadOptions": { "alias": "uploadOptions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "dropPlaceholder": { "alias": "dropPlaceholder"; "required": false; }; "maxCount": { "alias": "maxCount"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "beforeUpload": { "alias": "beforeUpload"; "required": false; }; "getDropContainer": { "alias": "getDropContainer"; "required": false; }; }, { "change": "change"; "success": "success"; "error": "error"; "progress": "progress"; "drop": "drop"; "validChange": "validChange"; }, ["dropPlaceholderTemplate"], ["*"], true, never>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare class DropAreaComponent implements AfterViewInit, OnDestroy {
|
|
100
|
+
getDropContainer: () => HTMLElement;
|
|
101
|
+
isDisabled: boolean;
|
|
102
|
+
drop: EventEmitter<File[]>;
|
|
103
|
+
dropAreaEl: ElementRef<HTMLDivElement>;
|
|
104
|
+
container: HTMLElement;
|
|
105
|
+
isDragging: boolean;
|
|
106
|
+
dragCounter: number;
|
|
107
|
+
get dropAreaClasses(): {
|
|
108
|
+
'mc-attachment-drop-area': boolean;
|
|
109
|
+
'hide-drop-area': boolean;
|
|
110
|
+
};
|
|
111
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
112
|
+
handleDragEnter: (e: DragEvent) => void;
|
|
113
|
+
handleDragOver: (e: DragEvent) => void;
|
|
114
|
+
handleDragLeave: (e: DragEvent) => void;
|
|
115
|
+
handleDrop: (e: DragEvent) => void;
|
|
116
|
+
onBodyDrop: (e: DragEvent) => void;
|
|
117
|
+
ngAfterViewInit(): void;
|
|
118
|
+
ngOnDestroy(): void;
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropAreaComponent, never>;
|
|
120
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropAreaComponent, "mc-drop-area", never, { "getDropContainer": { "alias": "getDropContainer"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, { "drop": "drop"; }, never, ["*"], true, never>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare class AttachmentModule {
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentModule, never>;
|
|
125
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AttachmentModule, never, [typeof i1.CommonModule, typeof DropAreaComponent, typeof AttachmentComponent], [typeof AttachmentComponent]>;
|
|
126
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AttachmentModule>;
|
|
127
|
+
}
|
|
8
128
|
|
|
9
129
|
type BubbleVariant = 'filled' | 'none' | 'bordered';
|
|
10
130
|
type AvatarPosition = 'top' | 'side';
|
|
@@ -150,6 +270,22 @@ declare class AvatarNoBodyIconComponent {
|
|
|
150
270
|
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarNoBodyIconComponent, "mc-avatar-no-body-icon", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
|
|
151
271
|
}
|
|
152
272
|
|
|
273
|
+
declare class HeaderComponent {
|
|
274
|
+
logoImg: string;
|
|
275
|
+
title: string;
|
|
276
|
+
logoClickable: boolean;
|
|
277
|
+
logoClicked: EventEmitter<void>;
|
|
278
|
+
onLogoClicked(): void;
|
|
279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "mc-header", never, { "logoImg": { "alias": "logoImg"; "required": false; }; "title": { "alias": "title"; "required": false; }; "logoClickable": { "alias": "logoClickable"; "required": false; }; }, { "logoClicked": "logoClicked"; }, never, ["[operationArea]"], true, never>;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
declare class HeaderModule {
|
|
284
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderModule, never>;
|
|
285
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HeaderModule, never, [typeof i1.CommonModule, typeof HeaderComponent], [typeof HeaderComponent]>;
|
|
286
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HeaderModule>;
|
|
287
|
+
}
|
|
288
|
+
|
|
153
289
|
declare enum DisplayType {
|
|
154
290
|
Simple = "simple",
|
|
155
291
|
Full = "full"
|
|
@@ -166,6 +302,28 @@ declare enum SubmitShortKey {
|
|
|
166
302
|
Enter = "enter",
|
|
167
303
|
ShiftEnter = "shiftEnter"
|
|
168
304
|
}
|
|
305
|
+
interface ThemeTagItem {
|
|
306
|
+
type: 'themeTag';
|
|
307
|
+
themeTagKey?: string;
|
|
308
|
+
themeTagText: string;
|
|
309
|
+
clearInput?: boolean;
|
|
310
|
+
popoverContent: string;
|
|
311
|
+
}
|
|
312
|
+
interface FormatTextItem {
|
|
313
|
+
type: 'text';
|
|
314
|
+
key: string;
|
|
315
|
+
content: string;
|
|
316
|
+
}
|
|
317
|
+
interface FormatInputItem {
|
|
318
|
+
type: 'input';
|
|
319
|
+
key: string;
|
|
320
|
+
placeholder?: string;
|
|
321
|
+
content?: string;
|
|
322
|
+
}
|
|
323
|
+
type FormatContentItem = FormatTextItem | FormatInputItem | ThemeTagItem;
|
|
324
|
+
interface FormatContentOptions {
|
|
325
|
+
formatContent: FormatContentItem[];
|
|
326
|
+
}
|
|
169
327
|
|
|
170
328
|
interface InputAdapter extends DefaultAdapter {
|
|
171
329
|
locale(key: string, params?: Record<string, string>): string;
|
|
@@ -237,6 +395,96 @@ declare class LocaleService {
|
|
|
237
395
|
static ɵprov: i0.ɵɵInjectableDeclaration<LocaleService>;
|
|
238
396
|
}
|
|
239
397
|
|
|
398
|
+
declare class LocaleModule {
|
|
399
|
+
/**
|
|
400
|
+
* 静态方法,用于配置模块并提供服务
|
|
401
|
+
* 可以在AppModule中使用LocaleModule.forRoot()来初始化
|
|
402
|
+
*/
|
|
403
|
+
static forRoot(): ModuleWithProviders<LocaleModule>;
|
|
404
|
+
/**
|
|
405
|
+
* 普通导入方法,用于特性模块中导入
|
|
406
|
+
* 避免服务被多次实例化
|
|
407
|
+
*/
|
|
408
|
+
static forChild(): ModuleWithProviders<LocaleModule>;
|
|
409
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleModule, never>;
|
|
410
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LocaleModule, never, never, never>;
|
|
411
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LocaleModule>;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* 翻译管道,用于在Angular模板中直接使用翻译功能
|
|
416
|
+
* 用法:{{ 'Input.send' | translate }}
|
|
417
|
+
* 带参数:{{ 'Input.pleaseEnterPlaceholder' | translate:{ enterKey: 'Enter', shiftEnterKey: 'Shift + Enter' } }}
|
|
418
|
+
*/
|
|
419
|
+
declare class TranslatePipe implements PipeTransform {
|
|
420
|
+
private localeService;
|
|
421
|
+
constructor(localeService: LocaleService);
|
|
422
|
+
/**
|
|
423
|
+
* 转换方法,实现PipeTransform接口
|
|
424
|
+
* @param key 翻译键
|
|
425
|
+
* @param params 替换参数
|
|
426
|
+
*/
|
|
427
|
+
transform(key: string, params?: {
|
|
428
|
+
[key: string]: string | number;
|
|
429
|
+
}): string;
|
|
430
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
|
|
431
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate", true>;
|
|
432
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslatePipe>;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
interface InputTagAdapter extends DefaultAdapter {
|
|
436
|
+
}
|
|
437
|
+
declare class InputTagFoundation extends BaseFoundation<InputTagAdapter> {
|
|
438
|
+
constructor(adapter: InputTagAdapter);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
declare class EditableBlockComponent extends BaseComponent<InputTagFoundation> {
|
|
442
|
+
private localeService;
|
|
443
|
+
themeTag: ThemeTagItem;
|
|
444
|
+
disabled: boolean;
|
|
445
|
+
displayType: DisplayType;
|
|
446
|
+
placeholder: string;
|
|
447
|
+
templateParts: any[];
|
|
448
|
+
maxLength: number | null;
|
|
449
|
+
submitShortKey: SubmitShortKey | null | string;
|
|
450
|
+
autofocus: boolean;
|
|
451
|
+
send: EventEmitter<string>;
|
|
452
|
+
input: EventEmitter<string>;
|
|
453
|
+
blur: EventEmitter<FocusEvent>;
|
|
454
|
+
focus: EventEmitter<FocusEvent>;
|
|
455
|
+
onBlockKeyArrowUp: EventEmitter<KeyboardEvent>;
|
|
456
|
+
editableDivRef: ElementRef<HTMLDivElement>;
|
|
457
|
+
themeTagTemplate: TemplateRef<any> | null;
|
|
458
|
+
localTemplateParts: any;
|
|
459
|
+
constructor(localeService: LocaleService);
|
|
460
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
461
|
+
ngOnInit(): void;
|
|
462
|
+
clearInput(): void;
|
|
463
|
+
getInput(): any;
|
|
464
|
+
handleSend(): void;
|
|
465
|
+
focusInput(): void;
|
|
466
|
+
onFocus($event: FocusEvent): void;
|
|
467
|
+
onBlur($event: FocusEvent): void;
|
|
468
|
+
isComposing: boolean;
|
|
469
|
+
handleCompositionEnd($event: CompositionEvent): void;
|
|
470
|
+
handleCompositionStart($event: CompositionEvent): void;
|
|
471
|
+
handleDivPaste(e: any): void;
|
|
472
|
+
handleDivKeydown(e: KeyboardEvent): void;
|
|
473
|
+
isCursorAtStart(): boolean;
|
|
474
|
+
findSiblingNode(node: any, startOffset: number, direction: 'previous' | 'next'): null;
|
|
475
|
+
handleDivInput(): void;
|
|
476
|
+
getCurrentInputValue(): any;
|
|
477
|
+
processInput(): void;
|
|
478
|
+
setInputTag(key: string, placeholder: string, defaultValue?: string): void;
|
|
479
|
+
setMixTags(mixTagConfig: FormatContentItem[]): void;
|
|
480
|
+
setText(text: string): void;
|
|
481
|
+
openTipTag(themeTagText: string, popoverContent: string, clearInput?: boolean): void;
|
|
482
|
+
closeTipTag(): void;
|
|
483
|
+
onFocusInput(): void;
|
|
484
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditableBlockComponent, never>;
|
|
485
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditableBlockComponent, "mc-editable-block", never, { "disabled": { "alias": "disabled"; "required": false; }; "displayType": { "alias": "displayType"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "templateParts": { "alias": "templateParts"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "submitShortKey": { "alias": "submitShortKey"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; }, { "send": "send"; "input": "input"; "blur": "blur"; "focus": "focus"; "onBlockKeyArrowUp": "onBlockKeyArrowUp"; }, ["themeTagTemplate"], never, true, never>;
|
|
486
|
+
}
|
|
487
|
+
|
|
240
488
|
type TextareaAutoSize = {
|
|
241
489
|
minRows?: number;
|
|
242
490
|
maxRows?: number;
|
|
@@ -256,6 +504,7 @@ declare class InputComponent extends BaseComponent<InputFoundation> implements O
|
|
|
256
504
|
submitShortKey: SubmitShortKey | null | string;
|
|
257
505
|
autofocus: boolean;
|
|
258
506
|
autosize: TextareaAutoSize;
|
|
507
|
+
formatContentOptions: FormatContentOptions;
|
|
259
508
|
textareaStyle: Record<string, string>;
|
|
260
509
|
change: EventEmitter<string>;
|
|
261
510
|
submit: EventEmitter<string>;
|
|
@@ -263,13 +512,16 @@ declare class InputComponent extends BaseComponent<InputFoundation> implements O
|
|
|
263
512
|
focus: EventEmitter<FocusEvent>;
|
|
264
513
|
blur: EventEmitter<FocusEvent>;
|
|
265
514
|
textareaElement: ElementRef<HTMLTextAreaElement>;
|
|
515
|
+
editableBlockRef: EditableBlockComponent;
|
|
266
516
|
headTemplate: TemplateRef<any> | null;
|
|
267
517
|
prefixTemplate: TemplateRef<any> | null;
|
|
268
518
|
suffixTemplate: TemplateRef<any> | null;
|
|
269
519
|
buttonTemplate: TemplateRef<any> | null;
|
|
270
520
|
extraTemplate: TemplateRef<any> | null;
|
|
521
|
+
themeTagTemplate: TemplateRef<any> | null;
|
|
271
522
|
inputValue: string;
|
|
272
523
|
lock: boolean;
|
|
524
|
+
showEditableBlock: boolean;
|
|
273
525
|
constructor(localeService: LocaleService);
|
|
274
526
|
ngOnInit(): void;
|
|
275
527
|
get adapter(): InputAdapter;
|
|
@@ -283,6 +535,13 @@ declare class InputComponent extends BaseComponent<InputFoundation> implements O
|
|
|
283
535
|
onKeydown(event: KeyboardEvent): void;
|
|
284
536
|
clearInput(): void;
|
|
285
537
|
getInput(): string;
|
|
538
|
+
setMixTags(mixTagConfig: FormatContentItem[]): void;
|
|
539
|
+
openTipTag(themeTagText: string, popoverContent: string, clearInput?: boolean): void;
|
|
540
|
+
closeTipTag(): void;
|
|
541
|
+
handleDivInput(value: string): void;
|
|
542
|
+
handleDivSubmit(value: string): void;
|
|
543
|
+
onDivBlur(e: FocusEvent): void;
|
|
544
|
+
onDivFocus(e: FocusEvent): void;
|
|
286
545
|
onButtonSubmit(value: string): void;
|
|
287
546
|
onButtonCancel(): void;
|
|
288
547
|
onButtonChange(value: string): void;
|
|
@@ -294,44 +553,7 @@ declare class InputComponent extends BaseComponent<InputFoundation> implements O
|
|
|
294
553
|
onFocus(event: FocusEvent): void;
|
|
295
554
|
onBlur(event: FocusEvent): void;
|
|
296
555
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
297
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "mc-input", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "displayType": { "alias": "displayType"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "sendBtnVariant": { "alias": "sendBtnVariant"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showCount": { "alias": "showCount"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "submitShortKey": { "alias": "submitShortKey"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "autosize": { "alias": "autosize"; "required": false; }; }, { "change": "change"; "submit": "submit"; "cancel": "cancel"; "focus": "focus"; "blur": "blur"; }, ["headTemplate", "prefixTemplate", "suffixTemplate", "buttonTemplate", "extraTemplate"], never, true, never>;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
declare class LocaleModule {
|
|
301
|
-
/**
|
|
302
|
-
* 静态方法,用于配置模块并提供服务
|
|
303
|
-
* 可以在AppModule中使用LocaleModule.forRoot()来初始化
|
|
304
|
-
*/
|
|
305
|
-
static forRoot(): ModuleWithProviders<LocaleModule>;
|
|
306
|
-
/**
|
|
307
|
-
* 普通导入方法,用于特性模块中导入
|
|
308
|
-
* 避免服务被多次实例化
|
|
309
|
-
*/
|
|
310
|
-
static forChild(): ModuleWithProviders<LocaleModule>;
|
|
311
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleModule, never>;
|
|
312
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LocaleModule, never, never, never>;
|
|
313
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LocaleModule>;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* 翻译管道,用于在Angular模板中直接使用翻译功能
|
|
318
|
-
* 用法:{{ 'Input.send' | translate }}
|
|
319
|
-
* 带参数:{{ 'Input.pleaseEnterPlaceholder' | translate:{ enterKey: 'Enter', shiftEnterKey: 'Shift + Enter' } }}
|
|
320
|
-
*/
|
|
321
|
-
declare class TranslatePipe implements PipeTransform {
|
|
322
|
-
private localeService;
|
|
323
|
-
constructor(localeService: LocaleService);
|
|
324
|
-
/**
|
|
325
|
-
* 转换方法,实现PipeTransform接口
|
|
326
|
-
* @param key 翻译键
|
|
327
|
-
* @param params 替换参数
|
|
328
|
-
*/
|
|
329
|
-
transform(key: string, params?: {
|
|
330
|
-
[key: string]: string | number;
|
|
331
|
-
}): string;
|
|
332
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
|
|
333
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate", true>;
|
|
334
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslatePipe>;
|
|
556
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "mc-input", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "displayType": { "alias": "displayType"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "sendBtnVariant": { "alias": "sendBtnVariant"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showCount": { "alias": "showCount"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "submitShortKey": { "alias": "submitShortKey"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "autosize": { "alias": "autosize"; "required": false; }; "formatContentOptions": { "alias": "formatContentOptions"; "required": false; }; }, { "change": "change"; "submit": "submit"; "cancel": "cancel"; "focus": "focus"; "blur": "blur"; }, ["headTemplate", "prefixTemplate", "suffixTemplate", "buttonTemplate", "extraTemplate", "themeTagTemplate"], never, true, never>;
|
|
335
557
|
}
|
|
336
558
|
|
|
337
559
|
interface InputButtonAdapter extends DefaultAdapter {
|
|
@@ -381,12 +603,127 @@ declare class SendIconComponent {
|
|
|
381
603
|
static ɵcmp: i0.ɵɵComponentDeclaration<SendIconComponent, "mc-send-icon", never, {}, {}, never, never, true, never>;
|
|
382
604
|
}
|
|
383
605
|
|
|
606
|
+
declare class InputTagComponent extends BaseComponent<InputTagFoundation> {
|
|
607
|
+
private localeService;
|
|
608
|
+
disabled: boolean;
|
|
609
|
+
content: string;
|
|
610
|
+
placeholder: string;
|
|
611
|
+
change: EventEmitter<string>;
|
|
612
|
+
editableSpanRef: ElementRef<HTMLSpanElement>;
|
|
613
|
+
isEditable: boolean;
|
|
614
|
+
localValue: string;
|
|
615
|
+
constructor(localeService: LocaleService);
|
|
616
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
617
|
+
handleFocus(): void;
|
|
618
|
+
handleBlur(): void;
|
|
619
|
+
handleInput(e: any): void;
|
|
620
|
+
handleInputPaste(e: any): void;
|
|
621
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputTagComponent, never>;
|
|
622
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputTagComponent, "mc-input-tag", never, { "disabled": { "alias": "disabled"; "required": false; }; "content": { "alias": "content"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
623
|
+
}
|
|
624
|
+
|
|
384
625
|
declare class InputModule {
|
|
385
626
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputModule, never>;
|
|
386
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InputModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof ButtonComponent, typeof SendIconComponent, typeof InputComponent], [typeof InputComponent]>;
|
|
627
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InputModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof ButtonComponent, typeof SendIconComponent, typeof InputComponent, typeof InputTagComponent, typeof EditableBlockComponent], [typeof InputComponent]>;
|
|
387
628
|
static ɵinj: i0.ɵɵInjectorDeclaration<InputModule>;
|
|
388
629
|
}
|
|
389
630
|
|
|
631
|
+
type IntroductionBackground = 'filled' | 'transparent';
|
|
632
|
+
type IntroductionAlign = 'left' | 'center' | 'right';
|
|
633
|
+
|
|
634
|
+
interface IntroductionAdapter extends DefaultAdapter {
|
|
635
|
+
}
|
|
636
|
+
declare class IntroductionFoundation extends BaseFoundation<IntroductionAdapter> {
|
|
637
|
+
constructor(adapter: IntroductionAdapter);
|
|
638
|
+
getIntroductionClasses(): string;
|
|
639
|
+
getLogoStyle(): Record<string, string>;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
declare class IntroductionComponent extends BaseComponent<IntroductionFoundation> {
|
|
643
|
+
logoImg?: string;
|
|
644
|
+
title?: string;
|
|
645
|
+
subTitle?: string;
|
|
646
|
+
description: string[];
|
|
647
|
+
logoWidth?: number | string;
|
|
648
|
+
logoHeight?: number | string;
|
|
649
|
+
background: IntroductionBackground;
|
|
650
|
+
align: IntroductionAlign;
|
|
651
|
+
constructor();
|
|
652
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntroductionComponent, never>;
|
|
653
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IntroductionComponent, "mc-introduction", never, { "logoImg": { "alias": "logoImg"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "description": { "alias": "description"; "required": false; }; "logoWidth": { "alias": "logoWidth"; "required": false; }; "logoHeight": { "alias": "logoHeight"; "required": false; }; "background": { "alias": "background"; "required": false; }; "align": { "alias": "align"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare class IntroductionModule {
|
|
657
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntroductionModule, never>;
|
|
658
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IntroductionModule, never, [typeof i1.CommonModule, typeof IntroductionComponent], [typeof IntroductionComponent]>;
|
|
659
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IntroductionModule>;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
declare enum ListDirection {
|
|
663
|
+
Horizontal = "horizontal",
|
|
664
|
+
Vertical = "vertical"
|
|
665
|
+
}
|
|
666
|
+
declare enum ListVariant {
|
|
667
|
+
Transparent = "transparent",
|
|
668
|
+
Filled = "filled",
|
|
669
|
+
Bordered = "bordered",
|
|
670
|
+
None = "none"
|
|
671
|
+
}
|
|
672
|
+
interface ListItemData {
|
|
673
|
+
label: string;
|
|
674
|
+
value: string | number;
|
|
675
|
+
disabled?: boolean;
|
|
676
|
+
active?: boolean;
|
|
677
|
+
[key: string]: any;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
interface ListAdapter extends DefaultAdapter {
|
|
681
|
+
}
|
|
682
|
+
declare class ListFoundation extends BaseFoundation<ListAdapter> {
|
|
683
|
+
constructor(adapter: ListAdapter);
|
|
684
|
+
getListClasses(): {
|
|
685
|
+
'mc-list': boolean;
|
|
686
|
+
'mc-list-horizontal': boolean;
|
|
687
|
+
'mc-list-nowrap': boolean;
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
declare class ListComponent extends BaseComponent<ListFoundation> {
|
|
692
|
+
direction: ListDirection;
|
|
693
|
+
autoWrap: boolean;
|
|
694
|
+
variant: ListVariant;
|
|
695
|
+
enableLazyLoad: boolean;
|
|
696
|
+
enableShortKey: boolean;
|
|
697
|
+
data: Array<ListItemData>;
|
|
698
|
+
inputEl: HTMLElement;
|
|
699
|
+
selectable: boolean;
|
|
700
|
+
preSelectIndex: number;
|
|
701
|
+
loadMore: EventEmitter<Event>;
|
|
702
|
+
select: EventEmitter<ListItemData>;
|
|
703
|
+
itemTemplate: TemplateRef<any> | null;
|
|
704
|
+
protected readonly ListVariant: typeof ListVariant;
|
|
705
|
+
private listenDom;
|
|
706
|
+
constructor();
|
|
707
|
+
ngOnInit(): void;
|
|
708
|
+
ngOnDestroy(): void;
|
|
709
|
+
get adapter(): ListAdapter;
|
|
710
|
+
get listClasses(): Record<string, any>;
|
|
711
|
+
initListenDom(): void;
|
|
712
|
+
initListener(): void;
|
|
713
|
+
removeListener(): void;
|
|
714
|
+
onListScroll(e: Event): void;
|
|
715
|
+
onItemClick(clickedItem: ListItemData): void;
|
|
716
|
+
onKeyDown(e: KeyboardEvent): void;
|
|
717
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
718
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "mc-list", never, { "direction": { "alias": "direction"; "required": false; }; "autoWrap": { "alias": "autoWrap"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "enableLazyLoad": { "alias": "enableLazyLoad"; "required": false; }; "enableShortKey": { "alias": "enableShortKey"; "required": false; }; "data": { "alias": "data"; "required": false; }; "inputEl": { "alias": "inputEl"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "preSelectIndex": { "alias": "preSelectIndex"; "required": false; }; }, { "loadMore": "loadMore"; "select": "select"; }, ["itemTemplate"], never, true, never>;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
declare class ListModule {
|
|
722
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListModule, never>;
|
|
723
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ListModule, never, [typeof i1.CommonModule, typeof ListComponent], [typeof ListComponent]>;
|
|
724
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ListModule>;
|
|
725
|
+
}
|
|
726
|
+
|
|
390
727
|
interface MermaidConfig {
|
|
391
728
|
theme?: string;
|
|
392
729
|
}
|
|
@@ -626,5 +963,309 @@ declare class MarkdownCardModule {
|
|
|
626
963
|
static ɵinj: i0.ɵɵInjectorDeclaration<MarkdownCardModule>;
|
|
627
964
|
}
|
|
628
965
|
|
|
629
|
-
|
|
630
|
-
|
|
966
|
+
interface Trigger {
|
|
967
|
+
key: string;
|
|
968
|
+
onlyInputStart?: boolean;
|
|
969
|
+
}
|
|
970
|
+
interface MentionProps {
|
|
971
|
+
modelValue: boolean;
|
|
972
|
+
prefix: Array<string | Trigger>;
|
|
973
|
+
fitHostWidth: boolean;
|
|
974
|
+
optionsCount: number;
|
|
975
|
+
}
|
|
976
|
+
interface SearchChangeEvent {
|
|
977
|
+
value: string;
|
|
978
|
+
trigger: string;
|
|
979
|
+
triggerIndex: number;
|
|
980
|
+
cursorIndex: number;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
interface MentionAdapter extends DefaultAdapter {
|
|
984
|
+
updateModelValue: (val: boolean) => void;
|
|
985
|
+
searchChange: (event: SearchChangeEvent) => void;
|
|
986
|
+
activeIndexChange: (index: number) => void;
|
|
987
|
+
toggleChange: (val: boolean) => void;
|
|
988
|
+
}
|
|
989
|
+
declare class MentionFoundation extends BaseFoundation<MentionAdapter> {
|
|
990
|
+
private props;
|
|
991
|
+
private inputEl;
|
|
992
|
+
private originEl;
|
|
993
|
+
private overlayEl;
|
|
994
|
+
private currentTrigger;
|
|
995
|
+
private currentSearchValue;
|
|
996
|
+
private currentTriggerIndex;
|
|
997
|
+
private currentCursorIndex;
|
|
998
|
+
private autoUpdateCleanup;
|
|
999
|
+
constructor(adapter: MentionAdapter);
|
|
1000
|
+
updateOptions(options: Partial<MentionProps>): void;
|
|
1001
|
+
setInputEl(el: HTMLInputElement | HTMLTextAreaElement | null): void;
|
|
1002
|
+
setOriginEl(el: HTMLElement | null): void;
|
|
1003
|
+
setOverlayEl(el: HTMLElement | null): void;
|
|
1004
|
+
initEvents(): void;
|
|
1005
|
+
destroy(): void;
|
|
1006
|
+
resetMention(): void;
|
|
1007
|
+
private updateModelValue;
|
|
1008
|
+
handleInput: () => void;
|
|
1009
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
1010
|
+
private handleClick;
|
|
1011
|
+
private handleDocumentClick;
|
|
1012
|
+
private checkPrefixMatch;
|
|
1013
|
+
private handleArrowKey;
|
|
1014
|
+
private getCurrentActiveIndex;
|
|
1015
|
+
private handleSelect;
|
|
1016
|
+
updateOverlayPosition(): Promise<{
|
|
1017
|
+
top: string;
|
|
1018
|
+
left: string;
|
|
1019
|
+
width: string;
|
|
1020
|
+
} | undefined>;
|
|
1021
|
+
getCurrentSearchValue(): string;
|
|
1022
|
+
getCurrentTrigger(): string;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
declare class MentionComponent extends BaseComponent<MentionFoundation> implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
1026
|
+
prefix: Array<string | Trigger>;
|
|
1027
|
+
fitHostWidth: boolean;
|
|
1028
|
+
menuClass?: string;
|
|
1029
|
+
private _optionsCount;
|
|
1030
|
+
set optionsCount(val: number);
|
|
1031
|
+
get optionsCount(): number;
|
|
1032
|
+
updateModelValue: EventEmitter<boolean>;
|
|
1033
|
+
searchChange: EventEmitter<SearchChangeEvent>;
|
|
1034
|
+
toggleChange: EventEmitter<boolean>;
|
|
1035
|
+
activeIndexChange: EventEmitter<number>;
|
|
1036
|
+
activeIndex: number;
|
|
1037
|
+
popperTriggerEl: ElementRef;
|
|
1038
|
+
originEl: ElementRef;
|
|
1039
|
+
overlayEl: ElementRef;
|
|
1040
|
+
overlayStyle: {
|
|
1041
|
+
top: string;
|
|
1042
|
+
left: string;
|
|
1043
|
+
width: string;
|
|
1044
|
+
};
|
|
1045
|
+
private inputEl;
|
|
1046
|
+
constructor();
|
|
1047
|
+
ngOnInit(): void;
|
|
1048
|
+
get adapter(): any;
|
|
1049
|
+
ngAfterViewInit(): void;
|
|
1050
|
+
ngOnDestroy(): void;
|
|
1051
|
+
set modelValue(val: boolean);
|
|
1052
|
+
get modelValue(): boolean;
|
|
1053
|
+
private _modelValue;
|
|
1054
|
+
private onChange;
|
|
1055
|
+
private onTouched;
|
|
1056
|
+
writeValue(value: boolean): void;
|
|
1057
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
1058
|
+
registerOnTouched(fn: () => void): void;
|
|
1059
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
1060
|
+
ngAfterContentInit(): void;
|
|
1061
|
+
private cleanupDocumentClick;
|
|
1062
|
+
private onDocumentClick;
|
|
1063
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MentionComponent, never>;
|
|
1064
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MentionComponent, "mc-mention", never, { "prefix": { "alias": "prefix"; "required": false; }; "fitHostWidth": { "alias": "fitHostWidth"; "required": false; }; "menuClass": { "alias": "menuClass"; "required": false; }; "optionsCount": { "alias": "optionsCount"; "required": false; }; "modelValue": { "alias": "modelValue"; "required": false; }; }, { "updateModelValue": "updateModelValue"; "searchChange": "searchChange"; "toggleChange": "toggleChange"; "activeIndexChange": "activeIndexChange"; }, never, ["*", "[slot=menu]"], true, never>;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
declare class MentionModule {
|
|
1068
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MentionModule, never>;
|
|
1069
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MentionModule, never, [typeof i1.CommonModule, typeof MentionComponent], [typeof MentionComponent]>;
|
|
1070
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MentionModule>;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
declare class CopyIconComponent {
|
|
1074
|
+
width: number;
|
|
1075
|
+
height: number;
|
|
1076
|
+
isActive: boolean;
|
|
1077
|
+
text: string;
|
|
1078
|
+
title: string;
|
|
1079
|
+
copied: boolean;
|
|
1080
|
+
handleClick(): Promise<void>;
|
|
1081
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyIconComponent, never>;
|
|
1082
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyIconComponent, "mc-copy-icon", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "text": { "alias": "text"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
declare class DeleteIconComponent {
|
|
1086
|
+
width: number;
|
|
1087
|
+
height: number;
|
|
1088
|
+
isActive: boolean;
|
|
1089
|
+
title: string;
|
|
1090
|
+
text: string;
|
|
1091
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteIconComponent, never>;
|
|
1092
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteIconComponent, "mc-delete-icon", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare class DislikeIconComponent implements OnChanges {
|
|
1096
|
+
width: number;
|
|
1097
|
+
height: number;
|
|
1098
|
+
isActive: boolean;
|
|
1099
|
+
title: string;
|
|
1100
|
+
text: string;
|
|
1101
|
+
activeChange: EventEmitter<boolean>;
|
|
1102
|
+
active: boolean;
|
|
1103
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1104
|
+
handleClick(): void;
|
|
1105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DislikeIconComponent, never>;
|
|
1106
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DislikeIconComponent, "mc-dislike-icon", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
declare class LikeIconComponent implements OnChanges {
|
|
1110
|
+
width: number;
|
|
1111
|
+
height: number;
|
|
1112
|
+
isActive: boolean;
|
|
1113
|
+
title: string;
|
|
1114
|
+
text: string;
|
|
1115
|
+
activeChange: EventEmitter<boolean>;
|
|
1116
|
+
active: boolean;
|
|
1117
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1118
|
+
handleClick(): void;
|
|
1119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LikeIconComponent, never>;
|
|
1120
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LikeIconComponent, "mc-like-icon", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
declare class RefreshIconComponent {
|
|
1124
|
+
width: number;
|
|
1125
|
+
height: number;
|
|
1126
|
+
isActive: boolean;
|
|
1127
|
+
title: string;
|
|
1128
|
+
text: string;
|
|
1129
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RefreshIconComponent, never>;
|
|
1130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RefreshIconComponent, "mc-refresh-icon", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
declare class ShareIconComponent {
|
|
1134
|
+
width: number;
|
|
1135
|
+
height: number;
|
|
1136
|
+
isActive: boolean;
|
|
1137
|
+
title: string;
|
|
1138
|
+
text: string;
|
|
1139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShareIconComponent, never>;
|
|
1140
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShareIconComponent, "mc-share-icon", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
declare enum ToolbarAction {
|
|
1144
|
+
COPY = "copy",
|
|
1145
|
+
LIKE = "like",
|
|
1146
|
+
DISLIKE = "dislike",
|
|
1147
|
+
REFRESH = "refresh",
|
|
1148
|
+
SHARE = "share",
|
|
1149
|
+
DELETE = "delete"
|
|
1150
|
+
}
|
|
1151
|
+
interface ActionItem {
|
|
1152
|
+
key: string;
|
|
1153
|
+
icon?: ToolbarAction;
|
|
1154
|
+
label?: string;
|
|
1155
|
+
onClick?: (actionItem: ActionItem, e: MouseEvent) => void;
|
|
1156
|
+
isActive?: boolean;
|
|
1157
|
+
text?: string;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
declare class ToolbarComponent implements OnInit, AfterContentInit {
|
|
1161
|
+
items: ActionItem[];
|
|
1162
|
+
gap: number;
|
|
1163
|
+
iconSize: number;
|
|
1164
|
+
onClick: EventEmitter<{
|
|
1165
|
+
item: ActionItem;
|
|
1166
|
+
event: MouseEvent;
|
|
1167
|
+
}>;
|
|
1168
|
+
private allTemplates;
|
|
1169
|
+
CustomSlotComponent: {};
|
|
1170
|
+
actionItems: ActionItem[];
|
|
1171
|
+
ToolbarAction: typeof ToolbarAction;
|
|
1172
|
+
constructor();
|
|
1173
|
+
ngOnInit(): void;
|
|
1174
|
+
ngAfterContentInit(): void;
|
|
1175
|
+
trackByKey(index: number, item: ActionItem): string;
|
|
1176
|
+
/** 初始化:确保点赞和点踩不同时激活 */
|
|
1177
|
+
private init;
|
|
1178
|
+
/** 点赞点击处理:取消点踩状态 */
|
|
1179
|
+
private handleLikeClick;
|
|
1180
|
+
/** 点踩点击处理:取消点赞状态 */
|
|
1181
|
+
private handleDislikeClick;
|
|
1182
|
+
/** 操作项点击事件 */
|
|
1183
|
+
actionClick(event: MouseEvent, actionItem: ActionItem): void;
|
|
1184
|
+
/** 激活状态变更 */
|
|
1185
|
+
activeChange(isActive: boolean, actionItem: ActionItem): void;
|
|
1186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
1187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "mc-toolbar", never, { "items": { "alias": "items"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; }, { "onClick": "onClick"; }, ["allTemplates"], never, true, never>;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
declare class ToolbarModule {
|
|
1191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarModule, never>;
|
|
1192
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ToolbarModule, never, [typeof i1.CommonModule, typeof ToolbarComponent, typeof CopyIconComponent, typeof DeleteIconComponent, typeof RefreshIconComponent, typeof ShareIconComponent, typeof LikeIconComponent, typeof DislikeIconComponent], [typeof ToolbarComponent, typeof CopyIconComponent, typeof DeleteIconComponent, typeof RefreshIconComponent, typeof ShareIconComponent, typeof LikeIconComponent, typeof DislikeIconComponent]>;
|
|
1193
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
declare class PromptComponent extends BaseComponent<PromptFoundation> {
|
|
1197
|
+
direction: ListDirection;
|
|
1198
|
+
list: Prompt[];
|
|
1199
|
+
variant: ListVariant;
|
|
1200
|
+
itemClick: EventEmitter<Prompt>;
|
|
1201
|
+
constructor();
|
|
1202
|
+
ngOnInit(): void;
|
|
1203
|
+
get adapter(): PromptAdapter;
|
|
1204
|
+
handleItemClick(item: Prompt): void;
|
|
1205
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptComponent, never>;
|
|
1206
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptComponent, "mc-prompt", never, { "direction": { "alias": "direction"; "required": false; }; "list": { "alias": "list"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
declare class PromptModule {
|
|
1210
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptModule, never>;
|
|
1211
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PromptModule, never, [typeof i1.CommonModule, typeof PromptComponent], [typeof PromptComponent]>;
|
|
1212
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PromptModule>;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
declare class LayoutAsideComponent {
|
|
1216
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutAsideComponent, never>;
|
|
1217
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutAsideComponent, "mc-layout-aside", never, {}, {}, never, ["*"], true, never>;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
declare class LayoutAsideModule {
|
|
1221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutAsideModule, never>;
|
|
1222
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutAsideModule, never, [typeof i1.CommonModule, typeof LayoutAsideComponent], [typeof LayoutAsideComponent]>;
|
|
1223
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutAsideModule>;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
declare class LayoutContentComponent {
|
|
1227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutContentComponent, never>;
|
|
1228
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutContentComponent, "mc-layout-content", never, {}, {}, never, ["*"], true, never>;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
declare class LayoutContentModule {
|
|
1232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutContentModule, never>;
|
|
1233
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutContentModule, never, [typeof i1.CommonModule, typeof LayoutContentComponent], [typeof LayoutContentComponent]>;
|
|
1234
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutContentModule>;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
declare class LayoutHeaderComponent {
|
|
1238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutHeaderComponent, never>;
|
|
1239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutHeaderComponent, "mc-layout-header", never, {}, {}, never, ["*"], true, never>;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
declare class LayoutHeaderModule {
|
|
1243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutHeaderModule, never>;
|
|
1244
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutHeaderModule, never, [typeof i1.CommonModule, typeof LayoutHeaderComponent], [typeof LayoutHeaderComponent]>;
|
|
1245
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutHeaderModule>;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
declare class LayoutComponent {
|
|
1249
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
1250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "mc-layout", never, {}, {}, never, ["*"], true, never>;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
declare class LayoutModule {
|
|
1254
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
|
|
1255
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, never, [typeof i1.CommonModule, typeof LayoutComponent], [typeof LayoutComponent]>;
|
|
1256
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
declare class LayoutSenderComponent {
|
|
1260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutSenderComponent, never>;
|
|
1261
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutSenderComponent, "mc-layout-sender", never, {}, {}, never, ["*"], true, never>;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
declare class LayoutSenderModule {
|
|
1265
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutSenderModule, never>;
|
|
1266
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutSenderModule, never, [typeof i1.CommonModule, typeof LayoutSenderComponent], [typeof LayoutSenderComponent]>;
|
|
1267
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutSenderModule>;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
export { AttachmentComponent, AttachmentModule, AvatarBodyIconComponent, AvatarComponent, AvatarNoBodyIconComponent, BubbleComponent, BubbleLoadingComponent, BubbleModule, CodeBlockComponent, CopyIconComponent, DeleteIconComponent, DislikeIconComponent, HeaderComponent, HeaderModule, InputComponent, InputModule, IntroductionComponent, IntroductionModule, LayoutAsideComponent, LayoutAsideModule, LayoutComponent, LayoutContentComponent, LayoutContentModule, LayoutHeaderComponent, LayoutHeaderModule, LayoutModule, LayoutSenderComponent, LayoutSenderModule, LikeIconComponent, ListComponent, ListDirection, ListModule, ListVariant, LocaleModule, LocaleService, MarkdownCardComponent, MarkdownCardModule, MentionComponent, MentionModule, PromptComponent, PromptModule, RefreshIconComponent, ShareIconComponent, ToolbarAction, ToolbarComponent, ToolbarModule, TranslatePipe, inputContextToken };
|
|
1271
|
+
export type { ActionItem, LanguageCode, ListItemData, LocaleData, TextareaAutoSize };
|