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
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-space.mjs","sources":["../../../../packages/formlyantd/space/src/space.type.ts","../../../../packages/formlyantd/space/src/space.module.ts","../../../../packages/formlyantd/space/src/ngx-formly-zorro-antd-space.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type, TemplateRef, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';\n\ninterface SpaceProps extends FormlyFieldProps {\n /**\n * 间距大小\n * @default small\n */\n size?: NzSpaceSize;\n /**\n * 间距方向\n * @default horizontal\n */\n direction?: NzSpaceDirection;\n /**\n * 对齐方式\n */\n align?: NzSpaceAlign;\n /**\n * 是否自动换行,仅在 horizontal 时有效\n */\n wrap?: boolean;\n /**\n * 设置分隔符\n */\n split?: TemplateRef<{\n $implicit: number;\n }> | null;\n splitName?: string;\n}\n\nexport interface FormlySpaceFieldConfig extends NzFormlyFieldConfig<SpaceProps> {\n type: 'space' | Type<FormlyFieldSpace>;\n}\n\n@Component({\n selector: 'formly-field-space',\n template: `\n <nz-space\n [nzSize]=\"props.size!\"\n [nzAlign]=\"props.align\"\n [nzDirection]=\"props.direction!\"\n [nzSplit]=\"nzSplit ?? null\"\n [nzWrap]=\"props.wrap!!\"\n [formlyAttributes]=\"field\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field *nzSpaceItem [field]=\"g\"></formly-field>\n }\n </nz-space>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSpace extends FieldType<FieldTypeConfig<SpaceProps>> {\n override defaultOptions = {\n props: {\n size: 'small' as const,\n direction: 'horizontal' as const,\n wrap: false\n }\n };\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n get nzSplit() {\n return resolveTplName(this.props, this.fieldTemplates, 'split');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyFieldSpace } from './space.type';\n\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\n\n@NgModule({\n declarations: [FormlyFieldSpace],\n imports: [\n CommonModule,\n NzSpaceModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'space',\n component: FormlyFieldSpace\n }\n ]\n })\n ]\n})\nexport class FormlyNzSpaceModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAyDM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAQ1E,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,IAAI,EAAE,OAAgB;AACtB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,IAAI,EAAE,KAAK;AACZ,aAAA;SACF,CAAC;KAGD;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;8GAbU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAhBjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IA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,CAdf,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAE7B,YAAY;YACZ,aAAa,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAWJ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAZ5B,YAAY;YACZ,aAAa;YACb,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,SAAS,EAAE,gBAAgB;AAC5B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAf/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;AAC5B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-space.mjs","sources":["../../../../packages/formlyantd/space/src/space.type.ts","../../../../packages/formlyantd/space/src/space.module.ts","../../../../packages/formlyantd/space/src/ngx-formly-zorro-antd-space.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type, TemplateRef, Optional } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';\r\n\r\ninterface SpaceProps extends FormlyFieldProps {\r\n /**\r\n * 间距大小\r\n * @default small\r\n */\r\n size?: NzSpaceSize;\r\n /**\r\n * 间距方向\r\n * @default horizontal\r\n */\r\n direction?: NzSpaceDirection;\r\n /**\r\n * 对齐方式\r\n */\r\n align?: NzSpaceAlign;\r\n /**\r\n * 是否自动换行,仅在 horizontal 时有效\r\n */\r\n wrap?: boolean;\r\n /**\r\n * 设置分隔符\r\n */\r\n split?: TemplateRef<{\r\n $implicit: number;\r\n }> | null;\r\n splitName?: string;\r\n}\r\n\r\nexport interface FormlySpaceFieldConfig extends NzFormlyFieldConfig<SpaceProps> {\r\n type: 'space' | Type<FormlyFieldSpace>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-space',\r\n template: `\r\n <nz-space\r\n [nzSize]=\"props.size!\"\r\n [nzAlign]=\"props.align\"\r\n [nzDirection]=\"props.direction!\"\r\n [nzSplit]=\"nzSplit ?? null\"\r\n [nzWrap]=\"props.wrap!!\"\r\n [formlyAttributes]=\"field\"\r\n >\r\n @for (g of field.fieldGroup; track g.id) {\r\n <formly-field *nzSpaceItem [field]=\"g\"></formly-field>\r\n }\r\n </nz-space>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldSpace extends FieldType<FieldTypeConfig<SpaceProps>> {\r\n override defaultOptions = {\r\n props: {\r\n size: 'small' as const,\r\n direction: 'horizontal' as const,\r\n wrap: false\r\n }\r\n };\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n get nzSplit() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'split');\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 { FormlyFieldSpace } from './space.type';\r\n\r\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldSpace],\r\n imports: [\r\n CommonModule,\r\n NzSpaceModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'space',\r\n component: FormlyFieldSpace\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzSpaceModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAyDM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAQ1E,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,IAAI,EAAE,OAAgB;AACtB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,IAAI,EAAE,KAAK;AACZ,aAAA;SACF,CAAC;KAGD;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;8GAbU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAhBjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,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AAgB,CAAA,EAAA,OAAA,EAAA,CAE7B,YAAY;YACZ,aAAa,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAWJ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAZ5B,YAAY;YACZ,aAAa;YACb,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,SAAS,EAAE,gBAAgB;AAC5B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAf/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;AAC5B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
@@ -20,49 +20,49 @@ class FormlyFieldSwitch extends FieldType {
20
20
  }
21
21
  };
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
24
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldSwitch, selector: "formly-field-switch", usesInheritance: true, ngImport: i0, template: `
25
- <nz-switch
26
- [formControl]="formControl"
27
- [formlyAttributes]="field"
28
- [nzId]="id"
29
- [nzCheckedChildren]="props['checkedChildren'] ?? null"
30
- [nzUnCheckedChildren]="props['unCheckedChildren'] ?? null"
31
- [nzSize]="props['size']!"
32
- [nzLoading]="props['loading']!!"
33
- [nzControl]="props['control']!!"
34
- (ngModelChange)="props.change && props.change(field, $event)"
35
- ></nz-switch>
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
24
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldSwitch, selector: "formly-field-switch", usesInheritance: true, ngImport: i0, template: `
25
+ <nz-switch
26
+ [formControl]="formControl"
27
+ [formlyAttributes]="field"
28
+ [nzId]="id"
29
+ [nzCheckedChildren]="props['checkedChildren'] ?? null"
30
+ [nzUnCheckedChildren]="props['unCheckedChildren'] ?? null"
31
+ [nzSize]="props['size']!"
32
+ [nzLoading]="props['loading']!!"
33
+ [nzControl]="props['control']!!"
34
+ (ngModelChange)="props.change && props.change(field, $event)"
35
+ ></nz-switch>
36
36
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
37
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSwitch, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSwitch, decorators: [{
39
39
  type: Component,
40
40
  args: [{
41
41
  selector: 'formly-field-switch',
42
- template: `
43
- <nz-switch
44
- [formControl]="formControl"
45
- [formlyAttributes]="field"
46
- [nzId]="id"
47
- [nzCheckedChildren]="props['checkedChildren'] ?? null"
48
- [nzUnCheckedChildren]="props['unCheckedChildren'] ?? null"
49
- [nzSize]="props['size']!"
50
- [nzLoading]="props['loading']!!"
51
- [nzControl]="props['control']!!"
52
- (ngModelChange)="props.change && props.change(field, $event)"
53
- ></nz-switch>
42
+ template: `
43
+ <nz-switch
44
+ [formControl]="formControl"
45
+ [formlyAttributes]="field"
46
+ [nzId]="id"
47
+ [nzCheckedChildren]="props['checkedChildren'] ?? null"
48
+ [nzUnCheckedChildren]="props['unCheckedChildren'] ?? null"
49
+ [nzSize]="props['size']!"
50
+ [nzLoading]="props['loading']!!"
51
+ [nzControl]="props['control']!!"
52
+ (ngModelChange)="props.change && props.change(field, $event)"
53
+ ></nz-switch>
54
54
  `,
55
55
  changeDetection: ChangeDetectionStrategy.OnPush
56
56
  }]
57
57
  }] });
58
58
 
59
59
  class FormlyNzSwitchModule {
60
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
61
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSwitchModule, declarations: [FormlyFieldSwitch], imports: [CommonModule,
60
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
61
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSwitchModule, declarations: [FormlyFieldSwitch], imports: [CommonModule,
62
62
  ReactiveFormsModule,
63
63
  FormlyNzFormFieldModule,
64
64
  NzSwitchModule, i3.FormlyModule] }); }
65
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSwitchModule, imports: [CommonModule,
65
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSwitchModule, imports: [CommonModule,
66
66
  ReactiveFormsModule,
67
67
  FormlyNzFormFieldModule,
68
68
  NzSwitchModule,
@@ -76,7 +76,7 @@ class FormlyNzSwitchModule {
76
76
  ]
77
77
  })] }); }
78
78
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzSwitchModule, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSwitchModule, decorators: [{
80
80
  type: NgModule,
81
81
  args: [{
82
82
  declarations: [FormlyFieldSwitch],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-switch.mjs","sources":["../../../../packages/formlyantd/switch/src/switch.type.ts","../../../../packages/formlyantd/switch/src/switch.module.ts","../../../../packages/formlyantd/switch/src/ngx-formly-zorro-antd-switch.ts"],"sourcesContent":["import { Component, Type, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzSizeDSType } from 'ng-zorro-antd/core/types';\n\ninterface SwitchProps extends FormlyFieldProps {\n /**\n * 选中时的内容\n */\n checkedChildren?: string | TemplateRef<void> | null;\n\n /**\n * 非选中时的内容\n */\n unCheckedChildren?: string | TemplateRef<void> | null;\n\n /**\n * 开关大小\n */\n size?: NzSizeDSType;\n\n /**\n * 加载中的开关\n * @default false\n */\n loading?: boolean;\n\n /**\n * 是否完全由用户控制状态\n * @default false\n */\n control?: boolean;\n}\n\nexport interface FormlySwitchFieldConfig extends NzFormlyFieldConfig<SwitchProps> {\n type: 'switch' | Type<FormlyFieldSwitch>;\n}\n\n@Component({\n selector: 'formly-field-switch',\n template: `\n <nz-switch\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzId]=\"id\"\n [nzCheckedChildren]=\"props['checkedChildren'] ?? null\"\n [nzUnCheckedChildren]=\"props['unCheckedChildren'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzControl]=\"props['control']!!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n ></nz-switch>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n loading: false,\n control: false\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldSwitch } from './switch.type';\n\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\n\n@NgModule({\n declarations: [FormlyFieldSwitch],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzSwitchModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'switch',\n component: FormlyFieldSwitch,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzSwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAyDM,MAAO,iBAA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AA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAnBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-switch.mjs","sources":["../../../../packages/formlyantd/switch/src/switch.type.ts","../../../../packages/formlyantd/switch/src/switch.module.ts","../../../../packages/formlyantd/switch/src/ngx-formly-zorro-antd-switch.ts"],"sourcesContent":["import { Component, Type, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzSizeDSType } from 'ng-zorro-antd/core/types';\r\n\r\ninterface SwitchProps extends FormlyFieldProps {\r\n /**\r\n * 选中时的内容\r\n */\r\n checkedChildren?: string | TemplateRef<void> | null;\r\n\r\n /**\r\n * 非选中时的内容\r\n */\r\n unCheckedChildren?: string | TemplateRef<void> | null;\r\n\r\n /**\r\n * 开关大小\r\n */\r\n size?: NzSizeDSType;\r\n\r\n /**\r\n * 加载中的开关\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 是否完全由用户控制状态\r\n * @default false\r\n */\r\n control?: boolean;\r\n}\r\n\r\nexport interface FormlySwitchFieldConfig extends NzFormlyFieldConfig<SwitchProps> {\r\n type: 'switch' | Type<FormlyFieldSwitch>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-switch',\r\n template: `\r\n <nz-switch\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzId]=\"id\"\r\n [nzCheckedChildren]=\"props['checkedChildren'] ?? null\"\r\n [nzUnCheckedChildren]=\"props['unCheckedChildren'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzControl]=\"props['control']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n ></nz-switch>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchProps>> {\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n loading: false,\r\n control: false\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldSwitch } from './switch.type';\r\n\r\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldSwitch],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzSwitchModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'switch',\r\n component: FormlyFieldSwitch,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzSwitchModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAyDM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAjB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,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAnBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -27,101 +27,101 @@ class FormlyWrapperTabs extends FieldWrapper {
27
27
  }
28
28
  };
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperTabs, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyWrapperTabs, selector: "formly-wrapper-tabs", usesInheritance: true, ngImport: i0, template: `<nz-tabset
32
- [(nzSelectedIndex)]="props['selectedIndex']"
33
- [nzAnimated]="props['animated']!"
34
- [nzSize]="props['size']!"
35
- [nzTabBarExtraContent]="props['tabBarExtraContent']"
36
- [nzTabBarStyle]="props['tabBarStyle'] ?? null"
37
- [nzTabPosition]="props['tabPosition']!"
38
- [nzType]="props['type']!"
39
- [nzTabBarGutter]="props['tabBarGutter']"
40
- [nzHideAll]="props['hideAll']!!"
41
- [nzLinkRouter]="props['linkRouter']!!"
42
- [nzLinkExact]="props['linkExact']!!"
43
- [nzCanDeactivate]="props['canDeactivate'] ?? null"
44
- [nzHideAdd]="props['hideAdd']!!"
45
- [nzAddIcon]="props['addIcon']!"
46
- (nzSelectedIndexChange)="
47
- props['selectedIndexChange'] && props['selectedIndexChange'](field, $event)
48
- "
49
- (nzSelectChange)="
50
- props['selectChange'] && props['selectChange'](field, $event.index, $event.tab)
51
- "
52
- (nzAdd)="props['onAdd'] && props['onAdd'](field)"
53
- (nzClose)="props['onClose'] && props['onClose'](field, $event.index)"
54
- >
55
- @for (tab of field.fieldGroup; track tab.id) {
56
- <nz-tab
57
- [nzTitle]="tab.props?.label || ''"
58
- [nzForceRender]="tab.props!['tab']?.forceRender"
59
- [nzDisabled]="tab.props!['tab']?.disabled"
60
- (nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click(field)"
61
- (nzContextmenu)="
62
- tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)
63
- "
64
- (nzSelect)="tab.props!['tab']?.select && tab.props!['tab']?.select(field)"
65
- (nzDeselect)="tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)"
66
- >
67
- <formly-field [field]="tab"></formly-field>
68
- </nz-tab>
69
- }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperTabs, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyWrapperTabs, selector: "formly-wrapper-tabs", usesInheritance: true, ngImport: i0, template: `<nz-tabset
32
+ [(nzSelectedIndex)]="props['selectedIndex']"
33
+ [nzAnimated]="props['animated']!"
34
+ [nzSize]="props['size']!"
35
+ [nzTabBarExtraContent]="props['tabBarExtraContent']"
36
+ [nzTabBarStyle]="props['tabBarStyle'] ?? null"
37
+ [nzTabPosition]="props['tabPosition']!"
38
+ [nzType]="props['type']!"
39
+ [nzTabBarGutter]="props['tabBarGutter']"
40
+ [nzHideAll]="props['hideAll']!!"
41
+ [nzLinkRouter]="props['linkRouter']!!"
42
+ [nzLinkExact]="props['linkExact']!!"
43
+ [nzCanDeactivate]="props['canDeactivate'] ?? null"
44
+ [nzHideAdd]="props['hideAdd']!!"
45
+ [nzAddIcon]="props['addIcon']!"
46
+ (nzSelectedIndexChange)="
47
+ props['selectedIndexChange'] && props['selectedIndexChange'](field, $event)
48
+ "
49
+ (nzSelectChange)="
50
+ props['selectChange'] && props['selectChange'](field, $event.index, $event.tab)
51
+ "
52
+ (nzAdd)="props['onAdd'] && props['onAdd'](field)"
53
+ (nzClose)="props['onClose'] && props['onClose'](field, $event.index)"
54
+ >
55
+ @for (tab of field.fieldGroup; track tab.id) {
56
+ <nz-tab
57
+ [nzTitle]="tab.props?.label || ''"
58
+ [nzForceRender]="tab.props!['tab']?.forceRender"
59
+ [nzDisabled]="tab.props!['tab']?.disabled"
60
+ (nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click(field)"
61
+ (nzContextmenu)="
62
+ tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)
63
+ "
64
+ (nzSelect)="tab.props!['tab']?.select && tab.props!['tab']?.select(field)"
65
+ (nzDeselect)="tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)"
66
+ >
67
+ <formly-field [field]="tab"></formly-field>
68
+ </nz-tab>
69
+ }
70
70
  </nz-tabset>`, isInline: true, dependencies: [{ kind: "component", type: i1.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperTabs, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperTabs, decorators: [{
73
73
  type: Component,
74
74
  args: [{
75
75
  selector: 'formly-wrapper-tabs',
76
- template: `<nz-tabset
77
- [(nzSelectedIndex)]="props['selectedIndex']"
78
- [nzAnimated]="props['animated']!"
79
- [nzSize]="props['size']!"
80
- [nzTabBarExtraContent]="props['tabBarExtraContent']"
81
- [nzTabBarStyle]="props['tabBarStyle'] ?? null"
82
- [nzTabPosition]="props['tabPosition']!"
83
- [nzType]="props['type']!"
84
- [nzTabBarGutter]="props['tabBarGutter']"
85
- [nzHideAll]="props['hideAll']!!"
86
- [nzLinkRouter]="props['linkRouter']!!"
87
- [nzLinkExact]="props['linkExact']!!"
88
- [nzCanDeactivate]="props['canDeactivate'] ?? null"
89
- [nzHideAdd]="props['hideAdd']!!"
90
- [nzAddIcon]="props['addIcon']!"
91
- (nzSelectedIndexChange)="
92
- props['selectedIndexChange'] && props['selectedIndexChange'](field, $event)
93
- "
94
- (nzSelectChange)="
95
- props['selectChange'] && props['selectChange'](field, $event.index, $event.tab)
96
- "
97
- (nzAdd)="props['onAdd'] && props['onAdd'](field)"
98
- (nzClose)="props['onClose'] && props['onClose'](field, $event.index)"
99
- >
100
- @for (tab of field.fieldGroup; track tab.id) {
101
- <nz-tab
102
- [nzTitle]="tab.props?.label || ''"
103
- [nzForceRender]="tab.props!['tab']?.forceRender"
104
- [nzDisabled]="tab.props!['tab']?.disabled"
105
- (nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click(field)"
106
- (nzContextmenu)="
107
- tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)
108
- "
109
- (nzSelect)="tab.props!['tab']?.select && tab.props!['tab']?.select(field)"
110
- (nzDeselect)="tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)"
111
- >
112
- <formly-field [field]="tab"></formly-field>
113
- </nz-tab>
114
- }
76
+ template: `<nz-tabset
77
+ [(nzSelectedIndex)]="props['selectedIndex']"
78
+ [nzAnimated]="props['animated']!"
79
+ [nzSize]="props['size']!"
80
+ [nzTabBarExtraContent]="props['tabBarExtraContent']"
81
+ [nzTabBarStyle]="props['tabBarStyle'] ?? null"
82
+ [nzTabPosition]="props['tabPosition']!"
83
+ [nzType]="props['type']!"
84
+ [nzTabBarGutter]="props['tabBarGutter']"
85
+ [nzHideAll]="props['hideAll']!!"
86
+ [nzLinkRouter]="props['linkRouter']!!"
87
+ [nzLinkExact]="props['linkExact']!!"
88
+ [nzCanDeactivate]="props['canDeactivate'] ?? null"
89
+ [nzHideAdd]="props['hideAdd']!!"
90
+ [nzAddIcon]="props['addIcon']!"
91
+ (nzSelectedIndexChange)="
92
+ props['selectedIndexChange'] && props['selectedIndexChange'](field, $event)
93
+ "
94
+ (nzSelectChange)="
95
+ props['selectChange'] && props['selectChange'](field, $event.index, $event.tab)
96
+ "
97
+ (nzAdd)="props['onAdd'] && props['onAdd'](field)"
98
+ (nzClose)="props['onClose'] && props['onClose'](field, $event.index)"
99
+ >
100
+ @for (tab of field.fieldGroup; track tab.id) {
101
+ <nz-tab
102
+ [nzTitle]="tab.props?.label || ''"
103
+ [nzForceRender]="tab.props!['tab']?.forceRender"
104
+ [nzDisabled]="tab.props!['tab']?.disabled"
105
+ (nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click(field)"
106
+ (nzContextmenu)="
107
+ tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)
108
+ "
109
+ (nzSelect)="tab.props!['tab']?.select && tab.props!['tab']?.select(field)"
110
+ (nzDeselect)="tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)"
111
+ >
112
+ <formly-field [field]="tab"></formly-field>
113
+ </nz-tab>
114
+ }
115
115
  </nz-tabset>`,
116
116
  changeDetection: ChangeDetectionStrategy.OnPush
117
117
  }]
