ngx-formly-zorro-antd 17.1.0 → 17.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/package.json +3 -0
  3. package/button/package.json +3 -0
  4. package/button-group/package.json +3 -0
  5. package/card/card.module.d.ts +1 -1
  6. package/card/package.json +3 -0
  7. package/card-wrapper/package.json +3 -0
  8. package/cascader/package.json +3 -0
  9. package/checkbox/package.json +3 -0
  10. package/common/package.json +3 -0
  11. package/datepicker/package.json +3 -0
  12. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  13. package/esm2022/autocomplete/public_api.mjs +1 -1
  14. package/esm2022/button/button.module.mjs +1 -1
  15. package/esm2022/button/button.type.mjs +123 -123
  16. package/esm2022/button/public_api.mjs +1 -1
  17. package/esm2022/button-group/button-group.module.mjs +1 -1
  18. package/esm2022/button-group/button-group.type.mjs +67 -67
  19. package/esm2022/button-group/public_api.mjs +1 -1
  20. package/esm2022/card/card.module.mjs +3 -4
  21. package/esm2022/card/card.type.mjs +51 -51
  22. package/esm2022/card/public_api.mjs +1 -1
  23. package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
  24. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  25. package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
  26. package/esm2022/card-wrapper/public_api.mjs +1 -1
  27. package/esm2022/cascader/cascader.module.mjs +1 -1
  28. package/esm2022/cascader/cascader.type.mjs +65 -65
  29. package/esm2022/cascader/public_api.mjs +1 -1
  30. package/esm2022/checkbox/checkbox.module.mjs +1 -1
  31. package/esm2022/checkbox/checkbox.type.mjs +39 -39
  32. package/esm2022/checkbox/public_api.mjs +1 -1
  33. package/esm2022/common/common.module.mjs +1 -1
  34. package/esm2022/common/formly-box-templates.directive.mjs +1 -1
  35. package/esm2022/common/formly-utils.mjs +1 -1
  36. package/esm2022/common/interface.mjs +1 -1
  37. package/esm2022/common/public_api.mjs +1 -1
  38. package/esm2022/datepicker/datepicker.module.mjs +1 -1
  39. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  40. package/esm2022/datepicker/datepicker.type.mjs +149 -149
  41. package/esm2022/datepicker/public_api.mjs +1 -1
  42. package/esm2022/extension/public_api.mjs +1 -1
  43. package/esm2022/extension/value-changes-extension.mjs +1 -1
  44. package/esm2022/form-field/form-field.module.mjs +1 -1
  45. package/esm2022/form-field/form-field.props.mjs +1 -1
  46. package/esm2022/form-field/form-field.wrapper.mjs +159 -125
  47. package/esm2022/form-field/public_api.mjs +1 -1
  48. package/esm2022/grid/grid.module.mjs +1 -1
  49. package/esm2022/grid/grid.props.mjs +1 -1
  50. package/esm2022/grid/grid.type.mjs +59 -59
  51. package/esm2022/grid/public_api.mjs +1 -1
  52. package/esm2022/index.mjs +1 -1
  53. package/esm2022/input/input.module.mjs +1 -1
  54. package/esm2022/input/input.props.mjs +1 -1
  55. package/esm2022/input/input.type.mjs +275 -275
  56. package/esm2022/input/public_api.mjs +1 -1
  57. package/esm2022/input-group/input-group.module.mjs +1 -1
  58. package/esm2022/input-group/input-group.props.mjs +1 -1
  59. package/esm2022/input-group/input-group.type.mjs +39 -39
  60. package/esm2022/input-group/public_api.mjs +1 -1
  61. package/esm2022/input-number/input-number.module.mjs +1 -1
  62. package/esm2022/input-number/input-number.props.mjs +1 -1
  63. package/esm2022/input-number/input-number.type.mjs +89 -89
  64. package/esm2022/input-number/public_api.mjs +1 -1
  65. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  66. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
  67. package/esm2022/radio/public_api.mjs +1 -1
  68. package/esm2022/radio/radio.module.mjs +1 -1
  69. package/esm2022/radio/radio.type.mjs +81 -81
  70. package/esm2022/rate/public_api.mjs +1 -1
  71. package/esm2022/rate/rate.module.mjs +1 -1
  72. package/esm2022/rate/rate.type.mjs +33 -33
  73. package/esm2022/ref-template/public_api.mjs +1 -1
  74. package/esm2022/ref-template/ref-template.module.mjs +1 -1
  75. package/esm2022/ref-template/ref-template.type.mjs +9 -9
  76. package/esm2022/select/public_api.mjs +1 -1
  77. package/esm2022/select/select.module.mjs +1 -1
  78. package/esm2022/select/select.props.mjs +1 -1
  79. package/esm2022/select/select.type.mjs +123 -123
  80. package/esm2022/slider/public_api.mjs +1 -1
  81. package/esm2022/slider/slider.module.mjs +1 -1
  82. package/esm2022/slider/slider.type.mjs +33 -33
  83. package/esm2022/space/public_api.mjs +1 -1
  84. package/esm2022/space/space.module.mjs +1 -1
  85. package/esm2022/space/space.type.mjs +27 -27
  86. package/esm2022/switch/public_api.mjs +1 -1
  87. package/esm2022/switch/switch.module.mjs +1 -1
  88. package/esm2022/switch/switch.type.mjs +25 -25
  89. package/esm2022/tabs/public_api.mjs +1 -1
  90. package/esm2022/tabs/tabs.module.mjs +1 -1
  91. package/esm2022/tabs/tabs.props.mjs +1 -1
  92. package/esm2022/tabs/tabs.wrapper.mjs +79 -79
  93. package/esm2022/text-value/public_api.mjs +1 -1
  94. package/esm2022/text-value/text-value.module.mjs +1 -1
  95. package/esm2022/text-value/text-value.type.mjs +19 -19
  96. package/esm2022/textarea/public_api.mjs +1 -1
  97. package/esm2022/textarea/textarea.module.mjs +1 -1
  98. package/esm2022/textarea/textarea.type.mjs +113 -113
  99. package/esm2022/timepicker/public_api.mjs +1 -1
  100. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  101. package/esm2022/timepicker/timepicker.type.mjs +61 -61
  102. package/esm2022/transfer/public_api.mjs +1 -1
  103. package/esm2022/transfer/transfer.component.mjs +49 -49
  104. package/esm2022/transfer/transfer.module.mjs +1 -1
  105. package/esm2022/transfer/transfer.type.mjs +47 -47
  106. package/esm2022/tree-select/public_api.mjs +1 -1
  107. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  108. package/esm2022/tree-select/tree-select.type.mjs +69 -69
  109. package/esm2022/upload/public_api.mjs +1 -1
  110. package/esm2022/upload/upload.component.mjs +143 -143
  111. package/esm2022/upload/upload.module.mjs +1 -1
  112. package/esm2022/upload/upload.props.mjs +1 -1
  113. package/esm2022/upload/upload.type.mjs +83 -83
  114. package/extension/package.json +3 -0
  115. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
  116. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  117. package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
  118. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  119. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
  120. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  121. package/fesm2022/ngx-formly-zorro-antd-card.mjs +52 -53
  122. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  123. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
  124. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
  126. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  127. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  128. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
  129. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  130. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  131. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +158 -124
  132. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
  134. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  135. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
  136. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  137. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
  138. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  139. package/fesm2022/ngx-formly-zorro-antd-input.mjs +274 -274
  140. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  141. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
  142. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  143. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
  144. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  145. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
  146. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  147. package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
  148. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  149. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
  150. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  151. package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
  152. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  153. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
  154. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  155. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
  156. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  157. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +18 -18
  158. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  159. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
  160. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  161. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
  162. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  163. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
  164. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  165. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
  166. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  167. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
  168. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  169. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  170. package/form-field/form-field.props.d.ts +16 -0
  171. package/form-field/form-field.wrapper.d.ts +4 -0
  172. package/form-field/package.json +3 -0
  173. package/grid/package.json +3 -0
  174. package/input/package.json +3 -0
  175. package/input-group/package.json +3 -0
  176. package/input-number/package.json +3 -0
  177. package/package.json +12 -12
  178. package/radio/package.json +3 -0
  179. package/rate/package.json +3 -0
  180. package/ref-template/package.json +3 -0
  181. package/select/package.json +3 -0
  182. package/slider/package.json +3 -0
  183. package/space/package.json +3 -0
  184. package/switch/package.json +3 -0
  185. package/tabs/package.json +3 -0
  186. package/text-value/package.json +3 -0
  187. package/textarea/package.json +3 -0
  188. package/timepicker/package.json +3 -0
  189. package/transfer/package.json +3 -0
  190. package/tree-select/package.json +3 -0
  191. package/upload/package.json +3 -0
