ngx-formly-zorro-antd 17.1.0 → 17.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/package.json +3 -0
  3. package/button/package.json +3 -0
  4. package/button-group/package.json +3 -0
  5. package/card/card.module.d.ts +1 -1
  6. package/card/package.json +3 -0
  7. package/card-wrapper/package.json +3 -0
  8. package/cascader/package.json +3 -0
  9. package/checkbox/package.json +3 -0
  10. package/common/package.json +3 -0
  11. package/datepicker/package.json +3 -0
  12. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  13. package/esm2022/autocomplete/public_api.mjs +1 -1
  14. package/esm2022/button/button.module.mjs +1 -1
  15. package/esm2022/button/button.type.mjs +123 -123
  16. package/esm2022/button/public_api.mjs +1 -1
  17. package/esm2022/button-group/button-group.module.mjs +1 -1
  18. package/esm2022/button-group/button-group.type.mjs +67 -67
  19. package/esm2022/button-group/public_api.mjs +1 -1
  20. package/esm2022/card/card.module.mjs +3 -4
  21. package/esm2022/card/card.type.mjs +51 -51
  22. package/esm2022/card/public_api.mjs +1 -1
  23. package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
  24. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  25. package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
  26. package/esm2022/card-wrapper/public_api.mjs +1 -1
  27. package/esm2022/cascader/cascader.module.mjs +1 -1
  28. package/esm2022/cascader/cascader.type.mjs +65 -65
  29. package/esm2022/cascader/public_api.mjs +1 -1
  30. package/esm2022/checkbox/checkbox.module.mjs +1 -1
  31. package/esm2022/checkbox/checkbox.type.mjs +39 -39
  32. package/esm2022/checkbox/public_api.mjs +1 -1
  33. package/esm2022/common/common.module.mjs +1 -1
  34. package/esm2022/common/formly-box-templates.directive.mjs +1 -1
  35. package/esm2022/common/formly-utils.mjs +1 -1
  36. package/esm2022/common/interface.mjs +1 -1
  37. package/esm2022/common/public_api.mjs +1 -1
  38. package/esm2022/datepicker/datepicker.module.mjs +1 -1
  39. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  40. package/esm2022/datepicker/datepicker.type.mjs +149 -149
  41. package/esm2022/datepicker/public_api.mjs +1 -1
  42. package/esm2022/extension/public_api.mjs +1 -1
  43. package/esm2022/extension/value-changes-extension.mjs +1 -1
  44. package/esm2022/form-field/form-field.module.mjs +1 -1
  45. package/esm2022/form-field/form-field.props.mjs +1 -1
  46. package/esm2022/form-field/form-field.wrapper.mjs +159 -125
  47. package/esm2022/form-field/public_api.mjs +1 -1
  48. package/esm2022/grid/grid.module.mjs +1 -1
  49. package/esm2022/grid/grid.props.mjs +1 -1
  50. package/esm2022/grid/grid.type.mjs +59 -59
  51. package/esm2022/grid/public_api.mjs +1 -1
  52. package/esm2022/index.mjs +1 -1
  53. package/esm2022/input/input.module.mjs +1 -1
  54. package/esm2022/input/input.props.mjs +1 -1
  55. package/esm2022/input/input.type.mjs +275 -275
  56. package/esm2022/input/public_api.mjs +1 -1
  57. package/esm2022/input-group/input-group.module.mjs +1 -1
  58. package/esm2022/input-group/input-group.props.mjs +1 -1
  59. package/esm2022/input-group/input-group.type.mjs +39 -39
  60. package/esm2022/input-group/public_api.mjs +1 -1
  61. package/esm2022/input-number/input-number.module.mjs +1 -1
  62. package/esm2022/input-number/input-number.props.mjs +1 -1
  63. package/esm2022/input-number/input-number.type.mjs +89 -89
  64. package/esm2022/input-number/public_api.mjs +1 -1
  65. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  66. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
  67. package/esm2022/radio/public_api.mjs +1 -1
  68. package/esm2022/radio/radio.module.mjs +1 -1
  69. package/esm2022/radio/radio.type.mjs +81 -81
  70. package/esm2022/rate/public_api.mjs +1 -1
  71. package/esm2022/rate/rate.module.mjs +1 -1
  72. package/esm2022/rate/rate.type.mjs +33 -33
  73. package/esm2022/ref-template/public_api.mjs +1 -1
  74. package/esm2022/ref-template/ref-template.module.mjs +1 -1
  75. package/esm2022/ref-template/ref-template.type.mjs +9 -9
  76. package/esm2022/select/public_api.mjs +1 -1
  77. package/esm2022/select/select.module.mjs +1 -1
  78. package/esm2022/select/select.props.mjs +1 -1
  79. package/esm2022/select/select.type.mjs +123 -123
  80. package/esm2022/slider/public_api.mjs +1 -1
  81. package/esm2022/slider/slider.module.mjs +1 -1
  82. package/esm2022/slider/slider.type.mjs +33 -33
  83. package/esm2022/space/public_api.mjs +1 -1
  84. package/esm2022/space/space.module.mjs +1 -1
  85. package/esm2022/space/space.type.mjs +27 -27
  86. package/esm2022/switch/public_api.mjs +1 -1
  87. package/esm2022/switch/switch.module.mjs +1 -1
  88. package/esm2022/switch/switch.type.mjs +25 -25
  89. package/esm2022/tabs/public_api.mjs +1 -1
  90. package/esm2022/tabs/tabs.module.mjs +1 -1
  91. package/esm2022/tabs/tabs.props.mjs +1 -1
  92. package/esm2022/tabs/tabs.wrapper.mjs +79 -79
  93. package/esm2022/text-value/public_api.mjs +1 -1
  94. package/esm2022/text-value/text-value.module.mjs +1 -1
  95. package/esm2022/text-value/text-value.type.mjs +19 -19
  96. package/esm2022/textarea/public_api.mjs +1 -1
  97. package/esm2022/textarea/textarea.module.mjs +1 -1
  98. package/esm2022/textarea/textarea.type.mjs +113 -113
  99. package/esm2022/timepicker/public_api.mjs +1 -1
  100. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  101. package/esm2022/timepicker/timepicker.type.mjs +61 -61
  102. package/esm2022/transfer/public_api.mjs +1 -1
  103. package/esm2022/transfer/transfer.component.mjs +49 -49
  104. package/esm2022/transfer/transfer.module.mjs +1 -1
  105. package/esm2022/transfer/transfer.type.mjs +47 -47
  106. package/esm2022/tree-select/public_api.mjs +1 -1
  107. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  108. package/esm2022/tree-select/tree-select.type.mjs +69 -69
  109. package/esm2022/upload/public_api.mjs +1 -1
  110. package/esm2022/upload/upload.component.mjs +143 -143
  111. package/esm2022/upload/upload.module.mjs +1 -1
  112. package/esm2022/upload/upload.props.mjs +1 -1
  113. package/esm2022/upload/upload.type.mjs +83 -83
  114. package/extension/package.json +3 -0
  115. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
  116. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  117. package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
  118. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  119. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
  120. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  121. package/fesm2022/ngx-formly-zorro-antd-card.mjs +52 -53
  122. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  123. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
  124. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
  126. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  127. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  128. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
  129. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  130. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  131. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +158 -124
  132. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
  134. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  135. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
  136. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  137. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
  138. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  139. package/fesm2022/ngx-formly-zorro-antd-input.mjs +274 -274
  140. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  141. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
  142. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  143. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
  144. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  145. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
  146. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  147. package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
  148. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  149. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
  150. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  151. package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
  152. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  153. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
  154. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  155. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
  156. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  157. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +18 -18
  158. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  159. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
  160. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  161. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
  162. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  163. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
  164. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  165. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
  166. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  167. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
  168. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  169. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  170. package/form-field/form-field.props.d.ts +16 -0
  171. package/form-field/form-field.wrapper.d.ts +4 -0
  172. package/form-field/package.json +3 -0
  173. package/grid/package.json +3 -0
  174. package/input/package.json +3 -0
  175. package/input-group/package.json +3 -0
  176. package/input-number/package.json +3 -0
  177. package/package.json +12 -12
  178. package/radio/package.json +3 -0
  179. package/rate/package.json +3 -0
  180. package/ref-template/package.json +3 -0
  181. package/select/package.json +3 -0
  182. package/slider/package.json +3 -0
  183. package/space/package.json +3 -0
  184. package/switch/package.json +3 -0
  185. package/tabs/package.json +3 -0
  186. package/text-value/package.json +3 -0
  187. package/textarea/package.json +3 -0
  188. package/timepicker/package.json +3 -0
  189. package/transfer/package.json +3 -0
  190. package/tree-select/package.json +3 -0
  191. package/upload/package.json +3 -0
