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
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, 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 { InputGroupProps } from './input-group.props';\r\n\r\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\r\n type: 'input-group' | Type<FormlyFieldInputGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input-group',\r\n template: `\r\n <nz-input-group\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n >\r\n @for (g of field.fieldGroup; track g.id) {\r\n <formly-field [field]=\"g\"></formly-field>\r\n }\r\n </nz-input-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\r\n override defaultOptions = {\r\n props: {\r\n status: '' as const,\r\n size: 'default' as const\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 { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldInputGroup } from './input-group.type';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputGroup],\r\n imports: [\r\n CommonModule,\r\n NzInputModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input-group',\r\n component: FormlyFieldInputGroup,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAiCM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAxBtF,IAAA,WAAA,GAAA;;AAyBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AAC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qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n </nz-input-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\n override defaultOptions = {\n props: {\n status: '' as const,\n size: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputGroup } from './input-group.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [\n CommonModule,\n NzInputModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAiCM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAxBtF,IAAA,WAAA,GAAA;;AAyBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAtBtB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;AAmBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,kBAAA,EAAA,cAAA,EAAA,cAAA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AAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAlBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBAEb,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
@@ -32,100 +32,100 @@ class FormlyFieldInputNumber extends FieldType {
32
32
  };
33
33
  }
34
34
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
36
- @switch (props.type) {
37
- @case ('group') {
38
- <nz-input-number-group
39
- [ngClass]="props['ngClass']"
40
- [nzAddOnAfter]="props['addOnAfter']"
41
- [nzAddOnBefore]="props['addOnBefore']"
42
- [nzPrefix]="props['prefix']"
43
- [nzSuffix]="props['suffix']"
44
- [nzPrefixIcon]="props['prefixIcon']"
45
- [nzSuffixIcon]="props['suffixIcon']"
46
- [nzCompact]="props['compact']"
47
- >
48
- <ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
49
- </nz-input-number-group>
50
- }
51
- @default {
52
- <ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
53
- }
54
- }
55
-
56
- <ng-template #inputNumberTpl>
57
- <nz-input-number
58
- [formControl]="formControl"
59
- [formlyAttributes]="field"
60
- [nzMax]="props.max!"
61
- [nzMin]="props.min!"
62
- [nzReadOnly]="props.readonly!!"
63
- [nzPlaceHolder]="props.placeholder ?? ''"
64
- [nzSize]="props['size']!"
65
- [nzStatus]="props['status']!"
66
- [nzBorderless]="!!props['borderless']"
67
- [nzPrecision]="props['precision']"
68
- [nzPrecisionMode]="props['precisionMode']!"
69
- [nzStep]="props['step'] ?? 1"
70
- [nzFormatter]="props['formatter']!"
71
- [nzParser]="props['parser']!"
72
- [nzInputMode]="props['inputMode']!"
73
- [ngClass]="props['ngClass']"
74
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
75
- (nzFocus)="props.focus && props.focus(field, $event)"
76
- (nzBlur)="props.blur && props.blur(field, $event)"
77
- ></nz-input-number>
78
- </ng-template>
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
36
+ @switch (props.type) {
37
+ @case ('group') {
38
+ <nz-input-number-group
39
+ [ngClass]="props['ngClass']"
40
+ [nzAddOnAfter]="props['addOnAfter']"
41
+ [nzAddOnBefore]="props['addOnBefore']"
42
+ [nzPrefix]="props['prefix']"
43
+ [nzSuffix]="props['suffix']"
44
+ [nzPrefixIcon]="props['prefixIcon']"
45
+ [nzSuffixIcon]="props['suffixIcon']"
46
+ [nzCompact]="props['compact']"
47
+ >
48
+ <ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
49
+ </nz-input-number-group>
50
+ }
51
+ @default {
52
+ <ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
53
+ }
54
+ }
55
+
56
+ <ng-template #inputNumberTpl>
57
+ <nz-input-number
58
+ [formControl]="formControl"
59
+ [formlyAttributes]="field"
60
+ [nzMax]="props.max!"
61
+ [nzMin]="props.min!"
62
+ [nzReadOnly]="props.readonly!!"
63
+ [nzPlaceHolder]="props.placeholder ?? ''"
64
+ [nzSize]="props['size']!"
65
+ [nzStatus]="props['status']!"
66
+ [nzBorderless]="!!props['borderless']"
67
+ [nzPrecision]="props['precision']"
68
+ [nzPrecisionMode]="props['precisionMode']!"
69
+ [nzStep]="props['step'] ?? 1"
70
+ [nzFormatter]="props['formatter']!"
71
+ [nzParser]="props['parser']!"
72
+ [nzInputMode]="props['inputMode']!"
73
+ [ngClass]="props['ngClass']"
74
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
75
+ (nzFocus)="props.focus && props.focus(field, $event)"
76
+ (nzBlur)="props.blur && props.blur(field, $event)"
77
+ ></nz-input-number>
78
+ </ng-template>
79
79
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
80
80
  }
