ngx-formly-zorro-antd 17.0.11 → 17.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +2 -4
- package/autocomplete/package.json +3 -0
- package/button/package.json +3 -0
- package/button-group/package.json +3 -0
- package/card/card.module.d.ts +1 -1
- package/card/package.json +3 -0
- package/card-wrapper/card-wrapper.props.d.ts +3 -2
- package/card-wrapper/package.json +3 -0
- package/cascader/package.json +3 -0
- package/checkbox/package.json +3 -0
- package/common/interface.d.ts +3 -1
- package/common/package.json +3 -0
- package/datepicker/package.json +3 -0
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +1 -1
- package/esm2022/button/button.type.mjs +123 -123
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +1 -1
- package/esm2022/button-group/button-group.type.mjs +67 -67
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +3 -4
- package/esm2022/card/card.type.mjs +51 -51
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +65 -65
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +39 -39
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +1 -1
- package/esm2022/common/formly-box-templates.directive.mjs +1 -1
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +1 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +149 -149
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +159 -125
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +59 -59
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +275 -275
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +1 -1
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +39 -39
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +81 -81
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +33 -33
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +123 -123
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +33 -33
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +27 -27
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +25 -25
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +79 -79
- package/esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs +5 -0
- package/esm2022/text-value/public_api.mjs +3 -0
- package/esm2022/text-value/text-value.module.mjs +46 -0
- package/esm2022/text-value/text-value.type.mjs +68 -0
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +113 -113
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +61 -61
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +47 -47
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +69 -69
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +145 -145
- package/esm2022/upload/upload.module.mjs +1 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +88 -87
- package/extension/package.json +3 -0
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +52 -53
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +158 -124
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +274 -274
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +115 -0
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +230 -230
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +24 -16
- package/form-field/form-field.wrapper.d.ts +4 -0
- package/form-field/package.json +3 -0
- package/grid/grid.props.d.ts +6 -9
- package/grid/package.json +3 -0
- package/input/package.json +3 -0
- package/input-group/package.json +3 -0
- package/input-number/package.json +3 -0
- package/package.json +19 -13
- package/radio/package.json +3 -0
- package/rate/package.json +3 -0
- package/ref-template/package.json +3 -0
- package/select/package.json +3 -0
- package/slider/package.json +3 -0
- package/space/package.json +3 -0
- package/switch/package.json +3 -0
- package/tabs/package.json +3 -0
- package/text-value/index.d.ts +5 -0
- package/text-value/package.json +3 -0
- package/text-value/public_api.d.ts +2 -0
- package/text-value/text-value.module.d.ts +11 -0
- package/text-value/text-value.type.d.ts +37 -0
- package/textarea/package.json +3 -0
- package/timepicker/package.json +3 -0
- package/transfer/package.json +3 -0
- package/tree-select/package.json +3 -0
- package/tree-select/tree-select.type.d.ts +2 -3
- package/upload/package.json +3 -0
- package/upload/upload.component.d.ts +3 -4
@@ -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';\
|
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 { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\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 { FormlyNzButtonGroupModule } from 'ngx-formly-zorro-antd/button-group';\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\nimport { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';\n\n@NgModule({\n imports: [\n FormlyCommonModule,\n FormlyRefTemplateModule,\n FormlyNzFormFieldModule,\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 FormlyNzButtonGroupModule,\n FormlyNzGridModule,\n FormlyNzSpaceModule\n ],\n exports: [FormlyCommonModule]\n})\nexport class FormlyNgAntdModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4Da,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,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YA7B3B,kBAAkB;YAClB,uBAAuB;YACvB,uBAAuB;YACvB,mBAAmB;YACnB,yBAAyB;YACzB,wBAAwB;YACxB,sBAAsB;YACtB,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,oBAAoB;YACpB,sBAAsB;YACtB,wBAAwB;YACxB,kBAAkB;YAClB,oBAAoB;YACpB,wBAAwB;YACxB,sBAAsB;YACtB,wBAAwB;YACxB,oBAAoB;YACpB,kBAAkB;YAClB,kBAAkB;YAClB,yBAAyB;YACzB,oBAAoB;YACpB,yBAAyB;YACzB,kBAAkB;AAClB,YAAA,mBAAmB,aAEX,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YA7B3B,kBAAkB;YAClB,uBAAuB;YACvB,uBAAuB;YACvB,mBAAmB;YACnB,yBAAyB;YACzB,wBAAwB;YACxB,sBAAsB;YACtB,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,oBAAoB;YACpB,sBAAsB;YACtB,wBAAwB;YACxB,kBAAkB;YAClB,oBAAoB;YACpB,wBAAwB;YACxB,sBAAsB;YACtB,wBAAwB;YACxB,oBAAoB;YACpB,kBAAkB;YAClB,kBAAkB;YAClB,yBAAyB;YACzB,oBAAoB;YACpB,yBAAyB;YACzB,kBAAkB;AAClB,YAAA,mBAAmB,EAEX,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEjB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBA/B9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,kBAAkB;wBAClB,uBAAuB;wBACvB,uBAAuB;wBACvB,mBAAmB;wBACnB,yBAAyB;wBACzB,wBAAwB;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,yBAAyB;wBACzB,kBAAkB;wBAClB,mBAAmB;AACpB,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;AC3DD;;AAEG;;;;"}
|
@@ -1,7 +1,9 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import { AbstractControl, NgModel } from '@angular/forms';
|
1
3
|
import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
|
2
4
|
import type { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
|
3
|
-
import type { NzTSType
|
4
|
-
import type { ControlOptions } from 'ngx-formly-zorro-antd/common';
|
5
|
+
import type { NzTSType } from 'ng-zorro-antd/core/types';
|
6
|
+
import type { ControlOptions, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
5
7
|
type strNumNull = string | number | null;
|
6
8
|
/** nz表单配置项 */
|
7
9
|
export interface NzFormWrapperProps extends ControlOptions {
|
@@ -14,17 +16,13 @@ export interface NzFormWrapperProps extends ControlOptions {
|
|
14
16
|
*/
|
15
17
|
hideLabel?: boolean;
|
16
18
|
/**
|
17
|
-
*
|
19
|
+
* 自定义css类
|
18
20
|
*/
|
19
|
-
|
20
|
-
[klass: string]: NzSafeAny;
|
21
|
-
} | null;
|
21
|
+
ngClass?: NgClassType;
|
22
22
|
/**
|
23
|
-
*
|
23
|
+
* 自定义样式
|
24
24
|
*/
|
25
|
-
|
26
|
-
[klass: string]: NzSafeAny;
|
27
|
-
} | null;
|
25
|
+
ngStyle?: NgStyleType;
|
28
26
|
/**
|
29
27
|
* itemClass
|
30
28
|
*/
|
@@ -40,15 +38,11 @@ export interface NzFormWrapperProps extends ControlOptions {
|
|
40
38
|
/**
|
41
39
|
* labelStyle
|
42
40
|
*/
|
43
|
-
labelStyle?:
|
44
|
-
[klass: string]: NzSafeAny;
|
45
|
-
} | null;
|
41
|
+
labelStyle?: NgStyleType;
|
46
42
|
/**
|
47
43
|
* controlStyle
|
48
44
|
*/
|
49
|
-
controlStyle?:
|
50
|
-
[klass: string]: NzSafeAny;
|
51
|
-
} | null;
|
45
|
+
controlStyle?: NgStyleType;
|
52
46
|
/**
|
53
47
|
* 是否不显示 label 后面的冒号
|
54
48
|
*/
|
@@ -79,11 +73,22 @@ export interface NzFormWrapperProps extends ControlOptions {
|
|
79
73
|
* 描述
|
80
74
|
*/
|
81
75
|
description?: string;
|
76
|
+
successTip?: NzTipType;
|
77
|
+
successTipName?: string;
|
78
|
+
warningTip?: NzTipType;
|
79
|
+
warningTipName?: string;
|
80
|
+
validatingTip?: NzTipType;
|
81
|
+
validatingTipName?: string;
|
82
82
|
/**
|
83
83
|
* 用于显示表单额外提示信息
|
84
84
|
*/
|
85
85
|
extra?: NzTSType;
|
86
86
|
extraName?: string;
|
87
|
+
autoTips?: Record<string, Record<string, string>>;
|
88
|
+
disableAutoTips?: boolean | 'default';
|
89
|
+
/** 在form-control尾部添加文本 */
|
90
|
+
afterText?: string;
|
91
|
+
afterTextName?: string;
|
87
92
|
/** flex 布局属性 */
|
88
93
|
labelFlex?: strNumNull;
|
89
94
|
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
@@ -133,4 +138,7 @@ export interface NzFormWrapperProps extends ControlOptions {
|
|
133
138
|
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
134
139
|
controlXXl?: strNumNull | EmbeddedProperty;
|
135
140
|
}
|
141
|
+
export type NzTipType = string | TemplateRef<{
|
142
|
+
$implicit: AbstractControl | NgModel;
|
143
|
+
}>;
|
136
144
|
export {};
|
@@ -11,6 +11,10 @@ export declare class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldCo
|
|
11
11
|
get nzExtra(): import("@angular/core").TemplateRef<any> | undefined;
|
12
12
|
get hasLabel(): boolean;
|
13
13
|
get label(): import("@angular/core").TemplateRef<any> | undefined;
|
14
|
+
get afterText(): import("@angular/core").TemplateRef<any> | undefined;
|
15
|
+
get nzSuccessTip(): import("@angular/core").TemplateRef<any> | undefined;
|
16
|
+
get nzValidatingTip(): import("@angular/core").TemplateRef<any> | undefined;
|
17
|
+
get nzWarningTip(): import("@angular/core").TemplateRef<any> | undefined;
|
14
18
|
get hasError(): false | import("@angular/forms").ValidationErrors | null;
|
15
19
|
get validateStatus(): "error" | "success";
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, [{ optional: true; }]>;
|
package/grid/grid.props.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';
|
2
|
-
import type { IndexableObject
|
2
|
+
import type { IndexableObject } from 'ng-zorro-antd/core/types';
|
3
3
|
import type { EmbeddedProperty, NzAlign, NzJustify } from 'ng-zorro-antd/grid';
|
4
|
+
import type { NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
4
5
|
type strNumNull = string | number | null;
|
5
6
|
export interface GridColProps {
|
6
7
|
/** flex 布局属性 */
|
@@ -30,17 +31,13 @@ export interface GridColProps {
|
|
30
31
|
}
|
31
32
|
export interface GridProps extends CoreFormlyFieldProps, GridColProps {
|
32
33
|
/**
|
33
|
-
*
|
34
|
+
* 自定义css类
|
34
35
|
*/
|
35
|
-
|
36
|
-
[klass: string]: NzSafeAny;
|
37
|
-
} | null;
|
36
|
+
ngClass?: NgClassType;
|
38
37
|
/**
|
39
|
-
*
|
38
|
+
* 自定义样式
|
40
39
|
*/
|
41
|
-
|
42
|
-
[klass: string]: NzSafeAny;
|
43
|
-
} | null;
|
40
|
+
ngStyle?: NgStyleType;
|
44
41
|
/**
|
45
42
|
* 垂直对齐方式
|
46
43
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "17.
|
3
|
+
"version": "17.1.1",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"@angular/platform-browser": "^17.0.0",
|
14
14
|
"ng-zorro-antd": "^17.0.0",
|
15
15
|
"@ngx-formly/core": "^6.0.0",
|
16
|
-
"@pkt/ng.core": "^
|
16
|
+
"@pkt/ng.core": "^5.1.0",
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
@@ -37,12 +37,6 @@
|
|
37
37
|
"esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
|
38
38
|
"default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
|
39
39
|
},
|
40
|
-
"./button": {
|
41
|
-
"types": "./button/index.d.ts",
|
42
|
-
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
43
|
-
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
44
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
45
|
-
},
|
46
40
|
"./card": {
|
47
41
|
"types": "./card/index.d.ts",
|
48
42
|
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
@@ -61,17 +55,23 @@
|
|
61
55
|
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
62
56
|
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
63
57
|
},
|
58
|
+
"./checkbox": {
|
59
|
+
"types": "./checkbox/index.d.ts",
|
60
|
+
"esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
61
|
+
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
62
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
63
|
+
},
|
64
64
|
"./cascader": {
|
65
65
|
"types": "./cascader/index.d.ts",
|
66
66
|
"esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
67
67
|
"esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
68
68
|
"default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
|
69
69
|
},
|
70
|
-
"./
|
71
|
-
"types": "./
|
72
|
-
"esm2022": "./esm2022/
|
73
|
-
"esm": "./esm2022/
|
74
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
70
|
+
"./button": {
|
71
|
+
"types": "./button/index.d.ts",
|
72
|
+
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
73
|
+
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
74
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
75
75
|
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
@@ -169,6 +169,12 @@
|
|
169
169
|
"esm": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
170
170
|
"default": "./fesm2022/ngx-formly-zorro-antd-tabs.mjs"
|
171
171
|
},
|
172
|
+
"./text-value": {
|
173
|
+
"types": "./text-value/index.d.ts",
|
174
|
+
"esm2022": "./esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs",
|
175
|
+
"esm": "./esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs",
|
176
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-text-value.mjs"
|
177
|
+
},
|
172
178
|
"./textarea": {
|
173
179
|
"types": "./textarea/index.d.ts",
|
174
180
|
"esm2022": "./esm2022/textarea/ngx-formly-zorro-antd-textarea.mjs",
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./text-value.type";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "ng-zorro-antd/form";
|
5
|
+
import * as i4 from "@pkt/ng.core";
|
6
|
+
import * as i5 from "@ngx-formly/core";
|
7
|
+
export declare class FormlyNzTextValueModule {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTextValueModule, never>;
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTextValueModule, [typeof i1.FormlyFieldTextValue], [typeof i2.CommonModule, typeof i3.NzFormModule, typeof i4.DefaultifyPipe, typeof i5.FormlyModule], never>;
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTextValueModule>;
|
11
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Type, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
|
+
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
6
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
interface TextValueProps extends FormlyFieldProps {
|
9
|
+
/**
|
10
|
+
* 格式化函数
|
11
|
+
* @param value 表单值
|
12
|
+
* @param field 当前字段
|
13
|
+
*/
|
14
|
+
format?: (value: NzSafeAny, field: NzFormlyFieldConfig<TextValueProps>) => Observable<NzSafeAny> | Promise<NzSafeAny> | NzSafeAny | null;
|
15
|
+
/**
|
16
|
+
* 默认显示文本
|
17
|
+
*/
|
18
|
+
defaultText?: string;
|
19
|
+
}
|
20
|
+
export interface FormlyTextValueFieldConfig extends NzFormlyFieldConfig<TextValueProps> {
|
21
|
+
type: 'text' | Type<FormlyFieldTextValue>;
|
22
|
+
}
|
23
|
+
export declare class FormlyFieldTextValue<T = NzSafeAny> extends FieldType<FieldTypeConfig<TextValueProps>> implements OnInit, OnDestroy {
|
24
|
+
private result?;
|
25
|
+
private subscription?;
|
26
|
+
defaultOptions: {
|
27
|
+
props: {
|
28
|
+
defaultText: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
ngOnInit(): void;
|
32
|
+
get textValue$(): Observable<any> | Promise<any>;
|
33
|
+
ngOnDestroy(): void;
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextValue<any>, never>;
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextValue<any>, "formly-field-text-value", never, {}, {}, never, never, false, never>;
|
36
|
+
}
|
37
|
+
export {};
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { Type, TemplateRef } from '@angular/core';
|
2
2
|
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
4
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
5
|
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
|
-
import type { NgStyleInterface } from 'ng-zorro-antd/core/types';
|
9
8
|
import * as i0 from "@angular/core";
|
10
9
|
interface TreeSelectProps extends FormlyFieldProps {
|
11
10
|
/**
|
@@ -35,7 +34,7 @@ interface TreeSelectProps extends FormlyFieldProps {
|
|
35
34
|
/**
|
36
35
|
* 下拉菜单的样式
|
37
36
|
*/
|
38
|
-
dropdownStyle?:
|
37
|
+
dropdownStyle?: NgStyleType;
|
39
38
|
/**
|
40
39
|
* 下拉菜单的 className 属性
|
41
40
|
*/
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
3
|
+
import type { NgClassType } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';
|
4
5
|
import { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';
|
5
6
|
import type { AntdIcon } from './upload.props';
|
@@ -18,9 +19,7 @@ export declare class UploadNzComponent extends NzUploadComponent implements Cont
|
|
18
19
|
/** 上传按钮的图标 */
|
19
20
|
nzeUploadButtonIcon?: AntdIcon | null;
|
20
21
|
/** 样式名 */
|
21
|
-
|
22
|
-
[klass: string]: NzSafeAny;
|
23
|
-
} | null;
|
22
|
+
ngClass?: NgClassType;
|
24
23
|
resultMap?: (items: NzUploadFile[]) => NzSafeAny[];
|
25
24
|
onChange: OnChangeType;
|
26
25
|
onTouched: OnTouchedType;
|
@@ -31,6 +30,6 @@ export declare class UploadNzComponent extends NzUploadComponent implements Cont
|
|
31
30
|
fileListChange(list: NzUploadFile[]): void;
|
32
31
|
change(value: NzUploadChangeParam): void;
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadNzComponent, never>;
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UploadNzComponent, "formly-nz-upload", never, { "nzeText": { "alias": "nzeText"; "required": false; }; "nzeHint": { "alias": "nzeHint"; "required": false; }; "nzeShowUploadButton": { "alias": "nzeShowUploadButton"; "required": false; }; "nzeUploadButton": { "alias": "nzeUploadButton"; "required": false; }; "nzeUploadButtonIcon": { "alias": "nzeUploadButtonIcon"; "required": false; }; "
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadNzComponent, "formly-nz-upload", never, { "nzeText": { "alias": "nzeText"; "required": false; }; "nzeHint": { "alias": "nzeHint"; "required": false; }; "nzeShowUploadButton": { "alias": "nzeShowUploadButton"; "required": false; }; "nzeUploadButton": { "alias": "nzeUploadButton"; "required": false; }; "nzeUploadButtonIcon": { "alias": "nzeUploadButtonIcon"; "required": false; }; "ngClass": { "alias": "ngClass"; "required": false; }; "resultMap": { "alias": "resultMap"; "required": false; }; }, {}, never, never, false, never>;
|
35
34
|
static ngAcceptInputType_nzeShowUploadButton: unknown;
|
36
35
|
}
|