118
118
  }] });
119
119
 
120
120
  class FormlyNzTabsModule {
121
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
122
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTabsModule, declarations: [FormlyWrapperTabs], imports: [CommonModule,
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
122
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTabsModule, declarations: [FormlyWrapperTabs], imports: [CommonModule,
123
123
  NzTabsModule, i2.FormlyModule] }); }
124
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTabsModule, imports: [CommonModule,
124
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTabsModule, imports: [CommonModule,
125
125
  NzTabsModule,
126
126
  FormlyModule.forChild({
127
127
  wrappers: [
@@ -132,7 +132,7 @@ class FormlyNzTabsModule {
132
132
  ]
133
133
  })] }); }
134
134
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTabsModule, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTabsModule, decorators: [{
136
136
  type: NgModule,
137
137
  args: [{
138
138
  declarations: [FormlyWrapperTabs],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-tabs.mjs","sources":["../../../../packages/formlyantd/tabs/src/tabs.wrapper.ts","../../../../packages/formlyantd/tabs/src/tabs.module.ts","../../../../packages/formlyantd/tabs/src/ngx-formly-zorro-antd-tabs.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { TabsProps } from './tabs.props';\n\nexport interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {\n wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-tabs',\n template: `<nz-tabset\n [(nzSelectedIndex)]=\"props['selectedIndex']\"\n [nzAnimated]=\"props['animated']!\"\n [nzSize]=\"props['size']!\"\n [nzTabBarExtraContent]=\"props['tabBarExtraContent']\"\n [nzTabBarStyle]=\"props['tabBarStyle'] ?? null\"\n [nzTabPosition]=\"props['tabPosition']!\"\n [nzType]=\"props['type']!\"\n [nzTabBarGutter]=\"props['tabBarGutter']\"\n [nzHideAll]=\"props['hideAll']!!\"\n [nzLinkRouter]=\"props['linkRouter']!!\"\n [nzLinkExact]=\"props['linkExact']!!\"\n [nzCanDeactivate]=\"props['canDeactivate'] ?? null\"\n [nzHideAdd]=\"props['hideAdd']!!\"\n [nzAddIcon]=\"props['addIcon']!\"\n (nzSelectedIndexChange)=\"\n props['selectedIndexChange'] && props['selectedIndexChange'](field, $event)\n \"\n (nzSelectChange)=\"\n props['selectChange'] && props['selectChange'](field, $event.index, $event.tab)\n \"\n (nzAdd)=\"props['onAdd'] && props['onAdd'](field)\"\n (nzClose)=\"props['onClose'] && props['onClose'](field, $event.index)\"\n >\n @for (tab of field.fieldGroup; track tab.id) {\n <nz-tab\n [nzTitle]=\"tab.props?.label || ''\"\n [nzForceRender]=\"tab.props!['tab']?.forceRender\"\n [nzDisabled]=\"tab.props!['tab']?.disabled\"\n (nzClick)=\"tab.props!['tab']?.click && tab.props!['tab']?.click(field)\"\n (nzContextmenu)=\"\n tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)\n \"\n (nzSelect)=\"tab.props!['tab']?.select && tab.props!['tab']?.select(field)\"\n (nzDeselect)=\"tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)\"\n >\n <formly-field [field]=\"tab\"></formly-field>\n </nz-tab>\n }\n </nz-tabset>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperTabs extends FieldWrapper<NzFormlyFieldConfig<TabsProps>> {\n override defaultOptions = {\n props: {\n animated: true,\n size: 'default' as const,\n type: 'line' as const,\n tabPosition: 'top' as const,\n hideAll: false,\n linkRouter: false,\n linkExact: true,\n centered: false,\n hideAdd: false,\n tab: {\n forceRender: false,\n disabled: false\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperTabs } from './tabs.wrapper';\nimport { NzTabsModule } from 'ng-zorro-antd/tabs';\n\n@NgModule({\n declarations: [FormlyWrapperTabs],\n imports: [\n CommonModule,\n\n NzTabsModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'tabs',\n component: FormlyWrapperTabs\n }\n ]\n })\n ]\n})\nexport class FormlyNzTabsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAqDM,MAAO,iBAAkB,SAAQ,YAA4C,CAAA;AA5CnF,IAAA,WAAA,GAAA;;AA6CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,WAAW,EAAE,KAAc;AAC3B,gBAAA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AACpB,gBAAA,QAAQ,EAAE;AACR,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBAEZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-tabs.mjs","sources":["../../../../packages/formlyantd/tabs/src/tabs.wrapper.ts","../../../../packages/formlyantd/tabs/src/tabs.module.ts","../../../../packages/formlyantd/tabs/src/ngx-formly-zorro-antd-tabs.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport type { TabsProps } from './tabs.props';\r\n\r\nexport interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {\r\n wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];\r\n}\r\n\r\n@Component({\r\n selector: 'formly-wrapper-tabs',\r\n template: `<nz-tabset\r\n [(nzSelectedIndex)]=\"props['selectedIndex']\"\r\n [nzAnimated]=\"props['animated']!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzTabBarExtraContent]=\"props['tabBarExtraContent']\"\r\n [nzTabBarStyle]=\"props['tabBarStyle'] ?? null\"\r\n [nzTabPosition]=\"props['tabPosition']!\"\r\n [nzType]=\"props['type']!\"\r\n [nzTabBarGutter]=\"props['tabBarGutter']\"\r\n [nzHideAll]=\"props['hideAll']!!\"\r\n [nzLinkRouter]=\"props['linkRouter']!!\"\r\n [nzLinkExact]=\"props['linkExact']!!\"\r\n [nzCanDeactivate]=\"props['canDeactivate'] ?? null\"\r\n [nzHideAdd]=\"props['hideAdd']!!\"\r\n [nzAddIcon]=\"props['addIcon']!\"\r\n (nzSelectedIndexChange)=\"\r\n props['selectedIndexChange'] && props['selectedIndexChange'](field, $event)\r\n \"\r\n (nzSelectChange)=\"\r\n props['selectChange'] && props['selectChange'](field, $event.index, $event.tab)\r\n \"\r\n (nzAdd)=\"props['onAdd'] && props['onAdd'](field)\"\r\n (nzClose)=\"props['onClose'] && props['onClose'](field, $event.index)\"\r\n >\r\n @for (tab of field.fieldGroup; track tab.id) {\r\n <nz-tab\r\n [nzTitle]=\"tab.props?.label || ''\"\r\n [nzForceRender]=\"tab.props!['tab']?.forceRender\"\r\n [nzDisabled]=\"tab.props!['tab']?.disabled\"\r\n (nzClick)=\"tab.props!['tab']?.click && tab.props!['tab']?.click(field)\"\r\n (nzContextmenu)=\"\r\n tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)\r\n \"\r\n (nzSelect)=\"tab.props!['tab']?.select && tab.props!['tab']?.select(field)\"\r\n (nzDeselect)=\"tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)\"\r\n >\r\n <formly-field [field]=\"tab\"></formly-field>\r\n </nz-tab>\r\n }\r\n </nz-tabset>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyWrapperTabs extends FieldWrapper<NzFormlyFieldConfig<TabsProps>> {\r\n override defaultOptions = {\r\n props: {\r\n animated: true,\r\n size: 'default' as const,\r\n type: 'line' as const,\r\n tabPosition: 'top' as const,\r\n hideAll: false,\r\n linkRouter: false,\r\n linkExact: true,\r\n centered: false,\r\n hideAdd: false,\r\n tab: {\r\n forceRender: false,\r\n disabled: false\r\n }\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyWrapperTabs } from './tabs.wrapper';\r\nimport { NzTabsModule } from 'ng-zorro-antd/tabs';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperTabs],\r\n imports: [\r\n CommonModule,\r\n\r\n NzTabsModule,\r\n\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'tabs',\r\n component: FormlyWrapperTabs\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTabsModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAqDM,MAAO,iBAAkB,SAAQ,YAA4C,CAAA;AA5CnF,IAAA,WAAA,GAAA;;AA6CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,WAAW,EAAE,KAAc;AAC3B,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,GAAG,EAAE;AACH,oBAAA,WAAW,EAAE,KAAK;AAClB,oBAAA,QAAQ,EAAE,KAAK;AAChB,iBAAA;AACF,aAAA;SACF,CAAC;AACH,KAAA;8GAlBY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA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E,MAAM;AACZ,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
@@ -43,38 +43,38 @@ class FormlyFieldTextValue extends FieldType {
43
43
  ngOnDestroy() {
44
44
  this.subscription?.unsubscribe();
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTextValue, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldTextValue, selector: "formly-field-text-value", usesInheritance: true, ngImport: i0, template: `
48
- <nz-form-text
49
- class="wrap-text"
50
- [formlyAttributes]="field"
51
- [ngClass]="props['ngClass']"
52
- [ngStyle]="props['ngStyle']"
53
- >
54
- {{ textValue$ | async | defaultify: props.defaultText }}
55
- </nz-form-text>
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTextValue, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldTextValue, selector: "formly-field-text-value", usesInheritance: true, ngImport: i0, template: `
48
+ <nz-form-text
49
+ class="wrap-text"
50
+ [formlyAttributes]="field"
51
+ [ngClass]="props['ngClass']"
52
+ [ngStyle]="props['ngStyle']"
53
+ >
54
+ {{ textValue$ | async | defaultify: props.defaultText }}
55
+ </nz-form-text>
56
56
  `, isInline: true, styles: [".wrap-text{word-break:break-all}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.NzFormTextComponent, selector: "nz-form-text", exportAs: ["nzFormText"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.DefaultifyPipe, name: "defaultify" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
57
57
  }
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTextValue, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTextValue, decorators: [{
59
59
  type: Component,
60
- args: [{ selector: 'formly-field-text-value', template: `
61
- <nz-form-text
62
- class="wrap-text"
63
- [formlyAttributes]="field"
64
- [ngClass]="props['ngClass']"
65
- [ngStyle]="props['ngStyle']"
66
- >
67
- {{ textValue$ | async | defaultify: props.defaultText }}
68
- </nz-form-text>
60
+ args: [{ selector: 'formly-field-text-value', template: `
61
+ <nz-form-text
62
+ class="wrap-text"
63
+ [formlyAttributes]="field"
64
+ [ngClass]="props['ngClass']"
65
+ [ngStyle]="props['ngStyle']"
66
+ >
67
+ {{ textValue$ | async | defaultify: props.defaultText }}
68
+ </nz-form-text>
69
69
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".wrap-text{word-break:break-all}\n"] }]
70
70
  }] });
71
71
 
72
72
  class FormlyNzTextValueModule {
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTextValueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
74
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTextValueModule, declarations: [FormlyFieldTextValue], imports: [CommonModule,
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTextValueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
74
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTextValueModule, declarations: [FormlyFieldTextValue], imports: [CommonModule,
75
75
  NzFormModule,
76
76
  DefaultifyPipe, i3.FormlyModule] }); }
77
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTextValueModule, imports: [CommonModule,
77
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTextValueModule, imports: [CommonModule,
78
78
  NzFormModule,
79
79
  FormlyModule.forChild({
80
80
  types: [
@@ -86,7 +86,7 @@ class FormlyNzTextValueModule {
86
86
  ]
87
87
  })] }); }
88
88
  }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTextValueModule, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTextValueModule, decorators: [{
90
90
  type: NgModule,
91
91
  args: [{
92
92
  declarations: [FormlyFieldTextValue],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-text-value.mjs","sources":["../../../../packages/formlyantd/text-value/src/text-value.type.ts","../../../../packages/formlyantd/text-value/src/text-value.module.ts","../../../../packages/formlyantd/text-value/src/ngx-formly-zorro-antd-text-value.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Type, Component, OnDestroy, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { Observable, of, Subscription, isObservable } from 'rxjs';\nimport { isPromise } from '@pkt/ng.core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\n\ninterface TextValueProps extends FormlyFieldProps {\n /**\n * 格式化函数\n * @param value 表单值\n * @param field 当前字段\n */\n format?: (\n value: NzSafeAny,\n field: NzFormlyFieldConfig<TextValueProps>\n ) => Observable<NzSafeAny> | Promise<NzSafeAny> | NzSafeAny | null;\n\n /**\n * 默认显示文本\n */\n defaultText?: string;\n}\n\nexport interface FormlyTextValueFieldConfig extends NzFormlyFieldConfig<TextValueProps> {\n type: 'text' | Type<FormlyFieldTextValue>;\n}\n\n@Component({\n selector: 'formly-field-text-value',\n template: `\n <nz-form-text\n class=\"wrap-text\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n >\n {{ textValue$ | async | defaultify: props.defaultText }}\n </nz-form-text>\n `,\n styles: [\n `\n .wrap-text {\n word-break: break-all;\n }\n `\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextValue<T = NzSafeAny>\n extends FieldType<FieldTypeConfig<TextValueProps>>\n implements OnInit, OnDestroy\n{\n private result?: Observable<T> | Promise<T>;\n private subscription?: Subscription;\n\n override defaultOptions = {\n props: {\n defaultText: '--'\n }\n };\n\n ngOnInit(): void {\n this.subscription = this.formControl!.valueChanges.subscribe(() => {\n this.result = undefined;\n });\n }\n\n get textValue$() {\n const value = this.formControl!.value;\n const format = this.props.format || this.formState.format;\n\n if (typeof format !== 'function') {\n return of(value);\n }\n\n if (this.result) {\n return this.result;\n }\n const result = format(value, this.field);\n if (isPromise(result) || isObservable(result)) {\n this.result = result as NzSafeAny;\n return result;\n }\n return of(result);\n }\n\n ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { DefaultifyPipe } from '@pkt/ng.core';\nimport { FormlyFieldTextValue } from './text-value.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\n\n@NgModule({\n declarations: [FormlyFieldTextValue],\n imports: [\n CommonModule,\n NzFormModule,\n DefaultifyPipe,\n FormlyModule.forChild({\n types: [\n {\n name: 'text',\n component: FormlyFieldTextValue,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextValueModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAkDM,MAAO,oBACX,SAAQ,SAA0C,CAAA;AAtBpD,IAAA,WAAA,GAAA;;AA4BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,IAAI;AAClB,aAAA;SACF,CAAC;AA8BH,KAAA;IA5BC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAY,CAAC,YAAY,CAAC,SAAS,CAAC,MAAK;AAChE,YAAA,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;AAC1B,SAAC,CAAC,CAAC;KACJ;AAED,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,WAAY,CAAC,KAAK,CAAC;AACtC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;AAE1D,QAAA,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;AAChC,YAAA,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;AAClB,SAAA;QAED,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,IAAI,CAAC,MAAM,CAAC;AACpB,SAAA;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE;AAC7C,YAAA,IAAI,CAAC,MAAM,GAAG,MAAmB,CAAC;AACl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AA,CAAA;kBAjBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;AACpC,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,oBAAoB;oCAC/B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-text-value.mjs","sources":["../../../../packages/formlyantd/text-value/src/text-value.type.ts","../../../../packages/formlyantd/text-value/src/text-value.module.ts","../../../../packages/formlyantd/text-value/src/ngx-formly-zorro-antd-text-value.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Type, Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport { Observable, of, Subscription, isObservable } from 'rxjs';\r\nimport { isPromise } from '@pkt/ng.core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\n\r\ninterface TextValueProps extends FormlyFieldProps {\r\n /**\r\n * 格式化函数\r\n * @param value 表单值\r\n * @param field 当前字段\r\n */\r\n format?: (\r\n value: NzSafeAny,\r\n field: NzFormlyFieldConfig<TextValueProps>\r\n ) => Observable<NzSafeAny> | Promise<NzSafeAny> | NzSafeAny | null;\r\n\r\n /**\r\n * 默认显示文本\r\n */\r\n defaultText?: string;\r\n}\r\n\r\nexport interface FormlyTextValueFieldConfig extends NzFormlyFieldConfig<TextValueProps> {\r\n type: 'text' | Type<FormlyFieldTextValue>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-text-value',\r\n template: `\r\n <nz-form-text\r\n class=\"wrap-text\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [ngStyle]=\"props['ngStyle']\"\r\n >\r\n {{ textValue$ | async | defaultify: props.defaultText }}\r\n </nz-form-text>\r\n `,\r\n styles: [\r\n `\r\n .wrap-text {\r\n word-break: break-all;\r\n }\r\n `\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTextValue<T = NzSafeAny>\r\n extends FieldType<FieldTypeConfig<TextValueProps>>\r\n implements OnInit, OnDestroy\r\n{\r\n private result?: Observable<T> | Promise<T>;\r\n private subscription?: Subscription;\r\n\r\n override defaultOptions = {\r\n props: {\r\n defaultText: '--'\r\n }\r\n };\r\n\r\n ngOnInit(): void {\r\n this.subscription = this.formControl!.valueChanges.subscribe(() => {\r\n this.result = undefined;\r\n });\r\n }\r\n\r\n get textValue$() {\r\n const value = this.formControl!.value;\r\n const format = this.props.format || this.formState.format;\r\n\r\n if (typeof format !== 'function') {\r\n return of(value);\r\n }\r\n\r\n if (this.result) {\r\n return this.result;\r\n }\r\n const result = format(value, this.field);\r\n if (isPromise(result) || isObservable(result)) {\r\n this.result = result as NzSafeAny;\r\n return result;\r\n }\r\n return of(result);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscription?.unsubscribe();\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 { DefaultifyPipe } from '@pkt/ng.core';\r\nimport { FormlyFieldTextValue } from './text-value.type';\r\n\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTextValue],\r\n imports: [\r\n CommonModule,\r\n NzFormModule,\r\n DefaultifyPipe,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'text',\r\n component: FormlyFieldTextValue,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTextValueModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAkDM,MAAO,oBACX,SAAQ,SAA0C,CAAA;AAtBpD,IAAA,WAAA,GAAA;;AA4BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,IAAI;AAClB,aAAA;SACF,CAAC;AA8BH,KAAA;IA5BC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAY,CAAC,YAAY,CAAC,SAAS,CAAC,MAAK;AAChE,YAAA,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;AAC1B,SAAC,CAAC,CAAC;KACJ;AAED,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,WAAY,CAAC,KAAK,CAAC;AACtC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;AAE1D,QAAA,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;AAChC,YAAA,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;AAClB,SAAA;QAED,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,IAAI,CAAC,MAAM,CAAC;AACpB,SAAA;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE;AAC7C,YAAA,IAAI,CAAC,MAAM,GAAG,MAAmB,CAAC;AAClC,YAAA,OAAO,MAAM,CAAC;AACf,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,MAAM,CAAC,CA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