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.
Files changed (107) hide show
  1. package/button/button.type.d.ts +3 -2
  2. package/card/card.type.d.ts +3 -2
  3. package/card-wrapper/card.wrapper.d.ts +4 -3
  4. package/cascader/cascader.type.d.ts +6 -5
  5. package/checkbox/checkbox.type.d.ts +4 -3
  6. package/common/interface.d.ts +19 -0
  7. package/common/public_api.d.ts +1 -0
  8. package/datepicker/datepicker.props.d.ts +5 -5
  9. package/datepicker/datepicker.type.d.ts +3 -2
  10. package/esm2022/button/button.type.mjs +1 -1
  11. package/esm2022/card/card.type.mjs +1 -1
  12. package/esm2022/card-wrapper/card.wrapper.mjs +1 -1
  13. package/esm2022/cascader/cascader.type.mjs +1 -1
  14. package/esm2022/checkbox/checkbox.type.mjs +3 -3
  15. package/esm2022/common/interface.mjs +2 -0
  16. package/esm2022/common/public_api.mjs +2 -1
  17. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  18. package/esm2022/datepicker/datepicker.type.mjs +1 -1
  19. package/esm2022/form-field/form-field.props.mjs +1 -1
  20. package/esm2022/form-field/form-field.wrapper.mjs +1 -1
  21. package/esm2022/grid/grid.type.mjs +1 -1
  22. package/esm2022/input/input.props.mjs +1 -1
  23. package/esm2022/input/input.type.mjs +1 -1
  24. package/esm2022/input-group/input-group.type.mjs +1 -1
  25. package/esm2022/input-number/input-number.props.mjs +1 -1
  26. package/esm2022/input-number/input-number.type.mjs +1 -1
  27. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +8 -4
  28. package/esm2022/radio/radio.type.mjs +1 -3
  29. package/esm2022/rate/rate.type.mjs +1 -1
  30. package/esm2022/ref-template/ngx-formly-zorro-antd-ref-template.mjs +5 -0
  31. package/esm2022/ref-template/public_api.mjs +3 -0
  32. package/esm2022/ref-template/ref-template.module.mjs +44 -0
  33. package/esm2022/ref-template/ref-template.type.mjs +89 -0
  34. package/esm2022/select/select.props.mjs +1 -1
  35. package/esm2022/select/select.type.mjs +1 -1
  36. package/esm2022/slider/slider.type.mjs +1 -1
  37. package/esm2022/space/space.type.mjs +1 -1
  38. package/esm2022/switch/switch.type.mjs +1 -1
  39. package/esm2022/tabs/tabs.props.mjs +1 -1
  40. package/esm2022/tabs/tabs.wrapper.mjs +1 -1
  41. package/esm2022/textarea/textarea.type.mjs +1 -1
  42. package/esm2022/timepicker/timepicker.type.mjs +1 -1
  43. package/esm2022/transfer/transfer.type.mjs +1 -1
  44. package/esm2022/tree-select/tree-select.module.mjs +5 -1
  45. package/esm2022/tree-select/tree-select.type.mjs +31 -15
  46. package/esm2022/upload/upload.props.mjs +1 -1
  47. package/esm2022/upload/upload.type.mjs +1 -1
  48. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  49. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  50. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  51. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  52. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
  53. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  54. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  55. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  56. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  57. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  58. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  59. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  60. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +0 -2
  61. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  62. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  63. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +136 -0
  64. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -0
  65. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  66. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  67. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  68. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  69. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  70. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  71. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  72. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  73. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
  74. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  75. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  76. package/fesm2022/ngx-formly-zorro-antd.mjs +7 -3
  77. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  78. package/form-field/form-field.props.d.ts +3 -4
  79. package/form-field/form-field.wrapper.d.ts +3 -2
  80. package/grid/grid.type.d.ts +3 -2
  81. package/input/input.props.d.ts +3 -3
  82. package/input/input.type.d.ts +3 -2
  83. package/input-group/input-group.type.d.ts +4 -3
  84. package/input-number/input-number.props.d.ts +2 -2
  85. package/input-number/input-number.type.d.ts +3 -2
  86. package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
  87. package/package.json +46 -40
  88. package/radio/radio.type.d.ts +3 -2
  89. package/rate/rate.type.d.ts +4 -3
  90. package/ref-template/index.d.ts +5 -0
  91. package/ref-template/public_api.d.ts +2 -0
  92. package/ref-template/ref-template.module.d.ts +11 -0
  93. package/ref-template/ref-template.type.d.ts +79 -0
  94. package/select/select.props.d.ts +4 -4
  95. package/select/select.type.d.ts +3 -2
  96. package/slider/slider.type.d.ts +4 -3
  97. package/space/space.type.d.ts +3 -2
  98. package/switch/switch.type.d.ts +3 -2
  99. package/tabs/tabs.props.d.ts +9 -9
  100. package/tabs/tabs.wrapper.d.ts +4 -3
  101. package/textarea/textarea.type.d.ts +3 -2
  102. package/timepicker/timepicker.type.d.ts +4 -3
  103. package/transfer/transfer.type.d.ts +5 -4
  104. package/tree-select/tree-select.module.d.ts +4 -3
  105. package/tree-select/tree-select.type.d.ts +21 -4
  106. package/upload/upload.props.d.ts +2 -2
  107. package/upload/upload.type.d.ts +3 -2
