ngx-formly-zorro-antd 16.1.1 → 16.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -2
- package/card/card.type.d.ts +3 -2
- package/card-wrapper/card.wrapper.d.ts +4 -3
- package/cascader/cascader.type.d.ts +6 -5
- package/checkbox/checkbox.type.d.ts +4 -3
- package/common/interface.d.ts +19 -0
- package/common/public_api.d.ts +1 -0
- package/datepicker/datepicker.props.d.ts +5 -5
- package/datepicker/datepicker.type.d.ts +3 -2
- package/esm2022/button/button.type.mjs +1 -1
- package/esm2022/card/card.type.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/interface.mjs +2 -0
- package/esm2022/common/public_api.mjs +2 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +8 -4
- package/esm2022/radio/radio.type.mjs +1 -3
- package/esm2022/rate/rate.type.mjs +1 -1
- package/esm2022/ref-template/ngx-formly-zorro-antd-ref-template.mjs +5 -0
- package/esm2022/ref-template/public_api.mjs +3 -0
- package/esm2022/ref-template/ref-template.module.mjs +44 -0
- package/esm2022/ref-template/ref-template.type.mjs +89 -0
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +1 -1
- package/esm2022/space/space.type.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +5 -1
- package/esm2022/tree-select/tree-select.type.mjs +31 -15
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +0 -2
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +136 -0
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +7 -3
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +3 -4
- package/form-field/form-field.wrapper.d.ts +3 -2
- package/grid/grid.type.d.ts +3 -2
- package/input/input.props.d.ts +3 -3
- package/input/input.type.d.ts +3 -2
- package/input-group/input-group.type.d.ts +4 -3
- package/input-number/input-number.props.d.ts +2 -2
- package/input-number/input-number.type.d.ts +3 -2
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +46 -40
- package/radio/radio.type.d.ts +3 -2
- package/rate/rate.type.d.ts +4 -3
- package/ref-template/index.d.ts +5 -0
- package/ref-template/public_api.d.ts +2 -0
- package/ref-template/ref-template.module.d.ts +11 -0
- package/ref-template/ref-template.type.d.ts +79 -0
- package/select/select.props.d.ts +4 -4
- package/select/select.type.d.ts +3 -2
- package/slider/slider.type.d.ts +4 -3
- package/space/space.type.d.ts +3 -2
- package/switch/switch.type.d.ts +3 -2
- package/tabs/tabs.props.d.ts +9 -9
- package/tabs/tabs.wrapper.d.ts +4 -3
- package/textarea/textarea.type.d.ts +3 -2
- package/timepicker/timepicker.type.d.ts +4 -3
- package/transfer/transfer.type.d.ts +5 -4
- package/tree-select/tree-select.module.d.ts +4 -3
- package/tree-select/tree-select.type.d.ts +21 -4
- package/upload/upload.props.d.ts +2 -2
- package/upload/upload.type.d.ts +3 -2
package/select/select.type.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { Type, OnInit } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import { NzSelectComponent } from 'ng-zorro-antd/select';
|
4
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
5
6
|
import type { SelectProps } from './select.props';
|
6
7
|
import * as i0 from "@angular/core";
|
7
|
-
export interface FormlySelectFieldConfig extends
|
8
|
+
export interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {
|
8
9
|
type: 'select' | 'enum' | Type<FormlyFieldSelect>;
|
9
10
|
}
|
10
11
|
export declare class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {
|
package/slider/slider.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
|
5
6
|
import * as i0 from "@angular/core";
|
@@ -51,9 +52,9 @@ interface SlideProps extends FormlyFieldProps {
|
|
51
52
|
/**
|
52
53
|
* 与 onmouseup 触发时机一致,把当前值作为参数传入。
|
53
54
|
*/
|
54
|
-
afterChange?:
|
55
|
+
afterChange?: FormlyAttributeEvent<number[] | number>;
|
55
56
|
}
|
56
|
-
export interface FormlySlideFieldConfig extends
|
57
|
+
export interface FormlySlideFieldConfig extends NzFormlyFieldConfig<SlideProps> {
|
57
58
|
type: 'slider' | Type<FormlyFieldSlider>;
|
58
59
|
}
|
59
60
|
export declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {
|
package/space/space.type.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { Type, TemplateRef } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
3
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
4
|
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
5
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
5
6
|
import type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
interface SpaceProps extends FormlyFieldProps {
|
@@ -30,7 +31,7 @@ interface SpaceProps extends FormlyFieldProps {
|
|
30
31
|
}> | null;
|
31
32
|
splitName?: string;
|
32
33
|
}
|
33
|
-
export interface FormlySpaceFieldConfig extends
|
34
|
+
export interface FormlySpaceFieldConfig extends NzFormlyFieldConfig<SpaceProps> {
|
34
35
|
type: 'space' | Type<FormlyFieldSpace>;
|
35
36
|
}
|
36
37
|
export declare class FormlyFieldSpace extends FieldType<FieldTypeConfig<SpaceProps>> {
|
package/switch/switch.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type, TemplateRef } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import type { NzSizeDSType } from 'ng-zorro-antd/core/types';
|
5
6
|
import * as i0 from "@angular/core";
|
@@ -27,7 +28,7 @@ interface SwitchProps extends FormlyFieldProps {
|
|
27
28
|
*/
|
28
29
|
control?: boolean;
|
29
30
|
}
|
30
|
-
export interface FormlySwitchFieldConfig extends
|
31
|
+
export interface FormlySwitchFieldConfig extends NzFormlyFieldConfig<SwitchProps> {
|
31
32
|
type: 'switch' | Type<FormlyFieldSwitch>;
|
32
33
|
}
|
33
34
|
export declare class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchProps>> {
|
package/tabs/tabs.props.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import type {
|
2
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
3
|
import { NzTabComponent } from 'ng-zorro-antd/tabs';
|
4
4
|
import type { NzSizeLDSType, NzSafeAny } from 'ng-zorro-antd/core/types';
|
5
5
|
import type { NzTabsCanDeactivateFn, TabTemplateContext, NzTabType, NzTabPosition, NzAnimatedInterface } from 'ng-zorro-antd/tabs';
|
@@ -69,11 +69,11 @@ export interface TabsProps {
|
|
69
69
|
/**
|
70
70
|
* 当前激活 tab 面板的 序列号变更回调函数
|
71
71
|
*/
|
72
|
-
selectedIndexChange?:
|
72
|
+
selectedIndexChange?: FormlyAttributeEvent<number>;
|
73
73
|
/**
|
74
74
|
* 当前激活 tab 面板变更回调函数
|
75
75
|
*/
|
76
|
-
selectChange?: (field:
|
76
|
+
selectChange?: (field: NzFormlyFieldConfig, index?: number, tab?: NzTabComponent) => void;
|
77
77
|
/**
|
78
78
|
* 隐藏添加按钮
|
79
79
|
* @default false
|
@@ -86,11 +86,11 @@ export interface TabsProps {
|
|
86
86
|
/**
|
87
87
|
* 点击添加按钮时的事件
|
88
88
|
*/
|
89
|
-
onAdd?:
|
89
|
+
onAdd?: FormlyAttributeEvent;
|
90
90
|
/**
|
91
91
|
* 点击删除按钮时的事件
|
92
92
|
*/
|
93
|
-
onClose?:
|
93
|
+
onClose?: FormlyAttributeEvent<number>;
|
94
94
|
tab?: {
|
95
95
|
/**
|
96
96
|
* 选项卡头显示文字
|
@@ -109,18 +109,18 @@ export interface TabsProps {
|
|
109
109
|
/**
|
110
110
|
* 单击 title 的回调函数
|
111
111
|
*/
|
112
|
-
click?:
|
112
|
+
click?: FormlyAttributeEvent;
|
113
113
|
/**
|
114
114
|
* 右键 title 的回调函数
|
115
115
|
*/
|
116
|
-
contextmenu?:
|
116
|
+
contextmenu?: FormlyAttributeEvent<MouseEvent>;
|
117
117
|
/**
|
118
118
|
* tab 被选中的回调函数
|
119
119
|
*/
|
120
|
-
select?:
|
120
|
+
select?: FormlyAttributeEvent;
|
121
121
|
/**
|
122
122
|
* tab 被取消选中的回调函数
|
123
123
|
*/
|
124
|
-
deselect?:
|
124
|
+
deselect?: FormlyAttributeEvent;
|
125
125
|
};
|
126
126
|
}
|
package/tabs/tabs.wrapper.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldWrapper
|
2
|
+
import { FieldWrapper } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { TabsProps } from './tabs.props';
|
4
5
|
import * as i0 from "@angular/core";
|
5
|
-
export interface FormlyTabsWrapperConfig extends
|
6
|
+
export interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {
|
6
7
|
wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];
|
7
8
|
}
|
8
|
-
export declare class FormlyWrapperTabs extends FieldWrapper<
|
9
|
+
export declare class FormlyWrapperTabs extends FieldWrapper<NzFormlyFieldConfig<TabsProps>> {
|
9
10
|
defaultOptions: {
|
10
11
|
props: {
|
11
12
|
animated: boolean;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
interface TextareaProps extends FormlyFieldProps {
|
@@ -22,7 +23,7 @@ interface TextareaProps extends FormlyFieldProps {
|
|
22
23
|
*/
|
23
24
|
maxCharacterCount?: number;
|
24
25
|
}
|
25
|
-
export interface FormlyTextareaFieldConfig extends
|
26
|
+
export interface FormlyTextareaFieldConfig extends NzFormlyFieldConfig<TextareaProps> {
|
26
27
|
type: 'textarea' | Type<FormlyFieldTextarea>;
|
27
28
|
}
|
28
29
|
export declare class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { TemplateRef, Type } from '@angular/core';
|
2
2
|
import { DatePipe } from '@angular/common';
|
3
|
-
import { FieldType,
|
3
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
4
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
5
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
interface TimepickerProps extends FormlyFieldProps {
|
@@ -113,9 +114,9 @@ interface TimepickerProps extends FormlyFieldProps {
|
|
113
114
|
/**
|
114
115
|
* 面板打开/关闭时的回调
|
115
116
|
*/
|
116
|
-
openChange?:
|
117
|
+
openChange?: FormlyAttributeEvent<boolean>;
|
117
118
|
}
|
118
|
-
export interface FormlyTimepickerFieldConfig extends
|
119
|
+
export interface FormlyTimepickerFieldConfig extends NzFormlyFieldConfig<TimepickerProps> {
|
119
120
|
type: 'timepicker' | Type<FormlyFieldTimepicker>;
|
120
121
|
}
|
121
122
|
export declare class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { TemplateRef, Type, OnInit } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import { Observable } from 'rxjs';
|
5
6
|
import { NzTransferComponent, TransferCanMove, TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
|
@@ -86,18 +87,18 @@ interface TransferProps extends FormlyFieldProps {
|
|
86
87
|
/**
|
87
88
|
* 搜索框内容时改变时的回调函数
|
88
89
|
*/
|
89
|
-
searchChange?:
|
90
|
+
searchChange?: FormlyAttributeEvent<TransferSearchChange>;
|
90
91
|
/**
|
91
92
|
* 选中项发生改变时的回调函数
|
92
93
|
*/
|
93
|
-
selectChange?:
|
94
|
+
selectChange?: FormlyAttributeEvent<TransferSelectChange>;
|
94
95
|
/**
|
95
96
|
* 返回结果格式映射
|
96
97
|
* @returns 默认返回 TransferItem[] 格式
|
97
98
|
*/
|
98
99
|
resultMap?: (items: TransferItem[]) => NzSafeAny[];
|
99
100
|
}
|
100
|
-
export interface FormlyTransferFieldConfig extends
|
101
|
+
export interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {
|
101
102
|
type: 'transfer' | Type<FormlyFieldTransfer>;
|
102
103
|
}
|
103
104
|
export declare class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {
|
@@ -3,10 +3,11 @@ import * as i1 from "./tree-select.type";
|
|
3
3
|
import * as i2 from "@angular/common";
|
4
4
|
import * as i3 from "@angular/forms";
|
5
5
|
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
-
import * as i5 from "
|
7
|
-
import * as i6 from "
|
6
|
+
import * as i5 from "ngx-formly-zorro-antd/common";
|
7
|
+
import * as i6 from "ng-zorro-antd/tree-select";
|
8
|
+
import * as i7 from "@ngx-formly/core";
|
8
9
|
export declare class FormlyNzTreeSelectModule {
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTreeSelectModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTreeSelectModule, [typeof i1.FormlyFieldTreeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTreeSelectModule, [typeof i1.FormlyFieldTreeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.FormlyCommonModule, typeof i6.NzTreeSelectModule, typeof i7.FormlyModule], never>;
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTreeSelectModule>;
|
12
13
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { Type, TemplateRef } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
|
+
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
4
6
|
import type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';
|
5
7
|
import type { NzPlacementType } from 'ng-zorro-antd/tree-select';
|
6
8
|
import type { NgStyleInterface } from 'ng-zorro-antd/core/types';
|
@@ -107,12 +109,22 @@ interface TreeSelectProps extends FormlyFieldProps {
|
|
107
109
|
maxTagPlaceholder?: TemplateRef<{
|
108
110
|
$implicit: NzTreeNode[];
|
109
111
|
}>;
|
112
|
+
maxTagPlaceholderName?: string;
|
110
113
|
/**
|
111
114
|
* 自定义节点
|
112
115
|
*/
|
113
116
|
treeTemplate?: TemplateRef<{
|
114
117
|
$implicit: NzTreeNode;
|
115
118
|
}>;
|
119
|
+
treeTemplateName?: string;
|
120
|
+
/**
|
121
|
+
* 自定义展开图标
|
122
|
+
*/
|
123
|
+
expandedIcon?: TemplateRef<{
|
124
|
+
$implicit: NzTreeNode;
|
125
|
+
origin: NzTreeNodeOptions;
|
126
|
+
}>;
|
127
|
+
expandedIconName?: string;
|
116
128
|
/**
|
117
129
|
* 虚拟滚动的总高度
|
118
130
|
*/
|
@@ -140,12 +152,13 @@ interface TreeSelectProps extends FormlyFieldProps {
|
|
140
152
|
/**
|
141
153
|
* 点击展开树节点图标调用
|
142
154
|
*/
|
143
|
-
expandChange?:
|
155
|
+
expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;
|
144
156
|
}
|
145
|
-
export interface FormlyTreeSelectFieldConfig extends
|
157
|
+
export interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {
|
146
158
|
type: 'tree-select' | Type<FormlyFieldTreeSelect>;
|
147
159
|
}
|
148
160
|
export declare class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {
|
161
|
+
fieldTemplates: FormlyBoxTemplates;
|
149
162
|
defaultOptions: {
|
150
163
|
props: {
|
151
164
|
dropdownMatchSelectWidth: boolean;
|
@@ -158,7 +171,11 @@ export declare class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {
|
|
158
171
|
virtualMinBufferPx: number;
|
159
172
|
};
|
160
173
|
};
|
161
|
-
|
174
|
+
constructor(fieldTemplates: FormlyBoxTemplates);
|
175
|
+
get nzExpandedIcon(): TemplateRef<any> | undefined;
|
176
|
+
get nzMaxTagPlaceholder(): TemplateRef<any> | undefined;
|
177
|
+
get nzTreeTemplate(): TemplateRef<any> | undefined;
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTreeSelect, [{ optional: true; }]>;
|
162
179
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTreeSelect, "formly-field-treeselect", never, {}, {}, never, never, false, never>;
|
163
180
|
}
|
164
181
|
export {};
|
package/upload/upload.props.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import type {
|
2
|
+
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
3
|
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
4
|
import { Observable, Subscription } from 'rxjs';
|
5
5
|
import type { ThemeType } from '@ant-design/icons-angular';
|
@@ -141,7 +141,7 @@ export interface UploadProps extends FormlyFieldProps {
|
|
141
141
|
/**
|
142
142
|
* 文件列表改变事件
|
143
143
|
*/
|
144
|
-
fileListChange?:
|
144
|
+
fileListChange?: FormlyAttributeEvent<NzUploadFile[]>;
|
145
145
|
/**
|
146
146
|
* 返回结果格式映射
|
147
147
|
* @returns 默认返回 NzUploadFile[] 格式
|
package/upload/upload.type.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { Type, OnInit } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import { UploadNzComponent } from './upload.component';
|
4
5
|
import type { UploadProps } from './upload.props';
|
5
6
|
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
6
7
|
import * as i0 from "@angular/core";
|
7
|
-
export interface FormlyUploadFieldConfig extends
|
8
|
+
export interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {
|
8
9
|
type: 'upload' | Type<FormlyFieldUpload>;
|
9
10
|
}
|
10
11
|
export declare class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {
|