@ebuilding/form 2.3.20 → 2.4.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.
@@ -0,0 +1 @@
1
+ export * from './src/public_api';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldAttachment(): ConfigOption;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@ebuilding/form/form-field";
4
+ import * as i3 from "@ebuilding-form/core";
5
+ export declare class DeonNzAttachmentModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzAttachmentModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzAttachmentModule, never, [typeof i1.CommonModule, typeof i2.DeonNzFormFieldModule, typeof i3.FormlyModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DeonNzAttachmentModule>;
9
+ }
@@ -0,0 +1,42 @@
1
+ import { _HttpClient } from '@delon/theme';
2
+ import { FieldType, FieldTypeConfig } from '@ebuilding-form/core';
3
+ import { NzUploadFile, NzUploadXHRArgs } from 'ng-zorro-antd/upload';
4
+ import { NzMessageService } from 'ng-zorro-antd/message';
5
+ import { Subscription } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DeonNzFieldAttachment extends FieldType<FieldTypeConfig> {
8
+ private http;
9
+ private msg;
10
+ fileList: NzUploadFile[];
11
+ previewImage?: string;
12
+ previewVisible: boolean;
13
+ constructor(http: _HttpClient, msg: NzMessageService);
14
+ /** 是否多图 */
15
+ get isMultiple(): boolean;
16
+ /** 最大数量 */
17
+ get maxCount(): number;
18
+ ngOnInit(): void;
19
+ /**
20
+ * 初始化回显
21
+ */
22
+ initValue(): void;
23
+ /**
24
+ * 上传前
25
+ */
26
+ beforeUpload: (file: NzUploadFile) => boolean;
27
+ /**
28
+ * 上传
29
+ */
30
+ uploadRequest: (item: NzUploadXHRArgs) => Subscription;
31
+ /**
32
+ * 删除
33
+ */
34
+ remove: (file: NzUploadFile) => boolean;
35
+ fileChange(e: any): void;
36
+ /**
37
+ * 写回 model
38
+ */
39
+ updateModel(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzFieldAttachment, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<DeonNzFieldAttachment, "deon-nz-field-attachment", never, {}, {}, never, never, true, never>;
42
+ }
@@ -0,0 +1,3 @@
1
+ export { DeonNzAttachmentModule } from './attachment.module';
2
+ export { DeonNzFieldAttachment } from './default/index';
3
+ export { withFormlyFieldAttachment } from './attachment.config';