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
@@ -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.6", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", 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.6", 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.6", 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,gBAAgB,EAAE,KAAK;AACvB,gBAAA,YAAY,EAAE;AACZ,oBAAA,SAAS,EAAE,GAAG;AACf,iBAAA;AACF,aAAA;SACF,CAAC;AACH,KAAA;8GAtBY,qBAAqB,EAAA,IAAA,EAA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mB;YACnB,uBAAuB;YAEvB,kBAAkB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAaT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAjBjC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,kBAAkB;YAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
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';\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;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;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ro-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;;;;"}