@matechat/ng 20.3.0 → 20.4.0-alpha.1
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 +1821 -1334
- package/fesm2022/matechat-ng.mjs.map +1 -1
- package/index.d.ts +285 -204
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, TemplateRef, ElementRef, AfterViewInit, OnDestroy, Renderer2, ChangeDetectorRef, SimpleChanges, QueryList, OnInit, OnChanges, ModuleWithProviders, PipeTransform, ViewContainerRef, AfterContentInit } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
4
5
|
import * as rxjs from 'rxjs';
|
|
5
6
|
import * as i2 from '@angular/forms';
|
|
6
7
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -23,7 +24,7 @@ interface UploadOptions {
|
|
|
23
24
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
24
25
|
}
|
|
25
26
|
type FileStatus = 'uploading' | 'downloading' | 'success' | 'uploadError' | 'downloadError';
|
|
26
|
-
interface FileItem<T = unknown, E = unknown> {
|
|
27
|
+
interface FileItem$1<T = unknown, E = unknown> {
|
|
27
28
|
uid: number;
|
|
28
29
|
name: string;
|
|
29
30
|
size: number;
|
|
@@ -45,21 +46,21 @@ interface IValidResult {
|
|
|
45
46
|
|
|
46
47
|
interface ChangeEventArg {
|
|
47
48
|
file: File;
|
|
48
|
-
fileList: FileItem[];
|
|
49
|
+
fileList: FileItem$1[];
|
|
49
50
|
}
|
|
50
51
|
interface SuccessEventArg {
|
|
51
52
|
file: File;
|
|
52
|
-
response: FileItem['response'];
|
|
53
|
-
fileList: FileItem[];
|
|
53
|
+
response: FileItem$1['response'];
|
|
54
|
+
fileList: FileItem$1[];
|
|
54
55
|
}
|
|
55
56
|
interface ErrorEventArg {
|
|
56
57
|
file: File;
|
|
57
|
-
error: FileItem['error'];
|
|
58
|
-
fileList: FileItem[];
|
|
58
|
+
error: FileItem$1['error'];
|
|
59
|
+
fileList: FileItem$1[];
|
|
59
60
|
}
|
|
60
61
|
interface ProgressEventArg {
|
|
61
62
|
file: File;
|
|
62
|
-
fileList: FileItem[];
|
|
63
|
+
fileList: FileItem$1[];
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
declare class AttachmentComponent {
|
|
@@ -81,13 +82,13 @@ declare class AttachmentComponent {
|
|
|
81
82
|
validChange: EventEmitter<IValidResult[]>;
|
|
82
83
|
dropPlaceholderTemplate: TemplateRef<any> | null;
|
|
83
84
|
inputEl: ElementRef<HTMLInputElement>;
|
|
84
|
-
fileList: FileItem[];
|
|
85
|
+
fileList: FileItem$1[];
|
|
85
86
|
uid: number;
|
|
86
87
|
get isDisabled(): boolean;
|
|
87
88
|
onDrop(e: File[]): void;
|
|
88
|
-
getFileItem: (file: File) => FileItem;
|
|
89
|
+
getFileItem: (file: File) => FileItem$1;
|
|
89
90
|
uploadFiles: (files: File[]) => Promise<void>;
|
|
90
|
-
performUpload: (file: File, fileItem: FileItem) => void;
|
|
91
|
+
performUpload: (file: File, fileItem: FileItem$1) => void;
|
|
91
92
|
handleFileChange: (e: Event) => void;
|
|
92
93
|
handleClick(): void;
|
|
93
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentComponent, never>;
|
|
@@ -271,79 +272,44 @@ declare class AvatarNoBodyIconComponent {
|
|
|
271
272
|
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>;
|
|
272
273
|
}
|
|
273
274
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HeaderModule>;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
declare enum DisplayType {
|
|
291
|
-
Simple = "simple",
|
|
292
|
-
Full = "full"
|
|
293
|
-
}
|
|
294
|
-
declare enum InputVariant {
|
|
295
|
-
Bordered = "bordered",
|
|
296
|
-
BorderLess = "borderless"
|
|
297
|
-
}
|
|
298
|
-
declare enum SendBtnVariant {
|
|
299
|
-
Simple = "simple",
|
|
300
|
-
Full = "full"
|
|
301
|
-
}
|
|
302
|
-
declare enum SubmitShortKey {
|
|
303
|
-
Enter = "enter",
|
|
304
|
-
ShiftEnter = "shiftEnter"
|
|
305
|
-
}
|
|
306
|
-
interface ThemeTagItem {
|
|
307
|
-
type: 'themeTag';
|
|
308
|
-
themeTagKey?: string;
|
|
309
|
-
themeTagText: string;
|
|
310
|
-
clearInput?: boolean;
|
|
311
|
-
popoverContent: string;
|
|
312
|
-
}
|
|
313
|
-
interface FormatTextItem {
|
|
314
|
-
type: 'text';
|
|
315
|
-
key: string;
|
|
316
|
-
content: string;
|
|
317
|
-
}
|
|
318
|
-
interface FormatInputItem {
|
|
319
|
-
type: 'input';
|
|
320
|
-
key: string;
|
|
321
|
-
placeholder?: string;
|
|
322
|
-
content?: string;
|
|
323
|
-
}
|
|
324
|
-
type FormatContentItem = FormatTextItem | FormatInputItem | ThemeTagItem;
|
|
325
|
-
interface FormatContentOptions {
|
|
326
|
-
formatContent: FormatContentItem[];
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
interface InputAdapter extends DefaultAdapter {
|
|
330
|
-
locale(key: string, params?: Record<string, string>): string;
|
|
331
|
-
emitChange(): void;
|
|
332
|
-
submit(inputValue: string): void;
|
|
275
|
+
interface FileItem {
|
|
276
|
+
uid: number;
|
|
277
|
+
name: string;
|
|
278
|
+
size: number;
|
|
279
|
+
status?: 'uploading' | 'success' | 'error' | 'downloading' | 'uploadError' | 'downloadError';
|
|
280
|
+
percentage?: number;
|
|
281
|
+
type?: string;
|
|
282
|
+
url?: string;
|
|
283
|
+
preview?: string;
|
|
284
|
+
downloadUrl?: string;
|
|
285
|
+
error?: string;
|
|
286
|
+
isHovered?: boolean;
|
|
287
|
+
[key: string]: any;
|
|
333
288
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
289
|
+
type FileListContext = 'input' | 'dialog';
|
|
290
|
+
type PreviewType = 'image' | 'video' | 'iframe' | 'unsupported';
|
|
291
|
+
|
|
292
|
+
interface FileListAdapter extends DefaultAdapter {
|
|
293
|
+
emitRemove: (uid: number) => void;
|
|
294
|
+
emitRetryUpload: (uid: number) => void;
|
|
295
|
+
emitPreview: (file: FileItem) => void;
|
|
296
|
+
emitDownload: (file: FileItem) => void;
|
|
297
|
+
emitRetryDownload: (uid: number) => void;
|
|
298
|
+
updateFileItem: (uid: number, updates: Partial<FileItem>) => void;
|
|
299
|
+
}
|
|
300
|
+
declare class FileListFoundation extends BaseFoundation<FileListAdapter> {
|
|
301
|
+
constructor(adapter: FileListAdapter);
|
|
302
|
+
formatFileSize(bytes: number): string;
|
|
303
|
+
getFileType(name: string): string;
|
|
304
|
+
getPreviewType(file: FileItem): PreviewType;
|
|
305
|
+
handleRemove(uid: number): void;
|
|
306
|
+
handleRetryUpload(uid: number): void;
|
|
307
|
+
handlePreview(file: FileItem): void;
|
|
308
|
+
handleDownload(file: FileItem): void;
|
|
309
|
+
handleRetryDownload(uid: number): void;
|
|
310
|
+
handleMouseEnter(uid: number): void;
|
|
311
|
+
handleMouseLeave(uid: number): void;
|
|
312
|
+
getIconComponent(file: FileItem): string;
|
|
347
313
|
}
|
|
348
314
|
|
|
349
315
|
interface LocaleData {
|
|
@@ -433,6 +399,121 @@ declare class TranslatePipe implements PipeTransform {
|
|
|
433
399
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslatePipe>;
|
|
434
400
|
}
|
|
435
401
|
|
|
402
|
+
declare class McFileListComponent extends BaseComponent<FileListFoundation> implements OnInit {
|
|
403
|
+
private localeService;
|
|
404
|
+
private sanitizer;
|
|
405
|
+
fileItems: FileItem[];
|
|
406
|
+
context: FileListContext;
|
|
407
|
+
remove: EventEmitter<FileItem>;
|
|
408
|
+
retryUpload: EventEmitter<FileItem>;
|
|
409
|
+
download: EventEmitter<[FileItem, Event]>;
|
|
410
|
+
preview: EventEmitter<FileItem>;
|
|
411
|
+
retryDownload: EventEmitter<FileItem>;
|
|
412
|
+
hoveredFileUid: number | null;
|
|
413
|
+
isPreviewVisible: boolean;
|
|
414
|
+
previewFile: FileItem | null;
|
|
415
|
+
constructor(localeService: LocaleService, sanitizer: DomSanitizer);
|
|
416
|
+
ngOnInit(): void;
|
|
417
|
+
get adapter(): FileListAdapter;
|
|
418
|
+
formatFileSize(bytes: number): string;
|
|
419
|
+
getPreviewType(file: FileItem): PreviewType;
|
|
420
|
+
getIconComponent(file: FileItem): string;
|
|
421
|
+
getFileTypeString(filename: string): string;
|
|
422
|
+
handleRemove(file: FileItem): void;
|
|
423
|
+
handleRetryUpload(file: FileItem): void;
|
|
424
|
+
handleDownload(file: FileItem, event: Event): void;
|
|
425
|
+
handlePreview(file: FileItem): void;
|
|
426
|
+
get previewFileName(): string;
|
|
427
|
+
handleRetryDownload(file: FileItem): void;
|
|
428
|
+
closePreview(): void;
|
|
429
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
430
|
+
t(key: string, params?: Record<string, any>): string;
|
|
431
|
+
sanitizeUrl(url: string | undefined): SafeResourceUrl;
|
|
432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McFileListComponent, never>;
|
|
433
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McFileListComponent, "mc-file-list", never, { "fileItems": { "alias": "fileItems"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, { "remove": "remove"; "retryUpload": "retryUpload"; "download": "download"; "preview": "preview"; "retryDownload": "retryDownload"; }, never, never, true, never>;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
declare class McFileListModule {
|
|
437
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McFileListModule, never>;
|
|
438
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McFileListModule, never, [typeof i1.CommonModule, typeof McFileListComponent], [typeof McFileListComponent]>;
|
|
439
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<McFileListModule>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare class HeaderComponent {
|
|
443
|
+
logoImg: string;
|
|
444
|
+
title: string;
|
|
445
|
+
logoClickable: boolean;
|
|
446
|
+
logoClicked: EventEmitter<void>;
|
|
447
|
+
onLogoClicked(): void;
|
|
448
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
449
|
+
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>;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare class HeaderModule {
|
|
453
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderModule, never>;
|
|
454
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HeaderModule, never, [typeof i1.CommonModule, typeof HeaderComponent], [typeof HeaderComponent]>;
|
|
455
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HeaderModule>;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
declare enum DisplayType {
|
|
459
|
+
Simple = "simple",
|
|
460
|
+
Full = "full"
|
|
461
|
+
}
|
|
462
|
+
declare enum InputVariant {
|
|
463
|
+
Bordered = "bordered",
|
|
464
|
+
BorderLess = "borderless"
|
|
465
|
+
}
|
|
466
|
+
declare enum SendBtnVariant {
|
|
467
|
+
Simple = "simple",
|
|
468
|
+
Full = "full"
|
|
469
|
+
}
|
|
470
|
+
declare enum SubmitShortKey {
|
|
471
|
+
Enter = "enter",
|
|
472
|
+
ShiftEnter = "shiftEnter"
|
|
473
|
+
}
|
|
474
|
+
interface ThemeTagItem {
|
|
475
|
+
type: 'themeTag';
|
|
476
|
+
themeTagKey?: string;
|
|
477
|
+
themeTagText: string;
|
|
478
|
+
clearInput?: boolean;
|
|
479
|
+
popoverContent: string;
|
|
480
|
+
}
|
|
481
|
+
interface FormatTextItem {
|
|
482
|
+
type: 'text';
|
|
483
|
+
key: string;
|
|
484
|
+
content: string;
|
|
485
|
+
}
|
|
486
|
+
interface FormatInputItem {
|
|
487
|
+
type: 'input';
|
|
488
|
+
key: string;
|
|
489
|
+
placeholder?: string;
|
|
490
|
+
content?: string;
|
|
491
|
+
}
|
|
492
|
+
type FormatContentItem = FormatTextItem | FormatInputItem | ThemeTagItem;
|
|
493
|
+
interface FormatContentOptions {
|
|
494
|
+
formatContent: FormatContentItem[];
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
interface InputAdapter extends DefaultAdapter {
|
|
498
|
+
locale(key: string, params?: Record<string, string>): string;
|
|
499
|
+
emitChange(): void;
|
|
500
|
+
submit(inputValue: string): void;
|
|
501
|
+
}
|
|
502
|
+
declare class InputFoundation extends BaseFoundation<InputAdapter> {
|
|
503
|
+
constructor(adapter: InputAdapter);
|
|
504
|
+
getInputClasses(): {
|
|
505
|
+
'mc-input': boolean;
|
|
506
|
+
'mc-input-disabled': any;
|
|
507
|
+
'mc-input-simple': boolean;
|
|
508
|
+
'mc-input-borderless': boolean;
|
|
509
|
+
};
|
|
510
|
+
getPlaceholderText(): any;
|
|
511
|
+
clearInput(): void;
|
|
512
|
+
emitChange(): void;
|
|
513
|
+
submit(inputValue: string): void;
|
|
514
|
+
onKeydown(event: KeyboardEvent): void;
|
|
515
|
+
}
|
|
516
|
+
|
|
436
517
|
interface InputTagAdapter extends DefaultAdapter {
|
|
437
518
|
}
|
|
438
519
|
declare class InputTagFoundation extends BaseFoundation<InputTagAdapter> {
|
|
@@ -660,6 +741,89 @@ declare class IntroductionModule {
|
|
|
660
741
|
static ɵinj: i0.ɵɵInjectorDeclaration<IntroductionModule>;
|
|
661
742
|
}
|
|
662
743
|
|
|
744
|
+
declare class LayoutAsideComponent {
|
|
745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutAsideComponent, never>;
|
|
746
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutAsideComponent, "mc-layout-aside", never, {}, {}, never, ["*"], true, never>;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
declare class LayoutAsideModule {
|
|
750
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutAsideModule, never>;
|
|
751
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutAsideModule, never, [typeof i1.CommonModule, typeof LayoutAsideComponent], [typeof LayoutAsideComponent]>;
|
|
752
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutAsideModule>;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
interface LayoutContentAdapter extends DefaultAdapter {
|
|
756
|
+
}
|
|
757
|
+
declare class LayoutContentFoundation extends BaseFoundation<LayoutContentAdapter> {
|
|
758
|
+
constructor(adapter: LayoutContentAdapter);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
declare class LayoutContentComponent extends BaseComponent<LayoutContentFoundation> {
|
|
762
|
+
autoScroll: boolean;
|
|
763
|
+
showScrollArrow: boolean;
|
|
764
|
+
onScrollerScroll: EventEmitter<Event>;
|
|
765
|
+
onScrollerWheel: EventEmitter<WheelEvent>;
|
|
766
|
+
scrollerRef: ElementRef;
|
|
767
|
+
contentRef: ElementRef;
|
|
768
|
+
showUpArrow: boolean;
|
|
769
|
+
showDownArrow: boolean;
|
|
770
|
+
userControl: boolean;
|
|
771
|
+
private contentResizeOb;
|
|
772
|
+
ngOnInit(): void;
|
|
773
|
+
ngAfterViewInit(): void;
|
|
774
|
+
ngOnDestroy(): void;
|
|
775
|
+
get adapter(): LayoutContentAdapter;
|
|
776
|
+
private wheelHandler;
|
|
777
|
+
private scrollHandler;
|
|
778
|
+
private initListener;
|
|
779
|
+
private removeListener;
|
|
780
|
+
scrollToPosition: (position: number) => void;
|
|
781
|
+
scrollToBottom: () => void;
|
|
782
|
+
scrollToTop: () => void;
|
|
783
|
+
updateScroll: (force?: boolean) => void;
|
|
784
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutContentComponent, never>;
|
|
785
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutContentComponent, "mc-layout-content", never, { "autoScroll": { "alias": "autoScroll"; "required": false; }; "showScrollArrow": { "alias": "showScrollArrow"; "required": false; }; }, { "onScrollerScroll": "onScrollerScroll"; "onScrollerWheel": "onScrollerWheel"; }, never, ["*"], true, never>;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
declare class LayoutContentModule {
|
|
789
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutContentModule, never>;
|
|
790
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutContentModule, never, [typeof i1.CommonModule, typeof LayoutContentComponent], [typeof LayoutContentComponent]>;
|
|
791
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutContentModule>;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
declare class LayoutHeaderComponent {
|
|
795
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutHeaderComponent, never>;
|
|
796
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutHeaderComponent, "mc-layout-header", never, {}, {}, never, ["*"], true, never>;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare class LayoutHeaderModule {
|
|
800
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutHeaderModule, never>;
|
|
801
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutHeaderModule, never, [typeof i1.CommonModule, typeof LayoutHeaderComponent], [typeof LayoutHeaderComponent]>;
|
|
802
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutHeaderModule>;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
declare class LayoutComponent {
|
|
806
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
807
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "mc-layout", never, {}, {}, never, ["*"], true, never>;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
declare class LayoutModule {
|
|
811
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
|
|
812
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, never, [typeof i1.CommonModule, typeof LayoutComponent], [typeof LayoutComponent]>;
|
|
813
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare class LayoutSenderComponent {
|
|
817
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutSenderComponent, never>;
|
|
818
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutSenderComponent, "mc-layout-sender", never, {}, {}, never, ["*"], true, never>;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare class LayoutSenderModule {
|
|
822
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutSenderModule, never>;
|
|
823
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutSenderModule, never, [typeof i1.CommonModule, typeof LayoutSenderComponent], [typeof LayoutSenderComponent]>;
|
|
824
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutSenderModule>;
|
|
825
|
+
}
|
|
826
|
+
|
|
663
827
|
declare enum ListDirection {
|
|
664
828
|
Horizontal = "horizontal",
|
|
665
829
|
Vertical = "vertical"
|
|
@@ -1070,6 +1234,44 @@ declare class MentionModule {
|
|
|
1070
1234
|
static ɵinj: i0.ɵɵInjectorDeclaration<MentionModule>;
|
|
1071
1235
|
}
|
|
1072
1236
|
|
|
1237
|
+
interface IconConfig {
|
|
1238
|
+
name: string;
|
|
1239
|
+
size?: string;
|
|
1240
|
+
color?: string;
|
|
1241
|
+
component?: object;
|
|
1242
|
+
}
|
|
1243
|
+
interface Prompt {
|
|
1244
|
+
value: string | number;
|
|
1245
|
+
label: string;
|
|
1246
|
+
iconConfig?: IconConfig;
|
|
1247
|
+
desc?: string;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
interface PromptAdapter extends DefaultAdapter {
|
|
1251
|
+
}
|
|
1252
|
+
declare class PromptFoundation extends BaseFoundation<PromptAdapter> {
|
|
1253
|
+
constructor(adapter: PromptAdapter);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
declare class PromptComponent extends BaseComponent<PromptFoundation> {
|
|
1257
|
+
direction: ListDirection;
|
|
1258
|
+
list: Prompt[];
|
|
1259
|
+
variant: ListVariant;
|
|
1260
|
+
itemClick: EventEmitter<Prompt>;
|
|
1261
|
+
constructor();
|
|
1262
|
+
ngOnInit(): void;
|
|
1263
|
+
get adapter(): PromptAdapter;
|
|
1264
|
+
handleItemClick(item: Prompt): void;
|
|
1265
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptComponent, never>;
|
|
1266
|
+
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>;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
declare class PromptModule {
|
|
1270
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptModule, never>;
|
|
1271
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PromptModule, never, [typeof i1.CommonModule, typeof PromptComponent], [typeof PromptComponent]>;
|
|
1272
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PromptModule>;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1073
1275
|
declare class CopyIconComponent {
|
|
1074
1276
|
width: number;
|
|
1075
1277
|
height: number;
|
|
@@ -1193,126 +1395,5 @@ declare class ToolbarModule {
|
|
|
1193
1395
|
static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
|
|
1194
1396
|
}
|
|
1195
1397
|
|
|
1196
|
-
|
|
1197
|
-
name: string;
|
|
1198
|
-
size?: string;
|
|
1199
|
-
color?: string;
|
|
1200
|
-
component?: object;
|
|
1201
|
-
}
|
|
1202
|
-
interface Prompt {
|
|
1203
|
-
value: string | number;
|
|
1204
|
-
label: string;
|
|
1205
|
-
iconConfig?: IconConfig;
|
|
1206
|
-
desc?: string;
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
interface PromptAdapter extends DefaultAdapter {
|
|
1210
|
-
}
|
|
1211
|
-
declare class PromptFoundation extends BaseFoundation<PromptAdapter> {
|
|
1212
|
-
constructor(adapter: PromptAdapter);
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
declare class PromptComponent extends BaseComponent<PromptFoundation> {
|
|
1216
|
-
direction: ListDirection;
|
|
1217
|
-
list: Prompt[];
|
|
1218
|
-
variant: ListVariant;
|
|
1219
|
-
itemClick: EventEmitter<Prompt>;
|
|
1220
|
-
constructor();
|
|
1221
|
-
ngOnInit(): void;
|
|
1222
|
-
get adapter(): PromptAdapter;
|
|
1223
|
-
handleItemClick(item: Prompt): void;
|
|
1224
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PromptComponent, never>;
|
|
1225
|
-
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>;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
declare class PromptModule {
|
|
1229
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PromptModule, never>;
|
|
1230
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PromptModule, never, [typeof i1.CommonModule, typeof PromptComponent], [typeof PromptComponent]>;
|
|
1231
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PromptModule>;
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
declare class LayoutAsideComponent {
|
|
1235
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutAsideComponent, never>;
|
|
1236
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutAsideComponent, "mc-layout-aside", never, {}, {}, never, ["*"], true, never>;
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
declare class LayoutAsideModule {
|
|
1240
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutAsideModule, never>;
|
|
1241
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutAsideModule, never, [typeof i1.CommonModule, typeof LayoutAsideComponent], [typeof LayoutAsideComponent]>;
|
|
1242
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutAsideModule>;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
interface LayoutContentAdapter extends DefaultAdapter {
|
|
1246
|
-
}
|
|
1247
|
-
declare class LayoutContentFoundation extends BaseFoundation<LayoutContentAdapter> {
|
|
1248
|
-
constructor(adapter: LayoutContentAdapter);
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
declare class LayoutContentComponent extends BaseComponent<LayoutContentFoundation> {
|
|
1252
|
-
autoScroll: boolean;
|
|
1253
|
-
showScrollArrow: boolean;
|
|
1254
|
-
onScrollerScroll: EventEmitter<Event>;
|
|
1255
|
-
onScrollerWheel: EventEmitter<WheelEvent>;
|
|
1256
|
-
scrollerRef: ElementRef;
|
|
1257
|
-
contentRef: ElementRef;
|
|
1258
|
-
showUpArrow: boolean;
|
|
1259
|
-
showDownArrow: boolean;
|
|
1260
|
-
userControl: boolean;
|
|
1261
|
-
private contentResizeOb;
|
|
1262
|
-
ngOnInit(): void;
|
|
1263
|
-
ngAfterViewInit(): void;
|
|
1264
|
-
ngOnDestroy(): void;
|
|
1265
|
-
get adapter(): LayoutContentAdapter;
|
|
1266
|
-
private wheelHandler;
|
|
1267
|
-
private scrollHandler;
|
|
1268
|
-
private initListener;
|
|
1269
|
-
private removeListener;
|
|
1270
|
-
scrollToPosition: (position: number) => void;
|
|
1271
|
-
scrollToBottom: () => void;
|
|
1272
|
-
scrollToTop: () => void;
|
|
1273
|
-
updateScroll: (force?: boolean) => void;
|
|
1274
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutContentComponent, never>;
|
|
1275
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutContentComponent, "mc-layout-content", never, { "autoScroll": { "alias": "autoScroll"; "required": false; }; "showScrollArrow": { "alias": "showScrollArrow"; "required": false; }; }, { "onScrollerScroll": "onScrollerScroll"; "onScrollerWheel": "onScrollerWheel"; }, never, ["*"], true, never>;
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
declare class LayoutContentModule {
|
|
1279
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutContentModule, never>;
|
|
1280
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutContentModule, never, [typeof i1.CommonModule, typeof LayoutContentComponent], [typeof LayoutContentComponent]>;
|
|
1281
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutContentModule>;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
declare class LayoutHeaderComponent {
|
|
1285
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutHeaderComponent, never>;
|
|
1286
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutHeaderComponent, "mc-layout-header", never, {}, {}, never, ["*"], true, never>;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
declare class LayoutHeaderModule {
|
|
1290
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutHeaderModule, never>;
|
|
1291
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutHeaderModule, never, [typeof i1.CommonModule, typeof LayoutHeaderComponent], [typeof LayoutHeaderComponent]>;
|
|
1292
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutHeaderModule>;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
declare class LayoutComponent {
|
|
1296
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
1297
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "mc-layout", never, {}, {}, never, ["*"], true, never>;
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
declare class LayoutModule {
|
|
1301
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
|
|
1302
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, never, [typeof i1.CommonModule, typeof LayoutComponent], [typeof LayoutComponent]>;
|
|
1303
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
declare class LayoutSenderComponent {
|
|
1307
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutSenderComponent, never>;
|
|
1308
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutSenderComponent, "mc-layout-sender", never, {}, {}, never, ["*"], true, never>;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
declare class LayoutSenderModule {
|
|
1312
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutSenderModule, never>;
|
|
1313
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutSenderModule, never, [typeof i1.CommonModule, typeof LayoutSenderComponent], [typeof LayoutSenderComponent]>;
|
|
1314
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutSenderModule>;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
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 };
|
|
1398
|
+
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, McFileListComponent, McFileListModule, MentionComponent, MentionModule, PromptComponent, PromptModule, RefreshIconComponent, ShareIconComponent, ToolbarAction, ToolbarComponent, ToolbarModule, TranslatePipe, inputContextToken };
|
|
1318
1399
|
export type { ActionItem, LanguageCode, ListItemData, LocaleData, TextareaAutoSize };
|