ngx-formly-zorro-antd 16.1.0 → 16.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/card/card.module.d.ts +4 -3
  2. package/card/card.type.d.ts +36 -0
  3. package/card/public_api.d.ts +1 -1
  4. package/card-wrapper/card-wrapper.module.d.ts +11 -0
  5. package/{card/card.wrapper.d.ts → card-wrapper/card-wrapper.props.d.ts} +10 -12
  6. package/card-wrapper/card.wrapper.d.ts +23 -0
  7. package/card-wrapper/index.d.ts +5 -0
  8. package/card-wrapper/public_api.d.ts +3 -0
  9. package/common/common.module.d.ts +9 -0
  10. package/common/formly-box-templates.directive.d.ts +46 -0
  11. package/common/formly-utils.d.ts +24 -0
  12. package/common/index.d.ts +5 -0
  13. package/common/public_api.d.ts +3 -0
  14. package/esm2022/card/card.module.mjs +16 -12
  15. package/esm2022/card/card.type.mjs +93 -0
  16. package/esm2022/card/public_api.mjs +2 -2
  17. package/esm2022/card-wrapper/card-wrapper.module.mjs +45 -0
  18. package/esm2022/card-wrapper/card-wrapper.props.mjs +2 -0
  19. package/esm2022/card-wrapper/card.wrapper.mjs +77 -0
  20. package/esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs +5 -0
  21. package/esm2022/card-wrapper/public_api.mjs +3 -0
  22. package/esm2022/cascader/cascader.type.mjs +1 -3
  23. package/esm2022/common/common.module.mjs +19 -0
  24. package/esm2022/common/formly-box-templates.directive.mjs +106 -0
  25. package/esm2022/common/formly-utils.mjs +46 -0
  26. package/esm2022/common/ngx-formly-zorro-antd-common.mjs +5 -0
  27. package/esm2022/common/public_api.mjs +4 -0
  28. package/esm2022/extension/ngx-formly-zorro-antd-extension.mjs +5 -0
  29. package/esm2022/extension/public_api.mjs +2 -0
  30. package/esm2022/extension/value-changes-extension.mjs +31 -0
  31. package/esm2022/form-field/form-field.props.mjs +1 -1
  32. package/esm2022/grid/grid.props.mjs +1 -1
  33. package/esm2022/input/input.type.mjs +3 -3
  34. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +16 -4
  35. package/esm2022/select/select.type.mjs +7 -7
  36. package/esm2022/space/ngx-formly-zorro-antd-space.mjs +5 -0
  37. package/esm2022/space/public_api.mjs +3 -0
  38. package/esm2022/space/space.module.mjs +45 -0
  39. package/esm2022/space/space.type.mjs +63 -0
  40. package/esm2022/upload/upload.module.mjs +5 -1
  41. package/esm2022/upload/upload.props.mjs +1 -1
  42. package/esm2022/upload/upload.type.mjs +25 -14
  43. package/extension/index.d.ts +5 -0
  44. package/extension/public_api.d.ts +1 -0
  45. package/extension/value-changes-extension.d.ts +23 -0
  46. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +123 -0
  47. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -0
  48. package/fesm2022/ngx-formly-zorro-antd-card.mjs +81 -32
  49. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  50. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +0 -2
  51. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  52. package/fesm2022/ngx-formly-zorro-antd-common.mjs +174 -0
  53. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -0
  54. package/fesm2022/ngx-formly-zorro-antd-extension.mjs +37 -0
  55. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -0
  56. package/fesm2022/ngx-formly-zorro-antd-input.mjs +2 -2
  57. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  58. package/fesm2022/ngx-formly-zorro-antd-select.mjs +6 -6
  59. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  60. package/fesm2022/ngx-formly-zorro-antd-space.mjs +109 -0
  61. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -0
  62. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +27 -13
  63. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  64. package/fesm2022/ngx-formly-zorro-antd.mjs +15 -3
  65. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  66. package/form-field/form-field.props.d.ts +3 -2
  67. package/grid/grid.props.d.ts +15 -13
  68. package/lib/ui-ng-zorro-antd.module.d.ts +24 -21
  69. package/package.json +63 -38
  70. package/space/index.d.ts +5 -0
  71. package/space/public_api.d.ts +2 -0
  72. package/space/space.module.d.ts +11 -0
  73. package/space/space.type.d.ts +50 -0
  74. package/upload/upload.module.d.ts +6 -5
  75. package/upload/upload.props.d.ts +2 -0
  76. package/upload/upload.type.d.ts +6 -1
  77. package/esm2022/card/card.wrapper.mjs +0 -47