@@ -1,10 +1,11 @@
1
1
  import { Type, OnInit } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
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 FormlyFieldConfig<SelectProps> {
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 {
@@ -1,5 +1,6 @@
1
1
  import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
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?: (field: FormlyFieldConfig, value: number[] | number) => void;
55
+ afterChange?: FormlyAttributeEvent<number[] | number>;
55
56
  }
56
- export interface FormlySlideFieldConfig extends FormlyFieldConfig<SlideProps> {
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>> {
@@ -1,7 +1,8 @@
1
1
  import { Type, TemplateRef } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
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 FormlyFieldConfig<SpaceProps> {
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>> {
@@ -1,5 +1,6 @@
1
1
  import { Type, TemplateRef } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
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 FormlyFieldConfig<SwitchProps> {
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>> {
@@ -1,5 +1,5 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import type { FormlyFieldConfig } from '@ngx-formly/core';
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?: (field: FormlyFieldConfig, index: number) => void;
72
+ selectedIndexChange?: FormlyAttributeEvent<number>;
73
73
  /**
74
74
  * 当前激活 tab 面板变更回调函数
75
75
  */
76
- selectChange?: (field: FormlyFieldConfig, index?: number, tab?: NzTabComponent) => void;
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?: (field: FormlyFieldConfig) => void;
89
+ onAdd?: FormlyAttributeEvent;
90
90
  /**
91
91
  * 点击删除按钮时的事件
92
92
  */
93
- onClose?: (field: FormlyFieldConfig, index: number) => void;
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?: (field: FormlyFieldConfig) => void;
112
+ click?: FormlyAttributeEvent;
113
113
  /**
114
114
  * 右键 title 的回调函数
115
115
  */
116
- contextmenu?: (field: FormlyFieldConfig, event: MouseEvent) => void;
116
+ contextmenu?: FormlyAttributeEvent<MouseEvent>;
117
117
  /**
118
118
  * tab 被选中的回调函数
119
119
  */
120
- select?: (field: FormlyFieldConfig) => void;
120
+ select?: FormlyAttributeEvent;
121
121
  /**
122
122
  * tab 被取消选中的回调函数
123
123
  */
124
- deselect?: (field: FormlyFieldConfig) => void;
124
+ deselect?: FormlyAttributeEvent;
125
125
  };
126
126
  }
@@ -1,11 +1,12 @@
1
1
  import { Type } from '@angular/core';
2
- import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
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 FormlyFieldConfig<TabsProps> {
6
+ export interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {
6
7
  wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];
7
8
  }
8
- export declare class FormlyWrapperTabs extends FieldWrapper<FormlyFieldConfig<TabsProps>> {
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, FormlyFieldConfig } from '@ngx-formly/core';
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 FormlyFieldConfig<TextareaProps> {
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, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';
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?: (field: FormlyFieldConfig, value: boolean) => void;
117
+ openChange?: FormlyAttributeEvent<boolean>;
117
118
  }
118
- export interface FormlyTimepickerFieldConfig extends FormlyFieldConfig<TimepickerProps> {
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, FormlyFieldConfig } from '@ngx-formly/core';
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?: (field: FormlyFieldConfig, value: TransferSearchChange) => void;
90
+ searchChange?: FormlyAttributeEvent<TransferSearchChange>;
90
91
  /**
91
92
  * 选中项发生改变时的回调函数
92
93
  */
93
- selectChange?: (field: FormlyFieldConfig, value: TransferSelectChange) => void;
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 FormlyFieldConfig<TransferProps> {
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 "ng-zorro-antd/tree-select";
7
- import * as i6 from "@ngx-formly/core";
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.NzTreeSelectModule, typeof i6.FormlyModule], never>;
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, FormlyFieldConfig } from '@ngx-formly/core';
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?: (field: FormlyFieldConfig, value: NzFormatEmitEvent) => void;
155
+ expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;
144
156
  }
145
- export interface FormlyTreeSelectFieldConfig extends FormlyFieldConfig<TreeSelectProps> {
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
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTreeSelect, never>;
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 {};
@@ -1,5 +1,5 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import type { FormlyFieldConfig } from '@ngx-formly/core';
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?: (field: FormlyFieldConfig, event: NzUploadFile[]) => void;
144
+ fileListChange?: FormlyAttributeEvent<NzUploadFile[]>;
145
145
  /**
146
146
  * 返回结果格式映射
147
147
  * @returns 默认返回 NzUploadFile[] 格式
@@ -1,10 +1,11 @@
1
1
  import { Type, OnInit } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
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 FormlyFieldConfig<UploadProps> {
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 {