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
@@ -35,135 +35,135 @@ class FormlyFieldButton extends FieldType {
35
35
  get text() {
36
36
  return resolveTplName(this.props, this.fieldTemplates, 'text');
37
37
  }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
40
- @if (props.type === 'a') {
41
- <a
42
- nz-button
43
- [formlyAttributes]="field"
44
- [attr.title]="props['title']"
45
- [nzGhost]="props['ghost']!!"
46
- [nzLoading]="props['loading']!!"
47
- [nzShape]="props['shape'] ?? null"
48
- [nzSize]="props['size']!"
49
- [nzBlock]="props['block']!!"
50
- [nzDanger]="props['danger']!!"
51
- [nzType]="props['nzType'] ?? 'link'"
52
- [ngClass]="props['ngClass']"
53
- >
54
- @if (props['beforeIcon']) {
55
- <span nz-icon [nzType]="props['beforeIcon']"></span>
56
- }
57
- @if (hasText) {
58
- <ng-container
59
- *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
60
- >
61
- {{ text }}
62
- </ng-container>
63
- }
64
- @if (props['afterIcon']) {
65
- <span nz-icon [nzType]="props['afterIcon']"></span>
66
- }
67
- </a>
68
- } @else {
69
- <button
70
- [formlyAttributes]="field"
71
- [attr.type]="field.type"
72
- [attr.form]="props['formName']"
73
- [attr.title]="props['title']"
74
- [disabled]="props['disabled'] || formControl.disabled!!"
75
- [nzGhost]="props['ghost']!!"
76
- [nzLoading]="props['loading']!!"
77
- [nzShape]="props['shape'] ?? null"
78
- [nzSize]="props['size']!"
79
- [nzBlock]="props['block']!!"
80
- [nzDanger]="props['danger']!!"
81
- [nzType]="props['nzType'] ?? null"
82
- [ngClass]="props['ngClass']"
83
- nz-button
84
- >
85
- @if (props['beforeIcon']) {
86
- <span nz-icon [nzType]="props['beforeIcon']"></span>
87
- }
88
- @if (hasText) {
89
- <ng-container
90
- *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
91
- >
92
- {{ text }}
93
- </ng-container>
94
- }
95
- @if (props['afterIcon']) {
96
- <span nz-icon [nzType]="props['afterIcon']"></span>
97
- }
98
- </button>
99
- }
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButton, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
40
+ @if (props.type === 'a') {
41
+ <a
42
+ nz-button
43
+ [formlyAttributes]="field"
44
+ [attr.title]="props['title']"
45
+ [nzGhost]="props['ghost']!!"
46
+ [nzLoading]="props['loading']!!"
47
+ [nzShape]="props['shape'] ?? null"
48
+ [nzSize]="props['size']!"
49
+ [nzBlock]="props['block']!!"
50
+ [nzDanger]="props['danger']!!"
51
+ [nzType]="props['nzType'] ?? 'link'"
52
+ [ngClass]="props['ngClass']"
53
+ >
54
+ @if (props['beforeIcon']) {
55
+ <span nz-icon [nzType]="props['beforeIcon']"></span>
56
+ }
57
+ @if (hasText) {
58
+ <ng-container
59
+ *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
60
+ >
61
+ {{ text }}
62
+ </ng-container>
63
+ }
64
+ @if (props['afterIcon']) {
65
+ <span nz-icon [nzType]="props['afterIcon']"></span>
66
+ }
67
+ </a>
68
+ } @else {
69
+ <button
70
+ [formlyAttributes]="field"
71
+ [attr.type]="field.type"
72
+ [attr.form]="props['formName']"
73
+ [attr.title]="props['title']"
74
+ [disabled]="props['disabled'] || formControl.disabled!!"
75
+ [nzGhost]="props['ghost']!!"
76
+ [nzLoading]="props['loading']!!"
77
+ [nzShape]="props['shape'] ?? null"
78
+ [nzSize]="props['size']!"
79
+ [nzBlock]="props['block']!!"
80
+ [nzDanger]="props['danger']!!"
81
+ [nzType]="props['nzType'] ?? null"
82
+ [ngClass]="props['ngClass']"
83
+ nz-button
84
+ >
85
+ @if (props['beforeIcon']) {
86
+ <span nz-icon [nzType]="props['beforeIcon']"></span>
87
+ }
88
+ @if (hasText) {
89
+ <ng-container
90
+ *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
91
+ >
92
+ {{ text }}
93
+ </ng-container>
94
+ }
95
+ @if (props['afterIcon']) {
96
+ <span nz-icon [nzType]="props['afterIcon']"></span>
97
+ }
98
+ </button>
99
+ }
100
100
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButton, decorators: [{
103
103
  type: Component,
104
104
  args: [{
105
105
  selector: 'formly-field-button',
106
- template: `
107
- @if (props.type === 'a') {
108
- <a
109
- nz-button
110
- [formlyAttributes]="field"
111
- [attr.title]="props['title']"
112
- [nzGhost]="props['ghost']!!"
113
- [nzLoading]="props['loading']!!"
114
- [nzShape]="props['shape'] ?? null"
115
- [nzSize]="props['size']!"
116
- [nzBlock]="props['block']!!"
117
- [nzDanger]="props['danger']!!"
118
- [nzType]="props['nzType'] ?? 'link'"
119
- [ngClass]="props['ngClass']"
120
- >
121
- @if (props['beforeIcon']) {
122
- <span nz-icon [nzType]="props['beforeIcon']"></span>
123
- }
124
- @if (hasText) {
125
- <ng-container
126
- *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
127
- >
128
- {{ text }}
129
- </ng-container>
130
- }
131
- @if (props['afterIcon']) {
132
- <span nz-icon [nzType]="props['afterIcon']"></span>
133
- }
134
- </a>
135
- } @else {
136
- <button
137
- [formlyAttributes]="field"
138
- [attr.type]="field.type"
139
- [attr.form]="props['formName']"
140
- [attr.title]="props['title']"
141
- [disabled]="props['disabled'] || formControl.disabled!!"
142
- [nzGhost]="props['ghost']!!"
143
- [nzLoading]="props['loading']!!"
144
- [nzShape]="props['shape'] ?? null"
145
- [nzSize]="props['size']!"
146
- [nzBlock]="props['block']!!"
147
- [nzDanger]="props['danger']!!"
148
- [nzType]="props['nzType'] ?? null"
149
- [ngClass]="props['ngClass']"
150
- nz-button
151
- >
152
- @if (props['beforeIcon']) {
153
- <span nz-icon [nzType]="props['beforeIcon']"></span>
154
- }
155
- @if (hasText) {
156
- <ng-container
157
- *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
158
- >
159
- {{ text }}
160
- </ng-container>
161
- }
162
- @if (props['afterIcon']) {
163
- <span nz-icon [nzType]="props['afterIcon']"></span>
164
- }
165
- </button>
166
- }
106
+ template: `
107
+ @if (props.type === 'a') {
108
+ <a
109
+ nz-button
110
+ [formlyAttributes]="field"
111
+ [attr.title]="props['title']"
112
+ [nzGhost]="props['ghost']!!"
113
+ [nzLoading]="props['loading']!!"
114
+ [nzShape]="props['shape'] ?? null"
115
+ [nzSize]="props['size']!"
116
+ [nzBlock]="props['block']!!"
117
+ [nzDanger]="props['danger']!!"
118
+ [nzType]="props['nzType'] ?? 'link'"
119
+ [ngClass]="props['ngClass']"
120
+ >
121
+ @if (props['beforeIcon']) {
122
+ <span nz-icon [nzType]="props['beforeIcon']"></span>
123
+ }
124
+ @if (hasText) {
125
+ <ng-container
126
+ *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
127
+ >
128
+ {{ text }}
129
+ </ng-container>
130
+ }
131
+ @if (props['afterIcon']) {
132
+ <span nz-icon [nzType]="props['afterIcon']"></span>
133
+ }
134
+ </a>
135
+ } @else {
136
+ <button
137
+ [formlyAttributes]="field"
138
+ [attr.type]="field.type"
139
+ [attr.form]="props['formName']"
140
+ [attr.title]="props['title']"
141
+ [disabled]="props['disabled'] || formControl.disabled!!"
142
+ [nzGhost]="props['ghost']!!"
143
+ [nzLoading]="props['loading']!!"
144
+ [nzShape]="props['shape'] ?? null"
145
+ [nzSize]="props['size']!"
146
+ [nzBlock]="props['block']!!"
147
+ [nzDanger]="props['danger']!!"
148
+ [nzType]="props['nzType'] ?? null"
149
+ [ngClass]="props['ngClass']"
150
+ nz-button
151
+ >
152
+ @if (props['beforeIcon']) {
153
+ <span nz-icon [nzType]="props['beforeIcon']"></span>
154
+ }
155
+ @if (hasText) {
156
+ <ng-container
157
+ *nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
158
+ >
159
+ {{ text }}
160
+ </ng-container>
161
+ }
162
+ @if (props['afterIcon']) {
163
+ <span nz-icon [nzType]="props['afterIcon']"></span>
164
+ }
165
+ </button>
166
+ }
167
167
  `,
168
168
  changeDetection: ChangeDetectionStrategy.OnPush
169
169
  }]
@@ -172,12 +172,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
172
172
  }] }] });
173
173
 
174
174
  class FormlyNzButtonModule {
175
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
176
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
175
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
176
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
177
177
  NzOutletModule,
178
178
  NzButtonModule,
179
179
  NzIconModule, i8.FormlyModule] }); }
180
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
180
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
181
181
  NzOutletModule,
182
182
  NzButtonModule,
183
183
  NzIconModule,
@@ -198,7 +198,7 @@ class FormlyNzButtonModule {
198
198
  ]
199
199
  })] }); }
200
200
  }
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
202
202
  type: NgModule,
203
203
  args: [{
204
204
  declarations: [FormlyFieldButton],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport {\n NzFormlyFieldConfig,\n FormlyBoxTemplates,\n hasTplNameValue,\n resolveTplName\n} from 'ngx-formly-zorro-antd/common';\n\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface ButtonProps extends FormlyFieldProps {\n type?: 'a' | 'button';\n\n /**\n * 标题\n */\n title?: string;\n\n /**\n * form 名称\n */\n formName?: string;\n\n /**\n * 按钮内容文本\n */\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\n textName?: string;\n\n /**\n * 幽灵属性,使按钮背景透明\n * @default false\n */\n ghost?: boolean;\n\n /**\n * 设置按钮载入状态\n * @default false\n */\n loading?: boolean;\n\n /**\n * 设置按钮形状\n */\n shape?: NzButtonShape;\n\n /**\n * 设置按钮大小\n * @default default\n */\n size?: NzButtonSize;\n\n /**\n * 设置按钮类型\n */\n nzType?: NzButtonType;\n\n /**\n * 将按钮宽度调整为其父宽度的选项\n * @default false\n */\n block?: boolean;\n\n /**\n * 设置危险按钮\n * @default false\n */\n danger?: boolean;\n\n /**\n * 文字前面的图标\n */\n beforeIcon?: string;\n\n /**\n * 文字后面面的图标\n */\n afterIcon?: string;\n}\n\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\n}\n\n@Component({\n selector: 'formly-field-button',\n template: `\n @if (props.type === 'a') {\n <a\n nz-button\n [formlyAttributes]=\"field\"\n [attr.title]=\"props['title']\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? 'link'\"\n [ngClass]=\"props['ngClass']\"\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </a>\n } @else {\n <button\n [formlyAttributes]=\"field\"\n [attr.type]=\"field.type\"\n [attr.form]=\"props['formName']\"\n [attr.title]=\"props['title']\"\n [disabled]=\"props['disabled'] || formControl.disabled!!\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? null\"\n [ngClass]=\"props['ngClass']\"\n nz-button\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\n override defaultOptions = {\n props: {\n ghost: false,\n loading: false,\n block: false,\n size: 'default' as const,\n danger: false\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get hasText() {\n return hasTplNameValue(this.props, 'text');\n }\n\n get text() {\n return resolveTplName(this.props, this.fieldTemplates, 'text');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButton } from './button.type';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButton],\n imports: [\n CommonModule,\n NzOutletModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button',\n component: FormlyFieldButton\n },\n {\n name: 'submit',\n extends: 'button'\n },\n {\n name: 'reset',\n extends: 'button'\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAyJM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAW5E,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAVxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,KAAK;AACd,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC5C;AAED,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,cAAc,CAAC,IAAI,C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AAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport {\r\n NzFormlyFieldConfig,\r\n FormlyBoxTemplates,\r\n hasTplNameValue,\r\n resolveTplName\r\n} from 'ngx-formly-zorro-antd/common';\r\n\r\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nexport interface ButtonProps extends FormlyFieldProps {\r\n type?: 'a' | 'button';\r\n\r\n /**\r\n * 标题\r\n */\r\n title?: string;\r\n\r\n /**\r\n * form 名称\r\n */\r\n formName?: string;\r\n\r\n /**\r\n * 按钮内容文本\r\n */\r\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\r\n textName?: string;\r\n\r\n /**\r\n * 幽灵属性,使按钮背景透明\r\n * @default false\r\n */\r\n ghost?: boolean;\r\n\r\n /**\r\n * 设置按钮载入状态\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 设置按钮形状\r\n */\r\n shape?: NzButtonShape;\r\n\r\n /**\r\n * 设置按钮大小\r\n * @default default\r\n */\r\n size?: NzButtonSize;\r\n\r\n /**\r\n * 设置按钮类型\r\n */\r\n nzType?: NzButtonType;\r\n\r\n /**\r\n * 将按钮宽度调整为其父宽度的选项\r\n * @default false\r\n */\r\n block?: boolean;\r\n\r\n /**\r\n * 设置危险按钮\r\n * @default false\r\n */\r\n danger?: boolean;\r\n\r\n /**\r\n * 文字前面的图标\r\n */\r\n beforeIcon?: string;\r\n\r\n /**\r\n * 文字后面面的图标\r\n */\r\n afterIcon?: string;\r\n}\r\n\r\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\r\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button',\r\n template: `\r\n @if (props.type === 'a') {\r\n <a\r\n nz-button\r\n [formlyAttributes]=\"field\"\r\n [attr.title]=\"props['title']\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['nzType'] ?? 'link'\"\r\n [ngClass]=\"props['ngClass']\"\r\n >\r\n @if (props['beforeIcon']) {\r\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\r\n }\r\n @if (hasText) {\r\n <ng-container\r\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\r\n >\r\n {{ text }}\r\n </ng-container>\r\n }\r\n @if (props['afterIcon']) {\r\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\r\n }\r\n </a>\r\n } @else {\r\n <button\r\n [formlyAttributes]=\"field\"\r\n [attr.type]=\"field.type\"\r\n [attr.form]=\"props['formName']\"\r\n [attr.title]=\"props['title']\"\r\n [disabled]=\"props['disabled'] || formControl.disabled!!\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['nzType'] ?? null\"\r\n [ngClass]=\"props['ngClass']\"\r\n nz-button\r\n >\r\n @if (props['beforeIcon']) {\r\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\r\n }\r\n @if (hasText) {\r\n <ng-container\r\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\r\n >\r\n {{ text }}\r\n </ng-container>\r\n }\r\n @if (props['afterIcon']) {\r\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\r\n }\r\n </button>\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n override defaultOptions = {\r\n props: {\r\n ghost: false,\r\n loading: false,\r\n block: false,\r\n size: 'default' as const,\r\n danger: false\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get hasText() {\r\n return hasTplNameValue(this.props, 'text');\r\n }\r\n\r\n get text() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'text');\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\n\r\nimport { FormlyFieldButton } from './button.type';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButton],\r\n imports: [\r\n CommonModule,\r\n NzOutletModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button',\r\n component: FormlyFieldButton\r\n },\r\n {\r\n name: 'submit',\r\n extends: 'button'\r\n },\r\n {\r\n name: 'reset',\r\n extends: 'button'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":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,EAAE,OAAO;AACb,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBA1BhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
@@ -31,49 +31,49 @@ class FormlyWrapperCard extends FieldWrapper {
31
31
  get nzActions() {
32
32
  return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
33
33
  }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
36
- <nz-card
37
- [nzActions]="nzActions"
38
- [formlyAttributes]="field"
39
- [ngClass]="props['ngClass']"
40
- [nzBodyStyle]="props['bodyStyle'] ?? null"
41
- [nzSize]="props['size']!"
42
- [nzBorderless]="props['borderless']!!"
43
- [nzCover]="nzCover"
44
- [nzExtra]="nzExtra"
45
- [nzHoverable]="props['hoverable']!!"
46
- [nzLoading]="props['loading']!!"
47
- [nzTitle]="nzTitle"
48
- [nzBordered]="props['bordered']!!"
49
- [nzType]="props['type'] ?? null"
50
- >
51
- <ng-container #fieldComponent></ng-container>
52
- </nz-card>
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
36
+ <nz-card
37
+ [nzActions]="nzActions"
38
+ [formlyAttributes]="field"
39
+ [ngClass]="props['ngClass']"
40
+ [nzBodyStyle]="props['bodyStyle'] ?? null"
41
+ [nzSize]="props['size']!"
42
+ [nzBorderless]="props['borderless']!!"
43
+ [nzCover]="nzCover"
44
+ [nzExtra]="nzExtra"
45
+ [nzHoverable]="props['hoverable']!!"
46
+ [nzLoading]="props['loading']!!"
47
+ [nzTitle]="nzTitle"
48
+ [nzBordered]="props['bordered']!!"
49
+ [nzType]="props['type'] ?? null"
50
+ >
51
+ <ng-container #fieldComponent></ng-container>
52
+ </nz-card>
53
53
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperCard, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperCard, decorators: [{
56
56
  type: Component,
57
57
  args: [{
58
58
  selector: 'formly-wrapper-card',
59
- template: `
60
- <nz-card
61
- [nzActions]="nzActions"
62
- [formlyAttributes]="field"
63
- [ngClass]="props['ngClass']"
64
- [nzBodyStyle]="props['bodyStyle'] ?? null"
65
- [nzSize]="props['size']!"
66
- [nzBorderless]="props['borderless']!!"
67
- [nzCover]="nzCover"
68
- [nzExtra]="nzExtra"
69
- [nzHoverable]="props['hoverable']!!"
70
- [nzLoading]="props['loading']!!"
71
- [nzTitle]="nzTitle"
72
- [nzBordered]="props['bordered']!!"
73
- [nzType]="props['type'] ?? null"
74
- >
75
- <ng-container #fieldComponent></ng-container>
76
- </nz-card>
59
+ template: `
60
+ <nz-card
61
+ [nzActions]="nzActions"
62
+ [formlyAttributes]="field"
63
+ [ngClass]="props['ngClass']"
64
+ [nzBodyStyle]="props['bodyStyle'] ?? null"
65
+ [nzSize]="props['size']!"
66
+ [nzBorderless]="props['borderless']!!"
67
+ [nzCover]="nzCover"
68
+ [nzExtra]="nzExtra"
69
+ [nzHoverable]="props['hoverable']!!"
70
+ [nzLoading]="props['loading']!!"
71
+ [nzTitle]="nzTitle"
72
+ [nzBordered]="props['bordered']!!"
73
+ [nzType]="props['type'] ?? null"
74
+ >
75
+ <ng-container #fieldComponent></ng-container>
76
+ </nz-card>
77
77
  `,
78
78
  changeDetection: ChangeDetectionStrategy.OnPush
79
79
  }]
@@ -82,10 +82,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
82
82
  }] }] });
83
83
 
84
84
  class FormlyNzCardWrapperModule {
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
86
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
86
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
87
87
  NzCardModule, i4.FormlyModule] }); }
88
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
88
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
89
89
  NzCardModule,
90
90
  FormlyModule.forChild({
91
91
  wrappers: [
@@ -96,7 +96,7 @@ class FormlyNzCardWrapperModule {
96
96
  ]
97
97
  })] }); }
98
98
  }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
100
100
  type: NgModule,
101
101
  args: [{
102
102
  declarations: [FormlyWrapperCard],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-card-wrapper.mjs","sources":["../../../../packages/formlyantd/card-wrapper/src/card.wrapper.ts","../../../../packages/formlyantd/card-wrapper/src/card-wrapper.module.ts","../../../../packages/formlyantd/card-wrapper/src/ngx-formly-zorro-antd-card-wrapper.ts"],"sourcesContent":["import { Component, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from './card-wrapper.props';\n\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\n override defaultOptions = {\n props: {\n bordered: true\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperCard } from './card.wrapper';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\n@NgModule({\n declarations: [FormlyWrapperCard],\n imports: [\n CommonModule,\n NzCardModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'card-wrapper',\n component: FormlyWrapperCard\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAqCM,MAAO,iBAAkB,SAAQ,YAAmD,CAAA;AAOxF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AANxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,IAAI,EAAE,CAAC;KAC9E;8GAtBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IA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-wrapper.mjs","sources":["../../../../packages/formlyantd/card-wrapper/src/card.wrapper.ts","../../../../packages/formlyantd/card-wrapper/src/card-wrapper.module.ts","../../../../packages/formlyantd/card-wrapper/src/ngx-formly-zorro-antd-card-wrapper.ts"],"sourcesContent":["import { Component, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\nimport {\r\n FormlyBoxTemplates,\r\n resolveTplName,\r\n resolveTplNameArray\r\n} from 'ngx-formly-zorro-antd/common';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { CardWrapperProps } from './card-wrapper.props';\r\n\r\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\r\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\r\n}\r\n\r\n@Component({\r\n selector: 'formly-wrapper-card',\r\n template: `\r\n <nz-card\r\n [nzActions]=\"nzActions\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n [nzCover]=\"nzCover\"\r\n [nzExtra]=\"nzExtra\"\r\n [nzHoverable]=\"props['hoverable']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzTitle]=\"nzTitle\"\r\n [nzBordered]=\"props['bordered']!!\"\r\n [nzType]=\"props['type'] ?? null\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\r\n override defaultOptions = {\r\n props: {\r\n bordered: true\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzTitle() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'title');\r\n }\r\n get nzCover() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\r\n }\r\n get nzExtra() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\r\n }\r\n get nzActions() {\r\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\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\n\r\nimport { FormlyWrapperCard } from './card.wrapper';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperCard],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'card-wrapper',\r\n component: FormlyWrapperCard\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCardWrapperModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAqCM,MAAO,iBAAkB,SAAQ,YAAmD,CAAA;AAOxF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AANxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CA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