ngx-formly-zorro-antd 17.1.0 → 17.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/card/card.module.d.ts +1 -1
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button/button.type.mjs +3 -3
- package/esm2022/button-group/button-group.module.mjs +4 -4
- package/esm2022/button-group/button-group.type.mjs +3 -3
- package/esm2022/card/card.module.mjs +7 -8
- package/esm2022/card/card.type.mjs +3 -3
- package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
- package/esm2022/card-wrapper/card.wrapper.mjs +3 -3
- package/esm2022/cascader/cascader.module.mjs +4 -4
- package/esm2022/cascader/cascader.type.mjs +3 -3
- package/esm2022/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/common.module.mjs +4 -4
- package/esm2022/common/formly-box-templates.directive.mjs +3 -3
- package/esm2022/datepicker/datepicker.module.mjs +4 -4
- package/esm2022/datepicker/datepicker.type.mjs +3 -3
- package/esm2022/flex/flex.module.mjs +41 -0
- package/esm2022/flex/flex.type.mjs +66 -0
- package/esm2022/flex/ngx-formly-zorro-antd-flex.mjs +5 -0
- package/esm2022/flex/public_api.mjs +3 -0
- package/esm2022/form-field/form-field.module.mjs +4 -4
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +38 -4
- package/esm2022/grid/grid.module.mjs +4 -4
- package/esm2022/grid/grid.type.mjs +3 -3
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +3 -3
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +4 -4
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +3 -3
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +4 -4
- package/esm2022/input-number/input-number.type.mjs +3 -3
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +12 -8
- package/esm2022/radio/radio.module.mjs +4 -4
- package/esm2022/radio/radio.type.mjs +3 -3
- package/esm2022/rate/rate.module.mjs +4 -4
- package/esm2022/rate/rate.type.mjs +3 -3
- package/esm2022/ref-template/ref-template.module.mjs +4 -4
- package/esm2022/ref-template/ref-template.type.mjs +3 -3
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/select/select.type.mjs +3 -3
- package/esm2022/slider/slider.module.mjs +4 -4
- package/esm2022/slider/slider.type.mjs +3 -3
- package/esm2022/space/space.module.mjs +4 -4
- package/esm2022/space/space.type.mjs +3 -3
- package/esm2022/switch/switch.module.mjs +4 -4
- package/esm2022/switch/switch.type.mjs +3 -3
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tabs/tabs.wrapper.mjs +3 -3
- package/esm2022/text-value/text-value.module.mjs +4 -4
- package/esm2022/text-value/text-value.type.mjs +3 -3
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/textarea/textarea.type.mjs +3 -3
- package/esm2022/timepicker/timepicker.module.mjs +4 -4
- package/esm2022/timepicker/timepicker.type.mjs +3 -3
- package/esm2022/transfer/transfer.component.mjs +3 -3
- package/esm2022/transfer/transfer.module.mjs +4 -4
- package/esm2022/transfer/transfer.type.mjs +3 -3
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.type.mjs +3 -3
- package/esm2022/upload/upload.component.mjs +3 -3
- package/esm2022/upload/upload.module.mjs +4 -4
- package/esm2022/upload/upload.type.mjs +3 -3
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +9 -10
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +109 -0
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +41 -7
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd.mjs +11 -7
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/flex.module.d.ts +10 -0
- package/flex/flex.type.d.ts +48 -0
- package/flex/index.d.ts +5 -0
- package/flex/public_api.d.ts +2 -0
- package/form-field/form-field.props.d.ts +16 -0
- package/form-field/form-field.wrapper.d.ts +4 -0
- package/input/input.props.d.ts +4 -2
- package/input/public_api.d.ts +1 -0
- package/input-group/input-group.props.d.ts +2 -0
- package/input-group/public_api.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +14 -8
@@ -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';\r\n\r\nimport { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\r\nimport { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\r\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\r\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\r\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\r\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\r\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\r\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\r\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\r\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\r\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\r\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\r\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\r\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\r\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\r\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\r\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\r\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\r\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\r\nimport { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';\r\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\r\nimport { FormlyNzButtonGroupModule } from 'ngx-formly-zorro-antd/button-group';\r\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\r\nimport { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';\r\n\r\n@NgModule({\r\n imports: [\r\n FormlyCommonModule,\r\n FormlyRefTemplateModule,\r\n FormlyNzFormFieldModule,\r\n FormlyNzInputModule,\r\n FormlyNzInputNumberModule,\r\n FormlyNzInputGroupModule,\r\n FormlyNzTextareaModule,\r\n FormlyNzRadioModule,\r\n FormlyNzCheckboxModule,\r\n FormlyNzSelectModule,\r\n FormlyNzSwitchModule,\r\n FormlyNzCascaderModule,\r\n FormlyNzDatepickerModule,\r\n FormlyNzRateModule,\r\n FormlyNzSliderModule,\r\n FormlyNzTimepickerModule,\r\n FormlyNzTransferModule,\r\n FormlyNzTreeSelectModule,\r\n FormlyNzUploadModule,\r\n FormlyNzTabsModule,\r\n FormlyNzCardModule,\r\n FormlyNzCardWrapperModule,\r\n FormlyNzButtonModule,\r\n FormlyNzButtonGroupModule,\r\n FormlyNzGridModule,\r\n FormlyNzSpaceModule\r\n ],\r\n exports: [FormlyCommonModule]\r\n})\r\nexport class FormlyNgAntdModule {}\r\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';\r\n\r\nimport { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\r\nimport { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\r\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\r\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\r\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\r\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\r\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\r\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\r\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\r\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\r\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\r\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\r\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\r\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\r\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\r\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\r\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\r\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\r\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\r\nimport { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';\r\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\r\nimport { FormlyNzButtonGroupModule } from 'ngx-formly-zorro-antd/button-group';\r\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\r\nimport { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';\r\nimport { FormlyNzFlexModule } from 'ngx-formly-zorro-antd/flex';\r\n\r\n@NgModule({\r\n imports: [\r\n FormlyCommonModule,\r\n FormlyRefTemplateModule,\r\n FormlyNzFormFieldModule,\r\n FormlyNzInputModule,\r\n FormlyNzInputNumberModule,\r\n FormlyNzInputGroupModule,\r\n FormlyNzTextareaModule,\r\n FormlyNzRadioModule,\r\n FormlyNzCheckboxModule,\r\n FormlyNzSelectModule,\r\n FormlyNzSwitchModule,\r\n FormlyNzCascaderModule,\r\n FormlyNzDatepickerModule,\r\n FormlyNzRateModule,\r\n FormlyNzSliderModule,\r\n FormlyNzTimepickerModule,\r\n FormlyNzTransferModule,\r\n FormlyNzTreeSelectModule,\r\n FormlyNzUploadModule,\r\n FormlyNzTabsModule,\r\n FormlyNzCardModule,\r\n FormlyNzCardWrapperModule,\r\n FormlyNzButtonModule,\r\n FormlyNzButtonGroupModule,\r\n FormlyNzGridModule,\r\n FormlyNzSpaceModule,\r\n FormlyNzFlexModule\r\n ],\r\n exports: [FormlyCommonModule]\r\n})\r\nexport class FormlyNgAntdModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8Da,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,YA9B3B,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;YAClB,mBAAmB;AACnB,YAAA,kBAAkB,aAEV,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,YA9B3B,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;YAClB,mBAAmB;AACnB,YAAA,kBAAkB,EAEV,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEjB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhC9B,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;wBACnB,kBAAkB;AACnB,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;AC7DD;;AAEG;;;;"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./flex.type";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "ng-zorro-antd/flex";
|
5
|
+
import * as i4 from "@ngx-formly/core";
|
6
|
+
export declare class FormlyNzFlexModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzFlexModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzFlexModule, [typeof i1.FormlyFieldFlex], [typeof i2.CommonModule, typeof i3.NzFlexModule, typeof i4.FormlyModule], never>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzFlexModule>;
|
10
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { Type } from '@angular/core';
|
2
|
+
import { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
4
|
+
import type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
interface FlexProps extends FormlyFieldProps {
|
7
|
+
/**
|
8
|
+
* 自定义css类
|
9
|
+
*/
|
10
|
+
ngClass?: NgClassType;
|
11
|
+
/**
|
12
|
+
* 自定义样式
|
13
|
+
*/
|
14
|
+
ngStyle?: NgStyleType;
|
15
|
+
/**
|
16
|
+
* flex 主轴的方向是否垂直,使用 flex-direction: column
|
17
|
+
* @default false
|
18
|
+
*/
|
19
|
+
vertical?: boolean;
|
20
|
+
/** 设置元素在主轴方向上的对齐方式 */
|
21
|
+
justify?: NzJustify;
|
22
|
+
/** 设置元素在交叉轴方向上的对齐方式 */
|
23
|
+
align?: NzAlign;
|
24
|
+
/** 设置网格之间的间隙 */
|
25
|
+
gap?: NzGap;
|
26
|
+
/** 设置元素单行显示还是多行显示 */
|
27
|
+
wrap?: NzWrap;
|
28
|
+
/** flex CSS 简写属性 */
|
29
|
+
flex?: NzFlex;
|
30
|
+
}
|
31
|
+
export interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {
|
32
|
+
type: 'flex' | Type<FormlyFieldFlex>;
|
33
|
+
}
|
34
|
+
export declare class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps>> {
|
35
|
+
defaultOptions: {
|
36
|
+
props: {
|
37
|
+
vertical: boolean;
|
38
|
+
justify: "normal";
|
39
|
+
align: "normal";
|
40
|
+
gap: number;
|
41
|
+
wrap: "nowrap";
|
42
|
+
flex: "unset";
|
43
|
+
};
|
44
|
+
};
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldFlex, never>;
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldFlex, "formly-field-flex", never, {}, {}, never, never, false, never>;
|
47
|
+
}
|
48
|
+
export {};
|
package/flex/index.d.ts
ADDED
@@ -1,3 +1,5 @@
|
|
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
5
|
import type { NzTSType } from 'ng-zorro-antd/core/types';
|
@@ -71,11 +73,22 @@ export interface NzFormWrapperProps extends ControlOptions {
|
|
71
73
|
* 描述
|
72
74
|
*/
|
73
75
|
description?: string;
|
76
|
+
successTip?: NzTipType;
|
77
|
+
successTipName?: string;
|
78
|
+
warningTip?: NzTipType;
|
79
|
+
warningTipName?: string;
|
80
|
+
validatingTip?: NzTipType;
|
81
|
+
validatingTipName?: string;
|
74
82
|
/**
|
75
83
|
* 用于显示表单额外提示信息
|
76
84
|
*/
|
77
85
|
extra?: NzTSType;
|
78
86
|
extraName?: string;
|
87
|
+
autoTips?: Record<string, Record<string, string>>;
|
88
|
+
disableAutoTips?: boolean | 'default';
|
89
|
+
/** 在form-control尾部添加文本 */
|
90
|
+
afterText?: string;
|
91
|
+
afterTextName?: string;
|
79
92
|
/** flex 布局属性 */
|
80
93
|
labelFlex?: strNumNull;
|
81
94
|
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
@@ -125,4 +138,7 @@ export interface NzFormWrapperProps extends ControlOptions {
|
|
125
138
|
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
126
139
|
controlXXl?: strNumNull | EmbeddedProperty;
|
127
140
|
}
|
141
|
+
export type NzTipType = string | TemplateRef<{
|
142
|
+
$implicit: AbstractControl | NgModel;
|
143
|
+
}>;
|
128
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/input/input.props.d.ts
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
2
|
-
import {
|
2
|
+
import { FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';
|
3
3
|
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
4
|
import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
|
5
5
|
import type { AutocompleteProps } from 'ngx-formly-zorro-antd/autocomplete';
|
6
|
-
export interface
|
6
|
+
export interface FormlyInputProps extends InputProps {
|
7
|
+
}
|
8
|
+
export interface InputProps extends FormlyFieldProps, FormlyInputGroupProps {
|
7
9
|
/**
|
8
10
|
* autoComplete=>输入框自动完成
|
9
11
|
*
|
package/input/public_api.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
2
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
3
3
|
import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
|
4
|
+
export interface FormlyInputGroupProps extends InputGroupProps {
|
5
|
+
}
|
4
6
|
export interface InputGroupProps extends FormlyFieldProps {
|
5
7
|
/**
|
6
8
|
* 带有后缀图标的 input,可以与 suffixIcon 配合使用
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { FormlyNzInputGroupModule } from './input-group.module';
|
2
2
|
export { FormlyFieldInputGroup, FormlyInputGroupFieldConfig } from './input-group.type';
|
3
|
-
export {
|
3
|
+
export { FormlyInputGroupProps } from './input-group.props';
|
@@ -25,8 +25,9 @@ import * as i23 from "ngx-formly-zorro-antd/button";
|
|
25
25
|
import * as i24 from "ngx-formly-zorro-antd/button-group";
|
26
26
|
import * as i25 from "ngx-formly-zorro-antd/grid";
|
27
27
|
import * as i26 from "ngx-formly-zorro-antd/space";
|
28
|
+
import * as i27 from "ngx-formly-zorro-antd/flex";
|
28
29
|
export declare class FormlyNgAntdModule {
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNgAntdModule, never>;
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyCommonModule, typeof i2.FormlyRefTemplateModule, typeof i3.FormlyNzFormFieldModule, typeof i4.FormlyNzInputModule, typeof i5.FormlyNzInputNumberModule, typeof i6.FormlyNzInputGroupModule, typeof i7.FormlyNzTextareaModule, typeof i8.FormlyNzRadioModule, typeof i9.FormlyNzCheckboxModule, typeof i10.FormlyNzSelectModule, typeof i11.FormlyNzSwitchModule, typeof i12.FormlyNzCascaderModule, typeof i13.FormlyNzDatepickerModule, typeof i14.FormlyNzRateModule, typeof i15.FormlyNzSliderModule, typeof i16.FormlyNzTimepickerModule, typeof i17.FormlyNzTransferModule, typeof i18.FormlyNzTreeSelectModule, typeof i19.FormlyNzUploadModule, typeof i20.FormlyNzTabsModule, typeof i21.FormlyNzCardModule, typeof i22.FormlyNzCardWrapperModule, typeof i23.FormlyNzButtonModule, typeof i24.FormlyNzButtonGroupModule, typeof i25.FormlyNzGridModule, typeof i26.FormlyNzSpaceModule], [typeof i1.FormlyCommonModule]>;
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyCommonModule, typeof i2.FormlyRefTemplateModule, typeof i3.FormlyNzFormFieldModule, typeof i4.FormlyNzInputModule, typeof i5.FormlyNzInputNumberModule, typeof i6.FormlyNzInputGroupModule, typeof i7.FormlyNzTextareaModule, typeof i8.FormlyNzRadioModule, typeof i9.FormlyNzCheckboxModule, typeof i10.FormlyNzSelectModule, typeof i11.FormlyNzSwitchModule, typeof i12.FormlyNzCascaderModule, typeof i13.FormlyNzDatepickerModule, typeof i14.FormlyNzRateModule, typeof i15.FormlyNzSliderModule, typeof i16.FormlyNzTimepickerModule, typeof i17.FormlyNzTransferModule, typeof i18.FormlyNzTreeSelectModule, typeof i19.FormlyNzUploadModule, typeof i20.FormlyNzTabsModule, typeof i21.FormlyNzCardModule, typeof i22.FormlyNzCardWrapperModule, typeof i23.FormlyNzButtonModule, typeof i24.FormlyNzButtonGroupModule, typeof i25.FormlyNzGridModule, typeof i26.FormlyNzSpaceModule, typeof i27.FormlyNzFlexModule], [typeof i1.FormlyCommonModule]>;
|
31
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNgAntdModule>;
|
32
33
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "17.1.
|
3
|
+
"version": "17.1.2",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"@angular/common": "^17.0.0",
|
12
12
|
"@angular/forms": "^17.0.0",
|
13
13
|
"@angular/platform-browser": "^17.0.0",
|
14
|
-
"ng-zorro-antd": "^17.
|
14
|
+
"ng-zorro-antd": "^17.1.0",
|
15
15
|
"@ngx-formly/core": "^6.0.0",
|
16
16
|
"@pkt/ng.core": "^5.1.0",
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
@@ -61,18 +61,18 @@
|
|
61
61
|
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
62
62
|
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
63
63
|
},
|
64
|
-
"./checkbox": {
|
65
|
-
"types": "./checkbox/index.d.ts",
|
66
|
-
"esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
67
|
-
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
68
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
69
|
-
},
|
70
64
|
"./cascader": {
|
71
65
|
"types": "./cascader/index.d.ts",
|
72
66
|
"esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
73
67
|
"esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
74
68
|
"default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
|
75
69
|
},
|
70
|
+
"./checkbox": {
|
71
|
+
"types": "./checkbox/index.d.ts",
|
72
|
+
"esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
73
|
+
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
74
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
75
|
+
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
78
78
|
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
@@ -91,6 +91,12 @@
|
|
91
91
|
"esm": "./esm2022/extension/ngx-formly-zorro-antd-extension.mjs",
|
92
92
|
"default": "./fesm2022/ngx-formly-zorro-antd-extension.mjs"
|
93
93
|
},
|
94
|
+
"./flex": {
|
95
|
+
"types": "./flex/index.d.ts",
|
96
|
+
"esm2022": "./esm2022/flex/ngx-formly-zorro-antd-flex.mjs",
|
97
|
+
"esm": "./esm2022/flex/ngx-formly-zorro-antd-flex.mjs",
|
98
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-flex.mjs"
|
99
|
+
},
|
94
100
|
"./form-field": {
|
95
101
|
"types": "./form-field/index.d.ts",
|
96
102
|
"esm2022": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
|