ngx-formly-zorro-antd 16.1.0 → 16.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. package/button/button.type.d.ts +3 -2
  2. package/card/card.module.d.ts +4 -3
  3. package/card/card.type.d.ts +37 -0
  4. package/card/public_api.d.ts +1 -1
  5. package/card-wrapper/card-wrapper.module.d.ts +11 -0
  6. package/{card/card.wrapper.d.ts → card-wrapper/card-wrapper.props.d.ts} +10 -12
  7. package/card-wrapper/card.wrapper.d.ts +24 -0
  8. package/card-wrapper/index.d.ts +5 -0
  9. package/card-wrapper/public_api.d.ts +3 -0
  10. package/cascader/cascader.type.d.ts +6 -5
  11. package/checkbox/checkbox.type.d.ts +4 -3
  12. package/common/common.module.d.ts +9 -0
  13. package/common/formly-box-templates.directive.d.ts +46 -0
  14. package/common/formly-utils.d.ts +24 -0
  15. package/common/index.d.ts +5 -0
  16. package/common/interface.d.ts +19 -0
  17. package/common/public_api.d.ts +4 -0
  18. package/datepicker/datepicker.props.d.ts +5 -5
  19. package/datepicker/datepicker.type.d.ts +3 -2
  20. package/esm2022/button/button.type.mjs +1 -1
  21. package/esm2022/card/card.module.mjs +16 -12
  22. package/esm2022/card/card.type.mjs +93 -0
  23. package/esm2022/card/public_api.mjs +2 -2
  24. package/esm2022/card-wrapper/card-wrapper.module.mjs +45 -0
  25. package/esm2022/card-wrapper/card-wrapper.props.mjs +2 -0
  26. package/esm2022/card-wrapper/card.wrapper.mjs +77 -0
  27. package/esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs +5 -0
  28. package/esm2022/card-wrapper/public_api.mjs +3 -0
  29. package/esm2022/cascader/cascader.type.mjs +1 -3
  30. package/esm2022/checkbox/checkbox.type.mjs +3 -3
  31. package/esm2022/common/common.module.mjs +19 -0
  32. package/esm2022/common/formly-box-templates.directive.mjs +106 -0
  33. package/esm2022/common/formly-utils.mjs +46 -0
  34. package/esm2022/common/interface.mjs +2 -0
  35. package/esm2022/common/ngx-formly-zorro-antd-common.mjs +5 -0
  36. package/esm2022/common/public_api.mjs +5 -0
  37. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  38. package/esm2022/datepicker/datepicker.type.mjs +1 -1
  39. package/esm2022/extension/ngx-formly-zorro-antd-extension.mjs +5 -0
  40. package/esm2022/extension/public_api.mjs +2 -0
  41. package/esm2022/extension/value-changes-extension.mjs +31 -0
  42. package/esm2022/form-field/form-field.props.mjs +1 -1
  43. package/esm2022/form-field/form-field.wrapper.mjs +1 -1
  44. package/esm2022/grid/grid.props.mjs +1 -1
  45. package/esm2022/grid/grid.type.mjs +1 -1
  46. package/esm2022/input/input.props.mjs +1 -1
  47. package/esm2022/input/input.type.mjs +3 -3
  48. package/esm2022/input-group/input-group.type.mjs +1 -1
  49. package/esm2022/input-number/input-number.props.mjs +1 -1
  50. package/esm2022/input-number/input-number.type.mjs +1 -1
  51. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +16 -4
  52. package/esm2022/radio/radio.type.mjs +1 -1
  53. package/esm2022/rate/rate.type.mjs +1 -1
  54. package/esm2022/select/select.props.mjs +1 -1
  55. package/esm2022/select/select.type.mjs +7 -7
  56. package/esm2022/slider/slider.type.mjs +1 -1
  57. package/esm2022/space/ngx-formly-zorro-antd-space.mjs +5 -0
  58. package/esm2022/space/public_api.mjs +3 -0
  59. package/esm2022/space/space.module.mjs +45 -0
  60. package/esm2022/space/space.type.mjs +63 -0
  61. package/esm2022/switch/switch.type.mjs +1 -1
  62. package/esm2022/tabs/tabs.props.mjs +1 -1
  63. package/esm2022/tabs/tabs.wrapper.mjs +1 -1
  64. package/esm2022/textarea/textarea.type.mjs +1 -1
  65. package/esm2022/timepicker/timepicker.type.mjs +1 -1
  66. package/esm2022/transfer/transfer.type.mjs +1 -1
  67. package/esm2022/tree-select/tree-select.module.mjs +5 -1
  68. package/esm2022/tree-select/tree-select.type.mjs +31 -15
  69. package/esm2022/upload/upload.module.mjs +5 -1
  70. package/esm2022/upload/upload.props.mjs +1 -1
  71. package/esm2022/upload/upload.type.mjs +25 -14
  72. package/extension/index.d.ts +5 -0
  73. package/extension/public_api.d.ts +1 -0
  74. package/extension/value-changes-extension.d.ts +23 -0
  75. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  76. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +123 -0
  77. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -0
  78. package/fesm2022/ngx-formly-zorro-antd-card.mjs +81 -32
  79. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  80. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +0 -2
  81. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  82. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
  83. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  84. package/fesm2022/ngx-formly-zorro-antd-common.mjs +174 -0
  85. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -0
  86. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  87. package/fesm2022/ngx-formly-zorro-antd-extension.mjs +37 -0
  88. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -0
  89. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  90. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  91. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  92. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  93. package/fesm2022/ngx-formly-zorro-antd-input.mjs +2 -2
  94. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  95. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  96. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  97. package/fesm2022/ngx-formly-zorro-antd-select.mjs +6 -6
  98. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  99. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  100. package/fesm2022/ngx-formly-zorro-antd-space.mjs +109 -0
  101. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -0
  102. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  103. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  104. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  105. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  106. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  107. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
  108. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  109. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +27 -13
  110. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  111. package/fesm2022/ngx-formly-zorro-antd.mjs +15 -3
  112. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  113. package/form-field/form-field.props.d.ts +2 -2
  114. package/form-field/form-field.wrapper.d.ts +3 -2
  115. package/grid/grid.props.d.ts +15 -13
  116. package/grid/grid.type.d.ts +3 -2
  117. package/input/input.props.d.ts +3 -3
  118. package/input/input.type.d.ts +3 -2
  119. package/input-group/input-group.type.d.ts +4 -3
  120. package/input-number/input-number.props.d.ts +2 -2
  121. package/input-number/input-number.type.d.ts +3 -2
  122. package/lib/ui-ng-zorro-antd.module.d.ts +24 -21
  123. package/package.json +37 -12
  124. package/radio/radio.type.d.ts +3 -2
  125. package/rate/rate.type.d.ts +4 -3
  126. package/select/select.props.d.ts +4 -4
  127. package/select/select.type.d.ts +3 -2
  128. package/slider/slider.type.d.ts +4 -3
  129. package/space/index.d.ts +5 -0
  130. package/space/public_api.d.ts +2 -0
  131. package/space/space.module.d.ts +11 -0
  132. package/space/space.type.d.ts +51 -0
  133. package/switch/switch.type.d.ts +3 -2
  134. package/tabs/tabs.props.d.ts +9 -9
  135. package/tabs/tabs.wrapper.d.ts +4 -3
  136. package/textarea/textarea.type.d.ts +3 -2
  137. package/timepicker/timepicker.type.d.ts +4 -3
  138. package/transfer/transfer.type.d.ts +5 -4
  139. package/tree-select/tree-select.module.d.ts +4 -3
  140. package/tree-select/tree-select.type.d.ts +21 -4
  141. package/upload/upload.module.d.ts +6 -5
  142. package/upload/upload.props.d.ts +4 -2
  143. package/upload/upload.type.d.ts +9 -3
  144. package/esm2022/card/card.wrapper.mjs +0 -47