@@ -1,3 +1,5 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { AbstractControl, NgModel } from '@angular/forms';
1
3
  import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
2
4
  import type { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
3
5
  import type { NzTSType } from 'ng-zorro-antd/core/types';
@@ -71,11 +73,22 @@ export interface NzFormWrapperProps extends ControlOptions {
71
73
  * 描述
72
74
  */
73
75
  description?: string;
76
+ successTip?: NzTipType;
77
+ successTipName?: string;
78
+ warningTip?: NzTipType;
79
+ warningTipName?: string;
80
+ validatingTip?: NzTipType;
81
+ validatingTipName?: string;
74
82
  /**
75
83
  * 用于显示表单额外提示信息
76
84
  */
77
85
  extra?: NzTSType;
78
86
  extraName?: string;
87
+ autoTips?: Record<string, Record<string, string>>;
88
+ disableAutoTips?: boolean | 'default';
89
+ /** 在form-control尾部添加文本 */
90
+ afterText?: string;
91
+ afterTextName?: string;
79
92
  /** flex 布局属性 */
80
93
  labelFlex?: strNumNull;
81
94
  /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
@@ -125,4 +138,7 @@ export interface NzFormWrapperProps extends ControlOptions {
125
138
  /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
126
139
  controlXXl?: strNumNull | EmbeddedProperty;
127
140
  }
141
+ export type NzTipType = string | TemplateRef<{
142
+ $implicit: AbstractControl | NgModel;
143
+ }>;
128
144
  export {};
@@ -11,6 +11,10 @@ export declare class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldCo
11
11
  get nzExtra(): import("@angular/core").TemplateRef<any> | undefined;
12
12
  get hasLabel(): boolean;
13
13
  get label(): import("@angular/core").TemplateRef<any> | undefined;
14
+ get afterText(): import("@angular/core").TemplateRef<any> | undefined;
15
+ get nzSuccessTip(): import("@angular/core").TemplateRef<any> | undefined;
16
+ get nzValidatingTip(): import("@angular/core").TemplateRef<any> | undefined;
17
+ get nzWarningTip(): import("@angular/core").TemplateRef<any> | undefined;
14
18
  get hasError(): false | import("@angular/forms").ValidationErrors | null;
15
19
  get validateStatus(): "error" | "success";
16
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, [{ optional: true; }]>;
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-form-field.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-grid.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-input.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-input-group.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-input-number.mjs"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-formly-zorro-antd",
3
- "version": "17.1.0",
3
+ "version": "17.1.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -37,11 +37,11 @@
37
37
  "esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
38
38
  "default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
39
39
  },
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"
40
+ "./card": {
41
+ "types": "./card/index.d.ts",
42
+ "esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
43
+ "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
44
+ "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
45
45
  },
46
46
  "./button-group": {
47
47
  "types": "./button-group/index.d.ts",
@@ -49,12 +49,6 @@
49
49
  "esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
50
50
  "default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
51
51
  },
52
- "./card": {
53
- "types": "./card/index.d.ts",
54
- "esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
55
- "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
56
- "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
57
- },
58
52
  "./card-wrapper": {
59
53
  "types": "./card-wrapper/index.d.ts",
60
54
  "esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
@@ -73,6 +67,12 @@
73
67
  "esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
74
68
  "default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
75
69
  },
70
+ "./button": {
71
+ "types": "./button/index.d.ts",
72
+ "esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
73
+ "esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
74
+ "default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
75
+ },
76
76
  "./common": {
77
77
  "types": "./common/index.d.ts",
78
78
  "esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-radio.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-rate.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-ref-template.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-select.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-slider.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-space.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-switch.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-tabs.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-text-value.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-textarea.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-timepicker.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-transfer.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-tree-select.mjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-upload.mjs"
3
+ }