ngx-formly-zorro-antd 16.1.1 → 16.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -2
- package/card/card.type.d.ts +3 -2
- package/card-wrapper/card.wrapper.d.ts +4 -3
- package/cascader/cascader.type.d.ts +6 -5
- package/checkbox/checkbox.type.d.ts +4 -3
- package/common/interface.d.ts +19 -0
- package/common/public_api.d.ts +1 -0
- package/datepicker/datepicker.props.d.ts +5 -5
- package/datepicker/datepicker.type.d.ts +3 -2
- package/esm2022/button/button.type.mjs +1 -1
- package/esm2022/card/card.type.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/interface.mjs +2 -0
- package/esm2022/common/public_api.mjs +2 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +8 -4
- package/esm2022/radio/radio.type.mjs +1 -3
- package/esm2022/rate/rate.type.mjs +1 -1
- package/esm2022/ref-template/ngx-formly-zorro-antd-ref-template.mjs +5 -0
- package/esm2022/ref-template/public_api.mjs +3 -0
- package/esm2022/ref-template/ref-template.module.mjs +44 -0
- package/esm2022/ref-template/ref-template.type.mjs +89 -0
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +1 -1
- package/esm2022/space/space.type.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +5 -1
- package/esm2022/tree-select/tree-select.type.mjs +31 -15
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +0 -2
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +136 -0
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +7 -3
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +3 -4
- package/form-field/form-field.wrapper.d.ts +3 -2
- package/grid/grid.type.d.ts +3 -2
- package/input/input.props.d.ts +3 -3
- package/input/input.type.d.ts +3 -2
- package/input-group/input-group.type.d.ts +4 -3
- package/input-number/input-number.props.d.ts +2 -2
- package/input-number/input-number.type.d.ts +3 -2
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +46 -40
- package/radio/radio.type.d.ts +3 -2
- package/rate/rate.type.d.ts +4 -3
- package/ref-template/index.d.ts +5 -0
- package/ref-template/public_api.d.ts +2 -0
- package/ref-template/ref-template.module.d.ts +11 -0
- package/ref-template/ref-template.type.d.ts +79 -0
- package/select/select.props.d.ts +4 -4
- package/select/select.type.d.ts +3 -2
- package/slider/slider.type.d.ts +4 -3
- package/space/space.type.d.ts +3 -2
- package/switch/switch.type.d.ts +3 -2
- package/tabs/tabs.props.d.ts +9 -9
- package/tabs/tabs.wrapper.d.ts +4 -3
- package/textarea/textarea.type.d.ts +3 -2
- package/timepicker/timepicker.type.d.ts +4 -3
- package/transfer/transfer.type.d.ts +5 -4
- package/tree-select/tree-select.module.d.ts +4 -3
- package/tree-select/tree-select.type.d.ts +21 -4
- package/upload/upload.props.d.ts +2 -2
- package/upload/upload.type.d.ts +3 -2
@@ -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 Input,\n ViewEncapsulation,\n ViewChild\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\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]=\"className\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n <ng-container [ngSwitch]=\"nzType\">\n <ng-container *ngSwitchCase=\"'drag'\">\n <p class=\"ant-upload-drag-icon\">\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button\n type=\"button\"\n nz-button\n [disabled]=\"nzDisabled!!\"\n *ngIf=\"nzeShowUploadButton !== false\"\n >\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n {{ nzeText }}\n </button>\n\n <div *ngIf=\"nzeShowUploadButton === false\">\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n </ng-container>\n </ng-container>\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() 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() className = '';\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 {\n Component,\n ChangeDetectionStrategy,\n Type,\n ViewChild,\n OnInit,\n Optional\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\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 FormlyFieldConfig<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 [className]=\"props['className'] || ''\"\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 { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\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 FormlyCommonModule,\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.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AA+GM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AAhGxD,IAAA,WAAA,GAAA;;;AA8GW,QA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AA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAnB7B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB;YAClB,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;kBAtBhC,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,kBAAkB;wBAClB,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;;;ACjCD;;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 Input,\n ViewEncapsulation,\n ViewChild\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\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]=\"className\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n <ng-container [ngSwitch]=\"nzType\">\n <ng-container *ngSwitchCase=\"'drag'\">\n <p class=\"ant-upload-drag-icon\">\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button\n type=\"button\"\n nz-button\n [disabled]=\"nzDisabled!!\"\n *ngIf=\"nzeShowUploadButton !== false\"\n >\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n {{ nzeText }}\n </button>\n\n <div *ngIf=\"nzeShowUploadButton === false\">\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n </ng-container>\n </ng-container>\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() 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() className = '';\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 {\n Component,\n ChangeDetectionStrategy,\n Type,\n ViewChild,\n OnInit,\n Optional\n} 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 [className]=\"props['className'] || ''\"\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 { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\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 FormlyCommonModule,\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.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AA+GM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AAhGxD,IAAA,WAAA,GAAA;;;AA8GW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;;QAGO,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAGxB,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,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,kBAAkB;YAClB,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;kBAtBhC,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,kBAAkB;wBAClB,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;;;ACjCD;;AAEG;;;;"}
|
@@ -24,6 +24,7 @@ import { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';
|
|
24
24
|
import { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';
|
25
25
|
import { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';
|
26
26
|
import { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';
|
27
|
+
import { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';
|
27
28
|
|
28
29
|
class FormlyNgAntdModule {
|
29
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNgAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
@@ -50,7 +51,8 @@ class FormlyNgAntdModule {
|
|
50
51
|
FormlyNzCardWrapperModule,
|
51
52
|
FormlyNzButtonModule,
|
52
53
|
FormlyNzGridModule,
|
53
|
-
FormlyNzSpaceModule
|
54
|
+
FormlyNzSpaceModule,
|
55
|
+
FormlyRefTemplateModule] }); }
|
54
56
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyNzFormFieldModule,
|
55
57
|
FormlyCommonModule,
|
56
58
|
FormlyNzInputModule,
|
@@ -74,7 +76,8 @@ class FormlyNgAntdModule {
|
|
74
76
|
FormlyNzCardWrapperModule,
|
75
77
|
FormlyNzButtonModule,
|
76
78
|
FormlyNzGridModule,
|
77
|
-
FormlyNzSpaceModule
|
79
|
+
FormlyNzSpaceModule,
|
80
|
+
FormlyRefTemplateModule] }); }
|
78
81
|
}
|
79
82
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNgAntdModule, decorators: [{
|
80
83
|
type: NgModule,
|
@@ -103,7 +106,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
103
106
|
FormlyNzCardWrapperModule,
|
104
107
|
FormlyNzButtonModule,
|
105
108
|
FormlyNzGridModule,
|
106
|
-
FormlyNzSpaceModule
|
109
|
+
FormlyNzSpaceModule,
|
110
|
+
FormlyRefTemplateModule
|
107
111
|
]
|
108
112
|
}]
|
109
113
|
}] });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd.mjs","sources":["../../../../packages/formlyantd/src/lib/ui-ng-zorro-antd.module.ts","../../../../packages/formlyantd/src/ngx-formly-zorro-antd.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\nimport { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\nimport { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';\n\n@NgModule({\n imports: [\n FormlyNzFormFieldModule,\n FormlyCommonModule,\n FormlyNzInputModule,\n FormlyNzInputNumberModule,\n FormlyNzInputGroupModule,\n FormlyNzTextareaModule,\n FormlyNzRadioModule,\n FormlyNzCheckboxModule,\n FormlyNzSelectModule,\n FormlyNzSwitchModule,\n FormlyNzCascaderModule,\n FormlyNzDatepickerModule,\n FormlyNzRateModule,\n FormlyNzSliderModule,\n FormlyNzTimepickerModule,\n FormlyNzTransferModule,\n FormlyNzTreeSelectModule,\n FormlyNzUploadModule,\n FormlyNzTabsModule,\n FormlyNzCardModule,\n FormlyNzCardWrapperModule,\n FormlyNzButtonModule,\n FormlyNzGridModule,\n FormlyNzSpaceModule\n ]\n})\nexport class FormlyNgAntdModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd.mjs","sources":["../../../../packages/formlyantd/src/lib/ui-ng-zorro-antd.module.ts","../../../../packages/formlyantd/src/ngx-formly-zorro-antd.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\nimport { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\nimport { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';\nimport { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';\n\n@NgModule({\n imports: [\n FormlyNzFormFieldModule,\n FormlyCommonModule,\n FormlyNzInputModule,\n FormlyNzInputNumberModule,\n FormlyNzInputGroupModule,\n FormlyNzTextareaModule,\n FormlyNzRadioModule,\n FormlyNzCheckboxModule,\n FormlyNzSelectModule,\n FormlyNzSwitchModule,\n FormlyNzCascaderModule,\n FormlyNzDatepickerModule,\n FormlyNzRateModule,\n FormlyNzSliderModule,\n FormlyNzTimepickerModule,\n FormlyNzTransferModule,\n FormlyNzTreeSelectModule,\n FormlyNzUploadModule,\n FormlyNzTabsModule,\n FormlyNzCardModule,\n FormlyNzCardWrapperModule,\n FormlyNzButtonModule,\n FormlyNzGridModule,\n FormlyNzSpaceModule,\n FormlyRefTemplateModule\n ]\n})\nexport class FormlyNgAntdModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyDa,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EA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AAwB;wBACxB,sBAAsB;wBACtB,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,oBAAoB;wBACpB,sBAAsB;wBACtB,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,wBAAwB;wBACxB,sBAAsB;wBACtB,wBAAwB;wBACxB,oBAAoB;wBACpB,kBAAkB;wBAClB,kBAAkB;wBAClB,yBAAyB;wBACzB,oBAAoB;wBACpB,kBAAkB;wBAClB,mBAAmB;wBACnB,uBAAuB;AACxB,qBAAA;AACF,iBAAA,CAAA;;;ACxDD;;AAEG;;;;"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import { FormlyFieldProps as CoreFormlyFieldProps, FormlyFieldConfig } from '@ngx-formly/core';
|
3
2
|
import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
|
4
3
|
import type { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
|
5
|
-
import type { NzTSType
|
4
|
+
import type { NzTSType } from 'ng-zorro-antd/core/types';
|
5
|
+
import type { ControlOptions } from 'ngx-formly-zorro-antd/common';
|
6
6
|
/** nz表单配置项 */
|
7
|
-
export interface NzFormWrapperProps extends
|
7
|
+
export interface NzFormWrapperProps extends ControlOptions {
|
8
8
|
/**
|
9
9
|
* 隐藏必填标记
|
10
10
|
*/
|
@@ -110,5 +110,4 @@ export interface NzFormWrapperProps extends CoreFormlyFieldProps {
|
|
110
110
|
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
111
111
|
controlXXl?: string | number | EmbeddedProperty | null;
|
112
112
|
};
|
113
|
-
valueChanges?: (value: NzSafeAny, field: FormlyFieldConfig) => void;
|
114
113
|
}
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { FieldWrapper
|
1
|
+
import { FieldWrapper } from '@ngx-formly/core';
|
2
2
|
import type { NzFormWrapperProps } from './form-field.props';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import * as i0 from "@angular/core";
|
4
5
|
export type FormlyFieldProps = NzFormWrapperProps;
|
5
|
-
export declare class FormlyWrapperFormField extends FieldWrapper<
|
6
|
+
export declare class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {
|
6
7
|
get errorState(): "error" | "success";
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
|
8
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-nz-form-field", never, {}, {}, never, never, false, never>;
|
package/grid/grid.type.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { GridProps } from './grid.props';
|
4
5
|
import * as i0 from "@angular/core";
|
5
|
-
export interface FormlyGridFieldConfig extends
|
6
|
+
export interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {
|
6
7
|
type: 'grid' | Type<FormlyFieldGrid>;
|
7
8
|
}
|
8
9
|
export declare class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {
|
package/input/input.props.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
2
2
|
import { InputGroupProps } from 'ngx-formly-zorro-antd/input-group';
|
3
|
-
import type {
|
4
|
-
import type { NzSizeLDSType, NzStatus
|
3
|
+
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
|
+
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 InputProps extends FormlyFieldProps, InputGroupProps {
|
7
7
|
/**
|
@@ -32,5 +32,5 @@ export interface InputProps extends FormlyFieldProps, InputGroupProps {
|
|
32
32
|
/** 输入框自动完成配置选项 */
|
33
33
|
autocompleteOptions?: AutocompleteProps;
|
34
34
|
/** 数值改变时回调 */
|
35
|
-
modelChange?:
|
35
|
+
modelChange?: FormlyAttributeEvent;
|
36
36
|
}
|
package/input/input.type.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
4
5
|
import type { InputProps } from './input.props';
|
5
6
|
import * as i0 from "@angular/core";
|
6
|
-
export interface FormlyInputFieldConfig extends
|
7
|
+
export interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {
|
7
8
|
type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;
|
8
9
|
}
|
9
10
|
export declare class FormlyFieldInput extends FieldType<FieldTypeConfig> {
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType,
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
4
5
|
import type { InputGroupProps } from './input-group.props';
|
5
6
|
import * as i0 from "@angular/core";
|
6
|
-
export interface FormlyInputGroupFieldConfig extends
|
7
|
+
export interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {
|
7
8
|
type: 'input-group' | Type<FormlyFieldInputGroup>;
|
8
9
|
}
|
9
10
|
export declare class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {
|
@@ -13,7 +14,7 @@ export declare class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<Inp
|
|
13
14
|
size: "default";
|
14
15
|
};
|
15
16
|
};
|
16
|
-
get group(): FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
17
|
+
get group(): import("@ngx-formly/core").FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
17
18
|
[additionalProperties: string]: any;
|
18
19
|
}>[] | undefined;
|
19
20
|
trackById(index: number, envent: NzSafeAny): any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import type {
|
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
5
|
export interface InputNumberProps extends FormlyFieldProps {
|
@@ -77,5 +77,5 @@ export interface InputNumberProps extends FormlyFieldProps {
|
|
77
77
|
*/
|
78
78
|
compact?: boolean;
|
79
79
|
/** 数值改变时回调 */
|
80
|
-
modelChange?:
|
80
|
+
modelChange?: FormlyAttributeEvent<number | null>;
|
81
81
|
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { InputNumberProps } from './input-number.props';
|
4
5
|
import * as i0 from "@angular/core";
|
5
|
-
export interface FormlyInputNumberFieldConfig extends
|
6
|
+
export interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {
|
6
7
|
type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;
|
7
8
|
}
|
8
9
|
export declare class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {
|
@@ -23,8 +23,9 @@ import * as i21 from "ngx-formly-zorro-antd/card-wrapper";
|
|
23
23
|
import * as i22 from "ngx-formly-zorro-antd/button";
|
24
24
|
import * as i23 from "ngx-formly-zorro-antd/grid";
|
25
25
|
import * as i24 from "ngx-formly-zorro-antd/space";
|
26
|
+
import * as i25 from "ngx-formly-zorro-antd/ref-template";
|
26
27
|
export declare class FormlyNgAntdModule {
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNgAntdModule, never>;
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyNzFormFieldModule, typeof i2.FormlyCommonModule, typeof i3.FormlyNzInputModule, typeof i4.FormlyNzInputNumberModule, typeof i5.FormlyNzInputGroupModule, typeof i6.FormlyNzTextareaModule, typeof i7.FormlyNzRadioModule, typeof i8.FormlyNzCheckboxModule, typeof i9.FormlyNzSelectModule, typeof i10.FormlyNzSwitchModule, typeof i11.FormlyNzCascaderModule, typeof i12.FormlyNzDatepickerModule, typeof i13.FormlyNzRateModule, typeof i14.FormlyNzSliderModule, typeof i15.FormlyNzTimepickerModule, typeof i16.FormlyNzTransferModule, typeof i17.FormlyNzTreeSelectModule, typeof i18.FormlyNzUploadModule, typeof i19.FormlyNzTabsModule, typeof i20.FormlyNzCardModule, typeof i21.FormlyNzCardWrapperModule, typeof i22.FormlyNzButtonModule, typeof i23.FormlyNzGridModule, typeof i24.FormlyNzSpaceModule], never>;
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyNzFormFieldModule, typeof i2.FormlyCommonModule, typeof i3.FormlyNzInputModule, typeof i4.FormlyNzInputNumberModule, typeof i5.FormlyNzInputGroupModule, typeof i6.FormlyNzTextareaModule, typeof i7.FormlyNzRadioModule, typeof i8.FormlyNzCheckboxModule, typeof i9.FormlyNzSelectModule, typeof i10.FormlyNzSwitchModule, typeof i11.FormlyNzCascaderModule, typeof i12.FormlyNzDatepickerModule, typeof i13.FormlyNzRateModule, typeof i14.FormlyNzSliderModule, typeof i15.FormlyNzTimepickerModule, typeof i16.FormlyNzTransferModule, typeof i17.FormlyNzTreeSelectModule, typeof i18.FormlyNzUploadModule, typeof i19.FormlyNzTabsModule, typeof i20.FormlyNzCardModule, typeof i21.FormlyNzCardWrapperModule, typeof i22.FormlyNzButtonModule, typeof i23.FormlyNzGridModule, typeof i24.FormlyNzSpaceModule, typeof i25.FormlyRefTemplateModule], never>;
|
29
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNgAntdModule>;
|
30
31
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "16.1.
|
3
|
+
"version": "16.1.3",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -32,23 +32,23 @@
|
|
32
32
|
"esm": "./esm2022/ngx-formly-zorro-antd.mjs",
|
33
33
|
"default": "./fesm2022/ngx-formly-zorro-antd.mjs"
|
34
34
|
},
|
35
|
-
"./button": {
|
36
|
-
"types": "./button/index.d.ts",
|
37
|
-
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
38
|
-
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
39
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
40
|
-
},
|
41
35
|
"./autocomplete": {
|
42
36
|
"types": "./autocomplete/index.d.ts",
|
43
37
|
"esm2022": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
|
44
38
|
"esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
|
45
39
|
"default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
|
46
40
|
},
|
47
|
-
"./
|
48
|
-
"types": "./
|
49
|
-
"esm2022": "./esm2022/
|
50
|
-
"esm": "./esm2022/
|
51
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
41
|
+
"./button": {
|
42
|
+
"types": "./button/index.d.ts",
|
43
|
+
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
44
|
+
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
45
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
46
|
+
},
|
47
|
+
"./checkbox": {
|
48
|
+
"types": "./checkbox/index.d.ts",
|
49
|
+
"esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
50
|
+
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
51
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
52
52
|
},
|
53
53
|
"./card-wrapper": {
|
54
54
|
"types": "./card-wrapper/index.d.ts",
|
@@ -56,23 +56,23 @@
|
|
56
56
|
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
57
57
|
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
58
58
|
},
|
59
|
+
"./common": {
|
60
|
+
"types": "./common/index.d.ts",
|
61
|
+
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
62
|
+
"esm": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
63
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-common.mjs"
|
64
|
+
},
|
59
65
|
"./cascader": {
|
60
66
|
"types": "./cascader/index.d.ts",
|
61
67
|
"esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
62
68
|
"esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
63
69
|
"default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
|
64
70
|
},
|
65
|
-
"./
|
66
|
-
"types": "./
|
67
|
-
"esm2022": "./esm2022/
|
68
|
-
"esm": "./esm2022/
|
69
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
70
|
-
},
|
71
|
-
"./common": {
|
72
|
-
"types": "./common/index.d.ts",
|
73
|
-
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
74
|
-
"esm": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
75
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-common.mjs"
|
71
|
+
"./card": {
|
72
|
+
"types": "./card/index.d.ts",
|
73
|
+
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
74
|
+
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
75
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
76
76
|
},
|
77
77
|
"./datepicker": {
|
78
78
|
"types": "./datepicker/index.d.ts",
|
@@ -110,23 +110,23 @@
|
|
110
110
|
"esm": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
|
111
111
|
"default": "./fesm2022/ngx-formly-zorro-antd-input-group.mjs"
|
112
112
|
},
|
113
|
-
"./radio": {
|
114
|
-
"types": "./radio/index.d.ts",
|
115
|
-
"esm2022": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
116
|
-
"esm": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
117
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-radio.mjs"
|
118
|
-
},
|
119
113
|
"./input-number": {
|
120
114
|
"types": "./input-number/index.d.ts",
|
121
115
|
"esm2022": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
|
122
116
|
"esm": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
|
123
117
|
"default": "./fesm2022/ngx-formly-zorro-antd-input-number.mjs"
|
124
118
|
},
|
125
|
-
"./
|
126
|
-
"types": "./
|
127
|
-
"esm2022": "./esm2022/
|
128
|
-
"esm": "./esm2022/
|
129
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
119
|
+
"./radio": {
|
120
|
+
"types": "./radio/index.d.ts",
|
121
|
+
"esm2022": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
122
|
+
"esm": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
123
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-radio.mjs"
|
124
|
+
},
|
125
|
+
"./ref-template": {
|
126
|
+
"types": "./ref-template/index.d.ts",
|
127
|
+
"esm2022": "./esm2022/ref-template/ngx-formly-zorro-antd-ref-template.mjs",
|
128
|
+
"esm": "./esm2022/ref-template/ngx-formly-zorro-antd-ref-template.mjs",
|
129
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-ref-template.mjs"
|
130
130
|
},
|
131
131
|
"./rate": {
|
132
132
|
"types": "./rate/index.d.ts",
|
@@ -134,6 +134,12 @@
|
|
134
134
|
"esm": "./esm2022/rate/ngx-formly-zorro-antd-rate.mjs",
|
135
135
|
"default": "./fesm2022/ngx-formly-zorro-antd-rate.mjs"
|
136
136
|
},
|
137
|
+
"./select": {
|
138
|
+
"types": "./select/index.d.ts",
|
139
|
+
"esm2022": "./esm2022/select/ngx-formly-zorro-antd-select.mjs",
|
140
|
+
"esm": "./esm2022/select/ngx-formly-zorro-antd-select.mjs",
|
141
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-select.mjs"
|
142
|
+
},
|
137
143
|
"./slider": {
|
138
144
|
"types": "./slider/index.d.ts",
|
139
145
|
"esm2022": "./esm2022/slider/ngx-formly-zorro-antd-slider.mjs",
|
@@ -146,18 +152,18 @@
|
|
146
152
|
"esm": "./esm2022/space/ngx-formly-zorro-antd-space.mjs",
|
147
153
|
"default": "./fesm2022/ngx-formly-zorro-antd-space.mjs"
|
148
154
|
},
|
149
|
-
"./tabs": {
|
150
|
-
"types": "./tabs/index.d.ts",
|
151
|
-
"esm2022": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
152
|
-
"esm": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
153
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-tabs.mjs"
|
154
|
-
},
|
155
155
|
"./switch": {
|
156
156
|
"types": "./switch/index.d.ts",
|
157
157
|
"esm2022": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
|
158
158
|
"esm": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
|
159
159
|
"default": "./fesm2022/ngx-formly-zorro-antd-switch.mjs"
|
160
160
|
},
|
161
|
+
"./tabs": {
|
162
|
+
"types": "./tabs/index.d.ts",
|
163
|
+
"esm2022": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
164
|
+
"esm": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
165
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-tabs.mjs"
|
166
|
+
},
|
161
167
|
"./textarea": {
|
162
168
|
"types": "./textarea/index.d.ts",
|
163
169
|
"esm2022": "./esm2022/textarea/ngx-formly-zorro-antd-textarea.mjs",
|
package/radio/radio.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
5
6
|
import type { NzSizeLDSType } from 'ng-zorro-antd/core/types';
|
@@ -22,7 +23,7 @@ interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {
|
|
22
23
|
*/
|
23
24
|
buttonStyle?: NzRadioButtonStyle;
|
24
25
|
}
|
25
|
-
export interface FormlyRadioFieldConfig extends
|
26
|
+
export interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {
|
26
27
|
type: 'radio' | Type<FormlyFieldRadio>;
|
27
28
|
}
|
28
29
|
export declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
|
package/rate/rate.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { TemplateRef, Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
interface RateProps extends FormlyFieldProps {
|
@@ -38,9 +39,9 @@ interface RateProps extends FormlyFieldProps {
|
|
38
39
|
/**
|
39
40
|
* 鼠标经过时数值变化的回调
|
40
41
|
*/
|
41
|
-
hoverChange?:
|
42
|
+
hoverChange?: FormlyAttributeEvent<number | undefined>;
|
42
43
|
}
|
43
|
-
export interface FormlyRateFieldConfig extends
|
44
|
+
export interface FormlyRateFieldConfig extends NzFormlyFieldConfig<RateProps> {
|
44
45
|
type: 'rate' | Type<FormlyFieldRate>;
|
45
46
|
}
|
46
47
|
export declare class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./ref-template.type";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "ng-zorro-antd/core/outlet";
|
5
|
+
import * as i4 from "@pkt/ng.core";
|
6
|
+
import * as i5 from "@ngx-formly/core";
|
7
|
+
export declare class FormlyRefTemplateModule {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyRefTemplateModule, never>;
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyRefTemplateModule, [typeof i1.FormlyFieldRefTemplate], [typeof i2.CommonModule, typeof i3.NzOutletModule, typeof i4.TrustedHtmlPipe, typeof i5.FormlyModule], never>;
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyRefTemplateModule>;
|
11
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { TemplateRef, Type } from '@angular/core';
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
5
|
+
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
interface RefTemplateProps extends FormlyFieldProps {
|
8
|
+
ref?: string | TemplateRef<{
|
9
|
+
$implicit: FormlyRefTemplateFieldConfig;
|
10
|
+
props: RefTemplateProps;
|
11
|
+
}>;
|
12
|
+
refName?: string;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* RefTemplate 配置
|
16
|
+
*/
|
17
|
+
export interface FormlyRefTemplateFieldConfig extends NzFormlyFieldConfig<RefTemplateProps> {
|
18
|
+
type: 'ref-template' | Type<FormlyFieldRefTemplate>;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* 引用模板,支持HTML,TemplateRef对象,或者NamedTemplate
|
22
|
+
* @example
|
23
|
+
*
|
24
|
+
* 用法1: 使用NamedTemplate(推荐)
|
25
|
+
*
|
26
|
+
* html
|
27
|
+
* ```html
|
28
|
+
* <formly-form formly-box>
|
29
|
+
* <ng-template named="test"></ng-template>
|
30
|
+
* </formly-form>
|
31
|
+
* ```
|
32
|
+
*
|
33
|
+
* 配置
|
34
|
+
* ```js
|
35
|
+
* {
|
36
|
+
* type: 'ref-template',
|
37
|
+
* props: {
|
38
|
+
* refName: 'test'
|
39
|
+
* }
|
40
|
+
* }
|
41
|
+
* ```
|
42
|
+
*
|
43
|
+
* 用法2:TemplateRef对象
|
44
|
+
* ```html
|
45
|
+
* <ng-template #test2></ng-template>
|
46
|
+
* ```
|
47
|
+
*
|
48
|
+
* 配置
|
49
|
+
* @viewChild('test2') test2: TemplateRef<{}>;
|
50
|
+
*
|
51
|
+
* ```js
|
52
|
+
* {
|
53
|
+
* type: 'ref-template',
|
54
|
+
* props: {
|
55
|
+
* ref: this.test2
|
56
|
+
* }
|
57
|
+
* }
|
58
|
+
* ```
|
59
|
+
*
|
60
|
+
* 用法3: 使用html
|
61
|
+
*
|
62
|
+
* 配置
|
63
|
+
* ```js
|
64
|
+
* {
|
65
|
+
* type: 'ref-template',
|
66
|
+
* props: {
|
67
|
+
* ref: '<div>test text</div>'
|
68
|
+
* }
|
69
|
+
* }
|
70
|
+
* ```
|
71
|
+
*/
|
72
|
+
export declare class FormlyFieldRefTemplate extends FieldType<FieldTypeConfig<RefTemplateProps>> {
|
73
|
+
fieldTemplates: FormlyBoxTemplates;
|
74
|
+
constructor(fieldTemplates: FormlyBoxTemplates);
|
75
|
+
get ref(): TemplateRef<any> | undefined;
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRefTemplate, [{ optional: true; }]>;
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRefTemplate, "formly-ref-template", never, {}, {}, never, never, false, never>;
|
78
|
+
}
|
79
|
+
export {};
|
package/select/select.props.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import type { FormlyFieldConfig } from '@ngx-formly/core';
|
3
2
|
import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
3
|
+
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';
|
@@ -159,13 +159,13 @@ export interface SelectProps extends FormlyFieldSelectProps {
|
|
159
159
|
/**
|
160
160
|
* 下拉菜单打开状态变化回调
|
161
161
|
*/
|
162
|
-
openChange?:
|
162
|
+
openChange?: FormlyAttributeEvent<boolean>;
|
163
163
|
/**
|
164
164
|
* 下拉列表滚动到底部的回调
|
165
165
|
*/
|
166
|
-
scrollToBottom?:
|
166
|
+
scrollToBottom?: FormlyAttributeEvent;
|
167
167
|
/**
|
168
168
|
* 文本框值变化时回调
|
169
169
|
*/
|
170
|
-
onSearch?:
|
170
|
+
onSearch?: FormlyAttributeEvent<string>;
|
171
171
|
}
|