ngx-formly-zorro-antd 17.1.1 → 17.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) 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 +5 -5
  5. package/esm2022/button/button.type.mjs +125 -125
  6. package/esm2022/button/public_api.mjs +1 -1
  7. package/esm2022/button-group/button-group.module.mjs +5 -5
  8. package/esm2022/button-group/button-group.type.mjs +69 -69
  9. package/esm2022/button-group/public_api.mjs +1 -1
  10. package/esm2022/card/card.module.mjs +5 -5
  11. package/esm2022/card/card.type.mjs +53 -53
  12. package/esm2022/card/public_api.mjs +1 -1
  13. package/esm2022/card-wrapper/card-wrapper.module.mjs +5 -5
  14. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  15. package/esm2022/card-wrapper/card.wrapper.mjs +39 -39
  16. package/esm2022/card-wrapper/public_api.mjs +1 -1
  17. package/esm2022/cascader/cascader.module.mjs +5 -5
  18. package/esm2022/cascader/cascader.type.mjs +67 -67
  19. package/esm2022/cascader/public_api.mjs +1 -1
  20. package/esm2022/checkbox/checkbox.module.mjs +5 -5
  21. package/esm2022/checkbox/checkbox.type.mjs +41 -41
  22. package/esm2022/checkbox/public_api.mjs +1 -1
  23. package/esm2022/common/common.module.mjs +5 -5
  24. package/esm2022/common/formly-box-templates.directive.mjs +4 -4
  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 +5 -5
  29. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  30. package/esm2022/datepicker/datepicker.type.mjs +151 -151
  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/flex/flex.module.mjs +41 -0
  35. package/esm2022/flex/flex.type.mjs +66 -0
  36. package/esm2022/flex/ngx-formly-zorro-antd-flex.mjs +5 -0
  37. package/esm2022/flex/public_api.mjs +3 -0
  38. package/esm2022/form-field/form-field.module.mjs +5 -5
  39. package/esm2022/form-field/form-field.props.mjs +1 -1
  40. package/esm2022/form-field/form-field.wrapper.mjs +149 -149
  41. package/esm2022/form-field/public_api.mjs +1 -1
  42. package/esm2022/grid/grid.module.mjs +5 -5
  43. package/esm2022/grid/grid.props.mjs +1 -1
  44. package/esm2022/grid/grid.type.mjs +61 -61
  45. package/esm2022/grid/public_api.mjs +1 -1
  46. package/esm2022/index.mjs +1 -1
  47. package/esm2022/input/input.module.mjs +5 -5
  48. package/esm2022/input/input.props.mjs +1 -1
  49. package/esm2022/input/input.type.mjs +277 -277
  50. package/esm2022/input/public_api.mjs +1 -1
  51. package/esm2022/input-group/input-group.module.mjs +5 -5
  52. package/esm2022/input-group/input-group.props.mjs +1 -1
  53. package/esm2022/input-group/input-group.type.mjs +41 -41
  54. package/esm2022/input-group/public_api.mjs +1 -1
  55. package/esm2022/input-number/input-number.module.mjs +5 -5
  56. package/esm2022/input-number/input-number.props.mjs +1 -1
  57. package/esm2022/input-number/input-number.type.mjs +91 -91
  58. package/esm2022/input-number/public_api.mjs +1 -1
  59. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  60. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +12 -8
  61. package/esm2022/radio/public_api.mjs +1 -1
  62. package/esm2022/radio/radio.module.mjs +5 -5
  63. package/esm2022/radio/radio.type.mjs +83 -83
  64. package/esm2022/rate/public_api.mjs +1 -1
  65. package/esm2022/rate/rate.module.mjs +5 -5
  66. package/esm2022/rate/rate.type.mjs +35 -35
  67. package/esm2022/ref-template/public_api.mjs +1 -1
  68. package/esm2022/ref-template/ref-template.module.mjs +5 -5
  69. package/esm2022/ref-template/ref-template.type.mjs +11 -11
  70. package/esm2022/select/public_api.mjs +1 -1
  71. package/esm2022/select/select.module.mjs +5 -5
  72. package/esm2022/select/select.props.mjs +1 -1
  73. package/esm2022/select/select.type.mjs +125 -125
  74. package/esm2022/slider/public_api.mjs +1 -1
  75. package/esm2022/slider/slider.module.mjs +5 -5
  76. package/esm2022/slider/slider.type.mjs +35 -35
  77. package/esm2022/space/public_api.mjs +1 -1
  78. package/esm2022/space/space.module.mjs +5 -5
  79. package/esm2022/space/space.type.mjs +29 -29
  80. package/esm2022/switch/public_api.mjs +1 -1
  81. package/esm2022/switch/switch.module.mjs +5 -5
  82. package/esm2022/switch/switch.type.mjs +27 -27
  83. package/esm2022/tabs/public_api.mjs +1 -1
  84. package/esm2022/tabs/tabs.module.mjs +5 -5
  85. package/esm2022/tabs/tabs.props.mjs +1 -1
  86. package/esm2022/tabs/tabs.wrapper.mjs +81 -81
  87. package/esm2022/text-value/public_api.mjs +1 -1
  88. package/esm2022/text-value/text-value.module.mjs +5 -5
  89. package/esm2022/text-value/text-value.type.mjs +21 -21
  90. package/esm2022/textarea/public_api.mjs +1 -1
  91. package/esm2022/textarea/textarea.module.mjs +5 -5
  92. package/esm2022/textarea/textarea.type.mjs +115 -115
  93. package/esm2022/timepicker/public_api.mjs +1 -1
  94. package/esm2022/timepicker/timepicker.module.mjs +5 -5
  95. package/esm2022/timepicker/timepicker.type.mjs +63 -63
  96. package/esm2022/transfer/public_api.mjs +1 -1
  97. package/esm2022/transfer/transfer.component.mjs +52 -52
  98. package/esm2022/transfer/transfer.module.mjs +5 -5
  99. package/esm2022/transfer/transfer.type.mjs +49 -49
  100. package/esm2022/tree-select/public_api.mjs +1 -1
  101. package/esm2022/tree-select/tree-select.module.mjs +5 -5
  102. package/esm2022/tree-select/tree-select.type.mjs +71 -71
  103. package/esm2022/upload/public_api.mjs +1 -1
  104. package/esm2022/upload/upload.component.mjs +146 -146
  105. package/esm2022/upload/upload.module.mjs +5 -5
  106. package/esm2022/upload/upload.props.mjs +1 -1
  107. package/esm2022/upload/upload.type.mjs +85 -85
  108. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +72 -72
  109. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  110. package/fesm2022/ngx-formly-zorro-antd-button.mjs +128 -128
  111. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  112. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +42 -42
  113. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  114. package/fesm2022/ngx-formly-zorro-antd-card.mjs +56 -56
  115. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  116. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +70 -70
  117. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  118. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +44 -44
  119. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  120. package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
  121. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  122. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +154 -154
  123. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  124. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +109 -0
  126. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -0
  127. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +152 -152
  128. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  129. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +64 -64
  130. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  131. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +44 -44
  132. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +94 -94
  134. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  135. package/fesm2022/ngx-formly-zorro-antd-input.mjs +280 -280
  136. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  137. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +86 -86
  138. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  139. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +38 -38
  140. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  141. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +14 -14
  142. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  143. package/fesm2022/ngx-formly-zorro-antd-select.mjs +128 -128
  144. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  145. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +38 -38
  146. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  147. package/fesm2022/ngx-formly-zorro-antd-space.mjs +32 -32
  148. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  149. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +30 -30
  150. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  151. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +84 -84
  152. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  153. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +24 -24
  154. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  155. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +118 -118
  156. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  157. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +66 -66
  158. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  159. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +103 -103
  160. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  161. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +74 -74
  162. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  163. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +233 -233
  164. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  165. package/fesm2022/ngx-formly-zorro-antd.mjs +11 -7
  166. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  167. package/flex/flex.module.d.ts +10 -0
  168. package/flex/flex.type.d.ts +48 -0
  169. package/flex/index.d.ts +5 -0
  170. package/flex/public_api.d.ts +2 -0
  171. package/input/input.props.d.ts +4 -2
  172. package/input/public_api.d.ts +1 -0
  173. package/input-group/input-group.props.d.ts +2 -0
  174. package/input-group/public_api.d.ts +1 -1
  175. package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
  176. package/package.json +24 -18
  177. package/autocomplete/package.json +0 -3
  178. package/button/package.json +0 -3
  179. package/button-group/package.json +0 -3
  180. package/card/package.json +0 -3
  181. package/card-wrapper/package.json +0 -3
  182. package/cascader/package.json +0 -3
  183. package/checkbox/package.json +0 -3
  184. package/common/package.json +0 -3
  185. package/datepicker/package.json +0 -3
  186. package/extension/package.json +0 -3
  187. package/form-field/package.json +0 -3
  188. package/grid/package.json +0 -3
  189. package/input/package.json +0 -3
  190. package/input-group/package.json +0 -3
  191. package/input-number/package.json +0 -3
  192. package/radio/package.json +0 -3
  193. package/rate/package.json +0 -3
  194. package/ref-template/package.json +0 -3
  195. package/select/package.json +0 -3
  196. package/slider/package.json +0 -3
  197. package/space/package.json +0 -3
  198. package/switch/package.json +0 -3
  199. package/tabs/package.json +0 -3
  200. package/text-value/package.json +0 -3
  201. package/textarea/package.json +0 -3
  202. package/timepicker/package.json +0 -3
  203. package/transfer/package.json +0 -3
  204. package/tree-select/package.json +0 -3
  205. package/upload/package.json +0 -3