@@ -1,9 +1,10 @@
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 { NzSafeAny } from 'ng-zorro-antd/core/types';
4
5
  import type { InputProps } from './input.props';
5
6
  import * as i0 from "@angular/core";
6
- export interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
7
+ export interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {
7
8
  type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;
8
9
  }
9
10
  export declare class FormlyFieldInput extends FieldType<FieldTypeConfig> {
@@ -1,9 +1,10 @@
1
1
  import { Type } from '@angular/core';
2
- import { FieldType, FormlyFieldConfig, FieldTypeConfig } 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 { NzSafeAny } from 'ng-zorro-antd/core/types';
4
5
  import type { InputGroupProps } from './input-group.props';
5
6
  import * as i0 from "@angular/core";
6
- export interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {
7
+ export interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {
7
8
  type: 'input-group' | Type<FormlyFieldInputGroup>;
8
9
  }
9
10
  export declare class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {
@@ -13,7 +14,7 @@ export declare class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<Inp
13
14
  size: "default";
14
15
  };
15
16
  };
16
- get group(): FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
17
+ get group(): import("@ngx-formly/core").FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
17
18
  [additionalProperties: string]: any;
18
19
  }>[] | undefined;
19
20
  trackById(index: number, envent: NzSafeAny): any;
