ngx-formly-zorro-antd 19.3.4 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/index.d.ts +39 -5
- package/button/index.d.ts +108 -3
- package/card/index.d.ts +55 -3
- package/card-wrapper/index.d.ts +95 -3
- package/cascader/index.d.ts +199 -3
- package/checkbox/index.d.ts +60 -3
- package/common/index.d.ts +115 -3
- package/datepicker/index.d.ts +211 -3
- package/extension/index.d.ts +25 -3
- package/fesm2022/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +19 -22
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +15 -18
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +16 -19
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +20 -20
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +10 -9
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +13 -8
- 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-flex.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +18 -21
- 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-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs +0 -5
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +8 -10
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +9 -10
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +40 -43
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +16 -19
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +12 -8
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +15 -18
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +18 -15
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +11 -8
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +19 -19
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-types.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +20 -23
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -9
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/index.d.ts +66 -3
- package/form-field/index.d.ts +217 -3
- package/grid/index.d.ts +84 -3
- package/helpers/index.d.ts +142 -5
- package/index.d.ts +41 -1
- package/input/index.d.ts +93 -3
- package/input-group/index.d.ts +96 -3
- package/input-number/index.d.ts +124 -3
- package/input-otp/index.d.ts +70 -3
- package/package.json +18 -22
- package/radio/index.d.ts +65 -3
- package/rate/index.d.ts +80 -3
- package/ref-template/index.d.ts +95 -3
- package/select/index.d.ts +233 -3
- package/slider/index.d.ts +97 -3
- package/space/index.d.ts +67 -3
- package/space-compact/index.d.ts +54 -3
- package/switch/index.d.ts +63 -3
- package/tabs/index.d.ts +183 -3
- package/text-value/index.d.ts +54 -3
- package/textarea/index.d.ts +64 -3
- package/timepicker/index.d.ts +162 -3
- package/transfer/index.d.ts +162 -3
- package/tree-select/index.d.ts +204 -3
- package/types/index.d.ts +26 -5
- package/upload/index.d.ts +264 -3
- package/autocomplete/autocomplete.props.d.ts +0 -36
- package/autocomplete/public_api.d.ts +0 -1
- package/button/button.config.d.ts +0 -2
- package/button/button.module.d.ts +0 -12
- package/button/button.type.d.ts +0 -93
- package/button/public_api.d.ts +0 -4
- package/button-group/button-group.config.d.ts +0 -2
- package/button-group/button-group.module.d.ts +0 -11
- package/button-group/button-group.type.d.ts +0 -41
- package/button-group/index.d.ts +0 -5
- package/button-group/public_api.d.ts +0 -4
- package/card/card.config.d.ts +0 -2
- package/card/card.module.d.ts +0 -11
- package/card/card.type.d.ts +0 -42
- package/card/public_api.d.ts +0 -4
- package/card-wrapper/card-wrapper.config.d.ts +0 -2
- package/card-wrapper/card-wrapper.module.d.ts +0 -10
- package/card-wrapper/card-wrapper.props.d.ts +0 -58
- package/card-wrapper/card.wrapper.d.ts +0 -27
- package/card-wrapper/public_api.d.ts +0 -5
- package/cascader/cascader.config.d.ts +0 -2
- package/cascader/cascader.module.d.ts +0 -12
- package/cascader/cascader.type.d.ts +0 -182
- package/cascader/public_api.d.ts +0 -4
- package/checkbox/checkbox.config.d.ts +0 -2
- package/checkbox/checkbox.module.d.ts +0 -12
- package/checkbox/checkbox.type.d.ts +0 -41
- package/checkbox/public_api.d.ts +0 -4
- package/common/common.module.d.ts +0 -9
- package/common/formly-box-templates.directive.d.ts +0 -49
- package/common/formly-utils.d.ts +0 -31
- package/common/interface.d.ts +0 -27
- package/common/public_api.d.ts +0 -4
- package/datepicker/datepicker.config.d.ts +0 -2
- package/datepicker/datepicker.module.d.ts +0 -12
- package/datepicker/datepicker.props.d.ts +0 -158
- package/datepicker/datepicker.type.d.ts +0 -36
- package/datepicker/public_api.d.ts +0 -5
- package/extension/public_api.d.ts +0 -1
- package/extension/value-changes-extension.d.ts +0 -23
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +0 -158
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +0 -1
- package/flex/flex.config.d.ts +0 -2
- package/flex/flex.module.d.ts +0 -10
- package/flex/flex.type.d.ts +0 -53
- package/flex/public_api.d.ts +0 -4
- package/form-field/form-field.config.d.ts +0 -2
- package/form-field/form-field.module.d.ts +0 -12
- package/form-field/form-field.props.d.ts +0 -180
- package/form-field/form-field.wrapper.d.ts +0 -25
- package/form-field/public_api.d.ts +0 -4
- package/grid/grid.config.d.ts +0 -2
- package/grid/grid.module.d.ts +0 -10
- package/grid/grid.props.d.ts +0 -59
- package/grid/grid.type.d.ts +0 -15
- package/grid/public_api.d.ts +0 -5
- package/helpers/common.d.ts +0 -7
- package/helpers/formly.d.ts +0 -87
- package/helpers/public_api.d.ts +0 -53
- package/input/input.config.d.ts +0 -2
- package/input/input.module.d.ts +0 -14
- package/input/input.props.d.ts +0 -41
- package/input/input.type.d.ts +0 -35
- package/input/public_api.d.ts +0 -5
- package/input-group/input-group.config.d.ts +0 -2
- package/input-group/input-group.module.d.ts +0 -11
- package/input-group/input-group.props.d.ts +0 -65
- package/input-group/input-group.type.d.ts +0 -24
- package/input-group/public_api.d.ts +0 -5
- package/input-number/input-number.config.d.ts +0 -2
- package/input-number/input-number.module.d.ts +0 -12
- package/input-number/input-number.props.d.ts +0 -85
- package/input-number/input-number.type.d.ts +0 -28
- package/input-number/public_api.d.ts +0 -5
- package/input-otp/input-otp.config.d.ts +0 -2
- package/input-otp/input-otp.module.d.ts +0 -12
- package/input-otp/input-otp.props.d.ts +0 -30
- package/input-otp/input-otp.type.d.ts +0 -25
- package/input-otp/public_api.d.ts +0 -5
- package/lib/ui-ng-zorro-antd.config.d.ts +0 -1
- package/lib/ui-ng-zorro-antd.d.ts +0 -2
- package/lib/ui-ng-zorro-antd.module.d.ts +0 -36
- package/radio/public_api.d.ts +0 -4
- package/radio/radio.config.d.ts +0 -2
- package/radio/radio.module.d.ts +0 -14
- package/radio/radio.type.d.ts +0 -48
- package/rate/public_api.d.ts +0 -4
- package/rate/rate.config.d.ts +0 -2
- package/rate/rate.module.d.ts +0 -12
- package/rate/rate.type.d.ts +0 -65
- package/ref-template/public_api.d.ts +0 -4
- package/ref-template/ref-template.config.d.ts +0 -2
- package/ref-template/ref-template.module.d.ts +0 -11
- package/ref-template/ref-template.type.d.ts +0 -82
- package/select/public_api.d.ts +0 -5
- package/select/select.config.d.ts +0 -2
- package/select/select.module.d.ts +0 -13
- package/select/select.props.d.ts +0 -176
- package/select/select.type.d.ts +0 -38
- package/slider/public_api.d.ts +0 -4
- package/slider/slider.config.d.ts +0 -2
- package/slider/slider.module.d.ts +0 -12
- package/slider/slider.type.d.ts +0 -82
- package/space/public_api.d.ts +0 -4
- package/space/space.config.d.ts +0 -2
- package/space/space.module.d.ts +0 -10
- package/space/space.type.d.ts +0 -55
- package/space-compact/public_api.d.ts +0 -4
- package/space-compact/space-compact.config.d.ts +0 -2
- package/space-compact/space-compact.module.d.ts +0 -10
- package/space-compact/space-compact.type.d.ts +0 -41
- package/switch/public_api.d.ts +0 -4
- package/switch/switch.config.d.ts +0 -2
- package/switch/switch.module.d.ts +0 -12
- package/switch/switch.type.d.ts +0 -48
- package/tabs/public_api.d.ts +0 -4
- package/tabs/tabs.config.d.ts +0 -2
- package/tabs/tabs.module.d.ts +0 -10
- package/tabs/tabs.props.d.ts +0 -143
- package/tabs/tabs.wrapper.d.ts +0 -30
- package/text-value/public_api.d.ts +0 -4
- package/text-value/text-value.config.d.ts +0 -2
- package/text-value/text-value.module.d.ts +0 -11
- package/text-value/text-value.type.d.ts +0 -40
- package/textarea/public_api.d.ts +0 -4
- package/textarea/textarea.config.d.ts +0 -2
- package/textarea/textarea.module.d.ts +0 -13
- package/textarea/textarea.type.d.ts +0 -43
- package/timepicker/public_api.d.ts +0 -4
- package/timepicker/timepicker.config.d.ts +0 -2
- package/timepicker/timepicker.module.d.ts +0 -12
- package/timepicker/timepicker.type.d.ts +0 -143
- package/transfer/public_api.d.ts +0 -4
- package/transfer/transfer.component.d.ts +0 -27
- package/transfer/transfer.config.d.ts +0 -2
- package/transfer/transfer.module.d.ts +0 -13
- package/transfer/transfer.type.d.ts +0 -123
- package/tree-select/public_api.d.ts +0 -4
- package/tree-select/tree-select.config.d.ts +0 -2
- package/tree-select/tree-select.module.d.ts +0 -12
- package/tree-select/tree-select.type.d.ts +0 -187
- package/types/public_api.d.ts +0 -27
- package/upload/public_api.d.ts +0 -5
- package/upload/upload.component.d.ts +0 -37
- package/upload/upload.config.d.ts +0 -2
- package/upload/upload.module.d.ts +0 -15
- package/upload/upload.props.d.ts +0 -183
- package/upload/upload.type.d.ts +0 -36
@@ -1,25 +0,0 @@
|
|
1
|
-
import { FieldWrapper } from '@ngx-formly/core';
|
2
|
-
import type { NzFormWrapperProps } from './form-field.props';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export type FormlyFieldProps = NzFormWrapperProps;
|
7
|
-
/**
|
8
|
-
* @private
|
9
|
-
*/
|
10
|
-
export declare class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {
|
11
|
-
fieldTemplates: FormlyBoxTemplates;
|
12
|
-
constructor(fieldTemplates: FormlyBoxTemplates);
|
13
|
-
get nzTooltipTitle(): import("@angular/core").TemplateRef<any> | undefined;
|
14
|
-
get nzExtra(): import("@angular/core").TemplateRef<any> | undefined;
|
15
|
-
get hasLabel(): boolean;
|
16
|
-
get label(): import("@angular/core").TemplateRef<any> | undefined;
|
17
|
-
get afterText(): import("@angular/core").TemplateRef<any> | undefined;
|
18
|
-
get nzSuccessTip(): import("@angular/core").TemplateRef<any> | undefined;
|
19
|
-
get nzValidatingTip(): import("@angular/core").TemplateRef<any> | undefined;
|
20
|
-
get nzWarningTip(): import("@angular/core").TemplateRef<any> | undefined;
|
21
|
-
get hasError(): false | import("@angular/forms").ValidationErrors | null;
|
22
|
-
get validateStatus(): "error" | "success";
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, [{ optional: true; }]>;
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-nz-form-field", never, {}, {}, never, never, false, never>;
|
25
|
-
}
|
package/grid/grid.config.d.ts
DELETED
package/grid/grid.module.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./grid.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "ng-zorro-antd/grid";
|
5
|
-
import * as i4 from "@ngx-formly/core";
|
6
|
-
export declare class FormlyNzGridModule {
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzGridModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzGridModule, [typeof i1.FormlyFieldGrid], [typeof i2.CommonModule, typeof i3.NzGridModule, typeof i4.FormlyModule], never>;
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzGridModule>;
|
10
|
-
}
|
package/grid/grid.props.d.ts
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
import { FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';
|
2
|
-
import type { IndexableObject } from 'ng-zorro-antd/core/types';
|
3
|
-
import type { EmbeddedProperty, NzAlign, NzJustify } from 'ng-zorro-antd/grid';
|
4
|
-
import type { NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
5
|
-
type strNumNull = string | number | null;
|
6
|
-
/**
|
7
|
-
* @publicApi
|
8
|
-
*/
|
9
|
-
export interface GridColProps {
|
10
|
-
/** flex 布局属性 */
|
11
|
-
flex?: strNumNull;
|
12
|
-
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
13
|
-
offset?: strNumNull;
|
14
|
-
/** 栅格顺序 */
|
15
|
-
order?: strNumNull;
|
16
|
-
/** 栅格向左移动格数 */
|
17
|
-
pull?: strNumNull;
|
18
|
-
/** 栅格向右移动格数 */
|
19
|
-
push?: strNumNull;
|
20
|
-
/** 栅格占位格数,为 0 时相当于 display: none */
|
21
|
-
span?: strNumNull;
|
22
|
-
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
23
|
-
xs?: strNumNull | EmbeddedProperty;
|
24
|
-
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
25
|
-
sm?: strNumNull | EmbeddedProperty;
|
26
|
-
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
27
|
-
md?: strNumNull | EmbeddedProperty;
|
28
|
-
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
29
|
-
lg?: strNumNull | EmbeddedProperty;
|
30
|
-
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
31
|
-
xl?: strNumNull | EmbeddedProperty;
|
32
|
-
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
33
|
-
xxl?: strNumNull | EmbeddedProperty;
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* @publicApi
|
37
|
-
*/
|
38
|
-
export interface GridProps extends CoreFormlyFieldProps, GridColProps {
|
39
|
-
/** 自定义css类 */
|
40
|
-
className?: NgClassType;
|
41
|
-
/** 自定义样式 */
|
42
|
-
style?: NgStyleType;
|
43
|
-
/** 垂直对齐方式 */
|
44
|
-
align?: NzAlign | null;
|
45
|
-
/**
|
46
|
-
* 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 { xs: 8, sm: 16, md: 24}。
|
47
|
-
* 或者使用数组形式同时设置 [水平间距, 垂直间距]。
|
48
|
-
*/
|
49
|
-
gutter?: strNumNull | IndexableObject | [number, number] | [IndexableObject, IndexableObject];
|
50
|
-
/** 水平排列方式 */
|
51
|
-
justify?: NzJustify | null;
|
52
|
-
/**
|
53
|
-
* 独立的
|
54
|
-
* 如果为true,子项不影响布局
|
55
|
-
* @default false
|
56
|
-
*/
|
57
|
-
independent?: boolean;
|
58
|
-
}
|
59
|
-
export {};
|
package/grid/grid.type.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { GridProps } from './grid.props';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {
|
7
|
-
type: 'grid' | Type<FormlyFieldGrid>;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @private
|
11
|
-
*/
|
12
|
-
export declare class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldGrid, never>;
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldGrid, "formly-field-grid", never, {}, {}, never, never, false, never>;
|
15
|
-
}
|
package/grid/public_api.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
export { FormlyNzGridModule } from './grid.module';
|
2
|
-
export { FormlyFieldGrid } from './grid.type';
|
3
|
-
export { withFormlyFieldGrid } from './grid.config';
|
4
|
-
export type { FormlyGridFieldConfig } from './grid.type';
|
5
|
-
export type { GridColProps, GridProps } from './grid.props';
|
package/helpers/common.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { NzFormlyFieldConfig, ControlOptions } from 'ngx-formly-zorro-antd/common';
|
2
|
-
export declare function field<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
|
3
|
-
export declare function fieldSingle<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, options?: NzFormlyFieldConfig<ControlOptions>): T;
|
4
|
-
export declare function requiredField<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
|
5
|
-
export declare function requiredFieldSingle<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, options?: NzFormlyFieldConfig<ControlOptions>): T;
|
6
|
-
export declare function hide(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
|
7
|
-
export declare function hidden(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
|
package/helpers/formly.d.ts
DELETED
@@ -1,87 +0,0 @@
|
|
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, GridProps } 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 { FormlySpaceCompactFieldConfig, SpaceCompactProps } from 'ngx-formly-zorro-antd/space-compact';
|
20
|
-
import type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';
|
21
|
-
import type { FormlyTextValueFieldConfig, TextValueProps } from 'ngx-formly-zorro-antd/text-value';
|
22
|
-
import type { FormlyTextareaFieldConfig, TextareaProps } from 'ngx-formly-zorro-antd/textarea';
|
23
|
-
import type { FormlyTimepickerFieldConfig, TimepickerProps } from 'ngx-formly-zorro-antd/timepicker';
|
24
|
-
import type { FormlyTransferFieldConfig, TransferProps } from 'ngx-formly-zorro-antd/transfer';
|
25
|
-
import type { FormlyTreeSelectFieldConfig, TreeSelectProps } from 'ngx-formly-zorro-antd/tree-select';
|
26
|
-
import type { FormlyUploadFieldConfig, UploadProps } from 'ngx-formly-zorro-antd/upload';
|
27
|
-
export declare function treeSelect(key: string, label?: string, props?: TreeSelectProps, otherOptions?: FormlyFieldConfig): FormlyTreeSelectFieldConfig;
|
28
|
-
export declare function requiredTreeSelect(key: string, label?: string, props?: TreeSelectProps, otherOptions?: FormlyFieldConfig): FormlyTreeSelectFieldConfig;
|
29
|
-
export declare function transfer(key: string, label?: string, props?: TransferProps, otherOptions?: FormlyFieldConfig): FormlyTransferFieldConfig;
|
30
|
-
export declare function requiredTransfer(key: string, label?: string, props?: TransferProps, otherOptions?: FormlyFieldConfig): FormlyTransferFieldConfig;
|
31
|
-
export declare function timepicker(key: string, label?: string, props?: TimepickerProps, otherOptions?: FormlyFieldConfig): FormlyTimepickerFieldConfig;
|
32
|
-
export declare function requiredTimepicker(key: string, label?: string, props?: TimepickerProps, otherOptions?: FormlyFieldConfig): FormlyTimepickerFieldConfig;
|
33
|
-
export declare function input(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
|
34
|
-
export declare function requiredInput(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
|
35
|
-
export declare function textArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
|
36
|
-
export declare function requiredTextArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
|
37
|
-
export declare function checkbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
|
38
|
-
export declare function requiredCheckbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
|
39
|
-
export declare function cascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
|
40
|
-
export declare function requiredCascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
|
41
|
-
export declare function datepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
|
42
|
-
export declare function requiredDatepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
|
43
|
-
export declare function number(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
|
44
|
-
export declare function requiredNumber(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
|
45
|
-
/** 选择器 */
|
46
|
-
export declare function select(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
|
47
|
-
/** 选择器 */
|
48
|
-
export declare function requiredSelect(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
|
49
|
-
/** 上传 */
|
50
|
-
export declare function upload(key: string, label?: string, props?: UploadProps, otherOptions?: FormlyFieldConfig): FormlyUploadFieldConfig;
|
51
|
-
/** 上传 */
|
52
|
-
export declare function requiredUpload(key: string, label?: string, props?: UploadProps, otherOptions?: FormlyFieldConfig): FormlyUploadFieldConfig;
|
53
|
-
/** 单选框 */
|
54
|
-
export declare function radio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
|
55
|
-
/** 单选框 */
|
56
|
-
export declare function requiredRadio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
|
57
|
-
/** 评分 */
|
58
|
-
export declare function rate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
|
59
|
-
/** 评分 */
|
60
|
-
export declare function requiredRate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
|
61
|
-
/** 开关 */
|
62
|
-
export declare function requiredSwitch(key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig): FormlySwitchFieldConfig;
|
63
|
-
/** 滑动输入条 */
|
64
|
-
export declare function slider(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
|
65
|
-
/** 滑动输入条 */
|
66
|
-
export declare function requiredSlide(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
|
67
|
-
/** 文本显示 */
|
68
|
-
export declare function text(options?: FormlyFieldConfig<TextValueProps>): FormlyTextValueFieldConfig;
|
69
|
-
/** 输入组 */
|
70
|
-
export declare function inputGroup(options?: FormlyFieldConfig<FormlyInputGroupProps>): FormlyInputGroupFieldConfig;
|
71
|
-
/** 间距 */
|
72
|
-
export declare function space(options?: FormlyFieldConfig<SpaceProps>): FormlySpaceFieldConfig;
|
73
|
-
/** 紧凑布局组合 */
|
74
|
-
export declare function spaceCompact(options?: FormlyFieldConfig<SpaceCompactProps>): FormlySpaceCompactFieldConfig;
|
75
|
-
/** 模板 */
|
76
|
-
export declare function ref(props?: RefTemplateProps, otherOptions?: FormlyFieldConfig): FormlyRefTemplateFieldConfig;
|
77
|
-
/** 栅格 */
|
78
|
-
export declare function grid(options?: FormlyFieldConfig<GridProps>): FormlyGridFieldConfig;
|
79
|
-
/** 弹性布局 */
|
80
|
-
export declare function flex(options?: FormlyFieldConfig<FlexProps>): FormlyFlexFieldConfig;
|
81
|
-
/** 卡片 */
|
82
|
-
export declare function card(options?: FormlyFieldConfig<CardProps>): FormlyCardFieldConfig;
|
83
|
-
/** 按钮组 */
|
84
|
-
export declare function buttonGroup(options?: FormlyFieldConfig<ButtonGroupProps>): FormlyButtonGroupFieldConfig;
|
85
|
-
export declare function button(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
86
|
-
export declare function submit(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
87
|
-
export declare function reset(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
package/helpers/public_api.d.ts
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
import { field, requiredField, hide, hidden } from './common';
|
2
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
-
import { input, requiredInput, textArea, requiredTextArea, checkbox, requiredCheckbox, cascader, requiredCascader, number, requiredNumber, radio, requiredRadio, rate, requiredRate, datepicker, requiredDatepicker, requiredSwitch, upload, requiredUpload, slider, requiredSlide, select, requiredSelect, treeSelect, requiredTreeSelect, transfer, requiredTransfer, timepicker, requiredTimepicker, text, button, buttonGroup, submit, reset, space, spaceCompact, 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
|
-
hide: typeof hide;
|
9
|
-
hidden: typeof hidden;
|
10
|
-
input: typeof input;
|
11
|
-
requiredInput: typeof requiredInput;
|
12
|
-
textArea: typeof textArea;
|
13
|
-
requiredTextArea: typeof requiredTextArea;
|
14
|
-
checkbox: typeof checkbox;
|
15
|
-
requiredCheckbox: typeof requiredCheckbox;
|
16
|
-
cascader: typeof cascader;
|
17
|
-
requiredCascader: typeof requiredCascader;
|
18
|
-
number: typeof number;
|
19
|
-
requiredNumber: typeof requiredNumber;
|
20
|
-
radio: typeof radio;
|
21
|
-
requiredRadio: typeof requiredRadio;
|
22
|
-
rate: typeof rate;
|
23
|
-
requiredRate: typeof requiredRate;
|
24
|
-
datepicker: typeof datepicker;
|
25
|
-
requiredDatepicker: typeof requiredDatepicker;
|
26
|
-
/** 开关 */
|
27
|
-
switch: (key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig) => FormlySwitchFieldConfig;
|
28
|
-
requiredSwitch: typeof requiredSwitch;
|
29
|
-
upload: typeof upload;
|
30
|
-
requiredUpload: typeof requiredUpload;
|
31
|
-
slider: typeof slider;
|
32
|
-
requiredSlide: typeof requiredSlide;
|
33
|
-
select: typeof select;
|
34
|
-
requiredSelect: typeof requiredSelect;
|
35
|
-
treeSelect: typeof treeSelect;
|
36
|
-
requiredTreeSelect: typeof requiredTreeSelect;
|
37
|
-
transfer: typeof transfer;
|
38
|
-
requiredTransfer: typeof requiredTransfer;
|
39
|
-
timepicker: typeof timepicker;
|
40
|
-
requiredTimepicker: typeof requiredTimepicker;
|
41
|
-
text: typeof text;
|
42
|
-
space: typeof space;
|
43
|
-
spaceCompact: typeof spaceCompact;
|
44
|
-
inputGroup: typeof inputGroup;
|
45
|
-
ref: typeof ref;
|
46
|
-
grid: typeof grid;
|
47
|
-
flex: typeof flex;
|
48
|
-
card: typeof card;
|
49
|
-
button: typeof button;
|
50
|
-
buttonGroup: typeof buttonGroup;
|
51
|
-
submit: typeof submit;
|
52
|
-
reset: typeof reset;
|
53
|
-
};
|
package/input/input.config.d.ts
DELETED
package/input/input.module.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./input.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@angular/forms";
|
5
|
-
import * as i4 from "ng-zorro-antd/input";
|
6
|
-
import * as i5 from "ng-zorro-antd/auto-complete";
|
7
|
-
import * as i6 from "ng-zorro-antd/icon";
|
8
|
-
import * as i7 from "ngx-formly-zorro-antd/form-field";
|
9
|
-
import * as i8 from "@ngx-formly/core";
|
10
|
-
export declare class FormlyNzInputModule {
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzInputModule, never>;
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzInputModule, [typeof i1.FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NzInputModule, typeof i5.NzAutocompleteModule, typeof i6.NzIconModule, typeof i7.FormlyNzFormFieldModule, typeof i8.FormlyModule], never>;
|
13
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzInputModule>;
|
14
|
-
}
|
package/input/input.props.d.ts
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
2
|
-
import { FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';
|
3
|
-
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
|
5
|
-
import type { AutocompleteProps } from 'ngx-formly-zorro-antd/autocomplete';
|
6
|
-
export interface FormlyInputProps extends InputProps {
|
7
|
-
}
|
8
|
-
/**
|
9
|
-
* @publicApi
|
10
|
-
*/
|
11
|
-
export interface InputProps extends FormlyFieldProps, FormlyInputGroupProps {
|
12
|
-
/**
|
13
|
-
* autoComplete=>输入框自动完成
|
14
|
-
*
|
15
|
-
* group=>组
|
16
|
-
*/
|
17
|
-
type?: 'input' | 'password' | 'group' | 'autoComplete';
|
18
|
-
/**
|
19
|
-
* 控件大小。注:标准表单内的输入框大小限制为 large
|
20
|
-
* @default default
|
21
|
-
*/
|
22
|
-
size?: NzSizeLDSType;
|
23
|
-
/**
|
24
|
-
* 无边框
|
25
|
-
* @default false
|
26
|
-
*/
|
27
|
-
borderless?: boolean;
|
28
|
-
/**
|
29
|
-
* 设置校验状态
|
30
|
-
*/
|
31
|
-
status?: NzStatus;
|
32
|
-
/**
|
33
|
-
* 支持清除
|
34
|
-
* @default false
|
35
|
-
*/
|
36
|
-
allowClear?: boolean;
|
37
|
-
/** 输入框自动完成配置选项 */
|
38
|
-
autocompleteOptions?: AutocompleteProps;
|
39
|
-
/** 数值改变时回调 */
|
40
|
-
modelChange?: FormlyAttributeEvent;
|
41
|
-
}
|
package/input/input.type.d.ts
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
5
|
-
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
6
|
-
import type { InputProps } from './input.props';
|
7
|
-
import * as i0 from "@angular/core";
|
8
|
-
export interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {
|
9
|
-
type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;
|
10
|
-
}
|
11
|
-
/**
|
12
|
-
* @private
|
13
|
-
*/
|
14
|
-
export declare class FormlyFieldInput extends FieldType<FieldTypeConfig> {
|
15
|
-
fieldTemplates: FormlyBoxTemplates;
|
16
|
-
defaultOptions: {
|
17
|
-
props: {
|
18
|
-
borderless: boolean;
|
19
|
-
compact: boolean;
|
20
|
-
search: boolean;
|
21
|
-
allowClear: boolean;
|
22
|
-
autocompleteOptions: {
|
23
|
-
backfill: boolean;
|
24
|
-
defaultActiveFirstOption: boolean;
|
25
|
-
compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean;
|
26
|
-
};
|
27
|
-
};
|
28
|
-
};
|
29
|
-
passVisible: boolean;
|
30
|
-
constructor(fieldTemplates: FormlyBoxTemplates);
|
31
|
-
get addOnBefore(): import("@angular/core").TemplateRef<any> | undefined;
|
32
|
-
get addOnAfter(): import("@angular/core").TemplateRef<any> | undefined;
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, [{ optional: true; }]>;
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-input", never, {}, {}, never, never, false, never>;
|
35
|
-
}
|
package/input/public_api.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
export { FormlyNzInputModule } from './input.module';
|
2
|
-
export { FormlyFieldInput } from './input.type';
|
3
|
-
export type { FormlyInputFieldConfig } from './input.type';
|
4
|
-
export type { FormlyInputProps } from './input.props';
|
5
|
-
export { withFormlyFieldInput } from './input.config';
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./input-group.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "ng-zorro-antd/input";
|
5
|
-
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
-
import * as i5 from "@ngx-formly/core";
|
7
|
-
export declare class FormlyNzInputGroupModule {
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzInputGroupModule, never>;
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzInputGroupModule, [typeof i1.FormlyFieldInputGroup], [typeof i2.CommonModule, typeof i3.NzInputModule, typeof i4.FormlyNzFormFieldModule, typeof i5.FormlyModule], never>;
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzInputGroupModule>;
|
11
|
-
}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
2
|
-
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
3
|
-
import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
|
4
|
-
export type FormlyInputGroupProps = InputGroupProps;
|
5
|
-
/**
|
6
|
-
* @publicApi
|
7
|
-
*/
|
8
|
-
export interface InputGroupProps extends FormlyFieldProps {
|
9
|
-
/**
|
10
|
-
* 带有后缀图标的 input,可以与 suffixIcon 配合使用
|
11
|
-
*/
|
12
|
-
prefixIcon?: string | null;
|
13
|
-
/**
|
14
|
-
* 带有后缀图标的 input,可以与 prefixIcon 配合使用
|
15
|
-
*/
|
16
|
-
suffixIcon?: string | null;
|
17
|
-
/**
|
18
|
-
* 带标签的 input,设置后置标签,可以与 nzAddOnBefore 配合使用
|
19
|
-
*/
|
20
|
-
addOnAfter?: string | TemplateRef<void>;
|
21
|
-
addOnAfterName?: string;
|
22
|
-
/**
|
23
|
-
* 带标签的 input,设置前置标签,可以与 nzAddOnAfter 配合使用
|
24
|
-
*/
|
25
|
-
addOnBefore?: string | TemplateRef<void>;
|
26
|
-
addOnBeforeName?: string;
|
27
|
-
/**
|
28
|
-
* 带标签的 input,设置后置标签,可以与 addOnBeforeIcon 配合使用
|
29
|
-
*/
|
30
|
-
addOnAfterIcon?: string | null;
|
31
|
-
/**
|
32
|
-
* 带标签的 input,设置后置标签,可以与 addOnAfterIcon 配合使用
|
33
|
-
*/
|
34
|
-
addOnBeforeIcon?: string | null;
|
35
|
-
/**
|
36
|
-
* 带有前缀图标的 input,可以与 nzSuffix 配合使用
|
37
|
-
*/
|
38
|
-
prefix?: string | TemplateRef<void>;
|
39
|
-
prefixName?: string;
|
40
|
-
/**
|
41
|
-
* 带有后缀图标的 input,可以与 nzPrefix 配合使用
|
42
|
-
*/
|
43
|
-
suffix?: string | TemplateRef<void>;
|
44
|
-
suffixName?: string;
|
45
|
-
/**
|
46
|
-
* @deprecated Will be removed in v20. Use `space-compact` instead.
|
47
|
-
* 是否用紧凑模式
|
48
|
-
* @default false
|
49
|
-
*/
|
50
|
-
compact?: boolean;
|
51
|
-
/**
|
52
|
-
* 是否用搜索框
|
53
|
-
* @default false
|
54
|
-
*/
|
55
|
-
search?: boolean;
|
56
|
-
/**
|
57
|
-
* 控件大小。注:标准表单内的输入框大小限制为 large
|
58
|
-
* @default default
|
59
|
-
*/
|
60
|
-
size?: NzSizeLDSType;
|
61
|
-
/**
|
62
|
-
* 设置校验状态
|
63
|
-
*/
|
64
|
-
status?: NzStatus;
|
65
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { InputGroupProps } from './input-group.props';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
/**
|
7
|
-
* @deprecated Use `space-compact` instead.
|
8
|
-
*/
|
9
|
-
export interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {
|
10
|
-
type: 'input-group' | Type<FormlyFieldInputGroup>;
|
11
|
-
}
|
12
|
-
/**
|
13
|
-
* @private
|
14
|
-
*/
|
15
|
-
export declare class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {
|
16
|
-
defaultOptions: {
|
17
|
-
props: {
|
18
|
-
status: "";
|
19
|
-
size: "default";
|
20
|
-
};
|
21
|
-
};
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInputGroup, never>;
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInputGroup, "formly-field-input-group", never, {}, {}, never, never, false, never>;
|
24
|
-
}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { FormlyNzInputGroupModule } from './input-group.module';
|
2
|
-
export { FormlyFieldInputGroup } from './input-group.type';
|
3
|
-
export { withFormlyFieldInputGroup } from './input-group.config';
|
4
|
-
export type { FormlyInputGroupFieldConfig } from './input-group.type';
|
5
|
-
export type { FormlyInputGroupProps } from './input-group.props';
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./input-number.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@angular/forms";
|
5
|
-
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
-
import * as i5 from "ng-zorro-antd/input-number-legacy";
|
7
|
-
import * as i6 from "@ngx-formly/core";
|
8
|
-
export declare class FormlyNzInputNumberModule {
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzInputNumberModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzInputNumberModule, [typeof i1.FormlyFieldInputNumber], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzInputNumberLegacyModule, typeof i6.FormlyModule], never>;
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzInputNumberModule>;
|
12
|
-
}
|
@@ -1,85 +0,0 @@
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
2
|
-
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
|
-
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
-
import type { NzSizeLDSType, NzStatus } from 'ng-zorro-antd/core/types';
|
5
|
-
/**
|
6
|
-
* @publicApi
|
7
|
-
*/
|
8
|
-
export interface InputNumberProps extends FormlyFieldProps {
|
9
|
-
type?: 'number' | 'group';
|
10
|
-
/**
|
11
|
-
* 自动获取焦点
|
12
|
-
* @default false
|
13
|
-
*/
|
14
|
-
autoFocus?: boolean;
|
15
|
-
/**
|
16
|
-
* 指定输入框展示值的格式
|
17
|
-
*/
|
18
|
-
formatter?: (value: number | string) => string | number;
|
19
|
-
/**
|
20
|
-
* 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用
|
21
|
-
* @default
|
22
|
-
* (value: string) => value.trim().replace(/。/g, '.').replace(/[^\w\.-]+/g, '')
|
23
|
-
*/
|
24
|
-
parser?: (value: string) => string;
|
25
|
-
/**
|
26
|
-
* 数值精度
|
27
|
-
*/
|
28
|
-
precision?: number;
|
29
|
-
/**
|
30
|
-
* 数值精度的取值方式
|
31
|
-
* @default toFixed
|
32
|
-
*/
|
33
|
-
precisionMode?: 'cut' | 'toFixed' | ((value: number | string, precision?: number) => number);
|
34
|
-
/**
|
35
|
-
* 输入框大小
|
36
|
-
* @default default
|
37
|
-
*/
|
38
|
-
size?: NzSizeLDSType;
|
39
|
-
/**
|
40
|
-
* 设置校验状态
|
41
|
-
*/
|
42
|
-
status?: NzStatus;
|
43
|
-
/**
|
44
|
-
* 无边框
|
45
|
-
* @default false
|
46
|
-
*/
|
47
|
-
borderless?: boolean;
|
48
|
-
/**
|
49
|
-
* 提供了用户在编辑元素或其内容时可能输入的数据类型的提示,详见MDN
|
50
|
-
* @default decimal
|
51
|
-
*/
|
52
|
-
inputMode?: string;
|
53
|
-
/**
|
54
|
-
* 带标签的 input-number,设置后置标签,可以与 nzAddOnBefore 配合使用
|
55
|
-
*/
|
56
|
-
addOnAfter?: string | TemplateRef<void>;
|
57
|
-
/**
|
58
|
-
* 带标签的 input-number,设置前置标签,可以与 nzAddOnAfter 配合使用
|
59
|
-
*/
|
60
|
-
addOnBefore?: string | TemplateRef<void>;
|
61
|
-
/**
|
62
|
-
* 带有前缀图标的 input-number,可以与 nzSuffix 配合使用
|
63
|
-
*/
|
64
|
-
prefix?: string | TemplateRef<void>;
|
65
|
-
/**
|
66
|
-
* 带有后缀图标的 input-number,可以与 nzPrefix 配合使用
|
67
|
-
*/
|
68
|
-
suffix?: string | TemplateRef<void>;
|
69
|
-
/**
|
70
|
-
* 带有前缀图标的 input-number
|
71
|
-
*/
|
72
|
-
prefixIcon?: string;
|
73
|
-
/**
|
74
|
-
* 带有后缀图标的 input-number
|
75
|
-
*/
|
76
|
-
suffixIcon?: string;
|
77
|
-
/**
|
78
|
-
* @deprecated Will be removed in v20. Use `space-compact` instead.
|
79
|
-
* 是否用紧凑模式
|
80
|
-
* @default false
|
81
|
-
*/
|
82
|
-
compact?: boolean;
|
83
|
-
/** 数值改变时回调 */
|
84
|
-
modelChange?: FormlyAttributeEvent<number | null>;
|
85
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { InputNumberProps } from './input-number.props';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {
|
7
|
-
type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @private
|
11
|
-
*/
|
12
|
-
export declare class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {
|
13
|
-
defaultOptions: {
|
14
|
-
props: {
|
15
|
-
max: number;
|
16
|
-
min: number;
|
17
|
-
parser: (value: string) => string;
|
18
|
-
precisionMode: "toFixed";
|
19
|
-
size: "default";
|
20
|
-
status: "";
|
21
|
-
step: number;
|
22
|
-
inputMode: string;
|
23
|
-
formatter: (value: number | string) => string | number;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInputNumber, never>;
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInputNumber, "formly-field-inputnumber", never, {}, {}, never, never, false, never>;
|
28
|
-
}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { FormlyNzInputNumberModule } from './input-number.module';
|
2
|
-
export { FormlyFieldInputNumber } from './input-number.type';
|
3
|
-
export { withFormlyFieldInputNumber } from './input-number.config';
|
4
|
-
export type { FormlyInputNumberFieldConfig } from './input-number.type';
|
5
|
-
export type { InputNumberProps } from './input-number.props';
|