ngx-formly-zorro-antd 17.1.2 → 17.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) 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/package.json +3 -0
  6. package/card-wrapper/package.json +3 -0
  7. package/cascader/package.json +3 -0
  8. package/checkbox/package.json +3 -0
  9. package/common/package.json +3 -0
  10. package/datepicker/package.json +3 -0
  11. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  12. package/esm2022/autocomplete/public_api.mjs +1 -1
  13. package/esm2022/button/button.module.mjs +1 -1
  14. package/esm2022/button/button.type.mjs +123 -123
  15. package/esm2022/button/public_api.mjs +1 -1
  16. package/esm2022/button-group/button-group.module.mjs +1 -1
  17. package/esm2022/button-group/button-group.type.mjs +67 -67
  18. package/esm2022/button-group/public_api.mjs +1 -1
  19. package/esm2022/card/card.module.mjs +1 -1
  20. package/esm2022/card/card.type.mjs +51 -51
  21. package/esm2022/card/public_api.mjs +1 -1
  22. package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
  23. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  24. package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
  25. package/esm2022/card-wrapper/public_api.mjs +1 -1
  26. package/esm2022/cascader/cascader.module.mjs +1 -1
  27. package/esm2022/cascader/cascader.type.mjs +65 -65
  28. package/esm2022/cascader/public_api.mjs +1 -1
  29. package/esm2022/checkbox/checkbox.module.mjs +1 -1
  30. package/esm2022/checkbox/checkbox.type.mjs +48 -43
  31. package/esm2022/checkbox/public_api.mjs +1 -1
  32. package/esm2022/common/common.module.mjs +1 -1
  33. package/esm2022/common/formly-box-templates.directive.mjs +1 -1
  34. package/esm2022/common/formly-utils.mjs +1 -1
  35. package/esm2022/common/interface.mjs +1 -1
  36. package/esm2022/common/public_api.mjs +1 -1
  37. package/esm2022/datepicker/datepicker.module.mjs +1 -1
  38. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  39. package/esm2022/datepicker/datepicker.type.mjs +149 -149
  40. package/esm2022/datepicker/public_api.mjs +1 -1
  41. package/esm2022/extension/public_api.mjs +1 -1
  42. package/esm2022/extension/value-changes-extension.mjs +1 -1
  43. package/esm2022/flex/flex.module.mjs +1 -1
  44. package/esm2022/flex/flex.type.mjs +35 -35
  45. package/esm2022/flex/public_api.mjs +1 -1
  46. package/esm2022/form-field/form-field.module.mjs +1 -1
  47. package/esm2022/form-field/form-field.props.mjs +1 -1
  48. package/esm2022/form-field/form-field.wrapper.mjs +147 -147
  49. package/esm2022/form-field/public_api.mjs +1 -1
  50. package/esm2022/grid/grid.module.mjs +1 -1
  51. package/esm2022/grid/grid.props.mjs +1 -1
  52. package/esm2022/grid/grid.type.mjs +59 -59
  53. package/esm2022/grid/public_api.mjs +1 -1
  54. package/esm2022/index.mjs +1 -1
  55. package/esm2022/input/input.module.mjs +1 -1
  56. package/esm2022/input/input.props.mjs +1 -1
  57. package/esm2022/input/input.type.mjs +275 -275
  58. package/esm2022/input/public_api.mjs +1 -1
  59. package/esm2022/input-group/input-group.module.mjs +1 -1
  60. package/esm2022/input-group/input-group.props.mjs +1 -1
  61. package/esm2022/input-group/input-group.type.mjs +47 -42
  62. package/esm2022/input-group/public_api.mjs +1 -1
  63. package/esm2022/input-number/input-number.module.mjs +1 -1
  64. package/esm2022/input-number/input-number.props.mjs +1 -1
  65. package/esm2022/input-number/input-number.type.mjs +89 -89
  66. package/esm2022/input-number/public_api.mjs +1 -1
  67. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  68. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
  69. package/esm2022/radio/public_api.mjs +1 -1
  70. package/esm2022/radio/radio.module.mjs +1 -1
  71. package/esm2022/radio/radio.type.mjs +81 -81
  72. package/esm2022/rate/public_api.mjs +1 -1
  73. package/esm2022/rate/rate.module.mjs +1 -1
  74. package/esm2022/rate/rate.type.mjs +33 -33
  75. package/esm2022/ref-template/public_api.mjs +1 -1
  76. package/esm2022/ref-template/ref-template.module.mjs +1 -1
  77. package/esm2022/ref-template/ref-template.type.mjs +9 -9
  78. package/esm2022/select/public_api.mjs +1 -1
  79. package/esm2022/select/select.module.mjs +1 -1
  80. package/esm2022/select/select.props.mjs +1 -1
  81. package/esm2022/select/select.type.mjs +123 -123
  82. package/esm2022/slider/public_api.mjs +1 -1
  83. package/esm2022/slider/slider.module.mjs +1 -1
  84. package/esm2022/slider/slider.type.mjs +33 -33
  85. package/esm2022/space/public_api.mjs +1 -1
  86. package/esm2022/space/space.module.mjs +1 -1
  87. package/esm2022/space/space.type.mjs +27 -27
  88. package/esm2022/switch/public_api.mjs +1 -1
  89. package/esm2022/switch/switch.module.mjs +1 -1
  90. package/esm2022/switch/switch.type.mjs +25 -25
  91. package/esm2022/tabs/public_api.mjs +1 -1
  92. package/esm2022/tabs/tabs.module.mjs +1 -1
  93. package/esm2022/tabs/tabs.props.mjs +1 -1
  94. package/esm2022/tabs/tabs.wrapper.mjs +79 -79
  95. package/esm2022/text-value/public_api.mjs +1 -1
  96. package/esm2022/text-value/text-value.module.mjs +1 -1
  97. package/esm2022/text-value/text-value.type.mjs +19 -19
  98. package/esm2022/textarea/public_api.mjs +1 -1
  99. package/esm2022/textarea/textarea.module.mjs +1 -1
  100. package/esm2022/textarea/textarea.type.mjs +113 -113
  101. package/esm2022/timepicker/public_api.mjs +1 -1
  102. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  103. package/esm2022/timepicker/timepicker.type.mjs +61 -61
  104. package/esm2022/transfer/public_api.mjs +1 -1
  105. package/esm2022/transfer/transfer.component.mjs +49 -49
  106. package/esm2022/transfer/transfer.module.mjs +1 -1
  107. package/esm2022/transfer/transfer.type.mjs +47 -47
  108. package/esm2022/tree-select/public_api.mjs +1 -1
  109. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  110. package/esm2022/tree-select/tree-select.type.mjs +69 -69
  111. package/esm2022/upload/public_api.mjs +1 -1
  112. package/esm2022/upload/upload.component.mjs +143 -143
  113. package/esm2022/upload/upload.module.mjs +1 -1
  114. package/esm2022/upload/upload.props.mjs +1 -1
  115. package/esm2022/upload/upload.type.mjs +83 -83
  116. package/extension/package.json +3 -0
  117. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
  118. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  119. package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
  120. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  121. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
  122. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  123. package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
  124. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
  126. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  127. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +48 -43
  128. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  129. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  130. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
  131. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  132. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +34 -34
  134. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
  135. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +146 -146
  136. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  137. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
  138. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  139. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +47 -42
  140. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  141. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
  142. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  143. package/fesm2022/ngx-formly-zorro-antd-input.mjs +274 -274
  144. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  145. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
  146. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  147. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
  148. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  149. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
  150. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  151. package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
  152. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  153. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
  154. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  155. package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
  156. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  157. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
  158. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  159. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
  160. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  161. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +18 -18
  162. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  163. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
  164. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  165. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
  166. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  167. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
  168. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  169. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
  170. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  171. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
  172. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  173. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  174. package/flex/package.json +3 -0
  175. package/form-field/form-field.props.d.ts +5 -1
  176. package/form-field/package.json +3 -0
  177. package/grid/package.json +3 -0
  178. package/input/package.json +3 -0
  179. package/input-group/package.json +3 -0
  180. package/input-number/package.json +3 -0
  181. package/package.json +26 -26
  182. package/radio/package.json +3 -0
  183. package/rate/package.json +3 -0
  184. package/ref-template/package.json +3 -0
  185. package/select/package.json +3 -0
  186. package/slider/package.json +3 -0
  187. package/space/package.json +3 -0
  188. package/switch/package.json +3 -0
  189. package/tabs/package.json +3 -0
  190. package/text-value/package.json +3 -0
  191. package/textarea/package.json +3 -0
  192. package/timepicker/package.json +3 -0
  193. package/transfer/package.json +3 -0
  194. package/tree-select/package.json +3 -0
  195. package/upload/package.json +3 -0