@@ -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 type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
4
  import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
5
5
  export interface InputNumberProps extends FormlyFieldProps {
@@ -77,5 +77,5 @@ export interface InputNumberProps extends FormlyFieldProps {
77
77
  */
78
78
  compact?: boolean;
79
79
  /** 数值改变时回调 */
80
- modelChange?: (field: FormlyFieldConfig, event?: number | null) => void;
80
+ modelChange?: FormlyAttributeEvent<number | null>;
81
81
  }
@@ -1,8 +1,9 @@
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 { InputNumberProps } from './input-number.props';
4
5
  import * as i0 from "@angular/core";
5
- export interface FormlyInputNumberFieldConfig extends FormlyFieldConfig<InputNumberProps> {
6
+ export interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {
6
7
  type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;
7
8
  }
8
9
  export declare class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {
@@ -1,27 +1,30 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "ngx-formly-zorro-antd/form-field";
3
- import * as i2 from "ngx-formly-zorro-antd/input";
4
- import * as i3 from "ngx-formly-zorro-antd/input-number";
5
- import * as i4 from "ngx-formly-zorro-antd/input-group";
6
- import * as i5 from "ngx-formly-zorro-antd/textarea";
7
- import * as i6 from "ngx-formly-zorro-antd/radio";
8
- import * as i7 from "ngx-formly-zorro-antd/checkbox";
9
- import * as i8 from "ngx-formly-zorro-antd/select";
10
- import * as i9 from "ngx-formly-zorro-antd/switch";
11
- import * as i10 from "ngx-formly-zorro-antd/cascader";
12
- import * as i11 from "ngx-formly-zorro-antd/datepicker";
13
- import * as i12 from "ngx-formly-zorro-antd/rate";
14
- import * as i13 from "ngx-formly-zorro-antd/slider";
15
- import * as i14 from "ngx-formly-zorro-antd/timepicker";
16
- import * as i15 from "ngx-formly-zorro-antd/transfer";
17
- import * as i16 from "ngx-formly-zorro-antd/tree-select";
18
- import * as i17 from "ngx-formly-zorro-antd/upload";
19
- import * as i18 from "ngx-formly-zorro-antd/tabs";
20
- import * as i19 from "ngx-formly-zorro-antd/card";
21
- import * as i20 from "ngx-formly-zorro-antd/button";
22
- import * as i21 from "ngx-formly-zorro-antd/grid";
3
+ import * as i2 from "ngx-formly-zorro-antd/common";
4
+ import * as i3 from "ngx-formly-zorro-antd/input";
5
+ import * as i4 from "ngx-formly-zorro-antd/input-number";
6
+ import * as i5 from "ngx-formly-zorro-antd/input-group";
7
+ import * as i6 from "ngx-formly-zorro-antd/textarea";
8
+ import * as i7 from "ngx-formly-zorro-antd/radio";
9
+ import * as i8 from "ngx-formly-zorro-antd/checkbox";
10
+ import * as i9 from "ngx-formly-zorro-antd/select";
11
+ import * as i10 from "ngx-formly-zorro-antd/switch";
12
+ import * as i11 from "ngx-formly-zorro-antd/cascader";
13
+ import * as i12 from "ngx-formly-zorro-antd/datepicker";
14
+ import * as i13 from "ngx-formly-zorro-antd/rate";
15
+ import * as i14 from "ngx-formly-zorro-antd/slider";
16
+ import * as i15 from "ngx-formly-zorro-antd/timepicker";
17
+ import * as i16 from "ngx-formly-zorro-antd/transfer";
18
+ import * as i17 from "ngx-formly-zorro-antd/tree-select";
19
+ import * as i18 from "ngx-formly-zorro-antd/upload";
20
+ import * as i19 from "ngx-formly-zorro-antd/tabs";
21
+ import * as i20 from "ngx-formly-zorro-antd/card";
22
+ import * as i21 from "ngx-formly-zorro-antd/card-wrapper";
23
+ import * as i22 from "ngx-formly-zorro-antd/button";
24
+ import * as i23 from "ngx-formly-zorro-antd/grid";
25
+ import * as i24 from "ngx-formly-zorro-antd/space";
23
26
  export declare class FormlyNgAntdModule {
24
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNgAntdModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyNzFormFieldModule, typeof i2.FormlyNzInputModule, typeof i3.FormlyNzInputNumberModule, typeof i4.FormlyNzInputGroupModule, typeof i5.FormlyNzTextareaModule, typeof i6.FormlyNzRadioModule, typeof i7.FormlyNzCheckboxModule, typeof i8.FormlyNzSelectModule, typeof i9.FormlyNzSwitchModule, typeof i10.FormlyNzCascaderModule, typeof i11.FormlyNzDatepickerModule, typeof i12.FormlyNzRateModule, typeof i13.FormlyNzSliderModule, typeof i14.FormlyNzTimepickerModule, typeof i15.FormlyNzTransferModule, typeof i16.FormlyNzTreeSelectModule, typeof i17.FormlyNzUploadModule, typeof i18.FormlyNzTabsModule, typeof i19.FormlyNzCardModule, typeof i20.FormlyNzButtonModule, typeof i21.FormlyNzGridModule], never>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyNzFormFieldModule, typeof i2.FormlyCommonModule, typeof i3.FormlyNzInputModule, typeof i4.FormlyNzInputNumberModule, typeof i5.FormlyNzInputGroupModule, typeof i6.FormlyNzTextareaModule, typeof i7.FormlyNzRadioModule, typeof i8.FormlyNzCheckboxModule, typeof i9.FormlyNzSelectModule, typeof i10.FormlyNzSwitchModule, typeof i11.FormlyNzCascaderModule, typeof i12.FormlyNzDatepickerModule, typeof i13.FormlyNzRateModule, typeof i14.FormlyNzSliderModule, typeof i15.FormlyNzTimepickerModule, typeof i16.FormlyNzTransferModule, typeof i17.FormlyNzTreeSelectModule, typeof i18.FormlyNzUploadModule, typeof i19.FormlyNzTabsModule, typeof i20.FormlyNzCardModule, typeof i21.FormlyNzCardWrapperModule, typeof i22.FormlyNzButtonModule, typeof i23.FormlyNzGridModule, typeof i24.FormlyNzSpaceModule], never>;
26
29
  static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNgAntdModule>;
27
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-formly-zorro-antd",
3
- "version": "16.1.0",
3
+ "version": "16.1.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -14,6 +14,7 @@
14
14
  "ng-zorro-antd": "^16.1.0",
15
15
  "@ngx-formly/core": "^6.0.0",
16
16
  "rxjs": "^6.5.3 || ^7.4.0",
17
+ "@pkt/ng.core": "4.0.2",
17
18
  "@ant-design/icons-angular": "16.0.0"
18
19
  },
19
20
  "dependencies": {
@@ -43,11 +44,11 @@
43
44
  "esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
44
45
  "default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
45
46
  },
46
- "./checkbox": {
47
- "types": "./checkbox/index.d.ts",
48
- "esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
49
- "esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
50
- "default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
47
+ "./card-wrapper": {
48
+ "types": "./card-wrapper/index.d.ts",
49
+ "esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
50
+ "esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
51
+ "default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
51
52
  },
52
53
  "./cascader": {
53
54
  "types": "./cascader/index.d.ts",
@@ -55,24 +56,42 @@
55
56
  "esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
56
57
  "default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
57
58
  },
59
+ "./checkbox": {
60
+ "types": "./checkbox/index.d.ts",
61
+ "esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
62
+ "esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
63
+ "default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
64
+ },
65
+ "./card": {
66
+ "types": "./card/index.d.ts",
67
+ "esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
68
+ "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
69
+ "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
70
+ },
71
+ "./common": {
72
+ "types": "./common/index.d.ts",
73
+ "esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
74
+ "esm": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
75
+ "default": "./fesm2022/ngx-formly-zorro-antd-common.mjs"
76
+ },
58
77
  "./datepicker": {
59
78
  "types": "./datepicker/index.d.ts",
60
79
  "esm2022": "./esm2022/datepicker/ngx-formly-zorro-antd-datepicker.mjs",
61
80
  "esm": "./esm2022/datepicker/ngx-formly-zorro-antd-datepicker.mjs",
62
81
  "default": "./fesm2022/ngx-formly-zorro-antd-datepicker.mjs"
63
82
  },
83
+ "./extension": {
84
+ "types": "./extension/index.d.ts",
85
+ "esm2022": "./esm2022/extension/ngx-formly-zorro-antd-extension.mjs",
86
+ "esm": "./esm2022/extension/ngx-formly-zorro-antd-extension.mjs",
87
+ "default": "./fesm2022/ngx-formly-zorro-antd-extension.mjs"
88
+ },
64
89
  "./form-field": {
65
90
  "types": "./form-field/index.d.ts",
66
91
  "esm2022": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
67
92
  "esm": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
68
93
  "default": "./fesm2022/ngx-formly-zorro-antd-form-field.mjs"
69
94
  },
70
- "./card": {
71
- "types": "./card/index.d.ts",
72
- "esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
73
- "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
74
- "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
75
- },
76
95
  "./grid": {
77
96
  "types": "./grid/index.d.ts",
78
97
  "esm2022": "./esm2022/grid/ngx-formly-zorro-antd-grid.mjs",
@@ -121,6 +140,12 @@
121
140
  "esm": "./esm2022/slider/ngx-formly-zorro-antd-slider.mjs",
122
141
  "default": "./fesm2022/ngx-formly-zorro-antd-slider.mjs"
123
142
  },
143
+ "./space": {
144
+ "types": "./space/index.d.ts",
145
+ "esm2022": "./esm2022/space/ngx-formly-zorro-antd-space.mjs",
146
+ "esm": "./esm2022/space/ngx-formly-zorro-antd-space.mjs",
147
+ "default": "./fesm2022/ngx-formly-zorro-antd-space.mjs"
148
+ },
124
149
  "./switch": {
125
150
  "types": "./switch/index.d.ts",
126
151
  "esm2022": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
@@ -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 type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
5
6
  import type { NzSizeLDSType } from 'ng-zorro-antd/core/types';
@@ -22,7 +23,7 @@ interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {
22
23
  */
23
24
  buttonStyle?: NzRadioButtonStyle;
24
25
  }
25
- export interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
26
+ export interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {
26
27
  type: 'radio' | Type<FormlyFieldRadio>;
27
28
  }
28
29
  export declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
@@ -1,5 +1,6 @@
1
1
  import { TemplateRef, 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 * as i0 from "@angular/core";
5
6
  interface RateProps extends FormlyFieldProps {
@@ -38,9 +39,9 @@ interface RateProps extends FormlyFieldProps {
38
39
  /**
39
40
  * 鼠标经过时数值变化的回调
40
41
  */
41
- hoverChange?: (field: FormlyFieldConfig, event?: number) => void;
42
+ hoverChange?: FormlyAttributeEvent<number | undefined>;
42
43
  }
43
- export interface FormlyRateFieldConfig extends FormlyFieldConfig<RateProps> {
44
+ export interface FormlyRateFieldConfig extends NzFormlyFieldConfig<RateProps> {
44
45
  type: 'rate' | Type<FormlyFieldRate>;
45
46
  }
46
47
  export declare class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {
@@ -1,6 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import type { FormlyFieldConfig } from '@ngx-formly/core';
3
2
  import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
3
+ import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
4
4
  import { NzOptionComponent } from 'ng-zorro-antd/select';
5
5
  import type { NzSelectSizeType, NzSelectModeType, NzSelectItemInterface, NzSelectPlacementType } from 'ng-zorro-antd/select';
6
6
  import type { NzStatus, NzSafeAny } from 'ng-zorro-antd/core/types';
@@ -159,13 +159,13 @@ export interface SelectProps extends FormlyFieldSelectProps {
159
159
  /**
160
160
  * 下拉菜单打开状态变化回调
161
161
  */
162
- openChange?: (field: FormlyFieldConfig, vent: boolean) => void;
162
+ openChange?: FormlyAttributeEvent<boolean>;
163
163
  /**
164
164
  * 下拉列表滚动到底部的回调
165
165
  */
166
- scrollToBottom?: (field: FormlyFieldConfig, event: NzSafeAny) => void;
166
+ scrollToBottom?: FormlyAttributeEvent;
167
167
  /**
168
168
  * 文本框值变化时回调
169
169
  */
170
- onSearch?: (field: FormlyFieldConfig, event: string) => void;
170
+ onSearch?: FormlyAttributeEvent<string>;
171
171
  }
@@ -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>> {
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/space" />
5
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { FormlyNzSpaceModule } from './space.module';
2
+ export { FormlyFieldSpace, FormlySpaceFieldConfig } from './space.type';
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./space.type";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "ngx-formly-zorro-antd/common";
5
+ import * as i4 from "ng-zorro-antd/space";
6
+ import * as i5 from "@ngx-formly/core";
7
+ export declare class FormlyNzSpaceModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzSpaceModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzSpaceModule, [typeof i1.FormlyFieldSpace], [typeof i2.CommonModule, typeof i3.FormlyCommonModule, typeof i4.NzSpaceModule, typeof i5.FormlyModule], never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzSpaceModule>;
11
+ }
@@ -0,0 +1,51 @@
1
+ import { Type, TemplateRef } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
+ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
+ import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
5
+ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
6
+ import type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';
7
+ import * as i0 from "@angular/core";
8
+ interface SpaceProps extends FormlyFieldProps {
9
+ type?: 'space';
10
+ /**
11
+ * 间距大小
12
+ */
13
+ size?: NzSpaceSize;
14
+ /**
15
+ * 间距方向
16
+ */
17
+ direction?: NzSpaceDirection;
18
+ /**
19
+ * 对齐方式
20
+ */
21
+ align?: NzSpaceAlign;
22
+ /**
23
+ * 是否自动换行,仅在 horizontal 时有效
24
+ */
25
+ wrap?: boolean;
26
+ /**
27
+ * 设置分隔符
28
+ */
29
+ split?: TemplateRef<{
30
+ $implicit: number;
31
+ }> | null;
32
+ splitName?: string;
33
+ }
34
+ export interface FormlySpaceFieldConfig extends NzFormlyFieldConfig<SpaceProps> {
35
+ type: 'space' | Type<FormlyFieldSpace>;
36
+ }
37
+ export declare class FormlyFieldSpace extends FieldType<FieldTypeConfig<SpaceProps>> {
38
+ fieldTemplates: FormlyBoxTemplates;
39
+ defaultOptions: {
40
+ props: {
41
+ size: "small";
42
+ direction: "horizontal";
43
+ wrap: boolean;
44
+ };
45
+ };
46
+ constructor(fieldTemplates: FormlyBoxTemplates);
47
+ get nzSplit(): TemplateRef<any> | undefined;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSpace, [{ optional: true; }]>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSpace, "formly-field-space", never, {}, {}, never, never, false, never>;
50
+ }
51
+ export {};
@@ -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 {};