@@ -36,134 +36,134 @@ class FormlyFieldButton extends FieldType {
36
36
  return resolveTplName(this.props, this.fieldTemplates, 'text');
37
37
  }
38
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
- }
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
+ }
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
102
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", 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
  }]
@@ -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';\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":";;;;;;;;;;;;;;;;;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,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;KAChE;8GArBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,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A,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAvB7B,YAAY;YACZ,cAAc;YACd,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,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;;;;"}
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,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;KAChE;8GArBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QA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yWrapperCard extends FieldWrapper {
32
32
  return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
33
33
  }
34
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>
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>
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
55
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", 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
  }]
@@ -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';\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,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O,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAhBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
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,IA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E,cAAc;AACpB,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAhBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -38,62 +38,62 @@ class FormlyFieldCard extends FieldType {
38
38
  return resolveTplName(this.props, this.fieldTemplates, 'content');
39
39
  }
40
40
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
42
- <nz-card
43
- [nzActions]="nzActions"
44
- [formlyAttributes]="field"
45
- [ngClass]="props['ngClass']"
46
- [nzBodyStyle]="props['bodyStyle'] ?? null"
47
- [nzSize]="props['size']!"
48
- [nzBorderless]="props['borderless']!!"
49
- [nzCover]="nzCover"
50
- [nzExtra]="nzExtra"
51
- [nzHoverable]="props['hoverable']!!"
52
- [nzLoading]="props['loading']!!"
53
- [nzTitle]="nzTitle"
54
- [nzBordered]="props['bordered']!!"
55
- [nzType]="props['type'] ?? null"
56
- >
57
- @for (g of field.fieldGroup; track g.id) {
58
- <formly-field [field]="g"></formly-field>
59
- }
60
- <ng-container
61
- *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
62
- >
63
- {{ nzContent }}
64
- </ng-container>
65
- </nz-card>
41
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
42
+ <nz-card
43
+ [nzActions]="nzActions"
44
+ [formlyAttributes]="field"
45
+ [ngClass]="props['ngClass']"
46
+ [nzBodyStyle]="props['bodyStyle'] ?? null"
47
+ [nzSize]="props['size']!"
48
+ [nzBorderless]="props['borderless']!!"
49
+ [nzCover]="nzCover"
50
+ [nzExtra]="nzExtra"
51
+ [nzHoverable]="props['hoverable']!!"
52
+ [nzLoading]="props['loading']!!"
53
+ [nzTitle]="nzTitle"
54
+ [nzBordered]="props['bordered']!!"
55
+ [nzType]="props['type'] ?? null"
56
+ >
57
+ @for (g of field.fieldGroup; track g.id) {
58
+ <formly-field [field]="g"></formly-field>
59
+ }
60
+ <ng-container
61
+ *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
62
+ >
63
+ {{ nzContent }}
64
+ </ng-container>
65
+ </nz-card>
66
66
  `, 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.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i5.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
67
67
  }
68
68
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCard, decorators: [{
69
69
  type: Component,
70
70
  args: [{
71
71
  selector: 'formly-field-card',
72
- template: `
73
- <nz-card
74
- [nzActions]="nzActions"
75
- [formlyAttributes]="field"
76
- [ngClass]="props['ngClass']"
77
- [nzBodyStyle]="props['bodyStyle'] ?? null"
78
- [nzSize]="props['size']!"
79
- [nzBorderless]="props['borderless']!!"
80
- [nzCover]="nzCover"
81
- [nzExtra]="nzExtra"
82
- [nzHoverable]="props['hoverable']!!"
83
- [nzLoading]="props['loading']!!"
84
- [nzTitle]="nzTitle"
85
- [nzBordered]="props['bordered']!!"
86
- [nzType]="props['type'] ?? null"
87
- >
88
- @for (g of field.fieldGroup; track g.id) {
89
- <formly-field [field]="g"></formly-field>
90
- }
91
- <ng-container
92
- *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
93
- >
94
- {{ nzContent }}
95
- </ng-container>
96
- </nz-card>
72
+ template: `
73
+ <nz-card
74
+ [nzActions]="nzActions"
75
+ [formlyAttributes]="field"
76
+ [ngClass]="props['ngClass']"
77
+ [nzBodyStyle]="props['bodyStyle'] ?? null"
78
+ [nzSize]="props['size']!"
79
+ [nzBorderless]="props['borderless']!!"
80
+ [nzCover]="nzCover"
81
+ [nzExtra]="nzExtra"
82
+ [nzHoverable]="props['hoverable']!!"
83
+ [nzLoading]="props['loading']!!"
84
+ [nzTitle]="nzTitle"
85
+ [nzBordered]="props['bordered']!!"
86
+ [nzType]="props['type'] ?? null"
87
+ >
88
+ @for (g of field.fieldGroup; track g.id) {
89
+ <formly-field [field]="g"></formly-field>
90
+ }
91
+ <ng-container
92
+ *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
93
+ >
94
+ {{ nzContent }}
95
+ </ng-container>
96
+ </nz-card>
97
97
  `,