81
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
82
82
  type: Component,
83
83
  args: [{
84
84
  selector: 'formly-field-inputnumber',
85
- template: `
86
- @switch (props.type) {
87
- @case ('group') {
88
- <nz-input-number-group
89
- [ngClass]="props['ngClass']"
90
- [nzAddOnAfter]="props['addOnAfter']"
91
- [nzAddOnBefore]="props['addOnBefore']"
92
- [nzPrefix]="props['prefix']"
93
- [nzSuffix]="props['suffix']"
94
- [nzPrefixIcon]="props['prefixIcon']"
95
- [nzSuffixIcon]="props['suffixIcon']"
96
- [nzCompact]="props['compact']"
97
- >
98
- <ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
99
- </nz-input-number-group>
100
- }
101
- @default {
102
- <ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
103
- }
104
- }
105
-
106
- <ng-template #inputNumberTpl>
107
- <nz-input-number
108
- [formControl]="formControl"
109
- [formlyAttributes]="field"
110
- [nzMax]="props.max!"
111
- [nzMin]="props.min!"
112
- [nzReadOnly]="props.readonly!!"
113
- [nzPlaceHolder]="props.placeholder ?? ''"
114
- [nzSize]="props['size']!"
115
- [nzStatus]="props['status']!"
116
- [nzBorderless]="!!props['borderless']"
117
- [nzPrecision]="props['precision']"
118
- [nzPrecisionMode]="props['precisionMode']!"
119
- [nzStep]="props['step'] ?? 1"
120
- [nzFormatter]="props['formatter']!"
121
- [nzParser]="props['parser']!"
122
- [nzInputMode]="props['inputMode']!"
123
- [ngClass]="props['ngClass']"
124
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
125
- (nzFocus)="props.focus && props.focus(field, $event)"
126
- (nzBlur)="props.blur && props.blur(field, $event)"
127
- ></nz-input-number>
128
- </ng-template>
85
+ template: `
86
+ @switch (props.type) {
87
+ @case ('group') {
88
+ <nz-input-number-group
89
+ [ngClass]="props['ngClass']"
90
+ [nzAddOnAfter]="props['addOnAfter']"
91
+ [nzAddOnBefore]="props['addOnBefore']"
92
+ [nzPrefix]="props['prefix']"
93
+ [nzSuffix]="props['suffix']"
94
+ [nzPrefixIcon]="props['prefixIcon']"
95
+ [nzSuffixIcon]="props['suffixIcon']"
96
+ [nzCompact]="props['compact']"
97
+ >
98
+ <ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
99
+ </nz-input-number-group>
100
+ }
101
+ @default {
102
+ <ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
103
+ }
104
+ }
105
+
106
+ <ng-template #inputNumberTpl>
107
+ <nz-input-number
108
+ [formControl]="formControl"
109
+ [formlyAttributes]="field"
110
+ [nzMax]="props.max!"
111
+ [nzMin]="props.min!"
112
+ [nzReadOnly]="props.readonly!!"
113
+ [nzPlaceHolder]="props.placeholder ?? ''"
114
+ [nzSize]="props['size']!"
115
+ [nzStatus]="props['status']!"
116
+ [nzBorderless]="!!props['borderless']"
117
+ [nzPrecision]="props['precision']"
118
+ [nzPrecisionMode]="props['precisionMode']!"
119
+ [nzStep]="props['step'] ?? 1"
120
+ [nzFormatter]="props['formatter']!"
121
+ [nzParser]="props['parser']!"
122
+ [nzInputMode]="props['inputMode']!"
123
+ [ngClass]="props['ngClass']"
124
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
125
+ (nzFocus)="props.focus && props.focus(field, $event)"
126
+ (nzBlur)="props.blur && props.blur(field, $event)"
127
+ ></nz-input-number>
128
+ </ng-template>
129
129
  `,
130
130
  changeDetection: ChangeDetectionStrategy.OnPush
131
131
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.ts"],"sourcesContent":["import { Component, Type, 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 { InputNumberProps } from './input-number.props';\r\n\r\nexport interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {\r\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-inputnumber',\r\n template: `\r\n @switch (props.type) {\r\n @case ('group') {\r\n <nz-input-number-group\r\n [ngClass]=\"props['ngClass']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzCompact]=\"props['compact']\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"inputNumberTpl\"></ng-container>\r\n </nz-input-number-group>\r\n }\r\n @default {\r\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\r\n }\r\n }\r\n\r\n <ng-template #inputNumberTpl>\r\n <nz-input-number\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzMax]=\"props.max!\"\r\n [nzMin]=\"props.min!\"\r\n [nzReadOnly]=\"props.readonly!!\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzBorderless]=\"!!props['borderless']\"\r\n [nzPrecision]=\"props['precision']\"\r\n [nzPrecisionMode]=\"props['precisionMode']!\"\r\n [nzStep]=\"props['step'] ?? 1\"\r\n [nzFormatter]=\"props['formatter']!\"\r\n [nzParser]=\"props['parser']!\"\r\n [nzInputMode]=\"props['inputMode']!\"\r\n [ngClass]=\"props['ngClass']\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\r\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\r\n ></nz-input-number>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n max: Infinity,\r\n min: -Infinity,\r\n parser: (value: string) =>\r\n value\r\n .trim()\r\n .replace(/。/g, '.')\r\n // eslint-disable-next-line no-useless-escape\r\n .replace(/[^\\w\\.-]+/g, ''),\r\n precisionMode: 'toFixed' as const,\r\n size: 'default' as const,\r\n status: '' as const,\r\n step: 1,\r\n inputMode: 'decimal',\r\n formatter: (value: number | string) => value\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldInputNumber } from './input-number.type';\r\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputNumber],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzInputNumberModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'number',\r\n component: FormlyFieldInputNumber,\r\n wrappers: ['form-field']\r\n },\r\n {\r\n name: 'integer',\r\n extends: 'number'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputNumberModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0DM,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAjDtE,IAAA,WAAA,GAAA;;AAkDW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,CAAC,QAAQ;AACd,gBAAA,MAAM,EAAE,CAAC,KAAa,KACpB,KAAK;AACF,qBAAA,IAAI,EAAE;AACN,qBAAA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;AAElB,qBAAA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;AAC9B,gBAAA,aAAa,EAAE,SAAkB;AACjC,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,SAAS,EAAE,SAAS;AACpB,gBAAA,SAAS,EAAE,CAAC,KAAsB,KAAK,KAAK;AAC7C,aAAA;SACF,CAAC;AACH,KAAA;8GAnBY,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EA/CvB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,EAAA,IAAA,EAAA,yBAAyB,YApBlC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,mBAAmB;YAEnB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,sBAAsB;wBACjC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAvBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBAEnB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,sBAAsB;oCACjC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputNumberProps } from './input-number.props';\n\nexport interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\n}\n\n@Component({\n selector: 'formly-field-inputnumber',\n template: `\n @switch (props.type) {\n @case ('group') {\n <nz-input-number-group\n [ngClass]=\"props['ngClass']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzCompact]=\"props['compact']\"\n >\n <ng-container *ngTemplateOutlet=\"inputNumberTpl\"></ng-container>\n </nz-input-number-group>\n }\n @default {\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\n }\n }\n\n <ng-template #inputNumberTpl>\n <nz-input-number\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzMax]=\"props.max!\"\n [nzMin]=\"props.min!\"\n [nzReadOnly]=\"props.readonly!!\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzPrecision]=\"props['precision']\"\n [nzPrecisionMode]=\"props['precisionMode']!\"\n [nzStep]=\"props['step'] ?? 1\"\n [nzFormatter]=\"props['formatter']!\"\n [nzParser]=\"props['parser']!\"\n [nzInputMode]=\"props['inputMode']!\"\n [ngClass]=\"props['ngClass']\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\n ></nz-input-number>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n max: Infinity,\n min: -Infinity,\n parser: (value: string) =>\n value\n .trim()\n .replace(/。/g, '.')\n // eslint-disable-next-line no-useless-escape\n .replace(/[^\\w\\.-]+/g, ''),\n precisionMode: 'toFixed' as const,\n size: 'default' as const,\n status: '' as const,\n step: 1,\n inputMode: 'decimal',\n formatter: (value: number | string) => value\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputNumber } from './input-number.type';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\n\n@NgModule({\n declarations: [FormlyFieldInputNumber],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputNumberModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'number',\n component: FormlyFieldInputNumber,\n wrappers: ['form-field']\n },\n {\n name: 'integer',\n extends: 'number'\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0DM,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAjDtE,IAAA,WAAA,GAAA;;AAkDW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,CAAC,QAAQ;AACd,gBAAA,MAAM,EAAE,CAAC,KAAa,KACpB,KAAK;AACF,qBAAA,IAAI,EAAE;AACN,qBAAA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;AAElB,qBAAA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;AAC9B,gBAAA,aAAa,EAAE,SAAkB;AACjC,gBAAA,IAAI,EAAE,SAAkB;AACxB,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