ngx-formly-zorro-antd 17.3.7 → 17.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/button/button.type.d.ts +3 -0
  2. package/button-group/button-group.type.d.ts +3 -0
  3. package/card/card.type.d.ts +3 -0
  4. package/card-wrapper/card-wrapper.props.d.ts +3 -3
  5. package/cascader/cascader.type.d.ts +3 -0
  6. package/checkbox/checkbox.type.d.ts +6 -0
  7. package/common/formly-box-templates.directive.d.ts +3 -0
  8. package/common/interface.d.ts +3 -0
  9. package/datepicker/datepicker.props.d.ts +3 -0
  10. package/esm2022/button/button.type.mjs +21 -29
  11. package/esm2022/button-group/button-group.type.mjs +11 -11
  12. package/esm2022/card/card.type.mjs +9 -9
  13. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  14. package/esm2022/card-wrapper/card.wrapper.mjs +9 -9
  15. package/esm2022/cascader/cascader.type.mjs +21 -21
  16. package/esm2022/checkbox/checkbox.type.mjs +17 -15
  17. package/esm2022/common/formly-box-templates.directive.mjs +4 -1
  18. package/esm2022/common/interface.mjs +1 -1
  19. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  20. package/esm2022/datepicker/datepicker.type.mjs +31 -37
  21. package/esm2022/flex/flex.type.mjs +1 -1
  22. package/esm2022/form-field/form-field.props.mjs +1 -1
  23. package/esm2022/form-field/form-field.wrapper.mjs +8 -13
  24. package/esm2022/grid/grid.props.mjs +1 -1
  25. package/esm2022/input/input.props.mjs +1 -1
  26. package/esm2022/input/input.type.mjs +5 -13
  27. package/esm2022/input-group/input-group.props.mjs +1 -1
  28. package/esm2022/input-number/input-number.props.mjs +1 -1
  29. package/esm2022/input-number/input-number.type.mjs +7 -7
  30. package/esm2022/radio/radio.type.mjs +3 -1
  31. package/esm2022/rate/rate.type.mjs +11 -11
  32. package/esm2022/ref-template/ref-template.type.mjs +1 -1
  33. package/esm2022/select/select.props.mjs +1 -1
  34. package/esm2022/slider/slider.type.mjs +5 -5
  35. package/esm2022/space/space.type.mjs +1 -1
  36. package/esm2022/switch/switch.type.mjs +3 -3
  37. package/esm2022/tabs/tabs.props.mjs +1 -1
  38. package/esm2022/tabs/tabs.wrapper.mjs +27 -40
  39. package/esm2022/text-value/text-value.type.mjs +1 -1
  40. package/esm2022/textarea/textarea.type.mjs +1 -1
  41. package/esm2022/timepicker/timepicker.type.mjs +5 -5
  42. package/esm2022/transfer/transfer.type.mjs +7 -7
  43. package/esm2022/tree-select/tree-select.type.mjs +3 -3
  44. package/esm2022/upload/upload.component.mjs +4 -1
  45. package/esm2022/upload/upload.props.mjs +1 -1
  46. package/esm2022/upload/upload.type.mjs +7 -7
  47. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +10 -10
  48. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  49. package/fesm2022/ngx-formly-zorro-antd-button.mjs +20 -28
  50. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  51. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +8 -8
  52. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  53. package/fesm2022/ngx-formly-zorro-antd-card.mjs +8 -8
  54. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  55. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +20 -20
  56. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  57. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +18 -15
  58. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  59. package/fesm2022/ngx-formly-zorro-antd-common.mjs +3 -0
  60. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  61. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +30 -36
  62. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  63. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
  64. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +7 -12
  65. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  66. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +6 -6
  67. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  68. package/fesm2022/ngx-formly-zorro-antd-input.mjs +4 -12
  69. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  70. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +2 -0
  71. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  72. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +10 -10
  73. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  74. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  75. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +4 -4
  76. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  77. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  78. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +2 -2
  79. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  80. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +26 -39
  81. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  82. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  83. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  84. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +4 -4
  85. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  86. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +6 -6
  87. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  88. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +2 -2
  89. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  90. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +9 -6
  91. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  92. package/flex/flex.type.d.ts +3 -0
  93. package/form-field/form-field.props.d.ts +28 -1
  94. package/form-field/form-field.wrapper.d.ts +3 -0
  95. package/grid/grid.props.d.ts +3 -0
  96. package/input/input.props.d.ts +3 -0
  97. package/input-group/input-group.props.d.ts +3 -0
  98. package/input-number/input-number.props.d.ts +3 -0
  99. package/package.json +13 -16
  100. package/radio/radio.type.d.ts +8 -1
  101. package/rate/rate.type.d.ts +3 -0
  102. package/ref-template/ref-template.type.d.ts +3 -0
  103. package/select/select.props.d.ts +3 -0
  104. package/slider/slider.type.d.ts +3 -0
  105. package/space/space.type.d.ts +3 -0
  106. package/switch/switch.type.d.ts +3 -0
  107. package/tabs/tabs.props.d.ts +3 -0
  108. package/tabs/tabs.wrapper.d.ts +0 -1
  109. package/text-value/text-value.type.d.ts +3 -0
  110. package/textarea/textarea.type.d.ts +3 -0
  111. package/timepicker/timepicker.type.d.ts +3 -0
  112. package/transfer/transfer.type.d.ts +3 -0
  113. package/tree-select/tree-select.type.d.ts +3 -0
  114. package/upload/upload.component.d.ts +3 -0
  115. package/upload/upload.props.d.ts +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name'] || ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n (nzChange)=\"props.change && props.change(field, $event)\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange'](field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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';\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAoGM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;AAOF,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;AAED,IAAA,cAAc,CAAC,IAAoB,EAAA;AACjC,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;AAED,IAAA,MAAM,CAAC,KAA0B,EAAA;AAC/B,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,QAAA,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAA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ACd,cAAc;YACd,YAAY,EAAAJ,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAaH,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,oBAAoB,YAlB7B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,cAAc;YACd,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;AACpD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n/**\n * @private\n */\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name'] ?? ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzChange)=\"props.change?.(field, $event)\"\n (nzFileListChange)=\"props['fileListChange']?.(field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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';\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAgBA;;AAEG;AAqFG,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;AAOF,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD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AAK,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;;;AC/BD;;AAEG;;;;"}
