ngx-formly-zorro-antd 16.1.1 → 16.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/button/button.type.d.ts +3 -2
  2. package/card/card.type.d.ts +3 -2
  3. package/card-wrapper/card.wrapper.d.ts +4 -3
  4. package/cascader/cascader.type.d.ts +6 -5
  5. package/checkbox/checkbox.type.d.ts +4 -3
  6. package/common/interface.d.ts +19 -0
  7. package/common/public_api.d.ts +1 -0
  8. package/datepicker/datepicker.props.d.ts +5 -5
  9. package/datepicker/datepicker.type.d.ts +3 -2
  10. package/esm2022/button/button.type.mjs +1 -1
  11. package/esm2022/card/card.type.mjs +1 -1
  12. package/esm2022/card-wrapper/card.wrapper.mjs +1 -1
  13. package/esm2022/cascader/cascader.type.mjs +1 -1
  14. package/esm2022/checkbox/checkbox.type.mjs +3 -3
  15. package/esm2022/common/interface.mjs +2 -0
  16. package/esm2022/common/public_api.mjs +2 -1
  17. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  18. package/esm2022/datepicker/datepicker.type.mjs +1 -1
  19. package/esm2022/form-field/form-field.props.mjs +1 -1
  20. package/esm2022/form-field/form-field.wrapper.mjs +1 -1
  21. package/esm2022/grid/grid.type.mjs +1 -1
  22. package/esm2022/input/input.props.mjs +1 -1
  23. package/esm2022/input/input.type.mjs +1 -1
  24. package/esm2022/input-group/input-group.type.mjs +1 -1
  25. package/esm2022/input-number/input-number.props.mjs +1 -1
  26. package/esm2022/input-number/input-number.type.mjs +1 -1
  27. package/esm2022/radio/radio.type.mjs +1 -1
  28. package/esm2022/rate/rate.type.mjs +1 -1
  29. package/esm2022/select/select.props.mjs +1 -1
  30. package/esm2022/select/select.type.mjs +1 -1
  31. package/esm2022/slider/slider.type.mjs +1 -1
  32. package/esm2022/space/space.type.mjs +1 -1
  33. package/esm2022/switch/switch.type.mjs +1 -1
  34. package/esm2022/tabs/tabs.props.mjs +1 -1
  35. package/esm2022/tabs/tabs.wrapper.mjs +1 -1
  36. package/esm2022/textarea/textarea.type.mjs +1 -1
  37. package/esm2022/timepicker/timepicker.type.mjs +1 -1
  38. package/esm2022/transfer/transfer.type.mjs +1 -1
  39. package/esm2022/tree-select/tree-select.module.mjs +5 -1
  40. package/esm2022/tree-select/tree-select.type.mjs +31 -15
  41. package/esm2022/upload/upload.props.mjs +1 -1
  42. package/esm2022/upload/upload.type.mjs +1 -1
  43. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  44. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  45. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  46. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  47. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
  48. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  49. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  50. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  51. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  52. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  53. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  54. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  55. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  56. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  57. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  58. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  59. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  60. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  61. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  62. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  63. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  64. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  65. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
  66. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  67. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  68. package/form-field/form-field.props.d.ts +3 -4
  69. package/form-field/form-field.wrapper.d.ts +3 -2
  70. package/grid/grid.type.d.ts +3 -2
  71. package/input/input.props.d.ts +3 -3
  72. package/input/input.type.d.ts +3 -2
  73. package/input-group/input-group.type.d.ts +4 -3
  74. package/input-number/input-number.props.d.ts +2 -2
  75. package/input-number/input-number.type.d.ts +3 -2
  76. package/package.json +35 -35
  77. package/radio/radio.type.d.ts +3 -2
  78. package/rate/rate.type.d.ts +4 -3
  79. package/select/select.props.d.ts +4 -4
  80. package/select/select.type.d.ts +3 -2
  81. package/slider/slider.type.d.ts +4 -3
  82. package/space/space.type.d.ts +3 -2
  83. package/switch/switch.type.d.ts +3 -2
  84. package/tabs/tabs.props.d.ts +9 -9
  85. package/tabs/tabs.wrapper.d.ts +4 -3
  86. package/textarea/textarea.type.d.ts +3 -2
  87. package/timepicker/timepicker.type.d.ts +4 -3
  88. package/transfer/transfer.type.d.ts +5 -4
  89. package/tree-select/tree-select.module.d.ts +4 -3
  90. package/tree-select/tree-select.type.d.ts +21 -4
  91. package/upload/upload.props.d.ts +2 -2
  92. package/upload/upload.type.d.ts +3 -2