@@ -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.1",
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": {
@@ -31,23 +32,29 @@
31
32
  "esm": "./esm2022/ngx-formly-zorro-antd.mjs",
32
33
  "default": "./fesm2022/ngx-formly-zorro-antd.mjs"
33
34
  },
35
+ "./button": {
36
+ "types": "./button/index.d.ts",
37
+ "esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
38
+ "esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
39
+ "default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
40
+ },
34
41
  "./autocomplete": {
35
42
  "types": "./autocomplete/index.d.ts",
36
43
  "esm2022": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
37
44
  "esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
38
45
  "default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
39
46
  },
40
- "./button": {
41
- "types": "./button/index.d.ts",
42
- "esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
43
- "esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
44
- "default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
47
+ "./card": {
48
+ "types": "./card/index.d.ts",
49
+ "esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
50
+ "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
51
+ "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
45
52
  },
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"
53
+ "./card-wrapper": {
54
+ "types": "./card-wrapper/index.d.ts",
55
+ "esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
56
+ "esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
57
+ "default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
51
58
  },
52
59
  "./cascader": {
53
60
  "types": "./cascader/index.d.ts",
@@ -55,23 +62,41 @@
55
62
  "esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
56
63
  "default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
57
64
  },
65
+ "./checkbox": {
66
+ "types": "./checkbox/index.d.ts",
67
+ "esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
68
+ "esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
69
+ "default": "./fesm2022/ngx-formly-zorro-antd-checkbox.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"
95
+ "./input": {
96
+ "types": "./input/index.d.ts",
97
+ "esm2022": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
98
+ "esm": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
99
+ "default": "./fesm2022/ngx-formly-zorro-antd-input.mjs"
75
100
  },
76
101
  "./grid": {
77
102
  "types": "./grid/index.d.ts",
@@ -79,35 +104,23 @@
79
104
  "esm": "./esm2022/grid/ngx-formly-zorro-antd-grid.mjs",
80
105
  "default": "./fesm2022/ngx-formly-zorro-antd-grid.mjs"
81
106
  },
82
- "./input": {
83
- "types": "./input/index.d.ts",
84
- "esm2022": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
85
- "esm": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
86
- "default": "./fesm2022/ngx-formly-zorro-antd-input.mjs"
87
- },
88
107
  "./input-group": {
89
108
  "types": "./input-group/index.d.ts",
90
109
  "esm2022": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
91
110
  "esm": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
92
111
  "default": "./fesm2022/ngx-formly-zorro-antd-input-group.mjs"
93
112
  },
94
- "./input-number": {
95
- "types": "./input-number/index.d.ts",
96
- "esm2022": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
97
- "esm": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
98
- "default": "./fesm2022/ngx-formly-zorro-antd-input-number.mjs"
99
- },
100
113
  "./radio": {
101
114
  "types": "./radio/index.d.ts",
102
115
  "esm2022": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
103
116
  "esm": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
104
117
  "default": "./fesm2022/ngx-formly-zorro-antd-radio.mjs"
105
118
  },
106
- "./rate": {
107
- "types": "./rate/index.d.ts",
108
- "esm2022": "./esm2022/rate/ngx-formly-zorro-antd-rate.mjs",
109
- "esm": "./esm2022/rate/ngx-formly-zorro-antd-rate.mjs",
110
- "default": "./fesm2022/ngx-formly-zorro-antd-rate.mjs"
119
+ "./input-number": {
120
+ "types": "./input-number/index.d.ts",
121
+ "esm2022": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
122
+ "esm": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
123
+ "default": "./fesm2022/ngx-formly-zorro-antd-input-number.mjs"
111
124
  },
112
125
  "./select": {
113
126
  "types": "./select/index.d.ts",
@@ -115,17 +128,23 @@
115
128
  "esm": "./esm2022/select/ngx-formly-zorro-antd-select.mjs",
116
129
  "default": "./fesm2022/ngx-formly-zorro-antd-select.mjs"
117
130
  },
131
+ "./rate": {
132
+ "types": "./rate/index.d.ts",
133
+ "esm2022": "./esm2022/rate/ngx-formly-zorro-antd-rate.mjs",
134
+ "esm": "./esm2022/rate/ngx-formly-zorro-antd-rate.mjs",
135
+ "default": "./fesm2022/ngx-formly-zorro-antd-rate.mjs"
136
+ },
118
137
  "./slider": {
119
138
  "types": "./slider/index.d.ts",
120
139
  "esm2022": "./esm2022/slider/ngx-formly-zorro-antd-slider.mjs",
121
140
  "esm": "./esm2022/slider/ngx-formly-zorro-antd-slider.mjs",
122
141
  "default": "./fesm2022/ngx-formly-zorro-antd-slider.mjs"
123
142
  },
124
- "./switch": {
125
- "types": "./switch/index.d.ts",
126
- "esm2022": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
127
- "esm": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
128
- "default": "./fesm2022/ngx-formly-zorro-antd-switch.mjs"
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"
129
148
  },
130
149
  "./tabs": {
131
150
  "types": "./tabs/index.d.ts",
@@ -133,6 +152,12 @@
133
152
  "esm": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
134
153
  "default": "./fesm2022/ngx-formly-zorro-antd-tabs.mjs"
135
154
  },
155
+ "./switch": {
156
+ "types": "./switch/index.d.ts",
157
+ "esm2022": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
158
+ "esm": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
159
+ "default": "./fesm2022/ngx-formly-zorro-antd-switch.mjs"
160
+ },
136
161
  "./textarea": {
137
162
  "types": "./textarea/index.d.ts",
138
163
  "esm2022": "./esm2022/textarea/ngx-formly-zorro-antd-textarea.mjs",
@@ -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,50 @@
1
+ import { Type, TemplateRef } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig, FormlyFieldConfig } 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 { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';
6
+ import * as i0 from "@angular/core";
7
+ interface SpaceProps extends FormlyFieldProps {
8
+ type?: 'space';
9
+ /**
10
+ * 间距大小
11
+ */
12
+ size?: NzSpaceSize;
13
+ /**
14
+ * 间距方向
15
+ */
16
+ direction?: NzSpaceDirection;
17
+ /**
18
+ * 对齐方式
19
+ */
20
+ align?: NzSpaceAlign;
21
+ /**
22
+ * 是否自动换行,仅在 horizontal 时有效
23
+ */
24
+ wrap?: boolean;
25
+ /**
26
+ * 设置分隔符
27
+ */
28
+ split?: TemplateRef<{
29
+ $implicit: number;
30
+ }> | null;
31
+ splitName?: string;
32
+ }
33
+ export interface FormlySpaceFieldConfig extends FormlyFieldConfig<SpaceProps> {
34
+ type: 'space' | Type<FormlyFieldSpace>;
35
+ }
36
+ export declare class FormlyFieldSpace extends FieldType<FieldTypeConfig<SpaceProps>> {
37
+ fieldTemplates: FormlyBoxTemplates;
38
+ defaultOptions: {
39
+ props: {
40
+ size: "small";
41
+ direction: "horizontal";
42
+ wrap: boolean;
43
+ };
44
+ };
45
+ constructor(fieldTemplates: FormlyBoxTemplates);
46
+ get nzSplit(): TemplateRef<any> | undefined;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSpace, [{ optional: true; }]>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSpace, "formly-field-space", never, {}, {}, never, never, false, never>;
49
+ }
50
+ export {};
@@ -4,12 +4,13 @@ import * as i2 from "./upload.component";
4
4
  import * as i3 from "@angular/common";
5
5
  import * as i4 from "@angular/forms";
6
6
  import * as i5 from "ngx-formly-zorro-antd/form-field";
7
- import * as i6 from "ng-zorro-antd/upload";
8
- import * as i7 from "ng-zorro-antd/button";
9
- import * as i8 from "ng-zorro-antd/icon";
10
- import * as i9 from "@ngx-formly/core";
7
+ import * as i6 from "ngx-formly-zorro-antd/common";
8
+ import * as i7 from "ng-zorro-antd/upload";
9
+ import * as i8 from "ng-zorro-antd/button";
10
+ import * as i9 from "ng-zorro-antd/icon";
11
+ import * as i10 from "@ngx-formly/core";
11
12
  export declare class FormlyNzUploadModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzUploadModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzUploadModule, [typeof i1.FormlyFieldUpload, typeof i2.UploadNzComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.FormlyNzFormFieldModule, typeof i6.NzUploadModule, typeof i7.NzButtonModule, typeof i8.NzIconModule, typeof i9.FormlyModule], never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzUploadModule, [typeof i1.FormlyFieldUpload, typeof i2.UploadNzComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.FormlyNzFormFieldModule, typeof i6.FormlyCommonModule, typeof i7.NzUploadModule, typeof i8.NzButtonModule, typeof i9.NzIconModule, typeof i10.FormlyModule], never>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzUploadModule>;
15
16
  }
@@ -130,12 +130,14 @@ export interface UploadProps extends FormlyFieldProps {
130
130
  * 自定义显示 icon
131
131
  */
132
132
  iconRender?: NzIconRenderTemplate | null;
133
+ iconRenderName?: string;
133
134
  /**
134
135
  * 自定义显示整个列表
135
136
  */
136
137
  fileListRender?: TemplateRef<{
137
138
  $implicit: NzUploadFile[];
138
139
  }> | null;
140
+ fileListRenderName?: string;
139
141
  /**
140
142
  * 文件列表改变事件
141
143
  */
@@ -2,11 +2,13 @@ import { Type, OnInit } from '@angular/core';
2
2
  import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
3
  import { UploadNzComponent } from './upload.component';
4
4
  import type { UploadProps } from './upload.props';
5
+ import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
5
6
  import * as i0 from "@angular/core";
6
7
  export interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {
7
8
  type: 'upload' | Type<FormlyFieldUpload>;
8
9
  }
9
10
  export declare class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {
11
+ fieldTemplates: FormlyBoxTemplates;
10
12
  defaultOptions: {
11
13
  props: {
12
14
  listType: "text";
@@ -23,7 +25,10 @@ export declare class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadP
23
25
  };
24
26
  };
25
27
  upload: UploadNzComponent;
28
+ constructor(fieldTemplates: FormlyBoxTemplates);
26
29
  ngOnInit(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldUpload, never>;
30
+ get nzIconRender(): import("@angular/core").TemplateRef<any> | undefined;
31
+ get nzFileListRender(): import("@angular/core").TemplateRef<any> | undefined;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldUpload, [{ optional: true; }]>;
28
33
  static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldUpload, "formly-field-upload", never, {}, {}, never, never, false, never>;
29
34
  }
@@ -1,47 +0,0 @@
1
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
- import { FieldWrapper } from '@ngx-formly/core';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "ng-zorro-antd/card";
5
- export class FormlyWrapperCard extends FieldWrapper {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperCard, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
8
- <nz-card
9
- [nzActions]="props['actions'] || []"
10
- [nzBodyStyle]="props['bodyStyle'] ?? null"
11
- [nzSize]="props['size']!"
12
- [nzBorderless]="props['borderless']!!"
13
- [nzCover]="props['cover']"
14
- [nzExtra]="props['extra']"
15
- [nzHoverable]="props['hoverable']!!"
16
- [nzLoading]="props['loading']!!"
17
- [nzTitle]="props['title']"
18
- [nzType]="props['type'] ?? null"
19
- >
20
- <ng-container #fieldComponent></ng-container>
21
- </nz-card>
22
- `, isInline: true, dependencies: [{ kind: "component", type: i1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperCard, decorators: [{
25
- type: Component,
26
- args: [{
27
- selector: 'formly-wrapper-card',
28
- template: `
29
- <nz-card
30
- [nzActions]="props['actions'] || []"
31
- [nzBodyStyle]="props['bodyStyle'] ?? null"
32
- [nzSize]="props['size']!"
33
- [nzBorderless]="props['borderless']!!"
34
- [nzCover]="props['cover']"
35
- [nzExtra]="props['extra']"
36
- [nzHoverable]="props['hoverable']!!"
37
- [nzLoading]="props['loading']!!"
38
- [nzTitle]="props['title']"
39
- [nzType]="props['type'] ?? null"
40
- >
41
- <ng-container #fieldComponent></ng-container>
42
- </nz-card>
43
- `,
44
- changeDetection: ChangeDetectionStrategy.OnPush
45
- }]
46
- }] });
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC53cmFwcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jYXJkL3NyYy9jYXJkLndyYXBwZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsdUJBQXVCLEVBQUUsTUFBTSxlQUFl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