ngx-formly-zorro-antd 13.0.0-rc.0 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -6
- package/autocomplete/autocomplete.props.d.ts +1 -2
- package/button/button.type.d.ts +1 -0
- package/esm2020/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2020/button/button.type.mjs +79 -39
- package/esm2020/form-field/form-field.props.mjs +1 -1
- package/esm2020/form-field/form-field.wrapper.mjs +14 -4
- package/esm2020/grid/grid.module.mjs +43 -0
- package/esm2020/grid/grid.props.mjs +2 -0
- package/esm2020/grid/grid.type.mjs +71 -0
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +5 -0
- package/esm2020/grid/public_api.mjs +3 -0
- package/esm2020/input/input.props.mjs +1 -1
- package/esm2020/input/input.type.mjs +21 -17
- package/esm2020/input-group/input-group.module.mjs +10 -4
- package/esm2020/input-group/input-group.props.mjs +1 -1
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +8 -4
- package/esm2020/tabs/tabs.props.mjs +1 -1
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +78 -38
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +13 -3
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +116 -0
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +9 -3
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +20 -16
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +7 -3
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +78 -38
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +13 -3
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +116 -0
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +9 -3
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +20 -16
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +7 -3
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +28 -0
- package/grid/grid.module.d.ts +10 -0
- package/grid/grid.props.d.ts +44 -0
- package/grid/grid.type.d.ts +11 -0
- package/grid/ngx-formly-zorro-antd-grid.d.ts +5 -0
- package/grid/package.json +10 -0
- package/grid/public_api.d.ts +3 -0
- package/input/input.props.d.ts +3 -36
- package/input/input.type.d.ts +1 -1
- package/input-group/input-group.module.d.ts +3 -2
- package/input-group/input-group.props.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +10 -1
- package/tabs/tabs.props.d.ts +1 -2
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i2 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i4 from '@ngx-formly/core';
|
6
6
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
7
|
import * as i1 from 'ng-zorro-antd/button';
|
8
8
|
import { NzButtonModule } from 'ng-zorro-antd/button';
|
9
|
-
import * as i2 from 'ng-zorro-antd/core/wave';
|
10
9
|
import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
11
|
-
import * as
|
10
|
+
import * as i5 from 'ng-zorro-antd/icon';
|
12
11
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
12
|
+
import * as i6 from 'ng-zorro-antd/core/wave';
|
13
13
|
|
14
14
|
class FormlyFieldButton extends FieldType {
|
15
15
|
constructor() {
|
@@ -27,46 +27,86 @@ class FormlyFieldButton extends FieldType {
|
|
27
27
|
}
|
28
28
|
FormlyFieldButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
29
29
|
FormlyFieldButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
30
|
+
<ng-container *ngIf="props.type === 'a'; else elsebutton">
|
31
|
+
<a
|
32
|
+
nz-button
|
33
|
+
[formlyAttributes]="field"
|
34
|
+
[nzGhost]="props['ghost']!!"
|
35
|
+
[nzLoading]="props['loading']!!"
|
36
|
+
[nzShape]="props['shape'] ?? null"
|
37
|
+
[nzSize]="props['size']!"
|
38
|
+
[nzBlock]="props['block']!!"
|
39
|
+
[nzDanger]="props['danger']!!"
|
40
|
+
[nzType]="props['buttonType'] ?? 'link'"
|
41
|
+
[ngClass]="props['className']!"
|
42
|
+
>
|
43
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
44
|
+
{{ props.label }}
|
45
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
46
|
+
</a>
|
47
|
+
</ng-container>
|
48
|
+
<ng-template #elsebutton>
|
49
|
+
<button
|
50
|
+
nz-button
|
51
|
+
[attr.type]="field.type"
|
52
|
+
[formlyAttributes]="field"
|
53
|
+
[nzGhost]="props['ghost']!!"
|
54
|
+
[nzLoading]="props['loading']!!"
|
55
|
+
[nzShape]="props['shape'] ?? null"
|
56
|
+
[nzSize]="props['size']!"
|
57
|
+
[nzBlock]="props['block']!!"
|
58
|
+
[nzDanger]="props['danger']!!"
|
59
|
+
[nzType]="props['buttonType'] ?? null"
|
60
|
+
[ngClass]="props['className']!"
|
61
|
+
>
|
62
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
63
|
+
{{ props.label }}
|
64
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
65
|
+
</button>
|
66
|
+
</ng-template>
|
67
|
+
`, isInline: true, components: [{ type: i1.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
48
68
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
49
69
|
type: Component,
|
50
70
|
args: [{
|
51
71
|
selector: 'formly-field-button',
|
52
72
|
template: `
|
53
|
-
<
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
73
|
+
<ng-container *ngIf="props.type === 'a'; else elsebutton">
|
74
|
+
<a
|
75
|
+
nz-button
|
76
|
+
[formlyAttributes]="field"
|
77
|
+
[nzGhost]="props['ghost']!!"
|
78
|
+
[nzLoading]="props['loading']!!"
|
79
|
+
[nzShape]="props['shape'] ?? null"
|
80
|
+
[nzSize]="props['size']!"
|
81
|
+
[nzBlock]="props['block']!!"
|
82
|
+
[nzDanger]="props['danger']!!"
|
83
|
+
[nzType]="props['buttonType'] ?? 'link'"
|
84
|
+
[ngClass]="props['className']!"
|
85
|
+
>
|
86
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
87
|
+
{{ props.label }}
|
88
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
89
|
+
</a>
|
90
|
+
</ng-container>
|
91
|
+
<ng-template #elsebutton>
|
92
|
+
<button
|
93
|
+
nz-button
|
94
|
+
[attr.type]="field.type"
|
95
|
+
[formlyAttributes]="field"
|
96
|
+
[nzGhost]="props['ghost']!!"
|
97
|
+
[nzLoading]="props['loading']!!"
|
98
|
+
[nzShape]="props['shape'] ?? null"
|
99
|
+
[nzSize]="props['size']!"
|
100
|
+
[nzBlock]="props['block']!!"
|
101
|
+
[nzDanger]="props['danger']!!"
|
102
|
+
[nzType]="props['buttonType'] ?? null"
|
103
|
+
[ngClass]="props['className']!"
|
104
|
+
>
|
105
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
106
|
+
{{ props.label }}
|
107
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
108
|
+
</button>
|
109
|
+
</ng-template>
|
70
110
|
`,
|
71
111
|
changeDetection: ChangeDetectionStrategy.OnPush
|
72
112
|
}]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\r\n\r\ninterface ButtonProps extends FormlyFieldProps {\r\n /**\r\n * 幽灵属性,使按钮背景透明\r\n * @default false\r\n */\r\n ghost?: boolean;\r\n\r\n /**\r\n * 设置按钮载入状态\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 设置按钮形状\r\n */\r\n shape?: NzButtonShape;\r\n\r\n /**\r\n * 设置按钮大小\r\n * @default default\r\n */\r\n size?: NzButtonSize;\r\n\r\n /**\r\n * 设置按钮类型\r\n */\r\n buttonType?: NzButtonType;\r\n\r\n /**\r\n * 将按钮宽度调整为其父宽度的选项\r\n * @default false\r\n */\r\n block?: boolean;\r\n\r\n /**\r\n * 设置危险按钮\r\n * @default false\r\n */\r\n danger?: boolean;\r\n\r\n /**\r\n * 图标在前面\r\n */\r\n iconOnBefore?: string;\r\n\r\n /**\r\n * 图标在后面\r\n */\r\n iconOnAfter?: string;\r\n}\r\n\r\nexport interface FormlyButtonFieldConfig extends FormlyFieldConfig<ButtonProps> {\r\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button',\r\n template: `\r\n <
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\r\n\r\ninterface ButtonProps extends FormlyFieldProps {\r\n type?: 'a' | 'button';\r\n /**\r\n * 幽灵属性,使按钮背景透明\r\n * @default false\r\n */\r\n ghost?: boolean;\r\n\r\n /**\r\n * 设置按钮载入状态\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 设置按钮形状\r\n */\r\n shape?: NzButtonShape;\r\n\r\n /**\r\n * 设置按钮大小\r\n * @default default\r\n */\r\n size?: NzButtonSize;\r\n\r\n /**\r\n * 设置按钮类型\r\n */\r\n buttonType?: NzButtonType;\r\n\r\n /**\r\n * 将按钮宽度调整为其父宽度的选项\r\n * @default false\r\n */\r\n block?: boolean;\r\n\r\n /**\r\n * 设置危险按钮\r\n * @default false\r\n */\r\n danger?: boolean;\r\n\r\n /**\r\n * 图标在前面\r\n */\r\n iconOnBefore?: string;\r\n\r\n /**\r\n * 图标在后面\r\n */\r\n iconOnAfter?: string;\r\n}\r\n\r\nexport interface FormlyButtonFieldConfig extends FormlyFieldConfig<ButtonProps> {\r\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button',\r\n template: `\r\n <ng-container *ngIf=\"props.type === 'a'; else elsebutton\">\r\n <a\r\n nz-button\r\n [formlyAttributes]=\"field\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['buttonType'] ?? 'link'\"\r\n [ngClass]=\"props['className']!\"\r\n >\r\n <span *ngIf=\"props['iconOnBefore']\" nz-icon [nzType]=\"props['iconOnBefore']\"></span>\r\n {{ props.label }}\r\n <span *ngIf=\"props['iconOnAfter']\" nz-icon [nzType]=\"props['iconOnAfter']\"></span>\r\n </a>\r\n </ng-container>\r\n <ng-template #elsebutton>\r\n <button\r\n nz-button\r\n [attr.type]=\"field.type\"\r\n [formlyAttributes]=\"field\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['buttonType'] ?? null\"\r\n [ngClass]=\"props['className']!\"\r\n >\r\n <span *ngIf=\"props['iconOnBefore']\" nz-icon [nzType]=\"props['iconOnBefore']\"></span>\r\n {{ props.label }}\r\n <span *ngIf=\"props['iconOnAfter']\" nz-icon [nzType]=\"props['iconOnAfter']\"></span>\r\n </button>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n override defaultOptions = {\r\n props: {\r\n ghost: false,\r\n loading: false,\r\n block: false,\r\n size: 'default' as const,\r\n danger: false\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldButton } from './button.type';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButton],\r\n imports: [\r\n CommonModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button',\r\n component: FormlyFieldButton\r\n },\r\n {\r\n name: 'submit',\r\n extends: 'button'\r\n },\r\n {\r\n name: 'reset',\r\n extends: 'button'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AA0GM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AA3C9E,IAAA,WAAA,GAAA;;AA4CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,KAAK;AACd,aAAA;SACF,CAAC;AACH,KAAA;;+GAVY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,EAzClB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,iCAAA,EAAA,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AY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
|
@@ -16,7 +16,7 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
16
16
|
}
|
17
17
|
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
18
18
|
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
19
|
-
<nz-form-item>
|
19
|
+
<nz-form-item [ngClass]="props.itemClass!">
|
20
20
|
<ng-container *ngIf="props.label && props['hideLabel'] !== true">
|
21
21
|
<nz-form-label
|
22
22
|
[nzFlex]="props['grid']?.labelFlex ?? null"
|
@@ -34,6 +34,9 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
34
34
|
[ngClass]="props.labelClass!"
|
35
35
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
36
36
|
[nzFor]="id"
|
37
|
+
[nzNoColon]="props['noColon']!!"
|
38
|
+
[nzTooltipTitle]="props['tooltipTitle']"
|
39
|
+
[nzTooltipIcon]="props['tooltipIcon']!"
|
37
40
|
>
|
38
41
|
<span class="formly-label-text">
|
39
42
|
{{ props.label }}
|
@@ -42,6 +45,8 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
42
45
|
</ng-container>
|
43
46
|
<nz-form-control
|
44
47
|
[nzValidateStatus]="errorState"
|
48
|
+
[nzHasFeedback]="props['hasFeedback']!!"
|
49
|
+
[nzExtra]="props['controlExtra']"
|
45
50
|
[nzErrorTip]="errorTpl"
|
46
51
|
[ngClass]="props.controlClass!"
|
47
52
|
[nzFlex]="props['grid']?.controlFlex ?? null"
|
@@ -64,11 +69,11 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
64
69
|
</ng-template>
|
65
70
|
</nz-form-control>
|
66
71
|
</nz-form-item>
|
67
|
-
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], components: [{ type: i1.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { type: i1.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon"], exportAs: ["nzFormLabel"] }, { type: i1.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }
|
72
|
+
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], components: [{ type: i1.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { type: i1.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon"], exportAs: ["nzFormLabel"] }, { type: i1.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }] });
|
68
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
69
74
|
type: Component,
|
70
75
|
args: [{ selector: 'formly-wrapper-nz-form-field', template: `
|
71
|
-
<nz-form-item>
|
76
|
+
<nz-form-item [ngClass]="props.itemClass!">
|
72
77
|
<ng-container *ngIf="props.label && props['hideLabel'] !== true">
|
73
78
|
<nz-form-label
|
74
79
|
[nzFlex]="props['grid']?.labelFlex ?? null"
|
@@ -86,6 +91,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
86
91
|
[ngClass]="props.labelClass!"
|
87
92
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
88
93
|
[nzFor]="id"
|
94
|
+
[nzNoColon]="props['noColon']!!"
|
95
|
+
[nzTooltipTitle]="props['tooltipTitle']"
|
96
|
+
[nzTooltipIcon]="props['tooltipIcon']!"
|
89
97
|
>
|
90
98
|
<span class="formly-label-text">
|
91
99
|
{{ props.label }}
|
@@ -94,6 +102,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
94
102
|
</ng-container>
|
95
103
|
<nz-form-control
|
96
104
|
[nzValidateStatus]="errorState"
|
105
|
+
[nzHasFeedback]="props['hasFeedback']!!"
|
106
|
+
[nzExtra]="props['controlExtra']"
|
97
107
|
[nzErrorTip]="errorTpl"
|
98
108
|
[ngClass]="props.controlClass!"
|
99
109
|
[nzFlex]="props['grid']?.controlFlex ?? null"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzFormWrapperProps } from './form-field.props';\r\n\r\nexport type FormlyFieldProps = NzFormWrapperProps;\r\n\r\n@Component({\r\n selector: 'formly-wrapper-nz-form-field',\r\n styleUrls: ['./form-field.wrapper.scss'],\r\n template: `\r\n <nz-form-item>\r\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\r\n <nz-form-label\r\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\r\n [nzPull]=\"props['grid']?.labelPull ?? null\"\r\n [nzPush]=\"props['grid']?.labelPush ?? null\"\r\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\r\n [nzXs]=\"props['grid']?.labelXs ?? null\"\r\n [nzSm]=\"props['grid']?.labelSm ?? null\"\r\n [nzMd]=\"props['grid']?.labelMd ?? null\"\r\n [nzLg]=\"props['grid']?.labelLg ?? null\"\r\n [nzXl]=\"props['grid']?.labelXl ?? null\"\r\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\r\n [ngClass]=\"props.labelClass!\"\r\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\r\n [nzFor]=\"id\"\r\n >\r\n <span class=\"formly-label-text\">\r\n {{ props.label }}\r\n </span>\r\n </nz-form-label>\r\n </ng-container>\r\n <nz-form-control\r\n [nzValidateStatus]=\"errorState\"\r\n [nzErrorTip]=\"errorTpl\"\r\n [ngClass]=\"props.controlClass!\"\r\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\r\n [nzPull]=\"props['grid']?.controlPull ?? null\"\r\n [nzPush]=\"props['grid']?.controlPush ?? null\"\r\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\r\n [nzXs]=\"props['grid']?.controlXs ?? null\"\r\n [nzSm]=\"props['grid']?.controlSm ?? null\"\r\n [nzMd]=\"props['grid']?.controlMd ?? null\"\r\n [nzLg]=\"props['grid']?.controlLg ?? null\"\r\n [nzXl]=\"props['grid']?.controlXl ?? null\"\r\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-template #errorTpl let-control>\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n </ng-template>\r\n </nz-form-control>\r\n </nz-form-item>\r\n `\r\n})\r\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {\r\n get errorState() {\r\n return this.showError ? 'error' : 'success';\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { FormlyWrapperFormField } from './form-field.wrapper';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperFormField],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'form-field',\r\n component: FormlyWrapperFormField\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzFormFieldModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzFormWrapperProps } from './form-field.props';\r\n\r\nexport type FormlyFieldProps = NzFormWrapperProps;\r\n\r\n@Component({\r\n selector: 'formly-wrapper-nz-form-field',\r\n styleUrls: ['./form-field.wrapper.scss'],\r\n template: `\r\n <nz-form-item [ngClass]=\"props.itemClass!\">\r\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\r\n <nz-form-label\r\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\r\n [nzPull]=\"props['grid']?.labelPull ?? null\"\r\n [nzPush]=\"props['grid']?.labelPush ?? null\"\r\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\r\n [nzXs]=\"props['grid']?.labelXs ?? null\"\r\n [nzSm]=\"props['grid']?.labelSm ?? null\"\r\n [nzMd]=\"props['grid']?.labelMd ?? null\"\r\n [nzLg]=\"props['grid']?.labelLg ?? null\"\r\n [nzXl]=\"props['grid']?.labelXl ?? null\"\r\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\r\n [ngClass]=\"props.labelClass!\"\r\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\r\n [nzFor]=\"id\"\r\n [nzNoColon]=\"props['noColon']!!\"\r\n [nzTooltipTitle]=\"props['tooltipTitle']\"\r\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\r\n >\r\n <span class=\"formly-label-text\">\r\n {{ props.label }}\r\n </span>\r\n </nz-form-label>\r\n </ng-container>\r\n <nz-form-control\r\n [nzValidateStatus]=\"errorState\"\r\n [nzHasFeedback]=\"props['hasFeedback']!!\"\r\n [nzExtra]=\"props['controlExtra']\"\r\n [nzErrorTip]=\"errorTpl\"\r\n [ngClass]=\"props.controlClass!\"\r\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\r\n [nzPull]=\"props['grid']?.controlPull ?? null\"\r\n [nzPush]=\"props['grid']?.controlPush ?? null\"\r\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\r\n [nzXs]=\"props['grid']?.controlXs ?? null\"\r\n [nzSm]=\"props['grid']?.controlSm ?? null\"\r\n [nzMd]=\"props['grid']?.controlMd ?? null\"\r\n [nzLg]=\"props['grid']?.controlLg ?? null\"\r\n [nzXl]=\"props['grid']?.controlXl ?? null\"\r\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-template #errorTpl let-control>\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n </ng-template>\r\n </nz-form-control>\r\n </nz-form-item>\r\n `\r\n})\r\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {\r\n get errorState() {\r\n return this.showError ? 'error' : 'success';\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { FormlyWrapperFormField } from './form-field.wrapper';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperFormField],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'form-field',\r\n component: FormlyWrapperFormField\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzFormFieldModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAiEM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;AAC3F,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;KAC7C;;oHAHU,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAxDvB,QAAA,EAAA,8BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,E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B,EAAA,UAAA,EAAA,CAAA;kBAhBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
+
import * as i3 from '@angular/common';
|
4
|
+
import { CommonModule } from '@angular/common';
|
5
|
+
import * as i1 from '@ngx-formly/core';
|
6
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
+
import * as i2 from 'ng-zorro-antd/grid';
|
8
|
+
import { NzGridModule } from 'ng-zorro-antd/grid';
|
9
|
+
|
10
|
+
class FormlyFieldGrid extends FieldType {
|
11
|
+
}
|
12
|
+
FormlyFieldGrid.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
13
|
+
FormlyFieldGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
14
|
+
<div
|
15
|
+
nz-row
|
16
|
+
[nzAlign]="props.align ?? null"
|
17
|
+
[nzGutter]="props.gutter ?? null"
|
18
|
+
[nzJustify]="props.justify ?? null"
|
19
|
+
[formlyAttributes]="field"
|
20
|
+
>
|
21
|
+
<formly-field
|
22
|
+
*ngFor="let item of field.fieldGroup"
|
23
|
+
[field]="item"
|
24
|
+
nz-col
|
25
|
+
[nzFlex]="item.props?.['grid']?.['flex'] || props.flex"
|
26
|
+
[nzOffset]="item.props?.['grid']?.['offset'] || props.offset"
|
27
|
+
[nzOrder]="item.props?.['grid']?.['order'] || props.order"
|
28
|
+
[nzPull]="item.props?.['grid']?.['pull'] || props.pull"
|
29
|
+
[nzPush]="item.props?.['grid']?.['push'] || props.push"
|
30
|
+
[nzSpan]="item.props?.['grid']?.['span'] || props.span"
|
31
|
+
[nzXs]="item.props?.['grid']?.['xs'] || props.xs"
|
32
|
+
[nzSm]="item.props?.['grid']?.['sm'] || props.sm"
|
33
|
+
[nzMd]="item.props?.['grid']?.['md'] || props.md"
|
34
|
+
[nzLg]="item.props?.['grid']?.['lg'] || props.lg"
|
35
|
+
[nzXl]="item.props?.['grid']?.['xl'] || props.xl"
|
36
|
+
[nzXXl]="item.props?.['grid']?.['xxl'] || props.xxl"
|
37
|
+
></formly-field>
|
38
|
+
</div>
|
39
|
+
`, isInline: true, components: [{ type: i1.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldGrid, decorators: [{
|
41
|
+
type: Component,
|
42
|
+
args: [{
|
43
|
+
selector: 'formly-field-grid',
|
44
|
+
template: `
|
45
|
+
<div
|
46
|
+
nz-row
|
47
|
+
[nzAlign]="props.align ?? null"
|
48
|
+
[nzGutter]="props.gutter ?? null"
|
49
|
+
[nzJustify]="props.justify ?? null"
|
50
|
+
[formlyAttributes]="field"
|
51
|
+
>
|
52
|
+
<formly-field
|
53
|
+
*ngFor="let item of field.fieldGroup"
|
54
|
+
[field]="item"
|
55
|
+
nz-col
|
56
|
+
[nzFlex]="item.props?.['grid']?.['flex'] || props.flex"
|
57
|
+
[nzOffset]="item.props?.['grid']?.['offset'] || props.offset"
|
58
|
+
[nzOrder]="item.props?.['grid']?.['order'] || props.order"
|
59
|
+
[nzPull]="item.props?.['grid']?.['pull'] || props.pull"
|
60
|
+
[nzPush]="item.props?.['grid']?.['push'] || props.push"
|
61
|
+
[nzSpan]="item.props?.['grid']?.['span'] || props.span"
|
62
|
+
[nzXs]="item.props?.['grid']?.['xs'] || props.xs"
|
63
|
+
[nzSm]="item.props?.['grid']?.['sm'] || props.sm"
|
64
|
+
[nzMd]="item.props?.['grid']?.['md'] || props.md"
|
65
|
+
[nzLg]="item.props?.['grid']?.['lg'] || props.lg"
|
66
|
+
[nzXl]="item.props?.['grid']?.['xl'] || props.xl"
|
67
|
+
[nzXXl]="item.props?.['grid']?.['xxl'] || props.xxl"
|
68
|
+
></formly-field>
|
69
|
+
</div>
|
70
|
+
`,
|
71
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
72
|
+
}]
|
73
|
+
}] });
|
74
|
+
|
75
|
+
class FormlyNzGridModule {
|
76
|
+
}
|
77
|
+
FormlyNzGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
78
|
+
FormlyNzGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
|
79
|
+
NzGridModule, i1.FormlyModule] });
|
80
|
+
FormlyNzGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzGridModule, imports: [[
|
81
|
+
CommonModule,
|
82
|
+
NzGridModule,
|
83
|
+
FormlyModule.forChild({
|
84
|
+
types: [
|
85
|
+
{
|
86
|
+
name: 'grid',
|
87
|
+
component: FormlyFieldGrid
|
88
|
+
}
|
89
|
+
]
|
90
|
+
})
|
91
|
+
]] });
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzGridModule, decorators: [{
|
93
|
+
type: NgModule,
|
94
|
+
args: [{
|
95
|
+
declarations: [FormlyFieldGrid],
|
96
|
+
imports: [
|
97
|
+
CommonModule,
|
98
|
+
NzGridModule,
|
99
|
+
FormlyModule.forChild({
|
100
|
+
types: [
|
101
|
+
{
|
102
|
+
name: 'grid',
|
103
|
+
component: FormlyFieldGrid
|
104
|
+
}
|
105
|
+
]
|
106
|
+
})
|
107
|
+
]
|
108
|
+
}]
|
109
|
+
}] });
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Generated bundle index. Do not edit.
|
113
|
+
*/
|
114
|
+
|
115
|
+
export { FormlyFieldGrid, FormlyNzGridModule };
|
116
|
+
//# sourceMappingURL=ngx-formly-zorro-antd-grid.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-grid.mjs","sources":["../../../../packages/formlyantd/grid/src/grid.type.ts","../../../../packages/formlyantd/grid/src/grid.module.ts","../../../../packages/formlyantd/grid/src/ngx-formly-zorro-antd-grid.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\nimport type { GridProps } from './grid.props';\r\n\r\nexport interface FormlyGridFieldConfig extends FormlyFieldConfig<GridProps> {\r\n type: 'grid' | Type<FormlyFieldGrid>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-grid',\r\n template: `\r\n <div\r\n nz-row\r\n [nzAlign]=\"props.align ?? null\"\r\n [nzGutter]=\"props.gutter ?? null\"\r\n [nzJustify]=\"props.justify ?? null\"\r\n [formlyAttributes]=\"field\"\r\n >\r\n <formly-field\r\n *ngFor=\"let item of field.fieldGroup\"\r\n [field]=\"item\"\r\n nz-col\r\n [nzFlex]=\"item.props?.['grid']?.['flex'] || props.flex\"\r\n [nzOffset]=\"item.props?.['grid']?.['offset'] || props.offset\"\r\n [nzOrder]=\"item.props?.['grid']?.['order'] || props.order\"\r\n [nzPull]=\"item.props?.['grid']?.['pull'] || props.pull\"\r\n [nzPush]=\"item.props?.['grid']?.['push'] || props.push\"\r\n [nzSpan]=\"item.props?.['grid']?.['span'] || props.span\"\r\n [nzXs]=\"item.props?.['grid']?.['xs'] || props.xs\"\r\n [nzSm]=\"item.props?.['grid']?.['sm'] || props.sm\"\r\n [nzMd]=\"item.props?.['grid']?.['md'] || props.md\"\r\n [nzLg]=\"item.props?.['grid']?.['lg'] || props.lg\"\r\n [nzXl]=\"item.props?.['grid']?.['xl'] || props.xl\"\r\n [nzXXl]=\"item.props?.['grid']?.['xxl'] || props.xxl\"\r\n ></formly-field>\r\n </div>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldGrid } from './grid.type';\r\n\r\nimport { NzGridModule } from 'ng-zorro-antd/grid';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldGrid],\r\n imports: [\r\n CommonModule,\r\n NzGridModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'grid',\r\n component: FormlyFieldGrid\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzGridModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAwCM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;;6GAA7D,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,EA7BhB,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,WAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,kBAAA,EAAA,IAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA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SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;AAC3B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
@@ -4,6 +4,7 @@ import * as i3 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i2 from '@ngx-formly/core';
|
6
6
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
7
8
|
import * as i1 from 'ng-zorro-antd/input';
|
8
9
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
9
10
|
|
@@ -76,15 +77,18 @@ class FormlyNzInputGroupModule {
|
|
76
77
|
}
|
77
78
|
FormlyNzInputGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
78
79
|
FormlyNzInputGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
|
79
|
-
NzInputModule,
|
80
|
+
NzInputModule,
|
81
|
+
FormlyNzFormFieldModule, i2.FormlyModule] });
|
80
82
|
FormlyNzInputGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputGroupModule, imports: [[
|
81
83
|
CommonModule,
|
82
84
|
NzInputModule,
|
85
|
+
FormlyNzFormFieldModule,
|
83
86
|
FormlyModule.forChild({
|
84
87
|
types: [
|
85
88
|
{
|
86
89
|
name: 'input-group',
|
87
|
-
component: FormlyFieldInputGroup
|
90
|
+
component: FormlyFieldInputGroup,
|
91
|
+
wrappers: ['form-field']
|
88
92
|
}
|
89
93
|
]
|
90
94
|
})
|
@@ -96,11 +100,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
96
100
|
imports: [
|
97
101
|
CommonModule,
|
98
102
|
NzInputModule,
|
103
|
+
FormlyNzFormFieldModule,
|
99
104
|
FormlyModule.forChild({
|
100
105
|
types: [
|
101
106
|
{
|
102
107
|
name: 'input-group',
|
103
|
-
component: FormlyFieldInputGroup
|
108
|
+
component: FormlyFieldInputGroup,
|
109
|
+
wrappers: ['form-field']
|
104
110
|
}
|
105
111
|
]
|
106
112
|
})
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type { InputGroupProps } from './input-group.props';\r\n\r\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {\r\n type: 'input-group' | Type<FormlyFieldInputGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input-group',\r\n template: `\r\n <nz-input-group\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n >\r\n <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\r\n </nz-input-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\r\n override defaultOptions = {\r\n props: {\r\n status: '' as const,\r\n size: 'default' as const\r\n }\r\n };\r\n get group() {\r\n return this.field.fieldGroup;\r\n }\r\n trackById(index: number, envent: NzSafeAny) {\r\n if (!envent.id) {\r\n return index;\r\n }\r\n return envent.id;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldInputGroup } from './input-group.type';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputGroup],\r\n imports: [\r\n CommonModule,\r\n NzInputModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input-group',\r\n component: FormlyFieldInputGroup\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":"
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type { InputGroupProps } from './input-group.props';\r\n\r\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {\r\n type: 'input-group' | Type<FormlyFieldInputGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input-group',\r\n template: `\r\n <nz-input-group\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n >\r\n <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\r\n </nz-input-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\r\n override defaultOptions = {\r\n props: {\r\n status: '' as const,\r\n size: 'default' as const\r\n }\r\n };\r\n get group() {\r\n return this.field.fieldGroup;\r\n }\r\n trackById(index: number, envent: NzSafeAny) {\r\n if (!envent.id) {\r\n return index;\r\n }\r\n return envent.id;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldInputGroup } from './input-group.type';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputGroup],\r\n imports: [\r\n CommonModule,\r\n NzInputModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input-group',\r\n component: FormlyFieldInputGroup,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AA+BM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAtBtF,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AAUH,KAAA;AATC,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;KAC9B;IACD,SAAS,CAAC,KAAa,EAAE,MAAiB,EAAA;AACxC,QAAA,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;AACd,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;QACD,OAAO,MAAM,CAAC,EAAE,CAAC;KAClB;;mHAfU,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,EApBtB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA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CAElC,YAAY;QACZ,aAAa;QAEb,uBAAuB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAYd,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,EAhB1B,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,aAAa;YAEb,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAlBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBAEb,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
@@ -38,9 +38,6 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
38
38
|
<ng-container [ngSwitch]="props.type">
|
39
39
|
<ng-container *ngSwitchCase="'password'">
|
40
40
|
<nz-input-group
|
41
|
-
[nzSize]="props['size']"
|
42
|
-
[nzStatus]="props['status']"
|
43
|
-
[nzSearch]="props['search']"
|
44
41
|
[nzPrefixIcon]="props['prefixIcon']"
|
45
42
|
[nzSuffixIcon]="props['suffixIcon']"
|
46
43
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -48,6 +45,10 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
48
45
|
[nzAddOnBefore]="props['addOnBefore']"
|
49
46
|
[nzAddOnAfter]="props['addOnAfter']"
|
50
47
|
[nzPrefix]="props['prefix']"
|
48
|
+
[nzCompact]="props['compact']!!"
|
49
|
+
[nzSearch]="props['search']!!"
|
50
|
+
[nzSize]="props['size']!"
|
51
|
+
[nzStatus]="props['status']!"
|
51
52
|
[nzSuffix]="suffixpassword"
|
52
53
|
>
|
53
54
|
<input
|
@@ -61,12 +62,12 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
61
62
|
</nz-input-group>
|
62
63
|
|
63
64
|
<ng-template #suffixpassword>
|
64
|
-
<
|
65
|
+
<span
|
65
66
|
nz-icon
|
66
67
|
class="cursor-pointer"
|
67
68
|
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
68
69
|
(click)="passwordVisible = !passwordVisible"
|
69
|
-
></
|
70
|
+
></span>
|
70
71
|
</ng-template>
|
71
72
|
</ng-container>
|
72
73
|
|
@@ -110,9 +111,6 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
110
111
|
|
111
112
|
<nz-input-group
|
112
113
|
*ngSwitchCase="'group'"
|
113
|
-
[nzSize]="props['size']"
|
114
|
-
[nzStatus]="props['status']"
|
115
|
-
[nzSearch]="props['search']"
|
116
114
|
[nzPrefixIcon]="props['prefixIcon']"
|
117
115
|
[nzSuffixIcon]="props['suffixIcon']"
|
118
116
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -121,6 +119,10 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
121
119
|
[nzAddOnAfter]="props['addOnAfter']"
|
122
120
|
[nzPrefix]="props['prefix']"
|
123
121
|
[nzSuffix]="props['suffix']"
|
122
|
+
[nzCompact]="props['compact']!!"
|
123
|
+
[nzSearch]="props['search']!!"
|
124
|
+
[nzSize]="props['size']!"
|
125
|
+
[nzStatus]="props['status']!"
|
124
126
|
>
|
125
127
|
<input
|
126
128
|
nz-input
|
@@ -153,9 +155,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
153
155
|
<ng-container [ngSwitch]="props.type">
|
154
156
|
<ng-container *ngSwitchCase="'password'">
|
155
157
|
<nz-input-group
|
156
|
-
[nzSize]="props['size']"
|
157
|
-
[nzStatus]="props['status']"
|
158
|
-
[nzSearch]="props['search']"
|
159
158
|
[nzPrefixIcon]="props['prefixIcon']"
|
160
159
|
[nzSuffixIcon]="props['suffixIcon']"
|
161
160
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -163,6 +162,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
163
162
|
[nzAddOnBefore]="props['addOnBefore']"
|
164
163
|
[nzAddOnAfter]="props['addOnAfter']"
|
165
164
|
[nzPrefix]="props['prefix']"
|
165
|
+
[nzCompact]="props['compact']!!"
|
166
|
+
[nzSearch]="props['search']!!"
|
167
|
+
[nzSize]="props['size']!"
|
168
|
+
[nzStatus]="props['status']!"
|
166
169
|
[nzSuffix]="suffixpassword"
|
167
170
|
>
|
168
171
|
<input
|
@@ -176,12 +179,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
176
179
|
</nz-input-group>
|
177
180
|
|
178
181
|
<ng-template #suffixpassword>
|
179
|
-
<
|
182
|
+
<span
|
180
183
|
nz-icon
|
181
184
|
class="cursor-pointer"
|
182
185
|
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
183
186
|
(click)="passwordVisible = !passwordVisible"
|
184
|
-
></
|
187
|
+
></span>
|
185
188
|
</ng-template>
|
186
189
|
</ng-container>
|
187
190
|
|
@@ -225,9 +228,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
225
228
|
|
226
229
|
<nz-input-group
|
227
230
|
*ngSwitchCase="'group'"
|
228
|
-
[nzSize]="props['size']"
|
229
|
-
[nzStatus]="props['status']"
|
230
|
-
[nzSearch]="props['search']"
|
231
231
|
[nzPrefixIcon]="props['prefixIcon']"
|
232
232
|
[nzSuffixIcon]="props['suffixIcon']"
|
233
233
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -236,6 +236,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
236
236
|
[nzAddOnAfter]="props['addOnAfter']"
|
237
237
|
[nzPrefix]="props['prefix']"
|
238
238
|
[nzSuffix]="props['suffix']"
|
239
|
+
[nzCompact]="props['compact']!!"
|
240
|
+
[nzSearch]="props['search']!!"
|
241
|
+
[nzSize]="props['size']!"
|
242
|
+
[nzStatus]="props['status']!"
|
239
243
|
>
|
240
244
|
<input
|
241
245
|
nz-input
|