@@ -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';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<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 <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\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 get group() {\n return this.field.fieldGroup;\n }\n trackById(index: number, envent: NzSafeAny) {\n if (!envent.id) {\n return index;\n }\n return envent.id;\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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ACZ,aAAa;YAEb,uBAAuB;YACvB,YAAY,CAAC,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;;;;"}
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 { NzSafeAny } from 'ng-zorro-antd/core/types';\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 <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\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 get group() {\n return this.field.fieldGroup;\n }\n trackById(index: number, envent: NzSafeAny) {\n if (!envent.id) {\n return index;\n }\n return envent.id;\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":";;;;;;;;;;AAgCM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAtBtF,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA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AAqB;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;;;;"}
@@ -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';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { InputNumberProps } from './input-number.props';\n\nexport interface FormlyInputNumberFieldConfig extends FormlyFieldConfig<InputNumberProps> {\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\n}\n\n@Component({\n selector: 'formly-field-inputnumber',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <nz-input-number-group\n *ngSwitchCase=\"'group'\"\n [ngClass]=\"props['className']\"\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=\"nzinputnumber\"></ng-container>\n </nz-input-number-group>\n\n <ng-container *ngSwitchDefault>\n <ng-template [ngTemplateOutlet]=\"nzinputnumber\"></ng-template>\n </ng-container>\n </ng-container>\n\n <ng-template #nzinputnumber>\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['className']\"\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,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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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 <ng-container [ngSwitch]=\"props.type\">\n <nz-input-number-group\n *ngSwitchCase=\"'group'\"\n [ngClass]=\"props['className']\"\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=\"nzinputnumber\"></ng-container>\n </nz-input-number-group>\n\n <ng-container *ngSwitchDefault>\n <ng-template [ngTemplateOutlet]=\"nzinputnumber\"></ng-template>\n </ng-container>\n </ng-container>\n\n <ng-template #nzinputnumber>\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['className']\"\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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YA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qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'password'\">\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 [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n </ng-container>\n\n <nz-input-group\n *ngSwitchCase=\"'autoComplete'\"\n [nzSize]=\"props['size']\"\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['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n <nz-auto-option\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\n [nzLabel]=\"option.label\"\n [nzValue]=\"option.value\"\n >\n {{ option.label }}\n </nz-auto-option>\n </nz-autocomplete>\n </nz-input-group>\n\n <nz-input-group\n *ngSwitchCase=\"'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['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n\n <input\n *ngSwitchDefault\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </ng-container>\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && props['allowClear']!!\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\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 { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAsJM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AACzB,KAAA;8GAfY,gBAAgB,EAAA,IAAA,EAAA,IAAA,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,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ACF,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBApC/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,aAAa;wBACb,oBAAoB;wBACpB,YAAY;wBAEZ,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACxB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,OAAO;AACd,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'password'\">\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 [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n </ng-container>\n\n <nz-input-group\n *ngSwitchCase=\"'autoComplete'\"\n [nzSize]=\"props['size']\"\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['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n <nz-auto-option\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\n [nzLabel]=\"option.label\"\n [nzValue]=\"option.value\"\n >\n {{ option.label }}\n </nz-auto-option>\n </nz-autocomplete>\n </nz-input-group>\n\n <nz-input-group\n *ngSwitchCase=\"'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['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n\n <input\n *ngSwitchDefault\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </ng-container>\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && props['allowClear']!!\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\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 { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAuJM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AACzB,KAAA;8GAfY,gBAAgB,EAAA,IAAA,EAAA,IAAA,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,EA1IjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuIT,EAAA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B,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACxB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,OAAO;AACd,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\n\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\n type?: 'button';\n\n /**\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\n */\n name?: string | null;\n /**\n * 大小,只对按钮样式生效\n * @default default\n */\n size?: NzSizeLDSType;\n /**\n * RadioButton 的风格样式,目前有描边和填色两种风格\n * @default outline\n */\n buttonStyle?: NzRadioButtonStyle;\n}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-radio',\n template: `\n <nz-radio-group\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzName]=\"field.name ?? null\"\n [nzSize]=\"props['size']!\"\n [nzButtonStyle]=\"props['buttonStyle']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n >\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio\n >\n {{ option.label }}\n </label>\n </ng-container>\n\n <ng-template #button>\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio-button\n >\n {{ option.label }}\n </label>\n </ng-template>\n </nz-radio-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttonStyle: 'outline' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n FormlySelectModule,\n NzFormModule,\n\n NzRadioModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAqEM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAtC5E,IAAA,WAAA,GAAA;;AAuCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,WAAW,EAAE,SAAkB;AAChC,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,gBAAgB,EAAA,IAAA,EAAA,IAAA,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,EApCjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,E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,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY;wBAEZ,aAAa;wBACb,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } 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 { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\n\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\n type?: 'button';\n\n /**\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\n */\n name?: string | null;\n /**\n * 大小,只对按钮样式生效\n * @default default\n */\n size?: NzSizeLDSType;\n /**\n * RadioButton 的风格样式,目前有描边和填色两种风格\n * @default outline\n */\n buttonStyle?: NzRadioButtonStyle;\n}\n\nexport interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-radio',\n template: `\n <nz-radio-group\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzName]=\"field.name ?? null\"\n [nzSize]=\"props['size']!\"\n [nzButtonStyle]=\"props['buttonStyle']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n >\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio\n >\n {{ option.label }}\n </label>\n </ng-container>\n\n <ng-template #button>\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio-button\n >\n {{ option.label }}\n </label>\n </ng-template>\n </nz-radio-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttonStyle: 'outline' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n FormlySelectModule,\n NzFormModule,\n\n NzRadioModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":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,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-rate.mjs","sources":["../../../../packages/formlyantd/rate/src/rate.type.ts","../../../../packages/formlyantd/rate/src/rate.module.ts","../../../../packages/formlyantd/rate/src/ngx-formly-zorro-antd-rate.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface RateProps extends FormlyFieldProps {\n /**\n * 是否允许再次点击后清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否允许半选\n * @default false\n */\n allowHalf?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 自定义字符\n * @default <span nz-icon nzType=\"star\"></span>\n */\n character?: TemplateRef<{\n $implicit: number;\n }>;\n\n /**\n * star 总数\n * @default 5\n */\n count?: number;\n\n /**\n * 自定义每项的提示信息\n * @default []\n */\n tooltips?: string[];\n\n /**\n * 鼠标经过时数值变化的回调\n */\n hoverChange?: (field: FormlyFieldConfig, event?: number) => void;\n}\n\nexport interface FormlyRateFieldConfig extends FormlyFieldConfig<RateProps> {\n type: 'rate' | Type<FormlyFieldRate>;\n}\n\n@Component({\n selector: 'formly-field-rate',\n template: `\n <nz-rate\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAllowHalf]=\"props['allowHalf']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzCharacter]=\"props['character']!\"\n [nzCount]=\"props['count']\"\n [nzTooltips]=\"props['tooltips']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnBlur)=\"props.blur && props.blur(field, $event)\"\n (nzOnFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOnHoverChange)=\"props['hoverChange'] && props['hoverChange'](field, $event)\"\n (nzOnKeyDown)=\"props.keydown && props.keydown(field, $event)\"\n ></nz-rate>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {\n override defaultOptions = {\n props: {\n allowClear: true,\n allowHalf: false,\n autoFocus: false,\n count: 5,\n tooltips: []\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 { NzRateModule } from 'ng-zorro-antd/rate';\n\nimport { FormlyFieldRate } from './rate.type';\n\n@NgModule({\n declarations: [FormlyFieldRate],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzRateModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'rate',\n component: FormlyFieldRate,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA0EM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AArB1E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,KAAK,EAAE,CAAC;AACR,gBAAA,QAAQ,EAAE,EAAE;AACb,aAAA;SACF,CAAC;AACH,KAAA;8GAVY,eAAe,EAAA,IAAA,EAAA,IAAA,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nB,uBAAuB;wBACvB,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;oCAC1B,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-rate.mjs","sources":["../../../../packages/formlyantd/rate/src/rate.type.ts","../../../../packages/formlyantd/rate/src/rate.module.ts","../../../../packages/formlyantd/rate/src/ngx-formly-zorro-antd-rate.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface RateProps extends FormlyFieldProps {\n /**\n * 是否允许再次点击后清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否允许半选\n * @default false\n */\n allowHalf?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 自定义字符\n * @default <span nz-icon nzType=\"star\"></span>\n */\n character?: TemplateRef<{\n $implicit: number;\n }>;\n\n /**\n * star 总数\n * @default 5\n */\n count?: number;\n\n /**\n * 自定义每项的提示信息\n * @default []\n */\n tooltips?: string[];\n\n /**\n * 鼠标经过时数值变化的回调\n */\n hoverChange?: FormlyAttributeEvent<number | undefined>;\n}\n\nexport interface FormlyRateFieldConfig extends NzFormlyFieldConfig<RateProps> {\n type: 'rate' | Type<FormlyFieldRate>;\n}\n\n@Component({\n selector: 'formly-field-rate',\n template: `\n <nz-rate\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAllowHalf]=\"props['allowHalf']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzCharacter]=\"props['character']!\"\n [nzCount]=\"props['count']\"\n [nzTooltips]=\"props['tooltips']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnBlur)=\"props.blur && props.blur(field, $event)\"\n (nzOnFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOnHoverChange)=\"props['hoverChange'] && props['hoverChange'](field, $event)\"\n (nzOnKeyDown)=\"props.keydown && props.keydown(field, $event)\"\n ></nz-rate>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {\n override defaultOptions = {\n props: {\n allowClear: true,\n allowHalf: false,\n autoFocus: false,\n count: 5,\n tooltips: []\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 { NzRateModule } from 'ng-zorro-antd/rate';\n\nimport { FormlyFieldRate } from './rate.type';\n\n@NgModule({\n declarations: [FormlyFieldRate],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzRateModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'rate',\n component: FormlyFieldRate,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA2EM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AArB1E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA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AAA,CAAA;kBAnB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;oCAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n <ng-container *ngFor=\"let item of to.options | formlySelectOptions: field | async\">\n <nz-option-group [nzLabel]=\"item.label\" *ngIf=\"item.group; else selectoption\">\n <nz-option\n *ngFor=\"let child of item.group\"\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n </nz-option-group>\n\n <ng-template #selectoption>\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n </ng-template>\n </ng-container>\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA0EM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AA/DjE,IAAA,WAAA,GAAA;;AAgEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACxD,gBAAA,oBAAoB,EA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CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n <ng-container *ngFor=\"let item of to.options | formlySelectOptions: field | async\">\n <nz-option-group [nzLabel]=\"item.label\" *ngIf=\"item.group; else selectoption\">\n <nz-option\n *ngFor=\"let child of item.group\"\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n </nz-option-group>\n\n <ng-template #selectoption>\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n </ng-template>\n </ng-container>\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA0EM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AA/DjE,IAAA,WAAA,GAAA;;AAgEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,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EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-slider.mjs","sources":["../../../../packages/formlyantd/slider/src/slider.type.ts","../../../../packages/formlyantd/slider/src/slider.module.ts","../../../../packages/formlyantd/slider/src/ngx-formly-zorro-antd-slider.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';\n\ninterface SlideProps extends FormlyFieldProps {\n /**\n * 是否只能拖拽到刻度上\n * @default false\n */\n dots?: boolean;\n\n /**\n * marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列\n * @default true\n */\n included?: boolean;\n\n /**\n * 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式\n * @default\n * { number: string/HTML } or { number: { style: object, label: string/HTML } }\n */\n marks?: object;\n\n /**\n * 双滑块模式\n * @default false\n */\n range?: boolean;\n\n /**\n * Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。\n */\n tipFormatter?: (value: number) => string;\n\n /**\n * 值为 true 时,Slider 为垂直方向\n * @default false\n */\n vertical?: boolean;\n\n /**\n * 反向坐标轴\n * @default false\n */\n reverse?: boolean;\n\n /**\n * 值为 always 时总是显示,值为 never 时在任何情况下都不显示\n * @default default\n */\n tooltipVisible?: NzSliderShowTooltip;\n\n /**\n * 设置 Tooltip 的默认位置。\n */\n tooltipPlacement?: string;\n\n /**\n * 与 onmouseup 触发时机一致,把当前值作为参数传入。\n */\n afterChange?: (field: FormlyFieldConfig, value: number[] | number) => void;\n}\n\nexport interface FormlySlideFieldConfig extends FormlyFieldConfig<SlideProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-slider',\n template: `<nz-slider\n #slider\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDots]=\"props['dots']!!\"\n [nzIncluded]=\"props['included']!!\"\n [nzMax]=\"props.max\"\n [nzMin]=\"props.min\"\n [nzRange]=\"props['range']!!\"\n [nzStep]=\"props.step\"\n [nzTipFormatter]=\"props['tipFormatter']\"\n [nzVertical]=\"props['vertical']!!\"\n [nzReverse]=\"props['reverse']!!\"\n [nzTooltipVisible]=\"props['tooltipVisible']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnAfterChange)=\"props['afterChange'] && props['afterChange'](field, $event)\"\n ></nz-slider>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {\n override defaultOptions = {\n props: {\n max: 100,\n min: 0,\n step: 1,\n dots: false,\n included: true,\n range: false,\n vertical: false,\n reverse: false,\n tooltipVisible: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldSlider } from './slider.type';\nimport { NzSliderModule } from 'ng-zorro-antd/slider';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzSliderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'slider',\n component: FormlyFieldSlider,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA0FM,MAAO,iBAAkB,SAAQ,SAAsC,CAAA;AArB7E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,GAAG;AACR,gBAAA,GAAG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,cAAc,EAAE,SAAkB;AACnC,aAAA;SACF,CAAC;AACH,KAAA;8GAdY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAnBlB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;AAgBI,eAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,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antd/slider/src/slider.type.ts","../../../../packages/formlyantd/slider/src/slider.module.ts","../../../../packages/formlyantd/slider/src/ngx-formly-zorro-antd-slider.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';\n\ninterface SlideProps extends FormlyFieldProps {\n /**\n * 是否只能拖拽到刻度上\n * @default false\n */\n dots?: boolean;\n\n /**\n * marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列\n * @default true\n */\n included?: boolean;\n\n /**\n * 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式\n * @default\n * { number: string/HTML } or { number: { style: object, label: string/HTML } }\n */\n marks?: object;\n\n /**\n * 双滑块模式\n * @default false\n */\n range?: boolean;\n\n /**\n * Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。\n */\n tipFormatter?: (value: number) => string;\n\n /**\n * 值为 true 时,Slider 为垂直方向\n * @default false\n */\n vertical?: boolean;\n\n /**\n * 反向坐标轴\n * @default false\n */\n reverse?: boolean;\n\n /**\n * 值为 always 时总是显示,值为 never 时在任何情况下都不显示\n * @default default\n */\n tooltipVisible?: NzSliderShowTooltip;\n\n /**\n * 设置 Tooltip 的默认位置。\n */\n tooltipPlacement?: string;\n\n /**\n * 与 onmouseup 触发时机一致,把当前值作为参数传入。\n */\n afterChange?: FormlyAttributeEvent<number[] | number>;\n}\n\nexport interface FormlySlideFieldConfig extends NzFormlyFieldConfig<SlideProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-slider',\n template: `<nz-slider\n #slider\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDots]=\"props['dots']!!\"\n [nzIncluded]=\"props['included']!!\"\n [nzMax]=\"props.max\"\n [nzMin]=\"props.min\"\n [nzRange]=\"props['range']!!\"\n [nzStep]=\"props.step\"\n [nzTipFormatter]=\"props['tipFormatter']\"\n [nzVertical]=\"props['vertical']!!\"\n [nzReverse]=\"props['reverse']!!\"\n [nzTooltipVisible]=\"props['tooltipVisible']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnAfterChange)=\"props['afterChange'] && props['afterChange'](field, $event)\"\n ></nz-slider>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {\n override defaultOptions = {\n props: {\n max: 100,\n min: 0,\n step: 1,\n dots: false,\n included: true,\n range: false,\n vertical: false,\n reverse: false,\n tooltipVisible: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldSlider } from './slider.type';\nimport { NzSliderModule } from 'ng-zorro-antd/slider';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzSliderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'slider',\n component: FormlyFieldSlider,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA2FM,MAAO,iBAAkB,SAAQ,SAAsC,CAAA;AArB7E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,GAAG;AACR,gBAAA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,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAnBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,cAAc;wBAEd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC3BD;;AAEG;;;;"}
@@ -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, FormlyFieldConfig } 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 { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';\n\ninterface SpaceProps extends FormlyFieldProps {\n type?: 'space';\n\n /**\n * 间距大小\n */\n size?: NzSpaceSize;\n /**\n * 间距方向\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\n splitName?: string;\n}\n\nexport interface FormlySpaceFieldConfig extends FormlyFieldConfig<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 <ng-container *ngFor=\"let item of field.fieldGroup\">\n <formly-field *nzSpaceItem [field]=\"item\"></formly-field>\n </ng-container>\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 { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { FormlyFieldSpace } from './space.type';\n\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\n\n@NgModule({\n declarations: [FormlyFieldSpace],\n imports: [\n CommonModule,\n FormlyCommonModule,\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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EAAA,mBAAmB,YAb5B,YAAY;YACZ,kBAAkB;YAClB,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;kBAhB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,kBAAkB;wBAClB,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;;;ACvBD;;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';\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 type?: 'space';\n\n /**\n * 间距大小\n */\n size?: NzSpaceSize;\n /**\n * 间距方向\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\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 <ng-container *ngFor=\"let item of field.fieldGroup\">\n <formly-field *nzSpaceItem [field]=\"item\"></formly-field>\n </ng-container>\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 { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { FormlyFieldSpace } from './space.type';\n\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\n\n@NgModule({\n declarations: [FormlyFieldSpace],\n imports: [\n CommonModule,\n FormlyCommonModule,\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":";;;;;;;;;;;AA0DM,MAAO,gBAAiB,SAAQ,SAAs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AA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAb5B,YAAY;YACZ,kBAAkB;YAClB,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;kBAhB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,kBAAkB;wBAClB,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;;;ACvBD;;AAEG;;;;"}
@@ -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, FormlyFieldConfig } from '@ngx-formly/core';\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 FormlyFieldConfig<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":";;;;;;;;;;;AAwDM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAjB9E,IAAA,WAAA,GAAA;;AAkBW,QAAA,IAAA,CAAA,cAA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AAC,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';\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,iBAAkB,SAAQ,SAAuC,CAAA;AAjB9E,IAAA,WAAA,GAAA;;AAkBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE,KAAK;AACf,aAAA;SACF,CAAC;AACH,KAAA;8GARY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAA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A,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -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, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { TabsProps } from './tabs.props';\n\nexport interface FormlyTabsWrapperConfig extends FormlyFieldConfig<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 <nz-tab\n *ngFor=\"let tab of field.fieldGroup; let i = index; let last = last\"\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 </nz-tabset>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperTabs extends FieldWrapper<FormlyFieldConfig<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":";;;;;;;;;AAoDM,MAAO,iBAAkB,SAAQ,YAA0C,CAAA;AA3CjF,IAAA,WAAA,GAAA;;AA4CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAA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AA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAYH,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,kBAAkB,YAd3B,YAAY;YAEZ,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;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';\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 <nz-tab\n *ngFor=\"let tab of field.fieldGroup; let i = index; let last = last\"\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 </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":";;;;;;;;;AAoDM,MAAO,iBAAkB,SAAQ,YAA4C,CAAA;AA3CnF,IAAA,WAAA,GAAA;;AA4CW,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;A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AAA,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 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-textarea.mjs","sources":["../../../../packages/formlyantd/textarea/src/textarea.type.ts","../../../../packages/formlyantd/textarea/src/textarea.module.ts","../../../../packages/formlyantd/textarea/src/ngx-formly-zorro-antd-textarea.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface TextareaProps extends FormlyFieldProps {\n type?: 'count' | 'clear';\n\n /**\n * 自适应内容高度,可设置为 boolean 或对象:{ minRows: 2, maxRows: 6 }\n * @default false\n */\n autosize?: boolean | { minRows: number; maxRows: number };\n\n /**\n * 是否隐藏边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * textarea 数字提示显示的最大值\n */\n maxCharacterCount?: number;\n}\n\nexport interface FormlyTextareaFieldConfig extends FormlyFieldConfig<TextareaProps> {\n type: 'textarea' | Type<FormlyFieldTextarea>;\n}\n\n@Component({\n selector: 'formly-field-textarea',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'count'\">\n <nz-textarea-count [nzMaxCharacterCount]=\"props['maxCharacterCount'] || 0\">\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n ></textarea>\n </nz-textarea-count>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'clear'\">\n <nz-input-group\n class=\"ant-input-affix-wrapper-textarea-with-clear-btn\"\n [nzSuffix]=\"textAreaClearTpl\"\n >\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </nz-input-group>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </ng-container>\n </ng-container>\n\n <ng-template #textareaTpl>\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n ></textarea>\n </ng-template>\n\n <!-- 清除数据 -->\n <ng-template #textAreaClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {\n override defaultOptions = {\n props: {\n rows: 4,\n autosize: false,\n borderless: false\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 { FormlyFieldTextarea } from './textarea.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAyFM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AA5DlF,IAAA,WAAA,GAAA;;AA6DW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AAClB,aAAA;SACF,CAAC;AACH,KAAA;8GARY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EA1DpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MA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BAAuB;wBACvB,aAAa;wBACb,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-textarea.mjs","sources":["../../../../packages/formlyantd/textarea/src/textarea.type.ts","../../../../packages/formlyantd/textarea/src/textarea.module.ts","../../../../packages/formlyantd/textarea/src/ngx-formly-zorro-antd-textarea.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 { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface TextareaProps extends FormlyFieldProps {\n type?: 'count' | 'clear';\n\n /**\n * 自适应内容高度,可设置为 boolean 或对象:{ minRows: 2, maxRows: 6 }\n * @default false\n */\n autosize?: boolean | { minRows: number; maxRows: number };\n\n /**\n * 是否隐藏边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * textarea 数字提示显示的最大值\n */\n maxCharacterCount?: number;\n}\n\nexport interface FormlyTextareaFieldConfig extends NzFormlyFieldConfig<TextareaProps> {\n type: 'textarea' | Type<FormlyFieldTextarea>;\n}\n\n@Component({\n selector: 'formly-field-textarea',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'count'\">\n <nz-textarea-count [nzMaxCharacterCount]=\"props['maxCharacterCount'] || 0\">\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n ></textarea>\n </nz-textarea-count>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'clear'\">\n <nz-input-group\n class=\"ant-input-affix-wrapper-textarea-with-clear-btn\"\n [nzSuffix]=\"textAreaClearTpl\"\n >\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </nz-input-group>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </ng-container>\n </ng-container>\n\n <ng-template #textareaTpl>\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n ></textarea>\n </ng-template>\n\n <!-- 清除数据 -->\n <ng-template #textAreaClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {\n override defaultOptions = {\n props: {\n rows: 4,\n autosize: false,\n borderless: false\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 { FormlyFieldTextarea } from './textarea.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA0FM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AA5DlF,IAAA,WAAA,GAAA;;AA6DW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AAClB,aAAA;SACF,CAAC;AACH,KAAA;8GARY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EA1DpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,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BACb,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-timepicker.mjs","sources":["../../../../packages/formlyantd/timepicker/src/timepicker.type.ts","../../../../packages/formlyantd/timepicker/src/timepicker.module.ts","../../../../packages/formlyantd/timepicker/src/ngx-formly-zorro-antd-timepicker.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { DatePipe } from '@angular/common';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\ninterface TimepickerProps extends FormlyFieldProps {\n /**\n * 选择框底部显示自定义的内容\n */\n addOn?: TemplateRef<void>;\n\n /**\n * 是否展示清除按钮\n * @default true\n */\n allowEmpty?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 清除按钮的提示文案\n * @default clear\n */\n clearText?: string;\n\n /**\n * 此刻按钮文本\n * @default 此刻\n */\n nowText?: string;\n\n /**\n * 确认按钮文本\n * @default 确定\n */\n okText?: string;\n\n /**\n * 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值\n * @default new Date()\n */\n defaultOpenValue?: Date;\n\n /**\n * \t禁止选择部分小时选项\n */\n disabledHours?: () => number[];\n\n /**\n * 禁止选择部分分钟选项\n */\n disabledMinutes?: (hour: number) => number[];\n\n /**\n * 禁止选择部分秒选项\n */\n disabledSeconds?: (hour: number, minute: number) => number[];\n\n /**\n * 展示的时间格式\n * @default \"HH:mm:ss\"\n */\n format?: DatePipe;\n\n /**\n * 隐藏禁止选择的选项\n * @default false\n */\n hideDisabledOptions?: boolean;\n\n /**\n * 小时选项间隔\n * @default 1\n */\n hourStep?: number;\n\n /**\n * 分钟选项间隔\n * @default 1\n */\n minuteStep?: number;\n\n /**\n * 秒选项间隔\n * @default 1\n */\n secondStep?: number;\n\n /**\n * 面板是否打开,可双向绑定\n * @default false\n */\n open?: boolean;\n\n /**\n * 弹出层类名\n * @default '''\n */\n popupClassName?: string;\n\n /**\n * 使用12小时制,为true时format默认为h:mm:ss a\n * @default false\n */\n use12Hours?: boolean;\n /**\n * 无边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 为 input 标签设置只读属性(避免在移动设备上触发小键盘)\n * @default false\n */\n inputReadOnly?: boolean;\n\n /**\n * 自定义的后缀图标\n *\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 面板打开/关闭时的回调\n */\n openChange?: (field: FormlyFieldConfig, value: boolean) => void;\n}\n\nexport interface FormlyTimepickerFieldConfig extends FormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['className']\"\n [nzAddOn]=\"props['addOn']\"\n [nzAllowEmpty]=\"props['allowEmpty']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzClearText]=\"props['clearText']\"\n [nzNowText]=\"props['nowText']\"\n [nzOkText]=\"props['okText']\"\n [nzDefaultOpenValue]=\"props['defaultOpenValue']\"\n [nzDisabledHours]=\"props['disabledHours']\"\n [nzDisabledMinutes]=\"props['disabledMinutes']\"\n [nzDisabledSeconds]=\"props['disabledSeconds']\"\n [nzFormat]=\"props['format']\"\n [nzHideDisabledOptions]=\"props['hideDisabledOptions']!!\"\n [nzHourStep]=\"props['hourStep']\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMinuteStep]=\"props['minuteStep']\"\n [nzSecondStep]=\"props['secondStep']\"\n [nzOpen]=\"props['open']!!\"\n [nzPopupClassName]=\"props['popupClassName']\"\n [nzUse12Hours]=\"props['use12Hours']!!\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n ></nz-time-picker>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowEmpty: true,\n autoFocus: false,\n backdrop: false,\n borderless: false,\n inputReadOnly: false,\n open: false,\n clearText: 'clear',\n defaultOpenValue: new Date(),\n format: 'HH:mm:ss' as NzSafeAny\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 { NzTimePickerModule } from 'ng-zorro-antd/time-picker';\nimport { FormlyFieldTimepicker } from './timepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldTimepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTimePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'timepicker',\n component: FormlyFieldTimepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTimepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAoLM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js","sources":["../../../../packages/formlyantd/timepicker/src/timepicker.type.ts","../../../../packages/formlyantd/timepicker/src/timepicker.module.ts","../../../../packages/formlyantd/timepicker/src/ngx-formly-zorro-antd-timepicker.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { DatePipe } from '@angular/common';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\ninterface TimepickerProps extends FormlyFieldProps {\n /**\n * 选择框底部显示自定义的内容\n */\n addOn?: TemplateRef<void>;\n\n /**\n * 是否展示清除按钮\n * @default true\n */\n allowEmpty?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 清除按钮的提示文案\n * @default clear\n */\n clearText?: string;\n\n /**\n * 此刻按钮文本\n * @default 此刻\n */\n nowText?: string;\n\n /**\n * 确认按钮文本\n * @default 确定\n */\n okText?: string;\n\n /**\n * 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值\n * @default new Date()\n */\n defaultOpenValue?: Date;\n\n /**\n * \t禁止选择部分小时选项\n */\n disabledHours?: () => number[];\n\n /**\n * 禁止选择部分分钟选项\n */\n disabledMinutes?: (hour: number) => number[];\n\n /**\n * 禁止选择部分秒选项\n */\n disabledSeconds?: (hour: number, minute: number) => number[];\n\n /**\n * 展示的时间格式\n * @default \"HH:mm:ss\"\n */\n format?: DatePipe;\n\n /**\n * 隐藏禁止选择的选项\n * @default false\n */\n hideDisabledOptions?: boolean;\n\n /**\n * 小时选项间隔\n * @default 1\n */\n hourStep?: number;\n\n /**\n * 分钟选项间隔\n * @default 1\n */\n minuteStep?: number;\n\n /**\n * 秒选项间隔\n * @default 1\n */\n secondStep?: number;\n\n /**\n * 面板是否打开,可双向绑定\n * @default false\n */\n open?: boolean;\n\n /**\n * 弹出层类名\n * @default '''\n */\n popupClassName?: string;\n\n /**\n * 使用12小时制,为true时format默认为h:mm:ss a\n * @default false\n */\n use12Hours?: boolean;\n /**\n * 无边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 为 input 标签设置只读属性(避免在移动设备上触发小键盘)\n * @default false\n */\n inputReadOnly?: boolean;\n\n /**\n * 自定义的后缀图标\n *\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 面板打开/关闭时的回调\n */\n openChange?: FormlyAttributeEvent<boolean>;\n}\n\nexport interface FormlyTimepickerFieldConfig extends NzFormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['className']\"\n [nzAddOn]=\"props['addOn']\"\n [nzAllowEmpty]=\"props['allowEmpty']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzClearText]=\"props['clearText']\"\n [nzNowText]=\"props['nowText']\"\n [nzOkText]=\"props['okText']\"\n [nzDefaultOpenValue]=\"props['defaultOpenValue']\"\n [nzDisabledHours]=\"props['disabledHours']\"\n [nzDisabledMinutes]=\"props['disabledMinutes']\"\n [nzDisabledSeconds]=\"props['disabledSeconds']\"\n [nzFormat]=\"props['format']\"\n [nzHideDisabledOptions]=\"props['hideDisabledOptions']!!\"\n [nzHourStep]=\"props['hourStep']\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMinuteStep]=\"props['minuteStep']\"\n [nzSecondStep]=\"props['secondStep']\"\n [nzOpen]=\"props['open']!!\"\n [nzPopupClassName]=\"props['popupClassName']\"\n [nzUse12Hours]=\"props['use12Hours']!!\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n ></nz-time-picker>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowEmpty: true,\n autoFocus: false,\n backdrop: false,\n borderless: false,\n inputReadOnly: false,\n open: false,\n clearText: 'clear',\n defaultOpenValue: new Date(),\n format: 'HH:mm:ss' as NzSafeAny\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 { NzTimePickerModule } from 'ng-zorro-antd/time-picker';\nimport { FormlyFieldTimepicker } from './timepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldTimepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTimePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'timepicker',\n component: FormlyFieldTimepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTimepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAqLM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAnCrE,IAAA,WAAA,GAAA;;AAoCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,aAAa,EAAE,KAAK;AACpB,gB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