ngx-formly-zorro-antd 17.0.9 → 17.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. package/README.md +1 -1
  2. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  3. package/esm2022/autocomplete/public_api.mjs +1 -1
  4. package/esm2022/button/button.module.mjs +1 -1
  5. package/esm2022/button/button.type.mjs +123 -123
  6. package/esm2022/button/public_api.mjs +1 -1
  7. package/esm2022/button-group/button-group.module.mjs +1 -1
  8. package/esm2022/button-group/button-group.type.mjs +67 -67
  9. package/esm2022/button-group/public_api.mjs +1 -1
  10. package/esm2022/card/card.module.mjs +1 -1
  11. package/esm2022/card/card.type.mjs +51 -51
  12. package/esm2022/card/public_api.mjs +1 -1
  13. package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
  14. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  15. package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
  16. package/esm2022/card-wrapper/public_api.mjs +1 -1
  17. package/esm2022/cascader/cascader.module.mjs +1 -1
  18. package/esm2022/cascader/cascader.type.mjs +65 -65
  19. package/esm2022/cascader/public_api.mjs +1 -1
  20. package/esm2022/checkbox/checkbox.module.mjs +1 -1
  21. package/esm2022/checkbox/checkbox.type.mjs +39 -39
  22. package/esm2022/checkbox/public_api.mjs +1 -1
  23. package/esm2022/common/common.module.mjs +1 -1
  24. package/esm2022/common/formly-box-templates.directive.mjs +1 -1
  25. package/esm2022/common/formly-utils.mjs +1 -1
  26. package/esm2022/common/interface.mjs +1 -1
  27. package/esm2022/common/public_api.mjs +1 -1
  28. package/esm2022/datepicker/datepicker.module.mjs +1 -1
  29. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  30. package/esm2022/datepicker/datepicker.type.mjs +149 -149
  31. package/esm2022/datepicker/public_api.mjs +1 -1
  32. package/esm2022/extension/public_api.mjs +1 -1
  33. package/esm2022/extension/value-changes-extension.mjs +1 -1
  34. package/esm2022/form-field/form-field.module.mjs +1 -1
  35. package/esm2022/form-field/form-field.props.mjs +1 -1
  36. package/esm2022/form-field/form-field.wrapper.mjs +125 -125
  37. package/esm2022/form-field/public_api.mjs +1 -1
  38. package/esm2022/grid/grid.module.mjs +1 -1
  39. package/esm2022/grid/grid.props.mjs +1 -1
  40. package/esm2022/grid/grid.type.mjs +59 -59
  41. package/esm2022/grid/public_api.mjs +1 -1
  42. package/esm2022/index.mjs +1 -1
  43. package/esm2022/input/input.module.mjs +1 -1
  44. package/esm2022/input/input.props.mjs +1 -1
  45. package/esm2022/input/input.type.mjs +297 -286
  46. package/esm2022/input/public_api.mjs +1 -1
  47. package/esm2022/input-group/input-group.module.mjs +1 -1
  48. package/esm2022/input-group/input-group.props.mjs +1 -1
  49. package/esm2022/input-group/input-group.type.mjs +39 -39
  50. package/esm2022/input-group/public_api.mjs +1 -1
  51. package/esm2022/input-number/input-number.module.mjs +1 -1
  52. package/esm2022/input-number/input-number.props.mjs +1 -1
  53. package/esm2022/input-number/input-number.type.mjs +89 -89
  54. package/esm2022/input-number/public_api.mjs +1 -1
  55. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  56. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
  57. package/esm2022/radio/public_api.mjs +1 -1
  58. package/esm2022/radio/radio.module.mjs +1 -1
  59. package/esm2022/radio/radio.type.mjs +81 -81
  60. package/esm2022/rate/public_api.mjs +1 -1
  61. package/esm2022/rate/rate.module.mjs +1 -1
  62. package/esm2022/rate/rate.type.mjs +33 -33
  63. package/esm2022/ref-template/public_api.mjs +1 -1
  64. package/esm2022/ref-template/ref-template.module.mjs +1 -1
  65. package/esm2022/ref-template/ref-template.type.mjs +9 -9
  66. package/esm2022/select/public_api.mjs +1 -1
  67. package/esm2022/select/select.module.mjs +1 -1
  68. package/esm2022/select/select.props.mjs +1 -1
  69. package/esm2022/select/select.type.mjs +124 -123
  70. package/esm2022/slider/public_api.mjs +1 -1
  71. package/esm2022/slider/slider.module.mjs +1 -1
  72. package/esm2022/slider/slider.type.mjs +33 -33
  73. package/esm2022/space/public_api.mjs +1 -1
  74. package/esm2022/space/space.module.mjs +1 -1
  75. package/esm2022/space/space.type.mjs +27 -27
  76. package/esm2022/switch/public_api.mjs +1 -1
  77. package/esm2022/switch/switch.module.mjs +1 -1
  78. package/esm2022/switch/switch.type.mjs +25 -25
  79. package/esm2022/tabs/public_api.mjs +1 -1
  80. package/esm2022/tabs/tabs.module.mjs +1 -1
  81. package/esm2022/tabs/tabs.props.mjs +1 -1
  82. package/esm2022/tabs/tabs.wrapper.mjs +79 -79
  83. package/esm2022/textarea/public_api.mjs +1 -1
  84. package/esm2022/textarea/textarea.module.mjs +1 -1
  85. package/esm2022/textarea/textarea.type.mjs +113 -111
  86. package/esm2022/timepicker/public_api.mjs +1 -1
  87. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  88. package/esm2022/timepicker/timepicker.type.mjs +61 -61
  89. package/esm2022/transfer/public_api.mjs +1 -1
  90. package/esm2022/transfer/transfer.component.mjs +49 -49
  91. package/esm2022/transfer/transfer.module.mjs +1 -1
  92. package/esm2022/transfer/transfer.type.mjs +47 -47
  93. package/esm2022/tree-select/public_api.mjs +1 -1
  94. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  95. package/esm2022/tree-select/tree-select.type.mjs +69 -69
  96. package/esm2022/upload/public_api.mjs +1 -1
  97. package/esm2022/upload/upload.component.mjs +143 -143
  98. package/esm2022/upload/upload.module.mjs +1 -1
  99. package/esm2022/upload/upload.props.mjs +1 -1
  100. package/esm2022/upload/upload.type.mjs +83 -83
  101. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
  102. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  103. package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
  104. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  105. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
  106. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  107. package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
  108. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  109. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
  110. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  111. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
  112. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  113. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  114. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
  115. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  116. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  117. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +124 -124
  118. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  119. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
  120. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  121. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
  122. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  123. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
  124. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-input.mjs +297 -286
  126. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  127. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
  128. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  129. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
  130. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  131. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
  132. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd-select.mjs +123 -122
  134. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  135. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
  136. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  137. package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
  138. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  139. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
  140. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  141. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
  142. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  143. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -110
  144. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  145. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
  146. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  147. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
  148. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  149. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
  150. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  151. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
  152. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  153. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  154. package/input/input.type.d.ts +6 -1
  155. package/input-group/input-group.props.d.ts +4 -0
  156. package/package.json +7 -7
  157. package/select/select.type.d.ts +1 -0
  158. package/autocomplete/package.json +0 -3
  159. package/button/package.json +0 -3
  160. package/button-group/package.json +0 -3
  161. package/card/package.json +0 -3
  162. package/card-wrapper/package.json +0 -3
  163. package/cascader/package.json +0 -3
  164. package/checkbox/package.json +0 -3
  165. package/common/package.json +0 -3
  166. package/datepicker/package.json +0 -3
  167. package/extension/package.json +0 -3
  168. package/form-field/package.json +0 -3
  169. package/grid/package.json +0 -3
  170. package/input/package.json +0 -3
  171. package/input-group/package.json +0 -3
  172. package/input-number/package.json +0 -3
  173. package/radio/package.json +0 -3
  174. package/rate/package.json +0 -3
  175. package/ref-template/package.json +0 -3
  176. package/select/package.json +0 -3
  177. package/slider/package.json +0 -3
  178. package/space/package.json +0 -3
  179. package/switch/package.json +0 -3
  180. package/tabs/package.json +0 -3
  181. package/textarea/package.json +0 -3
  182. package/timepicker/package.json +0 -3
  183. package/transfer/package.json +0 -3
  184. package/tree-select/package.json +0 -3
  185. package/upload/package.json +0 -3
