ngx-formly-zorro-antd 17.3.0 → 17.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/button-group/button-group.type.d.ts +1 -2
- package/button-group/public_api.d.ts +1 -1
- package/card/card.type.d.ts +1 -2
- package/card/public_api.d.ts +1 -1
- package/cascader/cascader.type.d.ts +2 -3
- package/cascader/public_api.d.ts +1 -1
- package/checkbox/checkbox.type.d.ts +1 -2
- package/checkbox/public_api.d.ts +1 -1
- package/datepicker/public_api.d.ts +1 -0
- package/esm2022/button-group/button-group.type.mjs +1 -1
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.type.mjs +3 -7
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +3 -3
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +1 -1
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/flex/flex.type.mjs +1 -1
- package/esm2022/flex/public_api.mjs +1 -1
- package/esm2022/helpers/common.mjs +14 -0
- package/esm2022/helpers/formly.mjs +119 -0
- package/esm2022/helpers/ngx-formly-zorro-antd-helpers.mjs +5 -0
- package/esm2022/helpers/public_api.mjs +38 -0
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +9 -45
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +1 -1
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +1 -1
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +1 -1
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.type.mjs +1 -1
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +1 -1
- package/esm2022/text-value/public_api.mjs +1 -1
- package/esm2022/text-value/text-value.type.mjs +1 -1
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +3 -9
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +2 -6
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs +174 -0
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +8 -44
- 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.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-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +2 -8
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/flex/flex.type.d.ts +1 -2
- package/flex/public_api.d.ts +1 -1
- package/helpers/common.d.ts +9 -0
- package/helpers/formly.d.ts +70 -0
- package/helpers/index.d.ts +5 -0
- package/helpers/package.json +3 -0
- package/helpers/public_api.d.ts +37 -0
- package/input-number/public_api.d.ts +1 -0
- package/package.json +13 -7
- package/radio/public_api.d.ts +1 -1
- package/radio/radio.type.d.ts +1 -2
- package/rate/public_api.d.ts +1 -1
- package/rate/rate.type.d.ts +1 -2
- package/ref-template/public_api.d.ts +1 -1
- package/ref-template/ref-template.type.d.ts +1 -2
- package/select/public_api.d.ts +1 -0
- package/slider/public_api.d.ts +1 -1
- package/slider/slider.type.d.ts +1 -2
- package/space/public_api.d.ts +1 -1
- package/space/space.type.d.ts +1 -2
- package/switch/public_api.d.ts +1 -1
- package/switch/switch.type.d.ts +1 -2
- package/text-value/public_api.d.ts +1 -1
- package/text-value/text-value.type.d.ts +1 -2
- package/textarea/public_api.d.ts +1 -1
- package/textarea/textarea.type.d.ts +1 -2
@@ -42,10 +42,7 @@ class FormlyFieldTextarea extends FieldType {
|
|
42
42
|
</nz-textarea-count>
|
43
43
|
}
|
44
44
|
@case ('clear') {
|
45
|
-
<nz-input-group
|
46
|
-
class="ant-input-affix-wrapper-textarea-with-clear-btn"
|
47
|
-
[nzSuffix]="textAreaClearTpl"
|
48
|
-
>
|
45
|
+
<nz-input-group class="ant-input-affix-wrapper-textarea-with-clear-btn" [nzSuffix]="textAreaClearTpl">
|
49
46
|
<ng-container *ngTemplateOutlet="textareaTpl"> </ng-container>
|
50
47
|
</nz-input-group>
|
51
48
|
}
|
@@ -104,10 +101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
104
101
|
</nz-textarea-count>
|
105
102
|
}
|
106
103
|
@case ('clear') {
|
107
|
-
<nz-input-group
|
108
|
-
class="ant-input-affix-wrapper-textarea-with-clear-btn"
|
109
|
-
[nzSuffix]="textAreaClearTpl"
|
110
|
-
>
|
104
|
+
<nz-input-group class="ant-input-affix-wrapper-textarea-with-clear-btn" [nzSuffix]="textAreaClearTpl">
|
111
105
|
<ng-container *ngTemplateOutlet="textareaTpl"> </ng-container>
|
112
106
|
</nz-input-group>
|
113
107
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-textarea.mjs","sources":["../../../../packages/formlyantd/textarea/src/textarea.type.ts","../../../../packages/formlyantd/textarea/src/textarea.module.ts","../../../../packages/formlyantd/textarea/src/ngx-formly-zorro-antd-textarea.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-textarea.mjs","sources":["../../../../packages/formlyantd/textarea/src/textarea.type.ts","../../../../packages/formlyantd/textarea/src/textarea.module.ts","../../../../packages/formlyantd/textarea/src/ngx-formly-zorro-antd-textarea.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nexport interface TextareaProps extends FormlyFieldProps {\n type?: 'count' | 'clear';\n\n /**\n * 自适应内容高度,可设置为 boolean 或对象:{ minRows: 2, maxRows: 6 }\n * @default false\n */\n autosize?: boolean | { minRows: number; maxRows: number };\n\n /**\n * 是否隐藏边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * textarea 数字提示显示的最大值\n */\n maxCharacterCount?: number;\n}\n\nexport interface FormlyTextareaFieldConfig extends NzFormlyFieldConfig<TextareaProps> {\n type: 'textarea' | Type<FormlyFieldTextarea>;\n}\n\n@Component({\n selector: 'formly-field-textarea',\n template: `\n @switch (props.type) {\n @case ('count') {\n <nz-textarea-count [nzMaxCharacterCount]=\"props['maxCharacterCount'] || 0\">\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n nz-input\n ></textarea>\n </nz-textarea-count>\n }\n @case ('clear') {\n <nz-input-group class=\"ant-input-affix-wrapper-textarea-with-clear-btn\" [nzSuffix]=\"textAreaClearTpl\">\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </nz-input-group>\n }\n @default {\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n }\n }\n\n <ng-template #textareaTpl>\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n ></textarea>\n </ng-template>\n\n <!-- 清除数据 -->\n <ng-template #textAreaClearTpl>\n @if (formControl.value && !props['disabled'] && !props['readonly']) {\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n (click)=\"formControl.reset()\"\n ></span>\n }\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {\n override defaultOptions = {\n props: {\n rows: 4,\n autosize: false,\n borderless: false\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldTextarea } from './textarea.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":"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"}
|
package/flex/flex.type.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
3
3
|
import type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
4
4
|
import type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
interface FlexProps extends FormlyFieldProps {
|
6
|
+
export interface FlexProps extends FormlyFieldProps {
|
7
7
|
/**
|
8
8
|
* 自定义css类
|
9
9
|
*/
|
@@ -45,4 +45,3 @@ export declare class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldFlex, never>;
|
46
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldFlex, "formly-field-flex", never, {}, {}, never, never, false, never>;
|
47
47
|
}
|
48
|
-
export {};
|
package/flex/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzFlexModule } from './flex.module';
|
2
|
-
export { FormlyFieldFlex, FormlyFlexFieldConfig } from './flex.type';
|
2
|
+
export { FormlyFieldFlex, FormlyFlexFieldConfig, FlexProps } from './flex.type';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { NzFormlyFieldConfig, ControlOptions } from 'ngx-formly-zorro-antd/common';
|
2
|
+
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
3
|
+
export declare function field<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions & {
|
4
|
+
[key: string]: NzSafeAny;
|
5
|
+
}, otherOptions?: NzFormlyFieldConfig): T;
|
6
|
+
export declare function requiredField<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions & {
|
7
|
+
[key: string]: NzSafeAny;
|
8
|
+
}, otherOptions?: NzFormlyFieldConfig): T;
|
9
|
+
export declare function hidden(key: string): NzFormlyFieldConfig;
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
2
|
+
import type { FormlyButtonFieldConfig, ButtonProps } from 'ngx-formly-zorro-antd/button';
|
3
|
+
import type { FormlyButtonGroupFieldConfig, ButtonGroupProps } from 'ngx-formly-zorro-antd/button-group';
|
4
|
+
import type { FormlyCardFieldConfig, CardProps } from 'ngx-formly-zorro-antd/card';
|
5
|
+
import type { FormlyCascaderFieldConfig, CascaderProps } from 'ngx-formly-zorro-antd/cascader';
|
6
|
+
import type { FormlyCheckboxFieldConfig, CheckboxProps } from 'ngx-formly-zorro-antd/checkbox';
|
7
|
+
import type { FormlyDatepickerFieldConfig, DatepickerProps } from 'ngx-formly-zorro-antd/datepicker';
|
8
|
+
import type { FormlyFlexFieldConfig, FlexProps } from 'ngx-formly-zorro-antd/flex';
|
9
|
+
import type { FormlyGridFieldConfig, GridColProps } from 'ngx-formly-zorro-antd/grid';
|
10
|
+
import type { FormlyInputFieldConfig, FormlyInputProps } from 'ngx-formly-zorro-antd/input';
|
11
|
+
import type { FormlyInputGroupFieldConfig, FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';
|
12
|
+
import type { FormlyInputNumberFieldConfig, InputNumberProps } from 'ngx-formly-zorro-antd/input-number';
|
13
|
+
import type { FormlyRadioFieldConfig, RadioProps } from 'ngx-formly-zorro-antd/radio';
|
14
|
+
import type { FormlyRateFieldConfig, RateProps } from 'ngx-formly-zorro-antd/rate';
|
15
|
+
import type { FormlyRefTemplateFieldConfig, RefTemplateProps } from 'ngx-formly-zorro-antd/ref-template';
|
16
|
+
import type { FormlySelectFieldConfig, SelectProps } from 'ngx-formly-zorro-antd/select';
|
17
|
+
import type { FormlySlideFieldConfig, SlideProps } from 'ngx-formly-zorro-antd/slider';
|
18
|
+
import type { FormlySpaceFieldConfig, SpaceProps } from 'ngx-formly-zorro-antd/space';
|
19
|
+
import type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';
|
20
|
+
import type { FormlyTextValueFieldConfig, TextValueProps } from 'ngx-formly-zorro-antd/text-value';
|
21
|
+
import type { FormlyTextareaFieldConfig, TextareaProps } from 'ngx-formly-zorro-antd/textarea';
|
22
|
+
export declare function input(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
|
23
|
+
export declare function requiredInput(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
|
24
|
+
export declare function textArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
|
25
|
+
export declare function requiredTextArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
|
26
|
+
export declare function checkbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
|
27
|
+
export declare function requiredCheckbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
|
28
|
+
export declare function cascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
|
29
|
+
export declare function requiredCascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
|
30
|
+
export declare function datepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
|
31
|
+
export declare function requiredDatepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
|
32
|
+
export declare function number(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
|
33
|
+
export declare function requiredNumber(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
|
34
|
+
/** 选择器 */
|
35
|
+
export declare function select(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
|
36
|
+
/** 选择器 */
|
37
|
+
export declare function requiredSelect(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
|
38
|
+
/** 单选框 */
|
39
|
+
export declare function radio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
|
40
|
+
/** 单选框 */
|
41
|
+
export declare function requiredRadio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
|
42
|
+
/** 评分 */
|
43
|
+
export declare function rate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
|
44
|
+
/** 评分 */
|
45
|
+
export declare function requiredRate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
|
46
|
+
/** 开关 */
|
47
|
+
export declare function requiredSwitch(key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig): FormlySwitchFieldConfig;
|
48
|
+
/** 滑动输入条 */
|
49
|
+
export declare function slider(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
|
50
|
+
/** 滑动输入条 */
|
51
|
+
export declare function requiredSlide(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
|
52
|
+
/** 文本显示 */
|
53
|
+
export declare function text(props?: TextValueProps, otherOptions?: FormlyFieldConfig): FormlyTextValueFieldConfig;
|
54
|
+
/** 输入组 */
|
55
|
+
export declare function inputGroup(props?: FormlyInputGroupProps, otherOptions?: FormlyFieldConfig): FormlyInputGroupFieldConfig;
|
56
|
+
/** 间距 */
|
57
|
+
export declare function space(props?: SpaceProps, otherOptions?: FormlyFieldConfig): FormlySpaceFieldConfig;
|
58
|
+
/** 模板 */
|
59
|
+
export declare function ref(props?: RefTemplateProps, otherOptions?: FormlyFieldConfig): FormlyRefTemplateFieldConfig;
|
60
|
+
/** 栅格 */
|
61
|
+
export declare function grid(props?: GridColProps, otherOptions?: FormlyFieldConfig): FormlyGridFieldConfig;
|
62
|
+
/** 弹性布局 */
|
63
|
+
export declare function flex(props?: FlexProps, otherOptions?: FormlyFieldConfig): FormlyFlexFieldConfig;
|
64
|
+
/** 卡片 */
|
65
|
+
export declare function card(props?: CardProps, otherOptions?: FormlyFieldConfig): FormlyCardFieldConfig;
|
66
|
+
/** 按钮组 */
|
67
|
+
export declare function buttonGroup(props?: ButtonGroupProps, otherOptions?: FormlyFieldConfig): FormlyButtonGroupFieldConfig;
|
68
|
+
export declare function button(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
69
|
+
export declare function submit(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
70
|
+
export declare function reset(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { field, requiredField, hidden } from './common';
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import { input, requiredInput, textArea, requiredTextArea, checkbox, requiredCheckbox, cascader, requiredCascader, datepicker, requiredDatepicker, requiredSwitch, slider, requiredSlide, select, requiredSelect, text, button, buttonGroup, submit, reset, space, ref, grid, flex, card, inputGroup } from './formly';
|
4
|
+
import type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';
|
5
|
+
export declare const formly: {
|
6
|
+
field: typeof field;
|
7
|
+
requiredField: typeof requiredField;
|
8
|
+
hidden: typeof hidden;
|
9
|
+
input: typeof input;
|
10
|
+
requiredInput: typeof requiredInput;
|
11
|
+
textArea: typeof textArea;
|
12
|
+
requiredTextArea: typeof requiredTextArea;
|
13
|
+
checkbox: typeof checkbox;
|
14
|
+
requiredCheckbox: typeof requiredCheckbox;
|
15
|
+
cascader: typeof cascader;
|
16
|
+
requiredCascader: typeof requiredCascader;
|
17
|
+
datepicker: typeof datepicker;
|
18
|
+
requiredDatepicker: typeof requiredDatepicker;
|
19
|
+
/** 开关 */
|
20
|
+
switch: (key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig) => FormlySwitchFieldConfig;
|
21
|
+
requiredSwitch: typeof requiredSwitch;
|
22
|
+
slider: typeof slider;
|
23
|
+
requiredSlide: typeof requiredSlide;
|
24
|
+
select: typeof select;
|
25
|
+
requiredSelect: typeof requiredSelect;
|
26
|
+
text: typeof text;
|
27
|
+
space: typeof space;
|
28
|
+
inputGroup: typeof inputGroup;
|
29
|
+
ref: typeof ref;
|
30
|
+
grid: typeof grid;
|
31
|
+
flex: typeof flex;
|
32
|
+
card: typeof card;
|
33
|
+
button: typeof button;
|
34
|
+
buttonGroup: typeof buttonGroup;
|
35
|
+
submit: typeof submit;
|
36
|
+
reset: typeof reset;
|
37
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "17.3.
|
3
|
+
"version": "17.3.1",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -43,6 +43,12 @@
|
|
43
43
|
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
44
44
|
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
45
45
|
},
|
46
|
+
"./button-group": {
|
47
|
+
"types": "./button-group/index.d.ts",
|
48
|
+
"esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
49
|
+
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
50
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
51
|
+
},
|
46
52
|
"./card": {
|
47
53
|
"types": "./card/index.d.ts",
|
48
54
|
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
@@ -67,12 +73,6 @@
|
|
67
73
|
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
68
74
|
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
69
75
|
},
|
70
|
-
"./button-group": {
|
71
|
-
"types": "./button-group/index.d.ts",
|
72
|
-
"esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
73
|
-
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
74
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
75
|
-
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
78
78
|
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
@@ -109,6 +109,12 @@
|
|
109
109
|
"esm": "./esm2022/grid/ngx-formly-zorro-antd-grid.mjs",
|
110
110
|
"default": "./fesm2022/ngx-formly-zorro-antd-grid.mjs"
|
111
111
|
},
|
112
|
+
"./helpers": {
|
113
|
+
"types": "./helpers/index.d.ts",
|
114
|
+
"esm2022": "./esm2022/helpers/ngx-formly-zorro-antd-helpers.mjs",
|
115
|
+
"esm": "./esm2022/helpers/ngx-formly-zorro-antd-helpers.mjs",
|
116
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-helpers.mjs"
|
117
|
+
},
|
112
118
|
"./input": {
|
113
119
|
"types": "./input/index.d.ts",
|
114
120
|
"esm2022": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
|
package/radio/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzRadioModule } from './radio.module';
|
2
|
-
export { FormlyFieldRadio, FormlyRadioFieldConfig } from './radio.type';
|
2
|
+
export { FormlyFieldRadio, FormlyRadioFieldConfig, RadioProps } from './radio.type';
|
package/radio/radio.type.d.ts
CHANGED
@@ -6,7 +6,7 @@ import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
|
6
6
|
import type { NzSizeLDSType } from 'ng-zorro-antd/core/types';
|
7
7
|
import type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';
|
8
8
|
import * as i0 from "@angular/core";
|
9
|
-
interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {
|
9
|
+
export interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {
|
10
10
|
type?: 'button';
|
11
11
|
/**
|
12
12
|
* nz-radio-group 下所有 input[type="radio"] 的 name 属性
|
@@ -36,4 +36,3 @@ export declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioPro
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
|
37
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-radio", never, {}, {}, never, never, false, never>;
|
38
38
|
}
|
39
|
-
export {};
|
package/rate/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzRateModule } from './rate.module';
|
2
|
-
export { FormlyFieldRate, FormlyRateFieldConfig } from './rate.type';
|
2
|
+
export { FormlyFieldRate, FormlyRateFieldConfig, RateProps } from './rate.type';
|
package/rate/rate.type.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
3
3
|
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
interface RateProps extends FormlyFieldProps {
|
6
|
+
export interface RateProps extends FormlyFieldProps {
|
7
7
|
/**
|
8
8
|
* 是否允许再次点击后清除
|
9
9
|
* @default true
|
@@ -57,4 +57,3 @@ export declare class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRate, never>;
|
58
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRate, "formly-field-rate", never, {}, {}, never, never, false, never>;
|
59
59
|
}
|
60
|
-
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyRefTemplateModule } from './ref-template.module';
|
2
|
-
export { FormlyFieldRefTemplate, FormlyRefTemplateFieldConfig } from './ref-template.type';
|
2
|
+
export { FormlyFieldRefTemplate, FormlyRefTemplateFieldConfig, RefTemplateProps } from './ref-template.type';
|
@@ -4,7 +4,7 @@ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
|
4
4
|
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
5
5
|
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
interface RefTemplateProps extends FormlyFieldProps {
|
7
|
+
export interface RefTemplateProps extends FormlyFieldProps {
|
8
8
|
ref?: string | TemplateRef<{
|
9
9
|
$implicit: FormlyRefTemplateFieldConfig;
|
10
10
|
props: RefTemplateProps;
|
@@ -76,4 +76,3 @@ export declare class FormlyFieldRefTemplate extends FieldType<FieldTypeConfig<Re
|
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRefTemplate, [{ optional: true; }]>;
|
77
77
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRefTemplate, "formly-ref-template", never, {}, {}, never, never, false, never>;
|
78
78
|
}
|
79
|
-
export {};
|
package/select/public_api.d.ts
CHANGED
package/slider/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzSliderModule } from './slider.module';
|
2
|
-
export { FormlyFieldSlider, FormlySlideFieldConfig } from './slider.type';
|
2
|
+
export { FormlyFieldSlider, FormlySlideFieldConfig, SlideProps } from './slider.type';
|
package/slider/slider.type.d.ts
CHANGED
@@ -4,7 +4,7 @@ import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro
|
|
4
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
5
|
import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
interface SlideProps extends FormlyFieldProps {
|
7
|
+
export interface SlideProps extends FormlyFieldProps {
|
8
8
|
/**
|
9
9
|
* 是否只能拖拽到刻度上
|
10
10
|
* @default false
|
@@ -74,4 +74,3 @@ export declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlidePr
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSlider, never>;
|
75
75
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSlider, "formly-field-slider", never, {}, {}, never, never, false, never>;
|
76
76
|
}
|
77
|
-
export {};
|
package/space/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzSpaceModule } from './space.module';
|
2
|
-
export { FormlyFieldSpace, FormlySpaceFieldConfig } from './space.type';
|
2
|
+
export { FormlyFieldSpace, FormlySpaceFieldConfig, SpaceProps } from './space.type';
|
package/space/space.type.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
|
5
5
|
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
6
6
|
import type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';
|
7
7
|
import * as i0 from "@angular/core";
|
8
|
-
interface SpaceProps extends FormlyFieldProps {
|
8
|
+
export interface SpaceProps extends FormlyFieldProps {
|
9
9
|
/**
|
10
10
|
* 间距大小
|
11
11
|
* @default small
|
@@ -49,4 +49,3 @@ export declare class FormlyFieldSpace extends FieldType<FieldTypeConfig<SpacePro
|
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSpace, [{ optional: true; }]>;
|
50
50
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSpace, "formly-field-space", never, {}, {}, never, never, false, never>;
|
51
51
|
}
|
52
|
-
export {};
|
package/switch/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzSwitchModule } from './switch.module';
|
2
|
-
export { FormlyFieldSwitch, FormlySwitchFieldConfig } from './switch.type';
|
2
|
+
export { FormlyFieldSwitch, FormlySwitchFieldConfig, SwitchProps } from './switch.type';
|
package/switch/switch.type.d.ts
CHANGED
@@ -4,7 +4,7 @@ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
|
4
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
5
|
import type { NzSizeDSType } from 'ng-zorro-antd/core/types';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
interface SwitchProps extends FormlyFieldProps {
|
7
|
+
export interface SwitchProps extends FormlyFieldProps {
|
8
8
|
/**
|
9
9
|
* 选中时的内容
|
10
10
|
*/
|
@@ -42,4 +42,3 @@ export declare class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchP
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSwitch, never>;
|
43
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSwitch, "formly-field-switch", never, {}, {}, never, never, false, never>;
|
44
44
|
}
|
45
|
-
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzTextValueModule } from './text-value.module';
|
2
|
-
export { FormlyFieldTextValue, FormlyTextValueFieldConfig } from './text-value.type';
|
2
|
+
export { FormlyFieldTextValue, FormlyTextValueFieldConfig, TextValueProps } from './text-value.type';
|
@@ -5,7 +5,7 @@ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
|
5
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
6
6
|
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
7
7
|
import * as i0 from "@angular/core";
|
8
|
-
interface TextValueProps extends FormlyFieldProps {
|
8
|
+
export interface TextValueProps extends FormlyFieldProps {
|
9
9
|
/**
|
10
10
|
* 格式化函数
|
11
11
|
* @param value 表单值
|
@@ -34,4 +34,3 @@ export declare class FormlyFieldTextValue<T = NzSafeAny> extends FieldType<Field
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextValue<any>, never>;
|
35
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextValue<any>, "formly-field-text-value", never, {}, {}, never, never, false, never>;
|
36
36
|
}
|
37
|
-
export {};
|
package/textarea/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzTextareaModule } from './textarea.module';
|
2
|
-
export { FormlyFieldTextarea, FormlyTextareaFieldConfig } from './textarea.type';
|
2
|
+
export { FormlyFieldTextarea, FormlyTextareaFieldConfig, TextareaProps } from './textarea.type';
|
@@ -3,7 +3,7 @@ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
3
3
|
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
interface TextareaProps extends FormlyFieldProps {
|
6
|
+
export interface TextareaProps extends FormlyFieldProps {
|
7
7
|
type?: 'count' | 'clear';
|
8
8
|
/**
|
9
9
|
* 自适应内容高度,可设置为 boolean 或对象:{ minRows: 2, maxRows: 6 }
|
@@ -37,4 +37,3 @@ export declare class FormlyFieldTextarea extends FieldType<FieldTypeConfig<Texta
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextarea, never>;
|
38
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextarea, "formly-field-textarea", never, {}, {}, never, never, false, never>;
|
39
39
|
}
|
40
|
-
export {};
|