ngx-formly-zorro-antd 16.0.0 → 16.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/card/card.module.d.ts +4 -3
- package/card/card.type.d.ts +36 -0
- package/card/public_api.d.ts +1 -1
- package/card-wrapper/card-wrapper.module.d.ts +11 -0
- package/{card/card.wrapper.d.ts → card-wrapper/card-wrapper.props.d.ts} +10 -12
- package/card-wrapper/card.wrapper.d.ts +23 -0
- package/card-wrapper/index.d.ts +5 -0
- package/card-wrapper/public_api.d.ts +3 -0
- package/common/common.module.d.ts +9 -0
- package/common/formly-box-templates.directive.d.ts +46 -0
- package/common/formly-utils.d.ts +24 -0
- package/common/index.d.ts +5 -0
- package/common/public_api.d.ts +3 -0
- package/esm2022/button/button.module.mjs +6 -7
- package/esm2022/button/button.type.mjs +5 -6
- package/esm2022/card/card.module.mjs +20 -17
- package/esm2022/card/card.type.mjs +93 -0
- package/esm2022/card/public_api.mjs +2 -2
- package/esm2022/card-wrapper/card-wrapper.module.mjs +45 -0
- package/esm2022/card-wrapper/card-wrapper.props.mjs +2 -0
- package/esm2022/card-wrapper/card.wrapper.mjs +77 -0
- package/esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs +5 -0
- package/esm2022/card-wrapper/public_api.mjs +3 -0
- package/esm2022/cascader/cascader.module.mjs +6 -7
- package/esm2022/cascader/cascader.type.mjs +5 -8
- package/esm2022/checkbox/checkbox.module.mjs +6 -7
- package/esm2022/checkbox/checkbox.type.mjs +5 -6
- package/esm2022/common/common.module.mjs +19 -0
- package/esm2022/common/formly-box-templates.directive.mjs +106 -0
- package/esm2022/common/formly-utils.mjs +46 -0
- package/esm2022/common/ngx-formly-zorro-antd-common.mjs +5 -0
- package/esm2022/common/public_api.mjs +4 -0
- package/esm2022/datepicker/datepicker.module.mjs +6 -7
- package/esm2022/datepicker/datepicker.type.mjs +5 -6
- package/esm2022/extension/ngx-formly-zorro-antd-extension.mjs +5 -0
- package/esm2022/extension/public_api.mjs +2 -0
- package/esm2022/extension/value-changes-extension.mjs +31 -0
- package/esm2022/form-field/form-field.module.mjs +6 -7
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +10 -7
- package/esm2022/grid/grid.module.mjs +6 -7
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +5 -6
- package/esm2022/input/input.module.mjs +6 -7
- package/esm2022/input/input.type.mjs +7 -8
- package/esm2022/input-group/input-group.module.mjs +6 -7
- package/esm2022/input-group/input-group.type.mjs +5 -6
- package/esm2022/input-number/input-number.module.mjs +6 -7
- package/esm2022/input-number/input-number.type.mjs +5 -6
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +21 -10
- package/esm2022/radio/radio.module.mjs +6 -7
- package/esm2022/radio/radio.type.mjs +5 -6
- package/esm2022/rate/rate.module.mjs +6 -7
- package/esm2022/rate/rate.type.mjs +5 -6
- package/esm2022/select/select.module.mjs +6 -7
- package/esm2022/select/select.type.mjs +11 -12
- package/esm2022/slider/slider.module.mjs +6 -7
- package/esm2022/slider/slider.type.mjs +5 -6
- package/esm2022/space/ngx-formly-zorro-antd-space.mjs +5 -0
- package/esm2022/space/public_api.mjs +3 -0
- package/esm2022/space/space.module.mjs +45 -0
- package/esm2022/space/space.type.mjs +63 -0
- package/esm2022/switch/switch.module.mjs +6 -7
- package/esm2022/switch/switch.type.mjs +5 -6
- package/esm2022/tabs/tabs.module.mjs +6 -7
- package/esm2022/tabs/tabs.wrapper.mjs +5 -6
- package/esm2022/textarea/textarea.module.mjs +6 -7
- package/esm2022/textarea/textarea.type.mjs +5 -6
- package/esm2022/timepicker/timepicker.module.mjs +6 -7
- package/esm2022/timepicker/timepicker.type.mjs +5 -6
- package/esm2022/transfer/transfer.component.mjs +5 -6
- package/esm2022/transfer/transfer.module.mjs +6 -7
- package/esm2022/transfer/transfer.type.mjs +5 -6
- package/esm2022/tree-select/tree-select.module.mjs +6 -7
- package/esm2022/tree-select/tree-select.type.mjs +5 -6
- package/esm2022/upload/upload.component.mjs +5 -6
- package/esm2022/upload/upload.module.mjs +10 -7
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +28 -18
- package/extension/index.d.ts +5 -0
- package/extension/public_api.d.ts +1 -0
- package/extension/value-changes-extension.d.ts +23 -0
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +123 -0
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +84 -35
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -9
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +174 -0
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs +37 -0
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +12 -8
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +9 -9
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +13 -13
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +109 -0
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +36 -22
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +19 -7
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +12 -3
- package/grid/grid.props.d.ts +15 -13
- package/lib/ui-ng-zorro-antd.module.d.ts +24 -21
- package/package.json +59 -34
- package/space/index.d.ts +5 -0
- package/space/public_api.d.ts +2 -0
- package/space/space.module.d.ts +11 -0
- package/space/space.type.d.ts +50 -0
- package/upload/upload.module.d.ts +6 -5
- package/upload/upload.props.d.ts +2 -0
- package/upload/upload.type.d.ts +6 -1
- package/esm2022/card/card.wrapper.mjs +0 -48
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "16.
|
3
|
+
"version": "16.1.1",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -11,9 +11,10 @@
|
|
11
11
|
"@angular/common": "^16.0.0",
|
12
12
|
"@angular/forms": "^16.0.0",
|
13
13
|
"@angular/platform-browser": "^16.0.0",
|
14
|
-
"ng-zorro-antd": "^16.
|
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,17 +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
|
-
"./
|
41
|
-
"types": "./
|
42
|
-
"esm2022": "./esm2022/
|
43
|
-
"esm": "./esm2022/
|
44
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
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"
|
52
|
+
},
|
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"
|
45
58
|
},
|
46
59
|
"./cascader": {
|
47
60
|
"types": "./cascader/index.d.ts",
|
@@ -55,23 +68,35 @@
|
|
55
68
|
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
56
69
|
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
57
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
|
-
"./
|
71
|
-
"types": "./
|
72
|
-
"esm2022": "./esm2022/
|
73
|
-
"esm": "./esm2022/
|
74
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
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
|
-
"./
|
107
|
-
"types": "./
|
108
|
-
"esm2022": "./esm2022/
|
109
|
-
"esm": "./esm2022/
|
110
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
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
|
-
"./
|
125
|
-
"types": "./
|
126
|
-
"esm2022": "./esm2022/
|
127
|
-
"esm": "./esm2022/
|
128
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
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",
|
package/space/index.d.ts
ADDED
@@ -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 "
|
8
|
-
import * as i7 from "ng-zorro-antd/
|
9
|
-
import * as i8 from "ng-zorro-antd/
|
10
|
-
import * as i9 from "
|
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.
|
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
|
}
|
package/upload/upload.props.d.ts
CHANGED
@@ -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
|
*/
|
package/upload/upload.type.d.ts
CHANGED
@@ -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
|
-
|
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,48 +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
|
-
class FormlyWrapperCard extends FieldWrapper {
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperCard, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
7
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", 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
|
-
export { FormlyWrapperCard };
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperCard, decorators: [{
|
26
|
-
type: Component,
|
27
|
-
args: [{
|
28
|
-
selector: 'formly-wrapper-card',
|
29
|
-
template: `
|
30
|
-
<nz-card
|
31
|
-
[nzActions]="props['actions'] || []"
|
32
|
-
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
33
|
-
[nzSize]="props['size']!"
|
34
|
-
[nzBorderless]="props['borderless']!!"
|
35
|
-
[nzCover]="props['cover']"
|
36
|
-
[nzExtra]="props['extra']"
|
37
|
-
[nzHoverable]="props['hoverable']!!"
|
38
|
-
[nzLoading]="props['loading']!!"
|
39
|
-
[nzTitle]="props['title']"
|
40
|
-
[nzType]="props['type'] ?? null"
|
41
|
-
>
|
42
|
-
<ng-container #fieldComponent></ng-container>
|
43
|
-
</nz-card>
|
44
|
-
`,
|
45
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
46
|
-
}]
|
47
|
-
}] });
|
48
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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