@@ -56,76 +56,76 @@ class FormlyFieldCascader extends FieldType {
56
56
  }
57
57
  }
58
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCascader, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
59
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
60
- #cascader
61
- [nzPlaceHolder]="props.placeholder ?? ''"
62
- [formControl]="formControl"
63
- [formlyAttributes]="field"
64
- [ngClass]="props['className']"
65
- [nzAllowClear]="props['allowClear']!!"
66
- [nzAutoFocus]="props['autoFocus']!!"
67
- [nzBackdrop]="props['backdrop']!!"
68
- [nzChangeOn]="props['changeOn']"
69
- [nzChangeOnSelect]="props['changeOnSelect']!!"
70
- [nzColumnClassName]="props['columnClassName']"
71
- [nzExpandIcon]="nzExpandIcon!"
72
- [nzExpandTrigger]="props['expandTrigger']!"
73
- [nzLabelProperty]="props['labelProperty']"
74
- [nzLabelRender]="nzLabelRender ?? null"
75
- [nzLoadData]="props['loadData']"
76
- [nzMenuClassName]="props['menuClassName']"
77
- [nzMenuStyle]="props['menuStyle'] ?? null"
78
- [nzNotFoundContent]="nzNotFoundContent"
79
- [nzOptionRender]="nzOptionRender ?? null"
80
- [nzOptions]="props['cascaderOptions'] ?? null"
81
- [nzShowArrow]="props['showArrow']!!"
82
- [nzShowInput]="props['showInput']!!"
83
- [nzShowSearch]="props['showSearch']!!"
84
- [nzSize]="props['size']!"
85
- [nzStatus]="props['status'] ?? ''"
86
- [nzSuffixIcon]="nzSuffixIcon!"
87
- [nzValueProperty]="props['valueProperty']!"
88
- (nzClear)="props['onClear'] && props['onClear'](field)"
89
- (nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
90
- (nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
60
+ #cascader
61
+ [nzPlaceHolder]="props.placeholder ?? ''"
62
+ [formControl]="formControl"
63
+ [formlyAttributes]="field"
64
+ [ngClass]="props['className']"
65
+ [nzAllowClear]="props['allowClear']!!"
66
+ [nzAutoFocus]="props['autoFocus']!!"
67
+ [nzBackdrop]="props['backdrop']!!"
68
+ [nzChangeOn]="props['changeOn']"
69
+ [nzChangeOnSelect]="props['changeOnSelect']!!"
70
+ [nzColumnClassName]="props['columnClassName']"
71
+ [nzExpandIcon]="nzExpandIcon!"
72
+ [nzExpandTrigger]="props['expandTrigger']!"
73
+ [nzLabelProperty]="props['labelProperty']"
74
+ [nzLabelRender]="nzLabelRender ?? null"
75
+ [nzLoadData]="props['loadData']"
76
+ [nzMenuClassName]="props['menuClassName']"
77
+ [nzMenuStyle]="props['menuStyle'] ?? null"
78
+ [nzNotFoundContent]="nzNotFoundContent"
79
+ [nzOptionRender]="nzOptionRender ?? null"
80
+ [nzOptions]="props['cascaderOptions'] ?? null"
81
+ [nzShowArrow]="props['showArrow']!!"
82
+ [nzShowInput]="props['showInput']!!"
83
+ [nzShowSearch]="props['showSearch']!!"
84
+ [nzSize]="props['size']!"
85
+ [nzStatus]="props['status'] ?? ''"
86
+ [nzSuffixIcon]="nzSuffixIcon!"
87
+ [nzValueProperty]="props['valueProperty']!"
88
+ (nzClear)="props['onClear'] && props['onClear'](field)"
89
+ (nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
90
+ (nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
91
91
  ></nz-cascader>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
92
92
  }
93
93
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCascader, decorators: [{
94
94
  type: Component,
95
95
  args: [{
96
96
  selector: 'formly-field-cascader',
97
- template: `<nz-cascader
98
- #cascader
99
- [nzPlaceHolder]="props.placeholder ?? ''"
100
- [formControl]="formControl"
101
- [formlyAttributes]="field"
102
- [ngClass]="props['className']"
103
- [nzAllowClear]="props['allowClear']!!"
104
- [nzAutoFocus]="props['autoFocus']!!"
105
- [nzBackdrop]="props['backdrop']!!"
106
- [nzChangeOn]="props['changeOn']"
107
- [nzChangeOnSelect]="props['changeOnSelect']!!"
108
- [nzColumnClassName]="props['columnClassName']"
109
- [nzExpandIcon]="nzExpandIcon!"
110
- [nzExpandTrigger]="props['expandTrigger']!"
111
- [nzLabelProperty]="props['labelProperty']"
112
- [nzLabelRender]="nzLabelRender ?? null"
113
- [nzLoadData]="props['loadData']"
114
- [nzMenuClassName]="props['menuClassName']"
115
- [nzMenuStyle]="props['menuStyle'] ?? null"
116
- [nzNotFoundContent]="nzNotFoundContent"
117
- [nzOptionRender]="nzOptionRender ?? null"
118
- [nzOptions]="props['cascaderOptions'] ?? null"
119
- [nzShowArrow]="props['showArrow']!!"
120
- [nzShowInput]="props['showInput']!!"
121
- [nzShowSearch]="props['showSearch']!!"
122
- [nzSize]="props['size']!"
123
- [nzStatus]="props['status'] ?? ''"
124
- [nzSuffixIcon]="nzSuffixIcon!"
125
- [nzValueProperty]="props['valueProperty']!"
126
- (nzClear)="props['onClear'] && props['onClear'](field)"
127
- (nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
128
- (nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
97
+ template: `<nz-cascader
98
+ #cascader
99
+ [nzPlaceHolder]="props.placeholder ?? ''"
100
+ [formControl]="formControl"
101
+ [formlyAttributes]="field"
102
+ [ngClass]="props['className']"
103
+ [nzAllowClear]="props['allowClear']!!"
104
+ [nzAutoFocus]="props['autoFocus']!!"
105
+ [nzBackdrop]="props['backdrop']!!"
106
+ [nzChangeOn]="props['changeOn']"
107
+ [nzChangeOnSelect]="props['changeOnSelect']!!"
108
+ [nzColumnClassName]="props['columnClassName']"
109
+ [nzExpandIcon]="nzExpandIcon!"
110
+ [nzExpandTrigger]="props['expandTrigger']!"
111
+ [nzLabelProperty]="props['labelProperty']"
112
+ [nzLabelRender]="nzLabelRender ?? null"
113
+ [nzLoadData]="props['loadData']"
114
+ [nzMenuClassName]="props['menuClassName']"
115
+ [nzMenuStyle]="props['menuStyle'] ?? null"
116
+ [nzNotFoundContent]="nzNotFoundContent"
117
+ [nzOptionRender]="nzOptionRender ?? null"
118
+ [nzOptions]="props['cascaderOptions'] ?? null"
119
+ [nzShowArrow]="props['showArrow']!!"
120
+ [nzShowInput]="props['showInput']!!"
121
+ [nzShowSearch]="props['showSearch']!!"
122
+ [nzSize]="props['size']!"
123
+ [nzStatus]="props['status'] ?? ''"
124
+ [nzSuffixIcon]="nzSuffixIcon!"
125
+ [nzValueProperty]="props['valueProperty']!"
126
+ (nzClear)="props['onClear'] && props['onClear'](field)"
127
+ (nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
128
+ (nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
129
129
  ></nz-cascader>`,
130
130
  changeDetection: ChangeDetectionStrategy.OnPush
131
131
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n Optional,\n Type,\n ChangeDetectionStrategy,\n OnInit\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type {\n NzCascaderOption,\n NzShowSearchOptions,\n NzCascaderExpandTrigger,\n NzCascaderSize\n} from 'ng-zorro-antd/cascader';\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\n\ninterface CascaderProps extends FormlyFieldProps {\n /**\n * 是否支持清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否自动聚焦,当存在输入框时\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\n */\n changeOn?: (option: NzSafeAny, index: number) => boolean;\n\n /**\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\n * @default false\n */\n changeOnSelect?: boolean;\n\n /**\n * 自定义浮层列类名\n */\n columnClassName?: string;\n\n /**\n * 自定义次级菜单展开图标\n */\n expandIcon?: string | TemplateRef<void>;\n expandIconName?: string;\n\n /**\n * 次级菜单的展开方式\n * @default 'click'\n */\n expandTrigger?: NzCascaderExpandTrigger;\n\n /**\n * 选项的显示值的属性名\n * @default 'label'\n */\n labelProperty: string;\n\n /**\n * 选择后展示的渲染模板\n */\n labelRender?: TemplateRef<NzSafeAny> | null;\n labelRenderName?: string;\n\n /**\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\n */\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\n\n /**\n * 自定义浮层类名\n */\n menuClassName?: string;\n\n /**\n * 自定义浮层样式\n */\n menuStyle?: NgStyleInterface | null;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n notFoundContentName?: string;\n\n /**\n * 选项的渲染模板\n */\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\n optionRenderName?: string;\n\n /**\n * 是否显示箭头\n * @default true\n */\n showArrow?: boolean;\n\n /**\n * 显示输入框\n * @default true\n */\n showInput?: boolean;\n\n /**\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\n * @default false\n */\n showSearch?: boolean | NzShowSearchOptions;\n\n /**\n * 输入框大小\n * @default default\n */\n size?: NzCascaderSize;\n\n /**\n * 设置校验状态\n */\n status?: NzStatus;\n\n /**\n * 自定义的选择框后缀图标\n */\n suffixIcon?: string | TemplateRef<void>;\n suffixIconName?: string;\n\n /**\n * 选项的实际值的属性名\n * @default 'value'\n */\n valueProperty?: string;\n\n /**\n * 可选项数据源\n */\n cascaderOptions?: NzCascaderOption[] | null;\n\n /**\n * 清除值时触发\n */\n onClear?: FormlyAttributeEvent;\n /**\n * 菜单浮层的显示/隐藏\n */\n visibleChange?: FormlyAttributeEvent<boolean>;\n\n /**\n * 值发生变化时触发\n */\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\n}\n\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\n type: 'cascader' | Type<FormlyFieldCascader>;\n}\n\n@Component({\n selector: 'formly-field-cascader',\n template: `<nz-cascader\n #cascader\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzChangeOn]=\"props['changeOn']\"\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\n [nzColumnClassName]=\"props['columnClassName']\"\n [nzExpandIcon]=\"nzExpandIcon!\"\n [nzExpandTrigger]=\"props['expandTrigger']!\"\n [nzLabelProperty]=\"props['labelProperty']\"\n [nzLabelRender]=\"nzLabelRender ?? null\"\n [nzLoadData]=\"props['loadData']\"\n [nzMenuClassName]=\"props['menuClassName']\"\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzOptionRender]=\"nzOptionRender ?? null\"\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzShowInput]=\"props['showInput']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzSuffixIcon]=\"nzSuffixIcon!\"\n [nzValueProperty]=\"props['valueProperty']!\"\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\n ></nz-cascader>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCascader\n extends FieldType<FieldTypeConfig<CascaderProps>>\n implements OnInit\n{\n override defaultOptions = {\n props: {\n placeholder: '请选择',\n allowClear: true,\n backdrop: false,\n changeOnSelect: false,\n expandTrigger: 'click' as const,\n labelProperty: 'label',\n showArrow: true,\n showInput: true,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n valueProperty: 'value',\n cascaderOptions: []\n }\n };\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzNotFoundContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\n }\n\n get nzExpandIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\n }\n\n get nzLabelRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\n }\n\n get nzOptionRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\n }\n\n get nzSuffixIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\n }\n\n ngOnInit(): void {\n const options = this.props['cascaderOptions'];\n if (!options || options.length === 0) {\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\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';\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\nimport { FormlyFieldCascader } from './cascader.type';\n\n@NgModule({\n declarations: [FormlyFieldCascader],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzCascaderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'cascader',\n component: FormlyFieldCascader,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCascaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAoBjD,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAjBxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,eAAe,EAAE,EAAE;AACpB,aAAA;SACF,CAAC;KAGD;AAED,IAAA,IAAI,iBAAiB,GAAA;AACnB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;KAC3E;AAED,IAAA,IAAI,YAAY,GAAA;AACd,QAAA,OAAO,cA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,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\r\n Component,\r\n TemplateRef,\r\n Optional,\r\n Type,\r\n ChangeDetectionStrategy,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type {\r\n NzCascaderOption,\r\n NzShowSearchOptions,\r\n NzCascaderExpandTrigger,\r\n NzCascaderSize\r\n} from 'ng-zorro-antd/cascader';\r\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\r\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\r\n\r\ninterface CascaderProps extends FormlyFieldProps {\r\n /**\r\n * 是否支持清除\r\n * @default true\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否自动聚焦,当存在输入框时\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\r\n */\r\n changeOn?: (option: NzSafeAny, index: number) => boolean;\r\n\r\n /**\r\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\r\n * @default false\r\n */\r\n changeOnSelect?: boolean;\r\n\r\n /**\r\n * 自定义浮层列类名\r\n */\r\n columnClassName?: string;\r\n\r\n /**\r\n * 自定义次级菜单展开图标\r\n */\r\n expandIcon?: string | TemplateRef<void>;\r\n expandIconName?: string;\r\n\r\n /**\r\n * 次级菜单的展开方式\r\n * @default 'click'\r\n */\r\n expandTrigger?: NzCascaderExpandTrigger;\r\n\r\n /**\r\n * 选项的显示值的属性名\r\n * @default 'label'\r\n */\r\n labelProperty: string;\r\n\r\n /**\r\n * 选择后展示的渲染模板\r\n */\r\n labelRender?: TemplateRef<NzSafeAny> | null;\r\n labelRenderName?: string;\r\n\r\n /**\r\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\r\n */\r\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\r\n\r\n /**\r\n * 自定义浮层类名\r\n */\r\n menuClassName?: string;\r\n\r\n /**\r\n * 自定义浮层样式\r\n */\r\n menuStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string | TemplateRef<void>;\r\n notFoundContentName?: string;\r\n\r\n /**\r\n * 选项的渲染模板\r\n */\r\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\r\n optionRenderName?: string;\r\n\r\n /**\r\n * 是否显示箭头\r\n * @default true\r\n */\r\n showArrow?: boolean;\r\n\r\n /**\r\n * 显示输入框\r\n * @default true\r\n */\r\n showInput?: boolean;\r\n\r\n /**\r\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\r\n * @default false\r\n */\r\n showSearch?: boolean | NzShowSearchOptions;\r\n\r\n /**\r\n * 输入框大小\r\n * @default default\r\n */\r\n size?: NzCascaderSize;\r\n\r\n /**\r\n * 设置校验状态\r\n */\r\n status?: NzStatus;\r\n\r\n /**\r\n * 自定义的选择框后缀图标\r\n */\r\n suffixIcon?: string | TemplateRef<void>;\r\n suffixIconName?: string;\r\n\r\n /**\r\n * 选项的实际值的属性名\r\n * @default 'value'\r\n */\r\n valueProperty?: string;\r\n\r\n /**\r\n * 可选项数据源\r\n */\r\n cascaderOptions?: NzCascaderOption[] | null;\r\n\r\n /**\r\n * 清除值时触发\r\n */\r\n onClear?: FormlyAttributeEvent;\r\n /**\r\n * 菜单浮层的显示/隐藏\r\n */\r\n visibleChange?: FormlyAttributeEvent<boolean>;\r\n\r\n /**\r\n * 值发生变化时触发\r\n */\r\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\r\n}\r\n\r\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\r\n type: 'cascader' | Type<FormlyFieldCascader>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-cascader',\r\n template: `<nz-cascader\r\n #cascader\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzChangeOn]=\"props['changeOn']\"\r\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\r\n [nzColumnClassName]=\"props['columnClassName']\"\r\n [nzExpandIcon]=\"nzExpandIcon!\"\r\n [nzExpandTrigger]=\"props['expandTrigger']!\"\r\n [nzLabelProperty]=\"props['labelProperty']\"\r\n [nzLabelRender]=\"nzLabelRender ?? null\"\r\n [nzLoadData]=\"props['loadData']\"\r\n [nzMenuClassName]=\"props['menuClassName']\"\r\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzOptionRender]=\"nzOptionRender ?? null\"\r\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\r\n [nzShowArrow]=\"props['showArrow']!!\"\r\n [nzShowInput]=\"props['showInput']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzSuffixIcon]=\"nzSuffixIcon!\"\r\n [nzValueProperty]=\"props['valueProperty']!\"\r\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\r\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\r\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\r\n ></nz-cascader>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCascader\r\n extends FieldType<FieldTypeConfig<CascaderProps>>\r\n implements OnInit\r\n{\r\n override defaultOptions = {\r\n props: {\r\n placeholder: '请选择',\r\n allowClear: true,\r\n backdrop: false,\r\n changeOnSelect: false,\r\n expandTrigger: 'click' as const,\r\n labelProperty: 'label',\r\n showArrow: true,\r\n showInput: true,\r\n showSearch: false,\r\n size: 'default' as const,\r\n status: '' as const,\r\n valueProperty: 'value',\r\n cascaderOptions: []\r\n }\r\n };\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzNotFoundContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\r\n }\r\n\r\n get nzExpandIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\r\n }\r\n\r\n get nzLabelRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\r\n }\r\n\r\n get nzOptionRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\r\n }\r\n\r\n get nzSuffixIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\r\n }\r\n\r\n ngOnInit(): void {\r\n const options = this.props['cascaderOptions'];\r\n if (!options || options.length === 0) {\r\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\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\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\r\nimport { FormlyFieldCascader } from './cascader.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCascader],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzCascaderModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'cascader',\r\n component: FormlyFieldCascader,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCascaderModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAoBjD,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAjBxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,UAAU,EAAE,K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B,uBAAuB;YACvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAnBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
@@ -20,50 +20,50 @@ class FormlyFieldCheckbox extends FieldType {
20
20
  };
21
21
  }
22
22
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
24
- @if (props.type !== 'group') {
25
- <label
26
- [formControl]="formControl"
27
- [formlyAttributes]="field"
28
- [nzIndeterminate]="props['indeterminate'] && formControl.value == null"
29
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
30
- nz-checkbox
31
- >
32
- {{ props.label }}
33
- </label>
34
- } @else {
35
- <nz-checkbox-group
36
- [formlyAttributes]="field"
37
- [(ngModel)]="props.options"
38
- [formControl]="formControl"
39
- (ngModelChange)="props['modelChange']?.(field, $event)"
40
- ></nz-checkbox-group>
41
- }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
24
+ @if (props.type !== 'group') {
25
+ <label
26
+ [formControl]="formControl"
27
+ [formlyAttributes]="field"
28
+ [nzIndeterminate]="props['indeterminate'] && formControl.value == null"
29
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
30
+ nz-checkbox
31
+ >
32
+ {{ props.label }}
33
+ </label>
34
+ } @else {
35
+ <nz-checkbox-group
36
+ [formlyAttributes]="field"
37
+ [(ngModel)]="props.options"
38
+ [formControl]="formControl"
39
+ (ngModelChange)="props['modelChange']?.(field, $event)"
40
+ ></nz-checkbox-group>
41
+ }
42
42
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i2.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }, { 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.6", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
45
45
  type: Component,
46
46
  args: [{
47
47
  selector: 'formly-field-checkbox',
48
- template: `
49
- @if (props.type !== 'group') {
50
- <label
51
- [formControl]="formControl"
52
- [formlyAttributes]="field"
53
- [nzIndeterminate]="props['indeterminate'] && formControl.value == null"
54
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
55
- nz-checkbox
56
- >
57
- {{ props.label }}
58
- </label>
59
- } @else {
60
- <nz-checkbox-group
61
- [formlyAttributes]="field"
62
- [(ngModel)]="props.options"
63
- [formControl]="formControl"
64
- (ngModelChange)="props['modelChange']?.(field, $event)"
65
- ></nz-checkbox-group>
66
- }
48
+ template: `
49
+ @if (props.type !== 'group') {
50
+ <label
51
+ [formControl]="formControl"
52
+ [formlyAttributes]="field"
53
+ [nzIndeterminate]="props['indeterminate'] && formControl.value == null"
54
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
55
+ nz-checkbox
56
+ >
57
+ {{ props.label }}
58
+ </label>
59
+ } @else {
60
+ <nz-checkbox-group
61
+ [formlyAttributes]="field"
62
+ [(ngModel)]="props.options"
63
+ [formControl]="formControl"
64
+ (ngModelChange)="props['modelChange']?.(field, $event)"
65
+ ></nz-checkbox-group>
66
+ }
67
67
  `,
68
68
  changeDetection: ChangeDetectionStrategy.OnPush
69
69
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {\n type?: 'group' | 'single';\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @default false\n */\n indeterminate?: boolean;\n\n /**\n * 数值改变时回调\n */\n modelChange?: FormlyAttributeEvent<boolean | null | undefined>;\n}\n\nexport interface FormlyCheckboxFieldConfig extends NzFormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-checkbox',\n template: `\n @if (props.type !== 'group') {\n <label\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n nz-checkbox\n >\n {{ props.label }}\n </label>\n } @else {\n <nz-checkbox-group\n [formlyAttributes]=\"field\"\n [(ngModel)]=\"props.options\"\n [formControl]=\"formControl\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n ></nz-checkbox-group>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n indeterminate: false,\n hideLabel: true\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 { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCheckboxModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n {\n name: 'boolean',\n ext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EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YArB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,OAAO,EAAE,UAAU;AACpB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAxBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\ninterface CheckboxProps extends FormlyFieldProps {\r\n type?: 'group' | 'single';\r\n\r\n /**\r\n * 自动获取焦点\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 设置 indeterminate 状态,只负责样式控制\r\n * @default false\r\n */\r\n indeterminate?: boolean;\r\n\r\n /**\r\n * 数值改变时回调\r\n */\r\n modelChange?: FormlyAttributeEvent<boolean | null | undefined>;\r\n}\r\n\r\nexport interface FormlyCheckboxFieldConfig extends NzFormlyFieldConfig<CheckboxProps> {\r\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-checkbox',\r\n template: `\r\n @if (props.type !== 'group') {\r\n <label\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n nz-checkbox\r\n >\r\n {{ props.label }}\r\n </label>\r\n } @else {\r\n <nz-checkbox-group\r\n [formlyAttributes]=\"field\"\r\n [(ngModel)]=\"props.options\"\r\n [formControl]=\"formControl\"\r\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\r\n ></nz-checkbox-group>\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\r\n override defaultOptions = {\r\n props: {\r\n indeterminate: false,\r\n hideLabel: true\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 { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\r\n\r\nimport { FormlyFieldCheckbox } from './checkbox.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCheckbox],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzCheckboxModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'checkbox',\r\n component: FormlyFieldCheckbox,\r\n wrappers: ['form-field']\r\n },\r\n {\r\n name: 'boolean',\r\n extends: 'checkbox'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCheckboxModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAsDM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAxBlF,IAAA,WAAA,GAAA;;AAyBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,SAAS,EAAE,IAAI;AAChB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EAtBpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;AAmBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,W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,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-common.mjs","sources":["../../../../packages/formlyantd/common/formly-box-templates.directive.ts","../../../../packages/formlyantd/common/common.module.ts","../../../../packages/formlyantd/common/formly-utils.ts","../../../../packages/formlyantd/common/ngx-formly-zorro-antd-common.ts"],"sourcesContent":["import {\n AfterContentInit,\n ContentChildren,\n Directive,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n QueryList,\n SimpleChange,\n SimpleChanges,\n TemplateRef\n} from '@angular/core';\nimport { NamedTemplate } from '@pkt/ng.core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[formly-box]',\n standalone: true,\n exportAs: 'FormlyBox'\n})\nexport class FormlyBoxTemplates implements AfterContentInit, OnChanges {\n private tplMap = new Map<string, TemplateRef<NzSafeAny>>();\n @Input('formly-box') templateList?: TemplateList;\n @Output() templateChange = new EventEmitter<Map<string, TemplateRef<NzSafeAny>>>();\n @ContentChildren(NamedTemplate) namedTemplate!: QueryList<NamedTemplate<NzSafeAny>>;\n\n get templates(): Map<string, TemplateRef<NzSafeAny>> {\n return this.tplMap;\n }\n\n /**\n * 根据模板名称获取TemplateRef\n * @param templateName 模板名称\n */\n get(templateName: string): TemplateRef<NzSafeAny> | undefined {\n return this.tplMap.get(templateName);\n }\n\n ngAfterContentInit(): void {\n this.update();\n this.namedTemplate.changes.subscribe(() => {\n this.update();\n });\n }\n update(emitChange = true) {\n this.tplMap.clear();\n this.mergeTemplate(this.tplMap, emitChange);\n }\n\n ngOnChanges(changes: { [K in keyof this]?: SimpleChange } & SimpleChanges): void {\n if (changes.templateList && !changes.templateList.isFirstChange()) {\n this.update();\n }\n }\n\n /**\n * 合并参数模板\n * @param tplMap\n * @param emitChange\n */\n mergeTemplate(tplMap: Map<string, TemplateRef<NzSafeAny>>, emitChange = true) {\n this.mergeTemplates(tplMap, this.templateList);\n this.mergeQueryTemplate(tplMap, this.namedTemplate);\n\n if (emitChange) {\n this.templateChange.emit(tplMap);\n }\n }\n\n /**\n * 合并content 模板\n * @param tplMap\n * @param templateList\n * @private\n */\n private mergeQueryTemplate(\n tplMap: Map<string, TemplateRef<NzSafeAny>>,\n templateList?: QueryList<NamedTemplate<NzSafeAny>>\n ): void {\n if (templateList) {\n templateList.forEach(v => {\n tplMap.set(v.named ?? '', v.template);\n });\n }\n }\n\n /**\n * 合并模板列表\n * @param tplMap 模板Map\n * @param templateList\n */\n private mergeTemplates(\n tplMap: Map<string, TemplateRef<NzSafeAny>>,\n templateList?: TemplateList\n ): void {\n if (!templateList) {\n return;\n }\n\n if (templateList instanceof TemplateRef) {\n const namedTpl = new NamedTemplate(templateList);\n namedTpl.resolveName();\n tplMap.set(namedTpl.named ?? '', namedTpl.template);\n return;\n }\n\n templateList.forEach(v => {\n if (v instanceof NamedTemplate) {\n tplMap.set(v.named ?? '', v.template);\n } else {\n const namedTpl = new NamedTemplate(v);\n namedTpl.resolveName();\n tplMap.set(namedTpl.named ?? '', namedTpl.template);\n }\n });\n\n return;\n }\n}\n\n/**\n * 模板列表\n */\nexport type TemplateList =\n | QueryList<TemplateRef<NzSafeAny>>\n | QueryList<NamedTemplate<NzSafeAny>>\n | NamedTemplate<NzSafeAny>[]\n | TemplateRef<NzSafeAny>;\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyBoxTemplates } from './formly-box-templates.directive';\nimport { NamedTemplate } from '@pkt/ng.core';\n\nconst COMPONENT = [FormlyBoxTemplates, NamedTemplate];\n\n@NgModule({\n imports: [CommonModule, ...COMPONENT],\n exports: COMPONENT\n})\nexport class FormlyCommonModule {}\n","import { TemplateRef } from '@angular/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { FormlyBoxTemplates } from './formly-box-templates.directive';\n\n/**\n * 根据属性名获取模板名称\n * @param propName 属性名\n */\nexport function getTplName(propName: string) {\n return `${propName}Name`;\n}\n\n/**\n * 获取模板名称\n * @param value\n * @param propName\n * @param propTemplateName 模板属性名称\n */\nexport function hasTplNameValue(\n value: NzSafeAny,\n propName: string,\n propTemplateName?: string\n): boolean {\n const tplName = propTemplateName || getTplName(propName);\n return value[propName] || value[tplName];\n}\n\n/**\n * 处理属性为模板类型, 根据模板名称处理成模板对象\n * @param value 数据对象\n * @param fieldTemplates 模板容器\n * @param propName 属性名\n * @param propTemplateName 模板属性名称\n */\nexport function resolveTplName<T = NzSafeAny>(\n value: NzSafeAny,\n fieldTemplates: FormlyBoxTemplates,\n propName: string,\n propTemplateName?: string\n): TemplateRef<T> | undefined {\n if (value[propName]) {\n return value[propName];\n }\n if (!fieldTemplates) {\n return undefined;\n }\n const tplName = propTemplateName || getTplName(propName);\n return fieldTemplates.get(value[tplName]);\n}\n\n/**\n * 处理属性为模板类型, 根据模板名称处理成模板对象列表\n * @param value 数据对象\n * @param fieldTemplates 模板容器\n * @param propName 属性名\n * @param propTemplateName 模板属性名称\n */\nexport function resolveTplNameArray<T = NzSafeAny>(\n value: NzSafeAny,\n fieldTemplates: FormlyBoxTemplates,\n propName: string,\n propTemplateName?: string\n): TemplateRef<T>[] {\n if (value[propName] != null) {\n return value[propName];\n }\n if (!fieldTemplates) {\n return [];\n }\n const tplName = propTemplateName || getTplName(propName);\n const tplValue = value[tplName];\n if (Array.isArray(tplValue)) {\n return tplValue.map(key => fieldTemplates.get(key)).filter(tpl => tpl) as TemplateRef<T>[];\n }\n return [];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAsBa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;AAOU,QAAA,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,MAAM,OAAO,GAAG,gBAAgB,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;AACzD,IAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC3B,OAAO,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAqB,CAAC;AAC5F,KAAA;AACD,IAAA,OAAO,EAAE,CAAC;AACZ;;AC3EA;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-common.mjs","sources":["../../../../packages/formlyantd/common/formly-box-templates.directive.ts","../../../../packages/formlyantd/common/common.module.ts","../../../../packages/formlyantd/common/formly-utils.ts","../../../../packages/formlyantd/common/ngx-formly-zorro-antd-common.ts"],"sourcesContent":["import {\r\n AfterContentInit,\r\n ContentChildren,\r\n Directive,\r\n EventEmitter,\r\n Input,\r\n OnChanges,\r\n Output,\r\n QueryList,\r\n SimpleChange,\r\n SimpleChanges,\r\n TemplateRef\r\n} from '@angular/core';\r\nimport { NamedTemplate } from '@pkt/ng.core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\n@Directive({\r\n // eslint-disable-next-line @angular-eslint/directive-selector\r\n selector: '[formly-box]',\r\n standalone: true,\r\n exportAs: 'FormlyBox'\r\n})\r\nexport class FormlyBoxTemplates implements AfterContentInit, OnChanges {\r\n private tplMap = new Map<string, TemplateRef<NzSafeAny>>();\r\n @Input('formly-box') templateList?: TemplateList;\r\n @Output() templateChange = new EventEmitter<Map<string, TemplateRef<NzSafeAny>>>();\r\n @ContentChildren(NamedTemplate) namedTemplate!: QueryList<NamedTemplate<NzSafeAny>>;\r\n\r\n get templates(): Map<string, TemplateRef<NzSafeAny>> {\r\n return this.tplMap;\r\n }\r\n\r\n /**\r\n * 根据模板名称获取TemplateRef\r\n * @param templateName 模板名称\r\n */\r\n get(templateName: string): TemplateRef<NzSafeAny> | undefined {\r\n return this.tplMap.get(templateName);\r\n }\r\n\r\n ngAfterContentInit(): void {\r\n this.update();\r\n this.namedTemplate.changes.subscribe(() => {\r\n this.update();\r\n });\r\n }\r\n update(emitChange = true) {\r\n this.tplMap.clear();\r\n this.mergeTemplate(this.tplMap, emitChange);\r\n }\r\n\r\n ngOnChanges(changes: { [K in keyof this]?: SimpleChange } & SimpleChanges): void {\r\n if (changes.templateList && !changes.templateList.isFirstChange()) {\r\n this.update();\r\n }\r\n }\r\n\r\n /**\r\n * 合并参数模板\r\n * @param tplMap\r\n * @param emitChange\r\n */\r\n mergeTemplate(tplMap: Map<string, TemplateRef<NzSafeAny>>, emitChange = true) {\r\n this.mergeTemplates(tplMap, this.templateList);\r\n this.mergeQueryTemplate(tplMap, this.namedTemplate);\r\n\r\n if (emitChange) {\r\n this.templateChange.emit(tplMap);\r\n }\r\n }\r\n\r\n /**\r\n * 合并content 模板\r\n * @param tplMap\r\n * @param templateList\r\n * @private\r\n */\r\n private mergeQueryTemplate(\r\n tplMap: Map<string, TemplateRef<NzSafeAny>>,\r\n templateList?: QueryList<NamedTemplate<NzSafeAny>>\r\n ): void {\r\n if (templateList) {\r\n templateList.forEach(v => {\r\n tplMap.set(v.named ?? '', v.template);\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * 合并模板列表\r\n * @param tplMap 模板Map\r\n * @param templateList\r\n */\r\n private mergeTemplates(\r\n tplMap: Map<string, TemplateRef<NzSafeAny>>,\r\n templateList?: TemplateList\r\n ): void {\r\n if (!templateList) {\r\n return;\r\n }\r\n\r\n if (templateList instanceof TemplateRef) {\r\n const namedTpl = new NamedTemplate(templateList);\r\n namedTpl.resolveName();\r\n tplMap.set(namedTpl.named ?? '', namedTpl.template);\r\n return;\r\n }\r\n\r\n templateList.forEach(v => {\r\n if (v instanceof NamedTemplate) {\r\n tplMap.set(v.named ?? '', v.template);\r\n } else {\r\n const namedTpl = new NamedTemplate(v);\r\n namedTpl.resolveName();\r\n tplMap.set(namedTpl.named ?? '', namedTpl.template);\r\n }\r\n });\r\n\r\n return;\r\n }\r\n}\r\n\r\n/**\r\n * 模板列表\r\n */\r\nexport type TemplateList =\r\n | QueryList<TemplateRef<NzSafeAny>>\r\n | QueryList<NamedTemplate<NzSafeAny>>\r\n | NamedTemplate<NzSafeAny>[]\r\n | TemplateRef<NzSafeAny>;\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyBoxTemplates } from './formly-box-templates.directive';\r\nimport { NamedTemplate } from '@pkt/ng.core';\r\n\r\nconst COMPONENT = [FormlyBoxTemplates, NamedTemplate];\r\n\r\n@NgModule({\r\n imports: [CommonModule, ...COMPONENT],\r\n exports: COMPONENT\r\n})\r\nexport class FormlyCommonModule {}\r\n","import { TemplateRef } from '@angular/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport { FormlyBoxTemplates } from './formly-box-templates.directive';\r\n\r\n/**\r\n * 根据属性名获取模板名称\r\n * @param propName 属性名\r\n */\r\nexport function getTplName(propName: string) {\r\n return `${propName}Name`;\r\n}\r\n\r\n/**\r\n * 获取模板名称\r\n * @param value\r\n * @param propName\r\n * @param propTemplateName 模板属性名称\r\n */\r\nexport function hasTplNameValue(\r\n value: NzSafeAny,\r\n propName: string,\r\n propTemplateName?: string\r\n): boolean {\r\n const tplName = propTemplateName || getTplName(propName);\r\n return value[propName] || value[tplName];\r\n}\r\n\r\n/**\r\n * 处理属性为模板类型, 根据模板名称处理成模板对象\r\n * @param value 数据对象\r\n * @param fieldTemplates 模板容器\r\n * @param propName 属性名\r\n * @param propTemplateName 模板属性名称\r\n */\r\nexport function resolveTplName<T = NzSafeAny>(\r\n value: NzSafeAny,\r\n fieldTemplates: FormlyBoxTemplates,\r\n propName: string,\r\n propTemplateName?: string\r\n): TemplateRef<T> | undefined {\r\n if (value[propName]) {\r\n return value[propName];\r\n }\r\n if (!fieldTemplates) {\r\n return undefined;\r\n }\r\n const tplName = propTemplateName || getTplName(propName);\r\n return fieldTemplates.get(value[tplName]);\r\n}\r\n\r\n/**\r\n * 处理属性为模板类型, 根据模板名称处理成模板对象列表\r\n * @param value 数据对象\r\n * @param fieldTemplates 模板容器\r\n * @param propName 属性名\r\n * @param propTemplateName 模板属性名称\r\n */\r\nexport function resolveTplNameArray<T = NzSafeAny>(\r\n value: NzSafeAny,\r\n fieldTemplates: FormlyBoxTemplates,\r\n propName: string,\r\n propTemplateName?: string\r\n): TemplateRef<T>[] {\r\n if (value[propName] != null) {\r\n return value[propName];\r\n }\r\n if (!fieldTemplates) {\r\n return [];\r\n }\r\n const tplName = propTemplateName || getTplName(propName);\r\n const tplValue = value[tplName];\r\n if (Array.isArray(tplValue)) {\r\n return tplValue.map(key => fieldTemplates.get(key)).filter(tpl => tpl) as TemplateRef<T>[];\r\n }\r\n return [];\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAsBa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;AAOU,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,GAAG,EAAkC,CAAC;AAEjD,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,YAAY,EAAuC,CAAC;AA+FpF,KAAA;AA5FC,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;AAED;;;AAGG;AACH,IAAA,GAAG,CAAC,YAAoB,EAAA;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;KACtC;IAED,kBAAkB,GAAA;QAChB,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,MAAK;YACxC,IAAI,CAAC,MAAM,EAAE,CAAC;AAChB,SAAC,CAAC,CAAC;KACJ;IACD,MAAM,CAAC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