98
98
  changeDetection: ChangeDetectionStrategy.OnPush
99
99
  }]
@@ -106,7 +106,7 @@ class FormlyNzCardModule {
106
106
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
107
107
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
108
108
  NzCardModule,
109
- NzOutletModule, i5.FormlyModule], exports: [FormlyFieldCard] }); }
109
+ NzOutletModule, i5.FormlyModule] }); }
110
110
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
111
111
  NzCardModule,
112
112
  NzOutletModule,
@@ -135,8 +135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
135
135
  }
136
136
  ]
137
137
  })
138
- ],
139
- exports: [COMPONENT]
138
+ ]
140
139
  }]
141
140
  }] });
142
141
 
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.type.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } 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 'ngx-formly-zorro-antd/card-wrapper';\r\n\r\ninterface CardProps extends CardWrapperProps {\r\n /**\r\n * 内容\r\n */\r\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\r\n contentName?: string;\r\n}\r\n\r\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\r\n type: 'card' | Type<FormlyFieldCard>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-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 @for (g of field.fieldGroup; track g.id) {\r\n <formly-field [field]=\"g\"></formly-field>\r\n }\r\n <ng-container\r\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\r\n >\r\n {{ nzContent }}\r\n </ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\r\n override defaultOptions = {\r\n props: {\r\n bordered: true,\r\n type: 'button'\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 get nzContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'content');\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\nimport { FormlyFieldCard } from './card.type';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\nconst COMPONENT = FormlyFieldCard;\r\n\r\n@NgModule({\r\n declarations: [COMPONENT],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n NzOutletModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'card',\r\n component: COMPONENT\r\n }\r\n ]\r\n })\r\n ],\r\n exports: [COMPONENT]\r\n})\r\nexport class FormlyNzCardModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAoDM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAQxE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAPxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,QAAQ;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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A,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAd3B,YAAY;YACZ,YAAY;YACZ,cAAc;YACd,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,SAAS;AACrB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,SAAS,CAAC;AACzB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,SAAS;AACrB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,SAAS,CAAC;AACrB,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.type.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } 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 'ngx-formly-zorro-antd/card-wrapper';\n\ninterface CardProps extends CardWrapperProps {\n /**\n * 内容\n */\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\n contentName?: string;\n}\n\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\n type: 'card' | Type<FormlyFieldCard>;\n}\n\n@Component({\n selector: 'formly-field-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 @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n <ng-container\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\n >\n {{ nzContent }}\n </ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\n override defaultOptions = {\n props: {\n bordered: true,\n type: 'button'\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 get nzContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'content');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { FormlyFieldCard } from './card.type';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\nconst COMPONENT = FormlyFieldCard;\n\n@NgModule({\n declarations: [COMPONENT],\n imports: [\n CommonModule,\n NzCardModule,\n NzOutletModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'card',\n component: COMPONENT\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAoDM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAQxE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAPxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,QAAQ;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;AACD,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;KACnE;8GA1BU,eAA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