@@ -3,6 +3,9 @@ import { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
3
3
  import type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
4
4
  import type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';
5
5
  import * as i0 from "@angular/core";
6
+ /**
7
+ * @publicApi
8
+ */
6
9
  export interface FlexProps extends FormlyFieldProps {
7
10
  /**
8
11
  * 自定义css类
@@ -4,8 +4,14 @@ import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
4
4
  import type { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
5
5
  import type { NzTSType } from 'ng-zorro-antd/core/types';
6
6
  import type { ControlOptions, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
7
+ /**
8
+ * @publicApi
9
+ */
7
10
  type strNumNull = string | number | null;
8
- /** nz表单配置项 */
11
+ /**
12
+ * nz表单配置项
13
+ * @publicApi
14
+ */
9
15
  export interface NzFormWrapperProps extends ControlOptions {
10
16
  /**
11
17
  * 隐藏必填标记
@@ -49,6 +55,7 @@ export interface NzFormWrapperProps extends ControlOptions {
49
55
  controlStyle?: NgStyleType;
50
56
  /**
51
57
  * 是否不显示 label 后面的冒号
58
+ * @default false
52
59
  */
53
60
  noColon?: boolean;
54
61
  /**
@@ -62,10 +69,12 @@ export interface NzFormWrapperProps extends ControlOptions {
62
69
  tooltipIcon?: string | NzFormTooltipIcon;
63
70
  /**
64
71
  * 标签文本对齐方式
72
+ * @default 'right'
65
73
  */
66
74
  labelAlign?: NzLabelAlignType;
67
75
  /**
68
76
  * label 标签的文本换行
77
+ * @default false
69
78
  */
70
79
  labelWrap?: boolean;
71
80
  /**
@@ -77,10 +86,19 @@ export interface NzFormWrapperProps extends ControlOptions {
77
86
  * 描述
78
87
  */
79
88
  description?: string;
89
+ /**
90
+ * 校验状态 success 时提示信息
91
+ */
80
92
  successTip?: NzTipType;
81
93
  successTipName?: string;
94
+ /**
95
+ * 校验状态 warning 时提示信息
96
+ */
82
97
  warningTip?: NzTipType;
83
98
  warningTipName?: string;
99
+ /**
100
+ * 正在校验时提示信息
101
+ */
84
102
  validatingTip?: NzTipType;
85
103
  validatingTipName?: string;
86
104
  /**
@@ -88,7 +106,13 @@ export interface NzFormWrapperProps extends ControlOptions {
88
106
  */
89
107
  extra?: NzTSType;
90
108
  extraName?: string;
109
+ /**
110
+ * 配置提示的对象, 具体用法请参考示例:自动提示
111
+ */
91
112
  autoTips?: Record<string, Record<string, string>>;
113
+ /**
114
+ * 禁用自动提示
115
+ */
92
116
  disableAutoTips?: boolean | 'default';
93
117
  /** 在form-control尾部添加文本 */
94
118
  afterText?: string;
@@ -142,6 +166,9 @@ export interface NzFormWrapperProps extends ControlOptions {
142
166
  /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
143
167
  controlXXl?: strNumNull | EmbeddedProperty;
144
168
  }
169
+ /**
170
+ * @publicApi
171
+ */
145
172
  export type NzTipType = string | TemplateRef<{
146
173
  $implicit: AbstractControl | NgModel;
147
174
  }>;
@@ -4,6 +4,9 @@ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
4
4
  import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
5
5
  import * as i0 from "@angular/core";
6
6
  export type FormlyFieldProps = NzFormWrapperProps;
7
+ /**
8
+ * @private
9
+ */
7
10
  export declare class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {
8
11
  fieldTemplates: FormlyBoxTemplates;
9
12
  constructor(fieldTemplates: FormlyBoxTemplates);
@@ -3,6 +3,9 @@ import type { IndexableObject } from 'ng-zorro-antd/core/types';
3
3
  import type { EmbeddedProperty, NzAlign, NzJustify } from 'ng-zorro-antd/grid';
4
4
  import type { NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
5
5
  type strNumNull = string | number | null;
6
+ /**
7
+ * @publicApi
8
+ */
6
9
  export interface GridColProps {
7
10
  /** flex 布局属性 */
8
11
  flex?: strNumNull;
@@ -5,6 +5,9 @@ import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
5
5
  import type { AutocompleteProps } from 'ngx-formly-zorro-antd/autocomplete';
6
6
  export interface FormlyInputProps extends InputProps {
7
7
  }
8
+ /**
9
+ * @publicApi
10
+ */
8
11
  export interface InputProps extends FormlyFieldProps, FormlyInputGroupProps {
9
12
  /**
10
13
  * autoComplete=>输入框自动完成
@@ -3,6 +3,9 @@ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
3
3
  import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
4
4
  export interface FormlyInputGroupProps extends InputGroupProps {
5
5
  }
6
+ /**
7
+ * @publicApi
8
+ */
6
9
  export interface InputGroupProps extends FormlyFieldProps {
7
10
  /**
8
11
  * 带有后缀图标的 input,可以与 suffixIcon 配合使用
@@ -2,6 +2,9 @@ import { TemplateRef } from '@angular/core';
2
2
  import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
3
3
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
4
  import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
5
+ /**
6
+ * @publicApi
7
+ */
5
8
  export interface InputNumberProps extends FormlyFieldProps {
6
9
  type?: 'number' | 'group';
7
10
  /**
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "ngx-formly-zorro-antd",
3
- "version": "17.3.7",
3
+ "version": "17.4.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
7
7
  },
8
8
  "license": "MIT",
9
9
  "peerDependencies": {
10
- "@angular/core": "^17.0.0",
11
- "@angular/common": "^17.0.0",
12
- "@angular/forms": "^17.0.0",
13
- "@angular/platform-browser": "^17.0.0",
14
- "ng-zorro-antd": "^17.2.0",
10
+ "@angular/core": "^17.3.0",
11
+ "ng-zorro-antd": "^17.4.0",
15
12
  "@ngx-formly/core": "^6.0.0",
16
13
  "@pkt/ng.core": ">=5.1.0",
17
14
  "rxjs": "^6.5.3 || ^7.4.0"
@@ -49,11 +46,11 @@
49
46
  "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
50
47
  "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
51
48
  },
52
- "./button-group": {
53
- "types": "./button-group/index.d.ts",
54
- "esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
55
- "esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
56
- "default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
49
+ "./cascader": {
50
+ "types": "./cascader/index.d.ts",
51
+ "esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
52
+ "esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
53
+ "default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
57
54
  },
58
55
  "./card-wrapper": {
59
56
  "types": "./card-wrapper/index.d.ts",
@@ -61,11 +58,11 @@
61
58
  "esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
62
59
  "default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
63
60
  },
64
- "./cascader": {
65
- "types": "./cascader/index.d.ts",
66
- "esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
67
- "esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
68
- "default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
61
+ "./button-group": {
62
+ "types": "./button-group/index.d.ts",
63
+ "esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
64
+ "esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
65
+ "default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
69
66
  },
70
67
  "./checkbox": {
71
68
  "types": "./checkbox/index.d.ts",
@@ -1,11 +1,14 @@
1
1
  import { Type } from '@angular/core';
2
2
  import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
- import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
3
+ import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
4
4
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
5
5
  import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
6
6
  import type { NzSizeLDSType } from 'ng-zorro-antd/core/types';
7
7
  import type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * @publicApi
11
+ */
9
12
  export interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {
10
13
  type?: 'button';
11
14
  /**
@@ -22,6 +25,10 @@ export interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {
22
25
  * @default outline
23
26
  */
24
27
  buttonStyle?: NzRadioButtonStyle;
28
+ /**
29
+ * 数值改变时回调
30
+ */
31
+ modelChange?: FormlyAttributeEvent<boolean | null | undefined>;
25
32
  }
26
33
  export interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {
27
34
  type: 'radio' | Type<FormlyFieldRadio>;
@@ -3,6 +3,9 @@ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
3
  import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
4
4
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
5
5
  import * as i0 from "@angular/core";
6
+ /**
7
+ * @publicApi
8
+ */
6
9
  export interface RateProps extends FormlyFieldProps {
7
10
  /**
8
11
  * 是否允许再次点击后清除
@@ -4,6 +4,9 @@ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
4
  import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
5
5
  import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * @publicApi
9
+ */
7
10
  export interface RefTemplateProps extends FormlyFieldProps {
8
11
  ref?: string | TemplateRef<{
9
12
  $implicit: FormlyRefTemplateFieldConfig;
@@ -4,6 +4,9 @@ import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
4
4
  import { NzOptionComponent } from 'ng-zorro-antd/select';
5
5
  import type { NzSelectSizeType, NzSelectModeType, NzSelectItemInterface, NzSelectPlacementType } from 'ng-zorro-antd/select';
6
6
  import type { NzStatus, NzSafeAny } from 'ng-zorro-antd/core/types';
7
+ /**
8
+ * @publicApi
9
+ */
7
10
  export interface SelectProps extends FormlyFieldSelectProps {
8
11
  /**
9
12
  * 与 SelectControlValueAccessor 相同
@@ -4,6 +4,9 @@ import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro
4
4
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
5
5
  import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * @publicApi
9
+ */
7
10
  export interface SlideProps extends FormlyFieldProps {
8
11
  /**
9
12
  * 是否只能拖拽到刻度上
@@ -5,6 +5,9 @@ import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
5
5
  import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
6
6
  import type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';
7
7
  import * as i0 from "@angular/core";
8
+ /**
9
+ * @publicApi
10
+ */
8
11
  export interface SpaceProps extends FormlyFieldProps {
9
12
  /**
10
13
  * 间距大小
@@ -4,6 +4,9 @@ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
4
4
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
5
5
  import type { NzSizeDSType } from 'ng-zorro-antd/core/types';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * @publicApi
9
+ */
7
10
  export interface SwitchProps extends FormlyFieldProps {
8
11
  /**
9
12
  * 选中时的内容
@@ -3,6 +3,9 @@ import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro
3
3
  import { NzTabComponent } from 'ng-zorro-antd/tabs';
4
4
  import type { NzSizeLDSType, NzSafeAny } from 'ng-zorro-antd/core/types';
5
5
  import type { NzTabsCanDeactivateFn, TabTemplateContext, NzTabType, NzTabPosition, NzAnimatedInterface } from 'ng-zorro-antd/tabs';
6
+ /**
7
+ * @publicApi
8
+ */
6
9
  export interface TabsProps {
7
10
  /**
8
11
  * 当前激活 tab 面板的 序列号,可双向绑定
@@ -9,7 +9,6 @@ export interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps>
9
9
  export declare class FormlyWrapperTabs extends FieldWrapper<NzFormlyFieldConfig<TabsProps>> {
10
10
  defaultOptions: {
11
11
  props: {
12
- animated: boolean;
13
12
  size: "default";
14
13
  type: "line";
15
14
  tabPosition: "top";
@@ -5,6 +5,9 @@ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
5
5
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
6
6
  import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
7
7
  import * as i0 from "@angular/core";
8
+ /**
9
+ * @publicApi
10
+ */
8
11
  export interface TextValueProps extends FormlyFieldProps {
9
12
  /**
10
13
  * 格式化函数
@@ -3,6 +3,9 @@ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
3
  import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
4
4
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
5
5
  import * as i0 from "@angular/core";
6
+ /**
7
+ * @publicApi
8
+ */
6
9
  export interface TextareaProps extends FormlyFieldProps {
7
10
  type?: 'count' | 'clear';
8
11
  /**
@@ -4,6 +4,9 @@ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
4
4
  import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
5
5
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * @publicApi
9
+ */
7
10
  export interface TimepickerProps extends FormlyFieldProps {
8
11
  /**
9
12
  * 选择框底部显示自定义的内容
@@ -6,6 +6,9 @@ import { Observable } from 'rxjs';
6
6
  import { NzTransferComponent, TransferCanMove, TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
7
7
  import type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * @publicApi
11
+ */
9
12
  export interface TransferProps extends FormlyFieldProps {
10
13
  /**
11
14
  * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys
@@ -6,6 +6,9 @@ import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
6
6
  import type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';
7
7
  import type { NzPlacementType } from 'ng-zorro-antd/tree-select';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * @publicApi
11
+ */
9
12
  export interface TreeSelectProps extends FormlyFieldProps {
10
13
  /**
11
14
  * 显示清除按钮
@@ -5,6 +5,9 @@ import type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/
5
5
  import { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';
6
6
  import type { AntdIcon } from './upload.props';
7
7
  import * as i0 from "@angular/core";
8
+ /**
9
+ * @private
10
+ */
8
11
  export declare class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {
9
12
  /** 上传显示文本信息 */
10
13
  nzeText?: string;
@@ -5,6 +5,9 @@ import { Observable, Subscription } from 'rxjs';
5
5
  import type { ThemeType } from '@ant-design/icons-angular';
6
6
  import type { NzUploadChangeParam, NzUploadFile, NzUploadTransformFileType, UploadFilter, NzIconRenderTemplate, NzUploadListType, NzUploadType, NzUploadXHRArgs } from 'ng-zorro-antd/upload';
7
7
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
8
+ /**
9
+ * @publicApi
10
+ */
8
11
  export interface UploadProps extends FormlyFieldProps {
9
12
  type?: NzUploadType;
10
13
  /**
@@ -163,6 +166,9 @@ export interface UploadProps extends FormlyFieldProps {
163
166
  */
164
167
  showUploadButton?: boolean;
165
168
  }
169
+ /**
170
+ * @publicApi
171
+ */
166
172
  export interface AntdIcon {
167
173
  /** 图标类型 */
168
174
  type: string;