ngx-formly-zorro-antd 17.1.2 → 17.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/package.json +3 -0
- package/button/package.json +3 -0
- package/button-group/package.json +3 -0
- package/card/package.json +3 -0
- package/card-wrapper/package.json +3 -0
- package/cascader/package.json +3 -0
- package/checkbox/package.json +3 -0
- package/common/package.json +3 -0
- package/datepicker/package.json +3 -0
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +1 -1
- package/esm2022/button/button.type.mjs +123 -123
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +1 -1
- package/esm2022/button-group/button-group.type.mjs +67 -67
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +1 -1
- package/esm2022/card/card.type.mjs +51 -51
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +65 -65
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +48 -43
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +1 -1
- package/esm2022/common/formly-box-templates.directive.mjs +1 -1
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +1 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +149 -149
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/flex/flex.module.mjs +1 -1
- package/esm2022/flex/flex.type.mjs +35 -35
- package/esm2022/flex/public_api.mjs +1 -1
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +147 -147
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +59 -59
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +275 -275
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +1 -1
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +47 -42
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +81 -81
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +33 -33
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +123 -123
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +33 -33
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +27 -27
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +25 -25
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +79 -79
- package/esm2022/text-value/public_api.mjs +1 -1
- package/esm2022/text-value/text-value.module.mjs +1 -1
- package/esm2022/text-value/text-value.type.mjs +19 -19
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +113 -113
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +61 -61
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +47 -47
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +69 -69
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +143 -143
- package/esm2022/upload/upload.module.mjs +1 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +83 -83
- package/extension/package.json +3 -0
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +48 -43
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +34 -34
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +146 -146
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +47 -42
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +274 -274
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +18 -18
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/package.json +3 -0
- package/form-field/form-field.props.d.ts +5 -1
- package/form-field/package.json +3 -0
- package/grid/package.json +3 -0
- package/input/package.json +3 -0
- package/input-group/package.json +3 -0
- package/input-number/package.json +3 -0
- package/package.json +26 -26
- package/radio/package.json +3 -0
- package/rate/package.json +3 -0
- package/ref-template/package.json +3 -0
- package/select/package.json +3 -0
- package/slider/package.json +3 -0
- package/space/package.json +3 -0
- package/switch/package.json +3 -0
- package/tabs/package.json +3 -0
- package/text-value/package.json +3 -0
- package/textarea/package.json +3 -0
- package/timepicker/package.json +3 -0
- package/transfer/package.json +3 -0
- package/tree-select/package.json +3 -0
- package/upload/package.json +3 -0
@@ -49,156 +49,156 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
49
49
|
return this.hasError ? 'error' : 'success';
|
50
50
|
}
|
51
51
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperFormField, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
52
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
53
|
-
<nz-form-item [ngClass]="props.itemClass">
|
54
|
-
@if (hasLabel && props['hideLabel'] !== true) {
|
55
|
-
<nz-form-label
|
56
|
-
[nzFlex]="props.labelFlex || formState.labelFlex"
|
57
|
-
[nzOffset]="props.labelOffset || formState.labelOffset"
|
58
|
-
[nzOrder]="props.labelOrder || formState.labelOrder"
|
59
|
-
[nzPull]="props.labelPull || formState.labelPull"
|
60
|
-
[nzPush]="props.labelPush || formState.labelPush"
|
61
|
-
[nzSpan]="props.labelSpan || formState.labelSpan"
|
62
|
-
[nzXs]="props.labelXs || formState.labelXs"
|
63
|
-
[nzSm]="props.labelSm || formState.labelSm"
|
64
|
-
[nzMd]="props.labelMd || formState.labelMd"
|
65
|
-
[nzLg]="props.labelLg || formState.labelLg"
|
66
|
-
[nzXl]="props.labelXl || formState.labelXl"
|
67
|
-
[nzXXl]="props.labelXXl || formState.labelXXl"
|
68
|
-
[ngClass]="props.labelClass || formState.labelClass"
|
69
|
-
[ngStyle]="props.labelStyle || formState.labelStyle"
|
70
|
-
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
71
|
-
[nzFor]="id"
|
72
|
-
[nzNoColon]="props['noColon'] ?? formState.noColon!!"
|
73
|
-
[nzTooltipTitle]="nzTooltipTitle"
|
74
|
-
[nzTooltipIcon]="props['tooltipIcon']!"
|
75
|
-
[nzLabelAlign]="props['labelAlign'] || 'right'"
|
76
|
-
[nzLabelWrap]="props['labelWrap'] ?? formState.labelWrap!!"
|
77
|
-
>
|
78
|
-
<ng-container
|
79
|
-
*nzStringTemplateOutlet="label; context: { $implicit: field, options: props }"
|
80
|
-
>
|
81
|
-
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
82
|
-
</ng-container>
|
83
|
-
</nz-form-label>
|
84
|
-
}
|
85
|
-
<nz-form-control
|
86
|
-
[nzValidateStatus]="validateStatus"
|
87
|
-
[nzHasFeedback]="props['hasFeedback']!!"
|
88
|
-
[nzExtra]="props.description || nzExtra"
|
89
|
-
[nzErrorTip]="errorTip"
|
90
|
-
[nzSuccessTip]="nzSuccessTip || formState.successTip"
|
91
|
-
[nzValidatingTip]="nzValidatingTip || formState.validatingTip"
|
92
|
-
[nzWarningTip]="nzWarningTip || formState.warningTip"
|
93
|
-
[nzAutoTips]="props['autoTips'] || formState.autoTips"
|
94
|
-
[nzDisableAutoTips]="props['disableAutoTips'] || formState.disableAutoTips"
|
95
|
-
[ngClass]="props.controlClass || formState.controlClass"
|
96
|
-
[ngStyle]="props.controlStyle || formState.controlStyle"
|
97
|
-
[nzFlex]="props.controlFlex || formState.controlFlex"
|
98
|
-
[nzOffset]="props.controlOffset || formState.controlOffset"
|
99
|
-
[nzOrder]="props.controlOrder || formState.controlOrder"
|
100
|
-
[nzPull]="props.controlPull || formState.controlPull"
|
101
|
-
[nzPush]="props.controlPush || formState.controlPush"
|
102
|
-
[nzSpan]="props.controlSpan || formState.controlSpan"
|
103
|
-
[nzXs]="props.controlXs || formState.controlXs"
|
104
|
-
[nzSm]="props.controlSm || formState.controlSm"
|
105
|
-
[nzMd]="props.controlMd || formState.controlMd"
|
106
|
-
[nzLg]="props.controlLg || formState.controlLg"
|
107
|
-
[nzXl]="props.controlXl || formState.controlXl"
|
108
|
-
[nzXXl]="props.controlXXl || formState.controlXXl"
|
109
|
-
>
|
110
|
-
<ng-container #fieldComponent></ng-container>
|
111
|
-
|
112
|
-
<ng-container
|
113
|
-
*nzStringTemplateOutlet="afterText; context: { $implicit: field, options: props }"
|
114
|
-
>
|
115
|
-
<span class="formly-label-text" [innerHTML]="afterText"></span>
|
116
|
-
</ng-container>
|
117
|
-
|
118
|
-
<ng-template #errorTip let-control>
|
119
|
-
@if (hasError) {
|
120
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
121
|
-
}
|
122
|
-
</ng-template>
|
123
|
-
</nz-form-control>
|
124
|
-
</nz-form-item>
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
53
|
+
<nz-form-item [ngClass]="props.itemClass" [ngStyle]="props.itemStyle">
|
54
|
+
@if (hasLabel && props['hideLabel'] !== true) {
|
55
|
+
<nz-form-label
|
56
|
+
[nzFlex]="props.labelFlex || formState.labelFlex"
|
57
|
+
[nzOffset]="props.labelOffset || formState.labelOffset"
|
58
|
+
[nzOrder]="props.labelOrder || formState.labelOrder"
|
59
|
+
[nzPull]="props.labelPull || formState.labelPull"
|
60
|
+
[nzPush]="props.labelPush || formState.labelPush"
|
61
|
+
[nzSpan]="props.labelSpan || formState.labelSpan"
|
62
|
+
[nzXs]="props.labelXs || formState.labelXs"
|
63
|
+
[nzSm]="props.labelSm || formState.labelSm"
|
64
|
+
[nzMd]="props.labelMd || formState.labelMd"
|
65
|
+
[nzLg]="props.labelLg || formState.labelLg"
|
66
|
+
[nzXl]="props.labelXl || formState.labelXl"
|
67
|
+
[nzXXl]="props.labelXXl || formState.labelXXl"
|
68
|
+
[ngClass]="props.labelClass || formState.labelClass"
|
69
|
+
[ngStyle]="props.labelStyle || formState.labelStyle"
|
70
|
+
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
71
|
+
[nzFor]="id"
|
72
|
+
[nzNoColon]="props['noColon'] ?? formState.noColon!!"
|
73
|
+
[nzTooltipTitle]="nzTooltipTitle"
|
74
|
+
[nzTooltipIcon]="props['tooltipIcon']!"
|
75
|
+
[nzLabelAlign]="props['labelAlign'] || 'right'"
|
76
|
+
[nzLabelWrap]="props['labelWrap'] ?? formState.labelWrap!!"
|
77
|
+
>
|
78
|
+
<ng-container
|
79
|
+
*nzStringTemplateOutlet="label; context: { $implicit: field, options: props }"
|
80
|
+
>
|
81
|
+
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
82
|
+
</ng-container>
|
83
|
+
</nz-form-label>
|
84
|
+
}
|
85
|
+
<nz-form-control
|
86
|
+
[nzValidateStatus]="validateStatus"
|
87
|
+
[nzHasFeedback]="props['hasFeedback']!!"
|
88
|
+
[nzExtra]="props.description || nzExtra"
|
89
|
+
[nzErrorTip]="errorTip"
|
90
|
+
[nzSuccessTip]="nzSuccessTip || formState.successTip"
|
91
|
+
[nzValidatingTip]="nzValidatingTip || formState.validatingTip"
|
92
|
+
[nzWarningTip]="nzWarningTip || formState.warningTip"
|
93
|
+
[nzAutoTips]="props['autoTips'] || formState.autoTips"
|
94
|
+
[nzDisableAutoTips]="props['disableAutoTips'] || formState.disableAutoTips"
|
95
|
+
[ngClass]="props.controlClass || formState.controlClass"
|
96
|
+
[ngStyle]="props.controlStyle || formState.controlStyle"
|
97
|
+
[nzFlex]="props.controlFlex || formState.controlFlex"
|
98
|
+
[nzOffset]="props.controlOffset || formState.controlOffset"
|
99
|
+
[nzOrder]="props.controlOrder || formState.controlOrder"
|
100
|
+
[nzPull]="props.controlPull || formState.controlPull"
|
101
|
+
[nzPush]="props.controlPush || formState.controlPush"
|
102
|
+
[nzSpan]="props.controlSpan || formState.controlSpan"
|
103
|
+
[nzXs]="props.controlXs || formState.controlXs"
|
104
|
+
[nzSm]="props.controlSm || formState.controlSm"
|
105
|
+
[nzMd]="props.controlMd || formState.controlMd"
|
106
|
+
[nzLg]="props.controlLg || formState.controlLg"
|
107
|
+
[nzXl]="props.controlXl || formState.controlXl"
|
108
|
+
[nzXXl]="props.controlXXl || formState.controlXXl"
|
109
|
+
>
|
110
|
+
<ng-container #fieldComponent></ng-container>
|
111
|
+
|
112
|
+
<ng-container
|
113
|
+
*nzStringTemplateOutlet="afterText; context: { $implicit: field, options: props }"
|
114
|
+
>
|
115
|
+
<span class="formly-label-text" [innerHTML]="afterText"></span>
|
116
|
+
</ng-container>
|
117
|
+
|
118
|
+
<ng-template #errorTip let-control>
|
119
|
+
@if (hasError) {
|
120
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
121
|
+
}
|
122
|
+
</ng-template>
|
123
|
+
</nz-form-control>
|
124
|
+
</nz-form-item>
|
125
125
|
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", 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"] }, { kind: "directive", type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: i5.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i6.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
|
126
126
|
}
|
127
127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
128
128
|
type: Component,
|
129
|
-
args: [{ selector: 'formly-wrapper-nz-form-field', template: `
|
130
|
-
<nz-form-item [ngClass]="props.itemClass">
|
131
|
-
@if (hasLabel && props['hideLabel'] !== true) {
|
132
|
-
<nz-form-label
|
133
|
-
[nzFlex]="props.labelFlex || formState.labelFlex"
|
134
|
-
[nzOffset]="props.labelOffset || formState.labelOffset"
|
135
|
-
[nzOrder]="props.labelOrder || formState.labelOrder"
|
136
|
-
[nzPull]="props.labelPull || formState.labelPull"
|
137
|
-
[nzPush]="props.labelPush || formState.labelPush"
|
138
|
-
[nzSpan]="props.labelSpan || formState.labelSpan"
|
139
|
-
[nzXs]="props.labelXs || formState.labelXs"
|
140
|
-
[nzSm]="props.labelSm || formState.labelSm"
|
141
|
-
[nzMd]="props.labelMd || formState.labelMd"
|
142
|
-
[nzLg]="props.labelLg || formState.labelLg"
|
143
|
-
[nzXl]="props.labelXl || formState.labelXl"
|
144
|
-
[nzXXl]="props.labelXXl || formState.labelXXl"
|
145
|
-
[ngClass]="props.labelClass || formState.labelClass"
|
146
|
-
[ngStyle]="props.labelStyle || formState.labelStyle"
|
147
|
-
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
148
|
-
[nzFor]="id"
|
149
|
-
[nzNoColon]="props['noColon'] ?? formState.noColon!!"
|
150
|
-
[nzTooltipTitle]="nzTooltipTitle"
|
151
|
-
[nzTooltipIcon]="props['tooltipIcon']!"
|
152
|
-
[nzLabelAlign]="props['labelAlign'] || 'right'"
|
153
|
-
[nzLabelWrap]="props['labelWrap'] ?? formState.labelWrap!!"
|
154
|
-
>
|
155
|
-
<ng-container
|
156
|
-
*nzStringTemplateOutlet="label; context: { $implicit: field, options: props }"
|
157
|
-
>
|
158
|
-
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
159
|
-
</ng-container>
|
160
|
-
</nz-form-label>
|
161
|
-
}
|
162
|
-
<nz-form-control
|
163
|
-
[nzValidateStatus]="validateStatus"
|
164
|
-
[nzHasFeedback]="props['hasFeedback']!!"
|
165
|
-
[nzExtra]="props.description || nzExtra"
|
166
|
-
[nzErrorTip]="errorTip"
|
167
|
-
[nzSuccessTip]="nzSuccessTip || formState.successTip"
|
168
|
-
[nzValidatingTip]="nzValidatingTip || formState.validatingTip"
|
169
|
-
[nzWarningTip]="nzWarningTip || formState.warningTip"
|
170
|
-
[nzAutoTips]="props['autoTips'] || formState.autoTips"
|
171
|
-
[nzDisableAutoTips]="props['disableAutoTips'] || formState.disableAutoTips"
|
172
|
-
[ngClass]="props.controlClass || formState.controlClass"
|
173
|
-
[ngStyle]="props.controlStyle || formState.controlStyle"
|
174
|
-
[nzFlex]="props.controlFlex || formState.controlFlex"
|
175
|
-
[nzOffset]="props.controlOffset || formState.controlOffset"
|
176
|
-
[nzOrder]="props.controlOrder || formState.controlOrder"
|
177
|
-
[nzPull]="props.controlPull || formState.controlPull"
|
178
|
-
[nzPush]="props.controlPush || formState.controlPush"
|
179
|
-
[nzSpan]="props.controlSpan || formState.controlSpan"
|
180
|
-
[nzXs]="props.controlXs || formState.controlXs"
|
181
|
-
[nzSm]="props.controlSm || formState.controlSm"
|
182
|
-
[nzMd]="props.controlMd || formState.controlMd"
|
183
|
-
[nzLg]="props.controlLg || formState.controlLg"
|
184
|
-
[nzXl]="props.controlXl || formState.controlXl"
|
185
|
-
[nzXXl]="props.controlXXl || formState.controlXXl"
|
186
|
-
>
|
187
|
-
<ng-container #fieldComponent></ng-container>
|
188
|
-
|
189
|
-
<ng-container
|
190
|
-
*nzStringTemplateOutlet="afterText; context: { $implicit: field, options: props }"
|
191
|
-
>
|
192
|
-
<span class="formly-label-text" [innerHTML]="afterText"></span>
|
193
|
-
</ng-container>
|
194
|
-
|
195
|
-
<ng-template #errorTip let-control>
|
196
|
-
@if (hasError) {
|
197
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
198
|
-
}
|
199
|
-
</ng-template>
|
200
|
-
</nz-form-control>
|
201
|
-
</nz-form-item>
|
129
|
+
args: [{ selector: 'formly-wrapper-nz-form-field', template: `
|
130
|
+
<nz-form-item [ngClass]="props.itemClass" [ngStyle]="props.itemStyle">
|
131
|
+
@if (hasLabel && props['hideLabel'] !== true) {
|
132
|
+
<nz-form-label
|
133
|
+
[nzFlex]="props.labelFlex || formState.labelFlex"
|
134
|
+
[nzOffset]="props.labelOffset || formState.labelOffset"
|
135
|
+
[nzOrder]="props.labelOrder || formState.labelOrder"
|
136
|
+
[nzPull]="props.labelPull || formState.labelPull"
|
137
|
+
[nzPush]="props.labelPush || formState.labelPush"
|
138
|
+
[nzSpan]="props.labelSpan || formState.labelSpan"
|
139
|
+
[nzXs]="props.labelXs || formState.labelXs"
|
140
|
+
[nzSm]="props.labelSm || formState.labelSm"
|
141
|
+
[nzMd]="props.labelMd || formState.labelMd"
|
142
|
+
[nzLg]="props.labelLg || formState.labelLg"
|
143
|
+
[nzXl]="props.labelXl || formState.labelXl"
|
144
|
+
[nzXXl]="props.labelXXl || formState.labelXXl"
|
145
|
+
[ngClass]="props.labelClass || formState.labelClass"
|
146
|
+
[ngStyle]="props.labelStyle || formState.labelStyle"
|
147
|
+
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
148
|
+
[nzFor]="id"
|
149
|
+
[nzNoColon]="props['noColon'] ?? formState.noColon!!"
|
150
|
+
[nzTooltipTitle]="nzTooltipTitle"
|
151
|
+
[nzTooltipIcon]="props['tooltipIcon']!"
|
152
|
+
[nzLabelAlign]="props['labelAlign'] || 'right'"
|
153
|
+
[nzLabelWrap]="props['labelWrap'] ?? formState.labelWrap!!"
|
154
|
+
>
|
155
|
+
<ng-container
|
156
|
+
*nzStringTemplateOutlet="label; context: { $implicit: field, options: props }"
|
157
|
+
>
|
158
|
+
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
159
|
+
</ng-container>
|
160
|
+
</nz-form-label>
|
161
|
+
}
|
162
|
+
<nz-form-control
|
163
|
+
[nzValidateStatus]="validateStatus"
|
164
|
+
[nzHasFeedback]="props['hasFeedback']!!"
|
165
|
+
[nzExtra]="props.description || nzExtra"
|
166
|
+
[nzErrorTip]="errorTip"
|
167
|
+
[nzSuccessTip]="nzSuccessTip || formState.successTip"
|
168
|
+
[nzValidatingTip]="nzValidatingTip || formState.validatingTip"
|
169
|
+
[nzWarningTip]="nzWarningTip || formState.warningTip"
|
170
|
+
[nzAutoTips]="props['autoTips'] || formState.autoTips"
|
171
|
+
[nzDisableAutoTips]="props['disableAutoTips'] || formState.disableAutoTips"
|
172
|
+
[ngClass]="props.controlClass || formState.controlClass"
|
173
|
+
[ngStyle]="props.controlStyle || formState.controlStyle"
|
174
|
+
[nzFlex]="props.controlFlex || formState.controlFlex"
|
175
|
+
[nzOffset]="props.controlOffset || formState.controlOffset"
|
176
|
+
[nzOrder]="props.controlOrder || formState.controlOrder"
|
177
|
+
[nzPull]="props.controlPull || formState.controlPull"
|
178
|
+
[nzPush]="props.controlPush || formState.controlPush"
|
179
|
+
[nzSpan]="props.controlSpan || formState.controlSpan"
|
180
|
+
[nzXs]="props.controlXs || formState.controlXs"
|
181
|
+
[nzSm]="props.controlSm || formState.controlSm"
|
182
|
+
[nzMd]="props.controlMd || formState.controlMd"
|
183
|
+
[nzLg]="props.controlLg || formState.controlLg"
|
184
|
+
[nzXl]="props.controlXl || formState.controlXl"
|
185
|
+
[nzXXl]="props.controlXXl || formState.controlXXl"
|
186
|
+
>
|
187
|
+
<ng-container #fieldComponent></ng-container>
|
188
|
+
|
189
|
+
<ng-container
|
190
|
+
*nzStringTemplateOutlet="afterText; context: { $implicit: field, options: props }"
|
191
|
+
>
|
192
|
+
<span class="formly-label-text" [innerHTML]="afterText"></span>
|
193
|
+
</ng-container>
|
194
|
+
|
195
|
+
<ng-template #errorTip let-control>
|
196
|
+
@if (hasError) {
|
197
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
198
|
+
}
|
199
|
+
</ng-template>
|
200
|
+
</nz-form-control>
|
201
|
+
</nz-form-item>
|
202
202
|
`, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"] }]
|
203
203
|
}], ctorParameters: () => [{ type: i1.FormlyBoxTemplates, decorators: [{
|
204
204
|
type: Optional
|
@@ -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, Optional } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\nimport type { NzFormWrapperProps } from './form-field.props';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { resolveTplName, hasTplNameValue, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\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 @if (hasLabel && props['hideLabel'] !== true) {\r\n <nz-form-label\r\n [nzFlex]=\"props.labelFlex || formState.labelFlex\"\r\n [nzOffset]=\"props.labelOffset || formState.labelOffset\"\r\n [nzOrder]=\"props.labelOrder || formState.labelOrder\"\r\n [nzPull]=\"props.labelPull || formState.labelPull\"\r\n [nzPush]=\"props.labelPush || formState.labelPush\"\r\n [nzSpan]=\"props.labelSpan || formState.labelSpan\"\r\n [nzXs]=\"props.labelXs || formState.labelXs\"\r\n [nzSm]=\"props.labelSm || formState.labelSm\"\r\n [nzMd]=\"props.labelMd || formState.labelMd\"\r\n [nzLg]=\"props.labelLg || formState.labelLg\"\r\n [nzXl]=\"props.labelXl || formState.labelXl\"\r\n [nzXXl]=\"props.labelXXl || formState.labelXXl\"\r\n [ngClass]=\"props.labelClass || formState.labelClass\"\r\n [ngStyle]=\"props.labelStyle || formState.labelStyle\"\r\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\r\n [nzFor]=\"id\"\r\n [nzNoColon]=\"props['noColon'] ?? formState.noColon!!\"\r\n [nzTooltipTitle]=\"nzTooltipTitle\"\r\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\r\n [nzLabelAlign]=\"props['labelAlign'] || 'right'\"\r\n [nzLabelWrap]=\"props['labelWrap'] ?? formState.labelWrap!!\"\r\n >\r\n <ng-container\r\n *nzStringTemplateOutlet=\"label; context: { $implicit: field, options: props }\"\r\n >\r\n <div class=\"formly-label-text\" [attr.title]=\"label\" [innerHTML]=\"label\"></div>\r\n </ng-container>\r\n </nz-form-label>\r\n }\r\n <nz-form-control\r\n [nzValidateStatus]=\"validateStatus\"\r\n [nzHasFeedback]=\"props['hasFeedback']!!\"\r\n [nzExtra]=\"props.description || nzExtra\"\r\n [nzErrorTip]=\"errorTip\"\r\n [nzSuccessTip]=\"nzSuccessTip || formState.successTip\"\r\n [nzValidatingTip]=\"nzValidatingTip || formState.validatingTip\"\r\n [nzWarningTip]=\"nzWarningTip || formState.warningTip\"\r\n [nzAutoTips]=\"props['autoTips'] || formState.autoTips\"\r\n [nzDisableAutoTips]=\"props['disableAutoTips'] || formState.disableAutoTips\"\r\n [ngClass]=\"props.controlClass || formState.controlClass\"\r\n [ngStyle]=\"props.controlStyle || formState.controlStyle\"\r\n [nzFlex]=\"props.controlFlex || formState.controlFlex\"\r\n [nzOffset]=\"props.controlOffset || formState.controlOffset\"\r\n [nzOrder]=\"props.controlOrder || formState.controlOrder\"\r\n [nzPull]=\"props.controlPull || formState.controlPull\"\r\n [nzPush]=\"props.controlPush || formState.controlPush\"\r\n [nzSpan]=\"props.controlSpan || formState.controlSpan\"\r\n [nzXs]=\"props.controlXs || formState.controlXs\"\r\n [nzSm]=\"props.controlSm || formState.controlSm\"\r\n [nzMd]=\"props.controlMd || formState.controlMd\"\r\n [nzLg]=\"props.controlLg || formState.controlLg\"\r\n [nzXl]=\"props.controlXl || formState.controlXl\"\r\n [nzXXl]=\"props.controlXXl || formState.controlXXl\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-container\r\n *nzStringTemplateOutlet=\"afterText; context: { $implicit: field, options: props }\"\r\n >\r\n <span class=\"formly-label-text\" [innerHTML]=\"afterText\"></span>\r\n </ng-container>\r\n\r\n <ng-template #errorTip let-control>\r\n @if (hasError) {\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n }\r\n </ng-template>\r\n </nz-form-control>\r\n </nz-form-item>\r\n `\r\n})\r\nexport class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzTooltipTitle() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'tooltipTitle');\r\n }\r\n get nzExtra() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\r\n }\r\n get hasLabel() {\r\n return hasTplNameValue(this.props, 'label');\r\n }\r\n\r\n get label() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'label');\r\n }\r\n\r\n get afterText() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'afterText');\r\n }\r\n\r\n get nzSuccessTip() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'successTip');\r\n }\r\n get nzValidatingTip() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'validatingTip');\r\n }\r\n get nzWarningTip() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'warningTip');\r\n }\r\n\r\n get hasError() {\r\n return (this.formControl?.dirty || this.formControl?.touched) && this.formControl.errors;\r\n }\r\n get validateStatus() {\r\n return this.hasError ? 'error' : 'success';\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { FormlyWrapperFormField } from './form-field.wrapper';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperFormField],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n NzOutletModule,\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":";;;;;;;;;;;;;;;AAsFM,MAAO,sBAAuB,SAAQ,YAAmD,CAAA;AAC7F,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;KAEhE;AAED,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAA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AAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
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, Optional } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormWrapperProps } from './form-field.props';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { resolveTplName, hasTplNameValue, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\n\nexport type FormlyFieldProps = NzFormWrapperProps;\n\n@Component({\n selector: 'formly-wrapper-nz-form-field',\n styleUrls: ['./form-field.wrapper.scss'],\n template: `\n <nz-form-item [ngClass]=\"props.itemClass\" [ngStyle]=\"props.itemStyle\">\n @if (hasLabel && props['hideLabel'] !== true) {\n <nz-form-label\n [nzFlex]=\"props.labelFlex || formState.labelFlex\"\n [nzOffset]=\"props.labelOffset || formState.labelOffset\"\n [nzOrder]=\"props.labelOrder || formState.labelOrder\"\n [nzPull]=\"props.labelPull || formState.labelPull\"\n [nzPush]=\"props.labelPush || formState.labelPush\"\n [nzSpan]=\"props.labelSpan || formState.labelSpan\"\n [nzXs]=\"props.labelXs || formState.labelXs\"\n [nzSm]=\"props.labelSm || formState.labelSm\"\n [nzMd]=\"props.labelMd || formState.labelMd\"\n [nzLg]=\"props.labelLg || formState.labelLg\"\n [nzXl]=\"props.labelXl || formState.labelXl\"\n [nzXXl]=\"props.labelXXl || formState.labelXXl\"\n [ngClass]=\"props.labelClass || formState.labelClass\"\n [ngStyle]=\"props.labelStyle || formState.labelStyle\"\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\n [nzFor]=\"id\"\n [nzNoColon]=\"props['noColon'] ?? formState.noColon!!\"\n [nzTooltipTitle]=\"nzTooltipTitle\"\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\n [nzLabelAlign]=\"props['labelAlign'] || 'right'\"\n [nzLabelWrap]=\"props['labelWrap'] ?? formState.labelWrap!!\"\n >\n <ng-container\n *nzStringTemplateOutlet=\"label; context: { $implicit: field, options: props }\"\n >\n <div class=\"formly-label-text\" [attr.title]=\"label\" [innerHTML]=\"label\"></div>\n </ng-container>\n </nz-form-label>\n }\n <nz-form-control\n [nzValidateStatus]=\"validateStatus\"\n [nzHasFeedback]=\"props['hasFeedback']!!\"\n [nzExtra]=\"props.description || nzExtra\"\n [nzErrorTip]=\"errorTip\"\n [nzSuccessTip]=\"nzSuccessTip || formState.successTip\"\n [nzValidatingTip]=\"nzValidatingTip || formState.validatingTip\"\n [nzWarningTip]=\"nzWarningTip || formState.warningTip\"\n [nzAutoTips]=\"props['autoTips'] || formState.autoTips\"\n [nzDisableAutoTips]=\"props['disableAutoTips'] || formState.disableAutoTips\"\n [ngClass]=\"props.controlClass || formState.controlClass\"\n [ngStyle]=\"props.controlStyle || formState.controlStyle\"\n [nzFlex]=\"props.controlFlex || formState.controlFlex\"\n [nzOffset]=\"props.controlOffset || formState.controlOffset\"\n [nzOrder]=\"props.controlOrder || formState.controlOrder\"\n [nzPull]=\"props.controlPull || formState.controlPull\"\n [nzPush]=\"props.controlPush || formState.controlPush\"\n [nzSpan]=\"props.controlSpan || formState.controlSpan\"\n [nzXs]=\"props.controlXs || formState.controlXs\"\n [nzSm]=\"props.controlSm || formState.controlSm\"\n [nzMd]=\"props.controlMd || formState.controlMd\"\n [nzLg]=\"props.controlLg || formState.controlLg\"\n [nzXl]=\"props.controlXl || formState.controlXl\"\n [nzXXl]=\"props.controlXXl || formState.controlXXl\"\n >\n <ng-container #fieldComponent></ng-container>\n\n <ng-container\n *nzStringTemplateOutlet=\"afterText; context: { $implicit: field, options: props }\"\n >\n <span class=\"formly-label-text\" [innerHTML]=\"afterText\"></span>\n </ng-container>\n\n <ng-template #errorTip let-control>\n @if (hasError) {\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n }\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n `\n})\nexport class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTooltipTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'tooltipTitle');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get hasLabel() {\n return hasTplNameValue(this.props, 'label');\n }\n\n get label() {\n return resolveTplName(this.props, this.fieldTemplates, 'label');\n }\n\n get afterText() {\n return resolveTplName(this.props, this.fieldTemplates, 'afterText');\n }\n\n get nzSuccessTip() {\n return resolveTplName(this.props, this.fieldTemplates, 'successTip');\n }\n get nzValidatingTip() {\n return resolveTplName(this.props, this.fieldTemplates, 'validatingTip');\n }\n get nzWarningTip() {\n return resolveTplName(this.props, this.fieldTemplates, 'warningTip');\n }\n\n get hasError() {\n return (this.formControl?.dirty || this.formControl?.touched) && this.formControl.errors;\n }\n get validateStatus() {\n return this.hasError ? 'error' : 'success';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n NzOutletModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField\n }\n ]\n })\n ]\n})\nexport class FormlyNzFormFieldModule {}\n","/**\n * Gener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AA,CAAA,EAAA;;2FAGO,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAjBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,cAAc;wBACd,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;;;ACxBD;;AAEG;;;;"}
|
@@ -9,70 +9,70 @@ import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
9
9
|
|
10
10
|
class FormlyFieldGrid extends FieldType {
|
11
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
13
|
-
<div
|
14
|
-
nz-row
|
15
|
-
[ngStyle]="props['ngStyle']"
|
16
|
-
[ngClass]="props['ngClass']"
|
17
|
-
[nzAlign]="props.align ?? null"
|
18
|
-
[nzGutter]="props.gutter ?? null"
|
19
|
-
[nzJustify]="props.justify ?? null"
|
20
|
-
[formlyAttributes]="field"
|
21
|
-
>
|
22
|
-
@for (item of field.fieldGroup; track item.id) {
|
23
|
-
<formly-field
|
24
|
-
[field]="item"
|
25
|
-
nz-col
|
26
|
-
[nzFlex]="item.props?.['flex'] || props.flex"
|
27
|
-
[nzOffset]="item.props?.['offset'] || props.offset"
|
28
|
-
[nzOrder]="item.props?.['order'] || props.order"
|
29
|
-
[nzPull]="item.props?.['pull'] || props.pull"
|
30
|
-
[nzPush]="item.props?.['push'] || props.push"
|
31
|
-
[nzSpan]="item.props?.['span'] || props.span"
|
32
|
-
[nzXs]="item.props?.['xs'] || props.xs"
|
33
|
-
[nzSm]="item.props?.['sm'] || props.sm"
|
34
|
-
[nzMd]="item.props?.['md'] || props.md"
|
35
|
-
[nzLg]="item.props?.['lg'] || props.lg"
|
36
|
-
[nzXl]="item.props?.['xl'] || props.xl"
|
37
|
-
[nzXXl]="item.props?.['xxl'] || props.xxl"
|
38
|
-
></formly-field>
|
39
|
-
}
|
40
|
-
</div>
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
13
|
+
<div
|
14
|
+
nz-row
|
15
|
+
[ngStyle]="props['ngStyle']"
|
16
|
+
[ngClass]="props['ngClass']"
|
17
|
+
[nzAlign]="props.align ?? null"
|
18
|
+
[nzGutter]="props.gutter ?? null"
|
19
|
+
[nzJustify]="props.justify ?? null"
|
20
|
+
[formlyAttributes]="field"
|
21
|
+
>
|
22
|
+
@for (item of field.fieldGroup; track item.id) {
|
23
|
+
<formly-field
|
24
|
+
[field]="item"
|
25
|
+
nz-col
|
26
|
+
[nzFlex]="item.props?.['flex'] || props.flex"
|
27
|
+
[nzOffset]="item.props?.['offset'] || props.offset"
|
28
|
+
[nzOrder]="item.props?.['order'] || props.order"
|
29
|
+
[nzPull]="item.props?.['pull'] || props.pull"
|
30
|
+
[nzPush]="item.props?.['push'] || props.push"
|
31
|
+
[nzSpan]="item.props?.['span'] || props.span"
|
32
|
+
[nzXs]="item.props?.['xs'] || props.xs"
|
33
|
+
[nzSm]="item.props?.['sm'] || props.sm"
|
34
|
+
[nzMd]="item.props?.['md'] || props.md"
|
35
|
+
[nzLg]="item.props?.['lg'] || props.lg"
|
36
|
+
[nzXl]="item.props?.['xl'] || props.xl"
|
37
|
+
[nzXXl]="item.props?.['xxl'] || props.xxl"
|
38
|
+
></formly-field>
|
39
|
+
}
|
40
|
+
</div>
|
41
41
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", 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"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
42
42
|
}
|
43
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldGrid, decorators: [{
|
44
44
|
type: Component,
|
45
45
|
args: [{
|
46
46
|
selector: 'formly-field-grid',
|
47
|
-
template: `
|
48
|
-
<div
|
49
|
-
nz-row
|
50
|
-
[ngStyle]="props['ngStyle']"
|
51
|
-
[ngClass]="props['ngClass']"
|
52
|
-
[nzAlign]="props.align ?? null"
|
53
|
-
[nzGutter]="props.gutter ?? null"
|
54
|
-
[nzJustify]="props.justify ?? null"
|
55
|
-
[formlyAttributes]="field"
|
56
|
-
>
|
57
|
-
@for (item of field.fieldGroup; track item.id) {
|
58
|
-
<formly-field
|
59
|
-
[field]="item"
|
60
|
-
nz-col
|
61
|
-
[nzFlex]="item.props?.['flex'] || props.flex"
|
62
|
-
[nzOffset]="item.props?.['offset'] || props.offset"
|
63
|
-
[nzOrder]="item.props?.['order'] || props.order"
|
64
|
-
[nzPull]="item.props?.['pull'] || props.pull"
|
65
|
-
[nzPush]="item.props?.['push'] || props.push"
|
66
|
-
[nzSpan]="item.props?.['span'] || props.span"
|
67
|
-
[nzXs]="item.props?.['xs'] || props.xs"
|
68
|
-
[nzSm]="item.props?.['sm'] || props.sm"
|
69
|
-
[nzMd]="item.props?.['md'] || props.md"
|
70
|
-
[nzLg]="item.props?.['lg'] || props.lg"
|
71
|
-
[nzXl]="item.props?.['xl'] || props.xl"
|
72
|
-
[nzXXl]="item.props?.['xxl'] || props.xxl"
|
73
|
-
></formly-field>
|
74
|
-
}
|
75
|
-
</div>
|
47
|
+
template: `
|
48
|
+
<div
|
49
|
+
nz-row
|
50
|
+
[ngStyle]="props['ngStyle']"
|
51
|
+
[ngClass]="props['ngClass']"
|
52
|
+
[nzAlign]="props.align ?? null"
|
53
|
+
[nzGutter]="props.gutter ?? null"
|
54
|
+
[nzJustify]="props.justify ?? null"
|
55
|
+
[formlyAttributes]="field"
|
56
|
+
>
|
57
|
+
@for (item of field.fieldGroup; track item.id) {
|
58
|
+
<formly-field
|
59
|
+
[field]="item"
|
60
|
+
nz-col
|
61
|
+
[nzFlex]="item.props?.['flex'] || props.flex"
|
62
|
+
[nzOffset]="item.props?.['offset'] || props.offset"
|
63
|
+
[nzOrder]="item.props?.['order'] || props.order"
|
64
|
+
[nzPull]="item.props?.['pull'] || props.pull"
|
65
|
+
[nzPush]="item.props?.['push'] || props.push"
|
66
|
+
[nzSpan]="item.props?.['span'] || props.span"
|
67
|
+
[nzXs]="item.props?.['xs'] || props.xs"
|
68
|
+
[nzSm]="item.props?.['sm'] || props.sm"
|
69
|
+
[nzMd]="item.props?.['md'] || props.md"
|
70
|
+
[nzLg]="item.props?.['lg'] || props.lg"
|
71
|
+
[nzXl]="item.props?.['xl'] || props.xl"
|
72
|
+
[nzXXl]="item.props?.['xxl'] || props.xxl"
|
73
|
+
></formly-field>
|
74
|
+
}
|
75
|
+
</div>
|
76
76
|
`,
|
77
77
|
changeDetection: ChangeDetectionStrategy.OnPush
|
78
78
|
}]
|
@@ -1 +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';\
|
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';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { GridProps } from './grid.props';\n\nexport interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {\n type: 'grid' | Type<FormlyFieldGrid>;\n}\n\n@Component({\n selector: 'formly-field-grid',\n template: `\n <div\n nz-row\n [ngStyle]=\"props['ngStyle']\"\n [ngClass]=\"props['ngClass']\"\n [nzAlign]=\"props.align ?? null\"\n [nzGutter]=\"props.gutter ?? null\"\n [nzJustify]=\"props.justify ?? null\"\n [formlyAttributes]=\"field\"\n >\n @for (item of field.fieldGroup; track item.id) {\n <formly-field\n [field]=\"item\"\n nz-col\n [nzFlex]=\"item.props?.['flex'] || props.flex\"\n [nzOffset]=\"item.props?.['offset'] || props.offset\"\n [nzOrder]=\"item.props?.['order'] || props.order\"\n [nzPull]=\"item.props?.['pull'] || props.pull\"\n [nzPush]=\"item.props?.['push'] || props.push\"\n [nzSpan]=\"item.props?.['span'] || props.span\"\n [nzXs]=\"item.props?.['xs'] || props.xs\"\n [nzSm]=\"item.props?.['sm'] || props.sm\"\n [nzMd]=\"item.props?.['md'] || props.md\"\n [nzLg]=\"item.props?.['lg'] || props.lg\"\n [nzXl]=\"item.props?.['xl'] || props.xl\"\n [nzXXl]=\"item.props?.['xxl'] || props.xxl\"\n ></formly-field>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldGrid } from './grid.type';\n\nimport { NzGridModule } from 'ng-zorro-antd/grid';\n\n@NgModule({\n declarations: [FormlyFieldGrid],\n imports: [\n CommonModule,\n NzGridModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'grid',\n component: FormlyFieldGrid\n }\n ]\n })\n ]\n})\nexport class FormlyNzGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AA2CM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;8GAA7D,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EAhChB,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAA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