@@ -36,160 +36,160 @@ class FormlyFieldDatepicker extends FieldType {
36
36
  };
37
37
  }
38
38
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
40
- <nz-range-picker
41
- [nzId]="id"
42
- [formControl]="formControl"
43
- [formlyAttributes]="field"
44
- [ngClass]="props['ngClass']"
45
- [nzPlaceHolder]="props.placeholder ?? ''"
46
- [nzAllowClear]="props['allowClear']!!"
47
- [nzAutoFocus]="props['autoFocus']!!"
48
- [nzBackdrop]="props['backdrop']!!"
49
- [nzDefaultPickerValue]="props['defaultPickerValue']"
50
- [nzDisabledDate]="props['disabledDate']"
51
- [nzDropdownClassName]="props['dropdownClassName']"
52
- [nzFormat]="props['format']"
53
- [nzInputReadOnly]="props['inputReadOnly']!!"
54
- [nzMode]="props['mode']"
55
- [nzPopupStyle]="props['popupStyle']"
56
- [nzSize]="props['size']"
57
- [nzStatus]="props['status'] ?? ''"
58
- [nzPlacement]="props['placement']"
59
- [nzRenderExtraFooter]="props['renderExtraFooter']"
60
- [nzSuffixIcon]="props['suffixIcon']"
61
- [nzBorderless]="props['borderless']"
62
- [nzInline]="props['inline']"
63
- [nzDateRender]="props['dateRender']"
64
- [nzDisabledTime]="props['rangeOptions']?.disabledTime"
65
- [nzShowTime]="props['showTime']"
66
- [nzShowToday]="props['showToday']!!"
67
- [nzShowNow]="props['showNow']!!"
68
- [nzShowWeekNumber]="props['showWeekNumber']!!"
69
- [nzRanges]="props['rangeOptions']?.ranges"
70
- [nzSeparator]="props['rangeOptions']?.separator"
71
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
72
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
73
- (nzOnCalendarChange)="
74
- props['rangeOptions']?.calendarChange &&
75
- props['rangeOptions']?.calendarChange(field, $event)
76
- "
77
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
78
- ></nz-range-picker>
79
- } @else {
80
- <nz-date-picker
81
- [nzId]="id"
82
- [formControl]="formControl"
83
- [formlyAttributes]="field"
84
- [ngClass]="props['ngClass']"
85
- [nzPlaceHolder]="props.placeholder ?? ''"
86
- [nzAllowClear]="props['allowClear']!!"
87
- [nzAutoFocus]="props['autoFocus']!!"
88
- [nzBackdrop]="props['backdrop']!!"
89
- [nzDefaultPickerValue]="props['defaultPickerValue']"
90
- [nzDisabledDate]="props['disabledDate']"
91
- [nzDropdownClassName]="props['dropdownClassName']"
92
- [nzFormat]="props['format']"
93
- [nzInputReadOnly]="props['inputReadOnly']!!"
94
- [nzMode]="props['mode']"
95
- [nzPopupStyle]="props['popupStyle']!"
96
- [nzSize]="props['size']!"
97
- [nzStatus]="props['status']!"
98
- [nzPlacement]="props['placement']!"
99
- [nzRenderExtraFooter]="props['renderExtraFooter']"
100
- [nzSuffixIcon]="props['suffixIcon']"
101
- [nzBorderless]="props['borderless']"
102
- [nzInline]="props['inline']"
103
- [nzDateRender]="props['dateRender']"
104
- [nzDisabledTime]="props['disabledTime']"
105
- [nzShowTime]="props['showTime']"
106
- [nzShowToday]="props['showToday']!!"
107
- [nzShowNow]="props['showNow']!!"
108
- [nzShowWeekNumber]="props['showWeekNumber']!!"
109
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
110
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
111
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
112
- ></nz-date-picker>
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
40
+ <nz-range-picker
41
+ [nzId]="id"
42
+ [formControl]="formControl"
43
+ [formlyAttributes]="field"
44
+ [ngClass]="props['ngClass']"
45
+ [nzPlaceHolder]="props.placeholder ?? ''"
46
+ [nzAllowClear]="props['allowClear']!!"
47
+ [nzAutoFocus]="props['autoFocus']!!"
48
+ [nzBackdrop]="props['backdrop']!!"
49
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
50
+ [nzDisabledDate]="props['disabledDate']"
51
+ [nzDropdownClassName]="props['dropdownClassName']"
52
+ [nzFormat]="props['format']"
53
+ [nzInputReadOnly]="props['inputReadOnly']!!"
54
+ [nzMode]="props['mode']"
55
+ [nzPopupStyle]="props['popupStyle']"
56
+ [nzSize]="props['size']"
57
+ [nzStatus]="props['status'] ?? ''"
58
+ [nzPlacement]="props['placement']"
59
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
60
+ [nzSuffixIcon]="props['suffixIcon']"
61
+ [nzBorderless]="props['borderless']"
62
+ [nzInline]="props['inline']"
63
+ [nzDateRender]="props['dateRender']"
64
+ [nzDisabledTime]="props['rangeOptions']?.disabledTime"
65
+ [nzShowTime]="props['showTime']"
66
+ [nzShowToday]="props['showToday']!!"
67
+ [nzShowNow]="props['showNow']!!"
68
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
69
+ [nzRanges]="props['rangeOptions']?.ranges"
70
+ [nzSeparator]="props['rangeOptions']?.separator"
71
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
72
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
73
+ (nzOnCalendarChange)="
74
+ props['rangeOptions']?.calendarChange &&
75
+ props['rangeOptions']?.calendarChange(field, $event)
76
+ "
77
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
78
+ ></nz-range-picker>
79
+ } @else {
80
+ <nz-date-picker
81
+ [nzId]="id"
82
+ [formControl]="formControl"
83
+ [formlyAttributes]="field"
84
+ [ngClass]="props['ngClass']"
85
+ [nzPlaceHolder]="props.placeholder ?? ''"
86
+ [nzAllowClear]="props['allowClear']!!"
87
+ [nzAutoFocus]="props['autoFocus']!!"
88
+ [nzBackdrop]="props['backdrop']!!"
89
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
90
+ [nzDisabledDate]="props['disabledDate']"
91
+ [nzDropdownClassName]="props['dropdownClassName']"
92
+ [nzFormat]="props['format']"
93
+ [nzInputReadOnly]="props['inputReadOnly']!!"
94
+ [nzMode]="props['mode']"
95
+ [nzPopupStyle]="props['popupStyle']!"
96
+ [nzSize]="props['size']!"
97
+ [nzStatus]="props['status']!"
98
+ [nzPlacement]="props['placement']!"
99
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
100
+ [nzSuffixIcon]="props['suffixIcon']"
101
+ [nzBorderless]="props['borderless']"
102
+ [nzInline]="props['inline']"
103
+ [nzDateRender]="props['dateRender']"
104
+ [nzDisabledTime]="props['disabledTime']"
105
+ [nzShowTime]="props['showTime']"
106
+ [nzShowToday]="props['showToday']!!"
107
+ [nzShowNow]="props['showNow']!!"
108
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
109
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
110
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
111
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
112
+ ></nz-date-picker>
113
113
  }`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
114
114
  }
115
115
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
116
116
  type: Component,
117
117
  args: [{
118
118
  selector: 'formly-field-datepicker',
119
- template: ` @if (props.type === 'range') {
120
- <nz-range-picker
121
- [nzId]="id"
122
- [formControl]="formControl"
123
- [formlyAttributes]="field"
124
- [ngClass]="props['ngClass']"
125
- [nzPlaceHolder]="props.placeholder ?? ''"
126
- [nzAllowClear]="props['allowClear']!!"
127
- [nzAutoFocus]="props['autoFocus']!!"
128
- [nzBackdrop]="props['backdrop']!!"
129
- [nzDefaultPickerValue]="props['defaultPickerValue']"
130
- [nzDisabledDate]="props['disabledDate']"
131
- [nzDropdownClassName]="props['dropdownClassName']"
132
- [nzFormat]="props['format']"
133
- [nzInputReadOnly]="props['inputReadOnly']!!"
134
- [nzMode]="props['mode']"
135
- [nzPopupStyle]="props['popupStyle']"
136
- [nzSize]="props['size']"
137
- [nzStatus]="props['status'] ?? ''"
138
- [nzPlacement]="props['placement']"
139
- [nzRenderExtraFooter]="props['renderExtraFooter']"
140
- [nzSuffixIcon]="props['suffixIcon']"
141
- [nzBorderless]="props['borderless']"
142
- [nzInline]="props['inline']"
143
- [nzDateRender]="props['dateRender']"
144
- [nzDisabledTime]="props['rangeOptions']?.disabledTime"
145
- [nzShowTime]="props['showTime']"
146
- [nzShowToday]="props['showToday']!!"
147
- [nzShowNow]="props['showNow']!!"
148
- [nzShowWeekNumber]="props['showWeekNumber']!!"
149
- [nzRanges]="props['rangeOptions']?.ranges"
150
- [nzSeparator]="props['rangeOptions']?.separator"
151
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
152
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
153
- (nzOnCalendarChange)="
154
- props['rangeOptions']?.calendarChange &&
155
- props['rangeOptions']?.calendarChange(field, $event)
156
- "
157
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
158
- ></nz-range-picker>
159
- } @else {
160
- <nz-date-picker
161
- [nzId]="id"
162
- [formControl]="formControl"
163
- [formlyAttributes]="field"
164
- [ngClass]="props['ngClass']"
165
- [nzPlaceHolder]="props.placeholder ?? ''"
166
- [nzAllowClear]="props['allowClear']!!"
167
- [nzAutoFocus]="props['autoFocus']!!"
168
- [nzBackdrop]="props['backdrop']!!"
169
- [nzDefaultPickerValue]="props['defaultPickerValue']"
170
- [nzDisabledDate]="props['disabledDate']"
171
- [nzDropdownClassName]="props['dropdownClassName']"
172
- [nzFormat]="props['format']"
173
- [nzInputReadOnly]="props['inputReadOnly']!!"
174
- [nzMode]="props['mode']"
175
- [nzPopupStyle]="props['popupStyle']!"
176
- [nzSize]="props['size']!"
177
- [nzStatus]="props['status']!"
178
- [nzPlacement]="props['placement']!"
179
- [nzRenderExtraFooter]="props['renderExtraFooter']"
180
- [nzSuffixIcon]="props['suffixIcon']"
181
- [nzBorderless]="props['borderless']"
182
- [nzInline]="props['inline']"
183
- [nzDateRender]="props['dateRender']"
184
- [nzDisabledTime]="props['disabledTime']"
185
- [nzShowTime]="props['showTime']"
186
- [nzShowToday]="props['showToday']!!"
187
- [nzShowNow]="props['showNow']!!"
188
- [nzShowWeekNumber]="props['showWeekNumber']!!"
189
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
190
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
191
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
192
- ></nz-date-picker>
119
+ template: ` @if (props.type === 'range') {
120
+ <nz-range-picker
121
+ [nzId]="id"
122
+ [formControl]="formControl"
123
+ [formlyAttributes]="field"
124
+ [ngClass]="props['ngClass']"
125
+ [nzPlaceHolder]="props.placeholder ?? ''"
126
+ [nzAllowClear]="props['allowClear']!!"
127
+ [nzAutoFocus]="props['autoFocus']!!"
128
+ [nzBackdrop]="props['backdrop']!!"
129
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
130
+ [nzDisabledDate]="props['disabledDate']"
131
+ [nzDropdownClassName]="props['dropdownClassName']"
132
+ [nzFormat]="props['format']"
133
+ [nzInputReadOnly]="props['inputReadOnly']!!"
134
+ [nzMode]="props['mode']"
135
+ [nzPopupStyle]="props['popupStyle']"
136
+ [nzSize]="props['size']"
137
+ [nzStatus]="props['status'] ?? ''"
138
+ [nzPlacement]="props['placement']"
139
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
140
+ [nzSuffixIcon]="props['suffixIcon']"
141
+ [nzBorderless]="props['borderless']"
142
+ [nzInline]="props['inline']"
143
+ [nzDateRender]="props['dateRender']"
144
+ [nzDisabledTime]="props['rangeOptions']?.disabledTime"
145
+ [nzShowTime]="props['showTime']"
146
+ [nzShowToday]="props['showToday']!!"
147
+ [nzShowNow]="props['showNow']!!"
148
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
149
+ [nzRanges]="props['rangeOptions']?.ranges"
150
+ [nzSeparator]="props['rangeOptions']?.separator"
151
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
152
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
153
+ (nzOnCalendarChange)="
154
+ props['rangeOptions']?.calendarChange &&
155
+ props['rangeOptions']?.calendarChange(field, $event)
156
+ "
157
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
158
+ ></nz-range-picker>
159
+ } @else {
160
+ <nz-date-picker
161
+ [nzId]="id"
162
+ [formControl]="formControl"
163
+ [formlyAttributes]="field"
164
+ [ngClass]="props['ngClass']"
165
+ [nzPlaceHolder]="props.placeholder ?? ''"
166
+ [nzAllowClear]="props['allowClear']!!"
167
+ [nzAutoFocus]="props['autoFocus']!!"
168
+ [nzBackdrop]="props['backdrop']!!"
169
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
170
+ [nzDisabledDate]="props['disabledDate']"
171
+ [nzDropdownClassName]="props['dropdownClassName']"
172
+ [nzFormat]="props['format']"
173
+ [nzInputReadOnly]="props['inputReadOnly']!!"
174
+ [nzMode]="props['mode']"
175
+ [nzPopupStyle]="props['popupStyle']!"
176
+ [nzSize]="props['size']!"
177
+ [nzStatus]="props['status']!"
178
+ [nzPlacement]="props['placement']!"
179
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
180
+ [nzSuffixIcon]="props['suffixIcon']"
181
+ [nzBorderless]="props['borderless']"
182
+ [nzInline]="props['inline']"
183
+ [nzDateRender]="props['dateRender']"
184
+ [nzDisabledTime]="props['disabledTime']"
185
+ [nzShowTime]="props['showTime']"
186
+ [nzShowToday]="props['showToday']!!"
187
+ [nzShowNow]="props['showNow']!!"
188
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
189
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
190
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
191
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
192
+ ></nz-date-picker>
193
193
  }`,
194
194
  changeDetection: ChangeDetectionStrategy.OnPush
195
195
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport type { DatepickerProps } from './datepicker.props';\r\n\r\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\r\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-datepicker',\r\n template: ` @if (props.type === 'range') {\r\n <nz-range-picker\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzPlacement]=\"props['placement']\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\r\n [nzRanges]=\"props['rangeOptions']?.ranges\"\r\n [nzSeparator]=\"props['rangeOptions']?.separator\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n (nzOnCalendarChange)=\"\r\n props['rangeOptions']?.calendarChange &&\r\n props['rangeOptions']?.calendarChange(field, $event)\r\n \"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-range-picker>\r\n } @else {\r\n <nz-date-picker\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzPlacement]=\"props['placement']!\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['disabledTime']\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-date-picker>\r\n }`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n allowClear: true,\r\n backdrop: false,\r\n defaultPickerValue: null,\r\n inputReadOnly: false,\r\n mode: 'date' as const,\r\n size: 'default' as const,\r\n status: '' as const,\r\n placement: 'bottomLeft' as const,\r\n popupStyle: {},\r\n borderless: false,\r\n inline: false,\r\n showToday: true,\r\n showNow: true,\r\n nzShowWeekNumber: false,\r\n rangeOptions: {\r\n separator: '~'\r\n }\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\r\nimport { FormlyFieldDatepicker } from './datepicker.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldDatepicker],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzDatePickerModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'datepicker',\r\n component: FormlyFieldDatepicker,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzDatepickerModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAwFM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA/ErE,IAAA,WAAA,GAAA;;AAgFW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,UAAU,EAAE,EAAE;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,gBAA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formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: ` @if (props.type === 'range') {\n <nz-range-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n } @else {\n <nz-date-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAwFM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA/ErE,IAAA,WAAA,GAAA;;AAgFW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,SAAS,EAAE,YAAqB;AACh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AAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-extension.mjs","sources":["../../../../packages/formlyantd/extension/value-changes-extension.ts","../../../../packages/formlyantd/extension/ngx-formly-zorro-antd-extension.ts"],"sourcesContent":["import { FormlyExtension } from '@ngx-formly/core';\r\n\r\n/**\r\n * 自动添加valueChanges函数\r\n * @example\r\n * fields = [\r\n * {\r\n * type: 'input',\r\n * props: {\r\n * valueChanges: (value, field) => {}\r\n * }\r\n * }\r\n * ]\r\n */\r\nexport const valueChangesExtension: FormlyExtension = {\r\n postPopulate(field): void {\r\n if (\r\n !field.formControl ||\r\n !field.props?.['valueChanges'] ||\r\n field.props['valueChanges'].observed\r\n ) {\r\n return;\r\n }\r\n\r\n field.props['valueChanges'].observed = true;\r\n field.formControl.valueChanges.subscribe(value => field.props!['valueChanges'](value, field));\r\n }\r\n};\r\n\r\n/**\r\n * valueChanges函数配置\r\n */\r\nexport const valueChangesExtensionOption = {\r\n name: 'value-changes',\r\n extension: valueChangesExtension\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAEA;;;;;;;;;;;AAWG;AACU,MAAA,qBAAqB,GAAoB;AACpD,IAAA,YAAY,CAAC,KAAK,EAAA;QAChB,IACE,CAAC,KAAK,CAAC,WAAW;AAClB,YAAA,CAAC,KAAK,CAAC,KAAK,GAAG,cAAc,CAAC;AAC9B,YAAA,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EACpC;YACA,OAAO;AACR,SAAA;QAED,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC5C,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,IAAI,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;KAC/F;EACD;AAEF;;AAEG;AACU,MAAA,2BAA2B,GAAG;AACzC,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,SAAS,EAAE,qBAAqB;;;AClClC;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-extension.mjs","sources":["../../../../packages/formlyantd/extension/value-changes-extension.ts","../../../../packages/formlyantd/extension/ngx-formly-zorro-antd-extension.ts"],"sourcesContent":["import { FormlyExtension } from '@ngx-formly/core';\n\n/**\n * 自动添加valueChanges函数\n * @example\n * fields = [\n * {\n * type: 'input',\n * props: {\n * valueChanges: (value, field) => {}\n * }\n * }\n * ]\n */\nexport const valueChangesExtension: FormlyExtension = {\n postPopulate(field): void {\n if (\n !field.formControl ||\n !field.props?.['valueChanges'] ||\n field.props['valueChanges'].observed\n ) {\n return;\n }\n\n field.props['valueChanges'].observed = true;\n field.formControl.valueChanges.subscribe(value => field.props!['valueChanges'](value, field));\n }\n};\n\n/**\n * valueChanges函数配置\n */\nexport const valueChangesExtensionOption = {\n name: 'value-changes',\n extension: valueChangesExtension\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAEA;;;;;;;;;;;AAWG;AACU,MAAA,qBAAqB,GAAoB;AACpD,IAAA,YAAY,CAAC,KAAK,EAAA;QAChB,IACE,CAAC,KAAK,CAAC,WAAW;AAClB,YAAA,CAAC,KAAK,CAAC,KAAK,GAAG,cAAc,CAAC;AAC9B,YAAA,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EACpC;YACA,OAAO;AACR,SAAA;QAED,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC5C,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,IAAI,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;KAC/F;EACD;AAEF;;AAEG;AACU,MAAA,2BAA2B,GAAG;AACzC,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,SAAS,EAAE,qBAAqB;;;AClClC;;AAEG;;;;"}
@@ -22,46 +22,46 @@ class FormlyFieldFlex extends FieldType {
22
22
  };
23
23
  }
24
24
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldFlex, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldFlex, selector: "formly-field-flex", usesInheritance: true, ngImport: i0, template: `
26
- <div
27
- [ngClass]="props['ngClass']"
28
- [ngStyle]="props['ngStyle']"
29
- [formlyAttributes]="field"
30
- [nzVertical]="props['vertical']!!"
31
- [nzJustify]="props['justify']!"
32
- [nzAlign]="props['align']!"
33
- [nzGap]="props['gap']!"
34
- [nzWrap]="props['wrap']!"
35
- [nzFlex]="props['flex']!"
36
- nz-flex
37
- >
38
- @for (item of field.fieldGroup; track item.id) {
39
- <formly-field [field]="item"></formly-field>
40
- }
41
- </div>
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldFlex, selector: "formly-field-flex", usesInheritance: true, ngImport: i0, template: `
26
+ <div
27
+ [ngClass]="props['ngClass']"
28
+ [ngStyle]="props['ngStyle']"
29
+ [formlyAttributes]="field"
30
+ [nzVertical]="props['vertical']!!"
31
+ [nzJustify]="props['justify']!"
32
+ [nzAlign]="props['align']!"
33
+ [nzGap]="props['gap']!"
34
+ [nzWrap]="props['wrap']!"
35
+ [nzFlex]="props['flex']!"
36
+ nz-flex
37
+ >
38
+ @for (item of field.fieldGroup; track item.id) {
39
+ <formly-field [field]="item"></formly-field>
40
+ }
41
+ </div>
42
42
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
43
43
  }
44
44
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldFlex, decorators: [{
45
45
  type: Component,
46
46
  args: [{
47
47
  selector: 'formly-field-flex',
48
- template: `
49
- <div
50
- [ngClass]="props['ngClass']"
51
- [ngStyle]="props['ngStyle']"
52
- [formlyAttributes]="field"
53
- [nzVertical]="props['vertical']!!"
54
- [nzJustify]="props['justify']!"
55
- [nzAlign]="props['align']!"
56
- [nzGap]="props['gap']!"
57
- [nzWrap]="props['wrap']!"
58
- [nzFlex]="props['flex']!"
59
- nz-flex
60
- >
61
- @for (item of field.fieldGroup; track item.id) {
62
- <formly-field [field]="item"></formly-field>
63
- }
64
- </div>
48
+ template: `
49
+ <div
50
+ [ngClass]="props['ngClass']"
51
+ [ngStyle]="props['ngStyle']"
52
+ [formlyAttributes]="field"
53
+ [nzVertical]="props['vertical']!!"
54
+ [nzJustify]="props['justify']!"
55
+ [nzAlign]="props['align']!"
56
+ [nzGap]="props['gap']!"
57
+ [nzWrap]="props['wrap']!"
58
+ [nzFlex]="props['flex']!"
59
+ nz-flex
60
+ >
61
+ @for (item of field.fieldGroup; track item.id) {
62
+ <formly-field [field]="item"></formly-field>
63
+ }
64
+ </div>
65
65
  `,