@@ -43,135 +43,135 @@ class FormlyFieldSelect extends FieldType {
43
43
  this.select.nzFilterOption = this.props['filterOption'];
44
44
  }
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
48
- <nz-select
49
- #select
50
- [class.ng-dirty]="showError"
51
- [ngStyle]="props['ngStyle']"
52
- [ngClass]="props['ngClass']"
53
- [nzPlaceHolder]="props.placeholder ?? null"
54
- [compareWith]="props['compareWith']!"
55
- [nzAllowClear]="props['allowClear']!!"
56
- [nzSelectOnTab]="props['selectOnTab']!!"
57
- [nzAutoClearSearchValue]="props['autoClearSearchValue']"
58
- [nzBackdrop]="props['backdrop']!!"
59
- [nzBorderless]="props['borderless']"
60
- [nzOpen]="props['open']!!"
61
- [nzDropdownClassName]="props['dropdownClassName']"
62
- [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
63
- [nzDropdownStyle]="props['dropdownStyle'] ?? null"
64
- [nzCustomTemplate]="props['customTemplate'] ?? null"
65
- [nzServerSearch]="props['serverSearch']!!"
66
- [nzMaxMultipleCount]="props['maxMultipleCount']!"
67
- [nzMode]="props['mode']!"
68
- [nzShowSearch]="props['showSearch']!!"
69
- [nzSize]="props['size']!"
70
- [nzStatus]="props['status']!"
71
- [nzLoading]="props['loading']!!"
72
- [nzPlacement]="props['placement']"
73
- [nzShowArrow]="props['showArrow']!!"
74
- [nzMaxTagCount]="props['maxTagCount']"
75
- [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
76
- [nzOptionHeightPx]="props['optionHeightPx']!"
77
- [nzOptionOverflowSize]="props['optionOverflowSize']!"
78
- [formControl]="formControl"
79
- [formlyAttributes]="field"
80
- (ngModelChange)="props.change?.(field, $event)"
81
- (nzBlur)="props.blur?.(field, $event)"
82
- (nzFocus)="props.focus?.(field, $event)"
83
- (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
84
- (nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
85
- (nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
86
- >
87
- @for (item of to.options | formlySelectOptions: field | async; track item) {
88
- @if (item.group) {
89
- <nz-option-group [nzLabel]="item.label">
90
- @for (child of item.group; track child) {
91
- <nz-option
92
- [nzValue]="child.value"
93
- [nzDisabled]="child.disabled"
94
- [nzLabel]="child.label"
95
- >
96
- </nz-option>
97
- }
98
- </nz-option-group>
99
- } @else {
100
- <nz-option
101
- [nzValue]="item.value"
102
- [nzDisabled]="item.disabled"
103
- [nzLabel]="item.label"
104
- ></nz-option>
105
- }
106
- }
107
- </nz-select>
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
48
+ <nz-select
49
+ #select
50
+ [class.ng-dirty]="showError"
51
+ [ngStyle]="props['ngStyle']"
52
+ [ngClass]="props['ngClass']"
53
+ [nzPlaceHolder]="props.placeholder ?? null"
54
+ [compareWith]="props['compareWith']!"
55
+ [nzAllowClear]="props['allowClear']!!"
56
+ [nzSelectOnTab]="props['selectOnTab']!!"
57
+ [nzAutoClearSearchValue]="props['autoClearSearchValue']"
58
+ [nzBackdrop]="props['backdrop']!!"
59
+ [nzBorderless]="props['borderless']"
60
+ [nzOpen]="props['open']!!"
61
+ [nzDropdownClassName]="props['dropdownClassName']"
62
+ [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
63
+ [nzDropdownStyle]="props['dropdownStyle'] ?? null"
64
+ [nzCustomTemplate]="props['customTemplate'] ?? null"
65
+ [nzServerSearch]="props['serverSearch']!!"
66
+ [nzMaxMultipleCount]="props['maxMultipleCount']!"
67
+ [nzMode]="props['mode']!"
68
+ [nzShowSearch]="props['showSearch']!!"
69
+ [nzSize]="props['size']!"
70
+ [nzStatus]="props['status']!"
71
+ [nzLoading]="props['loading']!!"
72
+ [nzPlacement]="props['placement']"
73
+ [nzShowArrow]="props['showArrow']!!"
74
+ [nzMaxTagCount]="props['maxTagCount']"
75
+ [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
76
+ [nzOptionHeightPx]="props['optionHeightPx']!"
77
+ [nzOptionOverflowSize]="props['optionOverflowSize']!"
78
+ [formControl]="formControl"
79
+ [formlyAttributes]="field"
80
+ (ngModelChange)="props.change?.(field, $event)"
81
+ (nzBlur)="props.blur?.(field, $event)"
82
+ (nzFocus)="props.focus?.(field, $event)"
83
+ (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
84
+ (nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
85
+ (nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
86
+ >
87
+ @for (item of to.options | formlySelectOptions: field | async; track item) {
88
+ @if (item.group) {
89
+ <nz-option-group [nzLabel]="item.label">
90
+ @for (child of item.group; track child) {
91
+ <nz-option
92
+ [nzValue]="child.value"
93
+ [nzDisabled]="child.disabled"
94
+ [nzLabel]="child.label"
95
+ >
96
+ </nz-option>
97
+ }
98
+ </nz-option-group>
99
+ } @else {
100
+ <nz-option
101
+ [nzValue]="item.value"
102
+ [nzDisabled]="item.disabled"
103
+ [nzLabel]="item.label"
104
+ ></nz-option>
105
+ }
106
+ }
107
+ </nz-select>
108
108
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
109
109
  }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSelect, decorators: [{
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSelect, decorators: [{
111
111
  type: Component,
112
112
  args: [{
113
113
  selector: 'formly-field-select',
114
- template: `
115
- <nz-select
116
- #select
117
- [class.ng-dirty]="showError"
118
- [ngStyle]="props['ngStyle']"
119
- [ngClass]="props['ngClass']"
120
- [nzPlaceHolder]="props.placeholder ?? null"
121
- [compareWith]="props['compareWith']!"
122
- [nzAllowClear]="props['allowClear']!!"
123
- [nzSelectOnTab]="props['selectOnTab']!!"
124
- [nzAutoClearSearchValue]="props['autoClearSearchValue']"
125
- [nzBackdrop]="props['backdrop']!!"
126
- [nzBorderless]="props['borderless']"
127
- [nzOpen]="props['open']!!"
128
- [nzDropdownClassName]="props['dropdownClassName']"
129
- [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
130
- [nzDropdownStyle]="props['dropdownStyle'] ?? null"
131
- [nzCustomTemplate]="props['customTemplate'] ?? null"
132
- [nzServerSearch]="props['serverSearch']!!"
133
- [nzMaxMultipleCount]="props['maxMultipleCount']!"
134
- [nzMode]="props['mode']!"
135
- [nzShowSearch]="props['showSearch']!!"
136
- [nzSize]="props['size']!"
137
- [nzStatus]="props['status']!"
138
- [nzLoading]="props['loading']!!"
139
- [nzPlacement]="props['placement']"
140
- [nzShowArrow]="props['showArrow']!!"
141
- [nzMaxTagCount]="props['maxTagCount']"
142
- [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
143
- [nzOptionHeightPx]="props['optionHeightPx']!"
144
- [nzOptionOverflowSize]="props['optionOverflowSize']!"
145
- [formControl]="formControl"
146
- [formlyAttributes]="field"
147
- (ngModelChange)="props.change?.(field, $event)"
148
- (nzBlur)="props.blur?.(field, $event)"
149
- (nzFocus)="props.focus?.(field, $event)"
150
- (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
151
- (nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
152
- (nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
153
- >
154
- @for (item of to.options | formlySelectOptions: field | async; track item) {
155
- @if (item.group) {
156
- <nz-option-group [nzLabel]="item.label">
157
- @for (child of item.group; track child) {
158
- <nz-option
159
- [nzValue]="child.value"
160
- [nzDisabled]="child.disabled"
161
- [nzLabel]="child.label"
162
- >
163
- </nz-option>
164
- }
165
- </nz-option-group>
166
- } @else {
167
- <nz-option
168
- [nzValue]="item.value"
169
- [nzDisabled]="item.disabled"
170
- [nzLabel]="item.label"
171
- ></nz-option>
172
- }
173
- }
174
- </nz-select>
114
+ template: `
115
+ <nz-select
116
+ #select
117
+ [class.ng-dirty]="showError"
118
+ [ngStyle]="props['ngStyle']"
119
+ [ngClass]="props['ngClass']"
120
+ [nzPlaceHolder]="props.placeholder ?? null"
121
+ [compareWith]="props['compareWith']!"
122
+ [nzAllowClear]="props['allowClear']!!"
123
+ [nzSelectOnTab]="props['selectOnTab']!!"
124
+ [nzAutoClearSearchValue]="props['autoClearSearchValue']"
125
+ [nzBackdrop]="props['backdrop']!!"
126
+ [nzBorderless]="props['borderless']"
127
+ [nzOpen]="props['open']!!"
128
+ [nzDropdownClassName]="props['dropdownClassName']"
129
+ [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
130
+ [nzDropdownStyle]="props['dropdownStyle'] ?? null"
131
+ [nzCustomTemplate]="props['customTemplate'] ?? null"
132
+ [nzServerSearch]="props['serverSearch']!!"
133
+ [nzMaxMultipleCount]="props['maxMultipleCount']!"
134
+ [nzMode]="props['mode']!"
135
+ [nzShowSearch]="props['showSearch']!!"
136
+ [nzSize]="props['size']!"
137
+ [nzStatus]="props['status']!"
138
+ [nzLoading]="props['loading']!!"
139
+ [nzPlacement]="props['placement']"
140
+ [nzShowArrow]="props['showArrow']!!"
141
+ [nzMaxTagCount]="props['maxTagCount']"
142
+ [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
143
+ [nzOptionHeightPx]="props['optionHeightPx']!"
144
+ [nzOptionOverflowSize]="props['optionOverflowSize']!"
145
+ [formControl]="formControl"
146
+ [formlyAttributes]="field"
147
+ (ngModelChange)="props.change?.(field, $event)"
148
+ (nzBlur)="props.blur?.(field, $event)"
149
+ (nzFocus)="props.focus?.(field, $event)"
150
+ (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
151
+ (nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
152
+ (nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
153
+ >
154
+ @for (item of to.options | formlySelectOptions: field | async; track item) {
155
+ @if (item.group) {
156
+ <nz-option-group [nzLabel]="item.label">
157
+ @for (child of item.group; track child) {
158
+ <nz-option
159
+ [nzValue]="child.value"
160
+ [nzDisabled]="child.disabled"
161
+ [nzLabel]="child.label"
162
+ >
163
+ </nz-option>
164
+ }
165
+ </nz-option-group>
166
+ } @else {
167
+ <nz-option
168
+ [nzValue]="item.value"
169
+ [nzDisabled]="item.disabled"
170
+ [nzLabel]="item.label"
171
+ ></nz-option>
172
+ }
173
+ }
174
+ </nz-select>
175
175
  `,
176
176
  changeDetection: ChangeDetectionStrategy.OnPush
177
177
  }]
@@ -181,13 +181,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
181
181
  }] } });
182
182
 
183
183
  class FormlyNzSelectModule {
184
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
185
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
184
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
185
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
186
186
  ReactiveFormsModule,
187
187
  NzSelectModule,
188
188
  FormlyNzFormFieldModule,
189
189
  FormlySelectModule, i4.FormlyModule] }); }
190
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
190
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
191
191
  ReactiveFormsModule,
192
192
  NzSelectModule,
193
193
  FormlyNzFormFieldModule,
@@ -203,7 +203,7 @@ class FormlyNzSelectModule {
203
203
  ]
204
204
  })] }); }
205
205
  }
206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
207
207
  type: NgModule,
208
208
  args: [{
209
209
  declarations: [FormlyFieldSelect],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [ngStyle]=\"props['ngStyle']\"\n [ngClass]=\"props['ngClass']\"\n [nzPlaceHolder]=\"props.placeholder ?? null\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n @for (item of to.options | formlySelectOptions: field | async; track item) {\n @if (item.group) {\n <nz-option-group [nzLabel]=\"item.label\">\n @for (child of item.group; track child) {\n <nz-option\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n }\n </nz-option-group>\n } @else {\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n }\n }\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n options: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA6EM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AAlEjE,IAAA,WAAA,GAAA;;AAmEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACxD,gBAAA,oBAAoB,EAAE,IAAI;AAC1B,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,YAAY,EAAE,KAAK;AACnB,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,gBAAgB,EAAE,QAAQ;AAC1B,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,OAAO,EAAE,EAAE;AACX,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,cAAc,EAAE,EAAE;AAClB,gBAAA,kBAAkB,EAAE,CAAC;AACtB,aAAA;SACF,CAAC;AAOH,KAAA;IALC,QAAQ,GAAA;QACN,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,QAAQ,EAAE;YAClD,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAc,CAAC;AACtE,SAAA;KACF;8GA5BU,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,C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;YAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type { SelectProps } from './select.props';\r\n\r\nexport interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {\r\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-select',\r\n template: `\r\n <nz-select\r\n #select\r\n [class.ng-dirty]=\"showError\"\r\n [ngStyle]=\"props['ngStyle']\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? null\"\r\n [compareWith]=\"props['compareWith']!\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\r\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzOpen]=\"props['open']!!\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\r\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\r\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\r\n [nzServerSearch]=\"props['serverSearch']!!\"\r\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\r\n [nzMode]=\"props['mode']!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzPlacement]=\"props['placement']\"\r\n [nzShowArrow]=\"props['showArrow']!!\"\r\n [nzMaxTagCount]=\"props['maxTagCount']\"\r\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\r\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\r\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n (ngModelChange)=\"props.change?.(field, $event)\"\r\n (nzBlur)=\"props.blur?.(field, $event)\"\r\n (nzFocus)=\"props.focus?.(field, $event)\"\r\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\r\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\r\n >\r\n @for (item of to.options | formlySelectOptions: field | async; track item) {\r\n @if (item.group) {\r\n <nz-option-group [nzLabel]=\"item.label\">\r\n @for (child of item.group; track child) {\r\n <nz-option\r\n [nzValue]=\"child.value\"\r\n [nzDisabled]=\"child.disabled\"\r\n [nzLabel]=\"child.label\"\r\n >\r\n </nz-option>\r\n }\r\n </nz-option-group>\r\n } @else {\r\n <nz-option\r\n [nzValue]=\"item.value\"\r\n [nzDisabled]=\"item.disabled\"\r\n [nzLabel]=\"item.label\"\r\n ></nz-option>\r\n }\r\n }\r\n </nz-select>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\r\n autoClearSearchValue: true,\r\n allowClear: false,\r\n backdrop: false,\r\n open: false,\r\n dropdownMatchSelectWidth: true,\r\n serverSearch: false,\r\n selectOnTab: false,\r\n maxMultipleCount: Infinity,\r\n mode: 'default' as const,\r\n showSearch: false,\r\n size: 'default' as const,\r\n status: '' as const,\r\n tokenSeparators: [],\r\n options: [],\r\n loading: false,\r\n optionHeightPx: 32,\r\n optionOverflowSize: 8\r\n }\r\n };\r\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\r\n ngOnInit(): void {\r\n if (this.props['filterOption'] instanceof Function) {\r\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlySelectModule } from '@ngx-formly/core/select';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzSelectModule } from 'ng-zorro-antd/select';\r\n\r\nimport { FormlyFieldSelect } from './select.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldSelect],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzSelectModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlySelectModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'select',\r\n component: FormlyFieldSelect,\r\n wrappers: ['form-field']\r\n },\r\n { name: 'enum', extends: 'select' }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzSelectModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA6EM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AAlEjE,IAAA,WAAA,GAAA;;AAmEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACxD,gBAAA,oBAAoB,EAAE,IAAI;AAC1B,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,YAAY,EAAE,KAAK;AACnB,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,gBAAgB,EAAE,QAAQ;AAC1B,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,OAAO,EAAE,EAAE;AACX,gBAAA,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BAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -26,57 +26,57 @@ class FormlyFieldSlider extends FieldType {
26
26
  }
27
27
  };
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldSlider, selector: "formly-field-slider", usesInheritance: true, ngImport: i0, template: `<nz-slider
31
- #slider
32
- [formControl]="formControl"
33
- [formlyAttributes]="field"
34
- [nzDots]="props['dots']!!"
35
- [nzIncluded]="props['included']!!"
36
- [nzMax]="props.max"
37
- [nzMin]="props.min"
38
- [nzRange]="props['range']!!"
39
- [nzStep]="props.step"
40
- [nzTipFormatter]="props['tipFormatter']"
41
- [nzVertical]="props['vertical']!!"
42
- [nzReverse]="props['reverse']!!"
43
- [nzTooltipVisible]="props['tooltipVisible']!"
44
- (ngModelChange)="props.change && props.change(field, $event)"
45
- (nzOnAfterChange)="props['afterChange'] && props['afterChange'](field, $event)"
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldSlider, selector: "formly-field-slider", usesInheritance: true, ngImport: i0, template: `<nz-slider
31
+ #slider
32
+ [formControl]="formControl"
33
+ [formlyAttributes]="field"
34
+ [nzDots]="props['dots']!!"
35
+ [nzIncluded]="props['included']!!"
36
+ [nzMax]="props.max"
37
+ [nzMin]="props.min"
38
+ [nzRange]="props['range']!!"
39
+ [nzStep]="props.step"
40
+ [nzTipFormatter]="props['tipFormatter']"
41
+ [nzVertical]="props['vertical']!!"
42
+ [nzReverse]="props['reverse']!!"
43
+ [nzTooltipVisible]="props['tooltipVisible']!"
44
+ (ngModelChange)="props.change && props.change(field, $event)"
45
+ (nzOnAfterChange)="props['afterChange'] && props['afterChange'](field, $event)"
46
46
  ></nz-slider>`, 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.NzSliderComponent, selector: "nz-slider", inputs: ["nzDisabled", "nzDots", "nzIncluded", "nzRange", "nzVertical", "nzReverse", "nzDefaultValue", "nzMarks", "nzMax", "nzMin", "nzStep", "nzTooltipVisible", "nzTooltipPlacement", "nzTipFormatter"], outputs: ["nzOnAfterChange"], exportAs: ["nzSlider"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
47
47
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSlider, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSlider, decorators: [{
49
49
  type: Component,
50
50
  args: [{
51
51
  selector: 'formly-field-slider',
52
- template: `<nz-slider
53
- #slider
54
- [formControl]="formControl"
55
- [formlyAttributes]="field"
56
- [nzDots]="props['dots']!!"
57
- [nzIncluded]="props['included']!!"
58
- [nzMax]="props.max"
59
- [nzMin]="props.min"
60
- [nzRange]="props['range']!!"
61
- [nzStep]="props.step"
62
- [nzTipFormatter]="props['tipFormatter']"
63
- [nzVertical]="props['vertical']!!"
64
- [nzReverse]="props['reverse']!!"
65
- [nzTooltipVisible]="props['tooltipVisible']!"
66
- (ngModelChange)="props.change && props.change(field, $event)"
67
- (nzOnAfterChange)="props['afterChange'] && props['afterChange'](field, $event)"
52
+ template: `<nz-slider
53
+ #slider
54
+ [formControl]="formControl"
55
+ [formlyAttributes]="field"
56
+ [nzDots]="props['dots']!!"
57
+ [nzIncluded]="props['included']!!"
58
+ [nzMax]="props.max"
59
+ [nzMin]="props.min"
60
+ [nzRange]="props['range']!!"
61
+ [nzStep]="props.step"
62
+ [nzTipFormatter]="props['tipFormatter']"
63
+ [nzVertical]="props['vertical']!!"
64
+ [nzReverse]="props['reverse']!!"
65
+ [nzTooltipVisible]="props['tooltipVisible']!"
66
+ (ngModelChange)="props.change && props.change(field, $event)"
67
+ (nzOnAfterChange)="props['afterChange'] && props['afterChange'](field, $event)"
68
68
  ></nz-slider>`,
69
69
  changeDetection: ChangeDetectionStrategy.OnPush
70
70
  }]
71
71
  }] });
72
72
 
73
73
  class FormlyNzSliderModule {
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
75
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
75
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
76
76
  ReactiveFormsModule,
77
77
  FormlyNzFormFieldModule,
78
78
  NzSliderModule, i3.FormlyModule] }); }
79
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSliderModule, imports: [CommonModule,
79
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSliderModule, imports: [CommonModule,
80
80
  ReactiveFormsModule,
81
81
  FormlyNzFormFieldModule,
82
82
  NzSliderModule,
@@ -90,7 +90,7 @@ class FormlyNzSliderModule {
90
90
  ]
91
91
  })] }); }
92
92
  }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSliderModule, decorators: [{
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSliderModule, decorators: [{
94
94
  type: NgModule,
95
95
  args: [{
96
96
  declarations: [FormlyFieldSlider],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-slider.mjs","sources":["../../../../packages/formlyantd/slider/src/slider.type.ts","../../../../packages/formlyantd/slider/src/slider.module.ts","../../../../packages/formlyantd/slider/src/ngx-formly-zorro-antd-slider.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';\nimport type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';\n\ninterface SlideProps extends FormlyFieldProps {\n /**\n * 是否只能拖拽到刻度上\n * @default false\n */\n dots?: boolean;\n\n /**\n * marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列\n * @default true\n */\n included?: boolean;\n\n /**\n * 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式\n * @default\n * { number: string/HTML } or { number: { style: object, label: string/HTML } }\n */\n marks?: object;\n\n /**\n * 双滑块模式\n * @default false\n */\n range?: boolean;\n\n /**\n * Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。\n */\n tipFormatter?: (value: number) => string;\n\n /**\n * 值为 true 时,Slider 为垂直方向\n * @default false\n */\n vertical?: boolean;\n\n /**\n * 反向坐标轴\n * @default false\n */\n reverse?: boolean;\n\n /**\n * 值为 always 时总是显示,值为 never 时在任何情况下都不显示\n * @default default\n */\n tooltipVisible?: NzSliderShowTooltip;\n\n /**\n * 设置 Tooltip 的默认位置。\n */\n tooltipPlacement?: string;\n\n /**\n * 与 onmouseup 触发时机一致,把当前值作为参数传入。\n */\n afterChange?: FormlyAttributeEvent<number[] | number>;\n}\n\nexport interface FormlySlideFieldConfig extends NzFormlyFieldConfig<SlideProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-slider',\n template: `<nz-slider\n #slider\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDots]=\"props['dots']!!\"\n [nzIncluded]=\"props['included']!!\"\n [nzMax]=\"props.max\"\n [nzMin]=\"props.min\"\n [nzRange]=\"props['range']!!\"\n [nzStep]=\"props.step\"\n [nzTipFormatter]=\"props['tipFormatter']\"\n [nzVertical]=\"props['vertical']!!\"\n [nzReverse]=\"props['reverse']!!\"\n [nzTooltipVisible]=\"props['tooltipVisible']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnAfterChange)=\"props['afterChange'] && props['afterChange'](field, $event)\"\n ></nz-slider>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {\n override defaultOptions = {\n props: {\n max: 100,\n min: 0,\n step: 1,\n dots: false,\n included: true,\n range: false,\n vertical: false,\n reverse: false,\n tooltipVisible: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldSlider } from './slider.type';\nimport { NzSliderModule } from 'ng-zorro-antd/slider';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzSliderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'slider',\n component: FormlyFieldSlider,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA2FM,MAAO,iBAAkB,SAAQ,SAAsC,CAAA;AArB7E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,GAAG;AACR,gBAAA,GAAG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,cAAc,EAAE,SAAkB;AACnC,aAAA;SACF,CAAC;AACH,KAAA;8GAdY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAnBlB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;AAgBI,eAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,E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ages/formlyantd/slider/src/slider.module.ts","../../../../packages/formlyantd/slider/src/ngx-formly-zorro-antd-slider.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\nimport type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';\r\n\r\ninterface SlideProps extends FormlyFieldProps {\r\n /**\r\n * 是否只能拖拽到刻度上\r\n * @default false\r\n */\r\n dots?: boolean;\r\n\r\n /**\r\n * marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列\r\n * @default true\r\n */\r\n included?: boolean;\r\n\r\n /**\r\n * 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式\r\n * @default\r\n * { number: string/HTML } or { number: { style: object, label: string/HTML } }\r\n */\r\n marks?: object;\r\n\r\n /**\r\n * 双滑块模式\r\n * @default false\r\n */\r\n range?: boolean;\r\n\r\n /**\r\n * Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。\r\n */\r\n tipFormatter?: (value: number) => string;\r\n\r\n /**\r\n * 值为 true 时,Slider 为垂直方向\r\n * @default false\r\n */\r\n vertical?: boolean;\r\n\r\n /**\r\n * 反向坐标轴\r\n * @default false\r\n */\r\n reverse?: boolean;\r\n\r\n /**\r\n * 值为 always 时总是显示,值为 never 时在任何情况下都不显示\r\n * @default default\r\n */\r\n tooltipVisible?: NzSliderShowTooltip;\r\n\r\n /**\r\n * 设置 Tooltip 的默认位置。\r\n */\r\n tooltipPlacement?: string;\r\n\r\n /**\r\n * 与 onmouseup 触发时机一致,把当前值作为参数传入。\r\n */\r\n afterChange?: FormlyAttributeEvent<number[] | number>;\r\n}\r\n\r\nexport interface FormlySlideFieldConfig extends NzFormlyFieldConfig<SlideProps> {\r\n type: 'slider' | Type<FormlyFieldSlider>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-slider',\r\n template: `<nz-slider\r\n #slider\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzDots]=\"props['dots']!!\"\r\n [nzIncluded]=\"props['included']!!\"\r\n [nzMax]=\"props.max\"\r\n [nzMin]=\"props.min\"\r\n [nzRange]=\"props['range']!!\"\r\n [nzStep]=\"props.step\"\r\n [nzTipFormatter]=\"props['tipFormatter']\"\r\n [nzVertical]=\"props['vertical']!!\"\r\n [nzReverse]=\"props['reverse']!!\"\r\n [nzTooltipVisible]=\"props['tooltipVisible']!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n (nzOnAfterChange)=\"props['afterChange'] && props['afterChange'](field, $event)\"\r\n ></nz-slider>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {\r\n override defaultOptions = {\r\n props: {\r\n max: 100,\r\n min: 0,\r\n step: 1,\r\n dots: false,\r\n included: true,\r\n range: false,\r\n vertical: false,\r\n reverse: false,\r\n tooltipVisible: 'default' as const\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldSlider } from './slider.type';\r\nimport { NzSliderModule } from 'ng-zorro-antd/slider';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldSlider],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzSliderModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'slider',\r\n component: FormlyFieldSlider,\r\n wrappers: ['form-field']\r\n }\r\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AAA,EAAA,CAAA,CAAA,EAAA;AAaL,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,oBAAoB,YAhB7B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,cAAc;YAEd,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAnBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,cAAc;wBAEd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC3BD;;AAEG;;;;"}
@@ -23,39 +23,39 @@ class FormlyFieldSpace extends FieldType {
23
23
  get nzSplit() {
24
24
  return resolveTplName(this.props, this.fieldTemplates, 'split');
25
25
  }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSpace, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
27
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldSpace, selector: "formly-field-space", usesInheritance: true, ngImport: i0, template: `
28
- <nz-space
29
- [nzSize]="props.size!"
30
- [nzAlign]="props.align"
31
- [nzDirection]="props.direction!"
32
- [nzSplit]="nzSplit ?? null"
33
- [nzWrap]="props.wrap!!"
34
- [formlyAttributes]="field"
35
- >
36
- @for (g of field.fieldGroup; track g.id) {
37
- <formly-field *nzSpaceItem [field]="g"></formly-field>
38
- }
39
- </nz-space>
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSpace, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
27
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldSpace, selector: "formly-field-space", usesInheritance: true, ngImport: i0, template: `
28
+ <nz-space
29
+ [nzSize]="props.size!"
30
+ [nzAlign]="props.align"
31
+ [nzDirection]="props.direction!"
32
+ [nzSplit]="nzSplit ?? null"
33
+ [nzWrap]="props.wrap!!"
34
+ [formlyAttributes]="field"
35
+ >
36
+ @for (g of field.fieldGroup; track g.id) {
37
+ <formly-field *nzSpaceItem [field]="g"></formly-field>
38
+ }
39
+ </nz-space>
40
40
  `, isInline: true, dependencies: [{ kind: "component", type: i2.NzSpaceComponent, selector: "nz-space, [nz-space]", inputs: ["nzDirection", "nzAlign", "nzSplit", "nzWrap", "nzSize"], exportAs: ["NzSpace"] }, { kind: "directive", type: i2.NzSpaceItemDirective, selector: "[nzSpaceItem]" }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSpace, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSpace, decorators: [{
43
43
  type: Component,
44
44
  args: [{
45
45
  selector: 'formly-field-space',
46
- template: `
47
- <nz-space
48
- [nzSize]="props.size!"
49
- [nzAlign]="props.align"
50
- [nzDirection]="props.direction!"
51
- [nzSplit]="nzSplit ?? null"
52
- [nzWrap]="props.wrap!!"
53
- [formlyAttributes]="field"
54
- >
55
- @for (g of field.fieldGroup; track g.id) {
56
- <formly-field *nzSpaceItem [field]="g"></formly-field>
57
- }
58
- </nz-space>
46
+ template: `
47
+ <nz-space
48
+ [nzSize]="props.size!"
49
+ [nzAlign]="props.align"
50
+ [nzDirection]="props.direction!"
51
+ [nzSplit]="nzSplit ?? null"
52
+ [nzWrap]="props.wrap!!"
53
+ [formlyAttributes]="field"
54
+ >
55
+ @for (g of field.fieldGroup; track g.id) {
56
+ <formly-field *nzSpaceItem [field]="g"></formly-field>
57
+ }
58
+ </nz-space>
59
59
  `,
60
60
  changeDetection: ChangeDetectionStrategy.OnPush
61
61
  }]
@@ -64,10 +64,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
64
64
  }] }] });
65
65
 
66
66
  class FormlyNzSpaceModule {
67
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSpaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
68
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSpaceModule, declarations: [FormlyFieldSpace], imports: [CommonModule,
67
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSpaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
68
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSpaceModule, declarations: [FormlyFieldSpace], imports: [CommonModule,
69
69
  NzSpaceModule, i3.FormlyModule] }); }
70
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSpaceModule, imports: [CommonModule,
70
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSpaceModule, imports: [CommonModule,
71
71
  NzSpaceModule,
72
72
  FormlyModule.forChild({
73
73
  types: [
@@ -78,7 +78,7 @@ class FormlyNzSpaceModule {
78
78
  ]
79
79
  })] }); }
80
80
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSpaceModule, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSpaceModule, decorators: [{
82
82
  type: NgModule,
83
83
  args: [{
84
84
  declarations: [FormlyFieldSpace],