66
66
  changeDetection: ChangeDetectionStrategy.OnPush
67
67
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-flex.mjs","sources":["../../../../packages/formlyantd/flex/src/flex.type.ts","../../../../packages/formlyantd/flex/src/flex.module.ts","../../../../packages/formlyantd/flex/src/ngx-formly-zorro-antd-flex.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';\r\nimport type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';\r\n\r\ninterface FlexProps extends FormlyFieldProps {\r\n /**\r\n * 自定义css类\r\n */\r\n ngClass?: NgClassType;\r\n /**\r\n * 自定义样式\r\n */\r\n ngStyle?: NgStyleType;\r\n /**\r\n * flex 主轴的方向是否垂直,使用 flex-direction: column\r\n * @default false\r\n */\r\n vertical?: boolean;\r\n\r\n /** 设置元素在主轴方向上的对齐方式 */\r\n justify?: NzJustify;\r\n\r\n /** 设置元素在交叉轴方向上的对齐方式 */\r\n align?: NzAlign;\r\n\r\n /** 设置网格之间的间隙 */\r\n gap?: NzGap;\r\n\r\n /** 设置元素单行显示还是多行显示 */\r\n wrap?: NzWrap;\r\n\r\n /** flex CSS 简写属性 */\r\n flex?: NzFlex;\r\n}\r\n\r\nexport interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {\r\n type: 'flex' | Type<FormlyFieldFlex>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-flex',\r\n template: `\r\n <div\r\n [ngClass]=\"props['ngClass']\"\r\n [ngStyle]=\"props['ngStyle']\"\r\n [formlyAttributes]=\"field\"\r\n [nzVertical]=\"props['vertical']!!\"\r\n [nzJustify]=\"props['justify']!\"\r\n [nzAlign]=\"props['align']!\"\r\n [nzGap]=\"props['gap']!\"\r\n [nzWrap]=\"props['wrap']!\"\r\n [nzFlex]=\"props['flex']!\"\r\n nz-flex\r\n >\r\n @for (item of field.fieldGroup; track item.id) {\r\n <formly-field [field]=\"item\"></formly-field>\r\n }\r\n </div>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps>> {\r\n override defaultOptions = {\r\n props: {\r\n vertical: false,\r\n justify: 'normal' as const,\r\n align: 'normal' as const,\r\n gap: 0,\r\n wrap: 'nowrap' as const,\r\n flex: 'unset' as const\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlyFieldFlex } from './flex.type';\r\n\r\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldFlex],\r\n imports: [\r\n CommonModule,\r\n NzFlexModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'flex',\r\n component: FormlyFieldFlex\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzFlexModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AA8DM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAtB1E,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,QAAiB;AAC1B,gBAAA,KAAK,EAAE,QAAiB;AACxB,gBAAA,GAAG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,QAAiB;AACvB,gBAAA,IAAI,EAAE,OAAgB;AACvB,aAAA;SACF,CAAC;AACH,KAAA;8GAXY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA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AAA;;;ACrBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-flex.mjs","sources":["../../../../packages/formlyantd/flex/src/flex.type.ts","../../../../packages/formlyantd/flex/src/flex.module.ts","../../../../packages/formlyantd/flex/src/ngx-formly-zorro-antd-flex.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';\nimport type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';\n\ninterface FlexProps extends FormlyFieldProps {\n /**\n * 自定义css类\n */\n ngClass?: NgClassType;\n /**\n * 自定义样式\n */\n ngStyle?: NgStyleType;\n /**\n * flex 主轴的方向是否垂直,使用 flex-direction: column\n * @default false\n */\n vertical?: boolean;\n\n /** 设置元素在主轴方向上的对齐方式 */\n justify?: NzJustify;\n\n /** 设置元素在交叉轴方向上的对齐方式 */\n align?: NzAlign;\n\n /** 设置网格之间的间隙 */\n gap?: NzGap;\n\n /** 设置元素单行显示还是多行显示 */\n wrap?: NzWrap;\n\n /** flex CSS 简写属性 */\n flex?: NzFlex;\n}\n\nexport interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {\n type: 'flex' | Type<FormlyFieldFlex>;\n}\n\n@Component({\n selector: 'formly-field-flex',\n template: `\n <div\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [formlyAttributes]=\"field\"\n [nzVertical]=\"props['vertical']!!\"\n [nzJustify]=\"props['justify']!\"\n [nzAlign]=\"props['align']!\"\n [nzGap]=\"props['gap']!\"\n [nzWrap]=\"props['wrap']!\"\n [nzFlex]=\"props['flex']!\"\n nz-flex\n >\n @for (item of field.fieldGroup; track item.id) {\n <formly-field [field]=\"item\"></formly-field>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps>> {\n override defaultOptions = {\n props: {\n vertical: false,\n justify: 'normal' as const,\n align: 'normal' as const,\n gap: 0,\n wrap: 'nowrap' as const,\n flex: 'unset' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyFieldFlex } from './flex.type';\n\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\n\n@NgModule({\n declarations: [FormlyFieldFlex],\n imports: [\n CommonModule,\n NzFlexModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'flex',\n component: FormlyFieldFlex\n }\n ]\n })\n ]\n})\nexport class FormlyNzFlexModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AA8DM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAtB1E,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,QAAiB;AAC1B,gBAAA,KAAK,EAAE,QAAiB;AACxB,gBAAA,GAAG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,QAAiB;AACvB,gBAAA,IAAI,EAAE,OAAgB;AACvB,aAAA;SACF,CAAC;AACH,KAAA;8GAXY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EApBhB,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAA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