ngx-formly-zorro-antd 17.4.2 → 17.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -0
- package/button-group/button-group.type.d.ts +3 -0
- package/card/card.type.d.ts +3 -0
- package/card-wrapper/card-wrapper.props.d.ts +3 -1
- package/card-wrapper/card.wrapper.d.ts +3 -0
- package/cascader/cascader.type.d.ts +3 -0
- package/datepicker/datepicker.type.d.ts +3 -0
- package/esm2022/button/button.type.mjs +6 -3
- package/esm2022/button-group/button-group.type.mjs +4 -1
- package/esm2022/card/card.type.mjs +7 -2
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +7 -2
- package/esm2022/cascader/cascader.type.mjs +4 -1
- package/esm2022/checkbox/checkbox.type.mjs +3 -1
- package/esm2022/datepicker/datepicker.type.mjs +17 -19
- package/esm2022/flex/flex.type.mjs +6 -3
- package/esm2022/form-field/form-field.wrapper.mjs +5 -5
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +4 -1
- package/esm2022/input/input.type.mjs +31 -28
- package/esm2022/input-group/input-group.type.mjs +8 -5
- package/esm2022/input-number/input-number.type.mjs +9 -7
- package/esm2022/radio/radio.type.mjs +7 -7
- package/esm2022/rate/rate.type.mjs +11 -11
- package/esm2022/ref-template/ref-template.type.mjs +7 -5
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +21 -24
- package/esm2022/slider/slider.type.mjs +15 -15
- package/esm2022/space/space.type.mjs +5 -6
- package/esm2022/switch/switch.type.mjs +7 -9
- package/esm2022/tabs/tabs.wrapper.mjs +2 -1
- package/esm2022/text-value/text-value.type.mjs +2 -1
- package/esm2022/textarea/textarea.type.mjs +10 -9
- package/esm2022/timepicker/timepicker.type.mjs +21 -21
- package/esm2022/transfer/transfer.component.mjs +2 -1
- package/esm2022/transfer/transfer.type.mjs +4 -6
- package/esm2022/tree-select/tree-select.type.mjs +33 -31
- package/esm2022/upload/upload.type.mjs +6 -5
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +3 -0
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +5 -2
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +6 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +6 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +3 -0
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -0
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +18 -19
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +5 -2
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +4 -4
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +3 -0
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -4
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +10 -7
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +30 -27
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +8 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +12 -11
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -6
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +22 -24
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +16 -15
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +4 -5
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +8 -9
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +1 -0
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +1 -0
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +9 -8
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +22 -21
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +5 -5
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -31
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +5 -4
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/flex/flex.type.d.ts +3 -0
- package/grid/grid.props.d.ts +3 -0
- package/grid/grid.type.d.ts +3 -0
- package/input/input.type.d.ts +4 -1
- package/input-group/input-group.type.d.ts +3 -0
- package/input-number/input-number.type.d.ts +3 -0
- package/package.json +13 -13
- package/radio/radio.type.d.ts +3 -0
- package/rate/rate.type.d.ts +3 -0
- package/ref-template/ref-template.type.d.ts +1 -0
- package/select/select.props.d.ts +2 -4
- package/slider/slider.type.d.ts +3 -0
- package/space/space.type.d.ts +1 -0
- package/switch/switch.type.d.ts +1 -0
- package/tabs/tabs.wrapper.d.ts +1 -0
- package/text-value/text-value.type.d.ts +1 -0
- package/textarea/textarea.type.d.ts +1 -0
- package/timepicker/timepicker.type.d.ts +1 -0
- package/transfer/transfer.component.d.ts +1 -0
- package/transfer/transfer.type.d.ts +1 -0
- package/tree-select/tree-select.type.d.ts +1 -0
- package/upload/upload.type.d.ts +1 -0
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
3
|
import * as i1 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
|
-
import * as
|
5
|
+
import * as i1$1 from '@ngx-formly/core';
|
6
6
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
7
|
import * as i2 from '@angular/forms';
|
8
8
|
import { ReactiveFormsModule } from '@angular/forms';
|
@@ -10,6 +10,9 @@ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
|
10
10
|
import * as i3 from 'ng-zorro-antd/date-picker';
|
11
11
|
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
|
12
12
|
|
13
|
+
/**
|
14
|
+
* @private
|
15
|
+
*/
|
13
16
|
class FormlyFieldDatepicker extends FieldType {
|
14
17
|
constructor() {
|
15
18
|
super(...arguments);
|
@@ -40,17 +43,16 @@ class FormlyFieldDatepicker extends FieldType {
|
|
40
43
|
<nz-range-picker
|
41
44
|
[nzId]="id"
|
42
45
|
[formControl]="formControl"
|
43
|
-
[formlyAttributes]="field"
|
44
46
|
[ngClass]="props['ngClass']"
|
45
47
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
46
48
|
[nzAllowClear]="!!props['allowClear']"
|
47
|
-
[nzAutoFocus]="props['autoFocus']
|
48
|
-
[nzBackdrop]="props['backdrop']
|
49
|
+
[nzAutoFocus]="!!props['autoFocus']"
|
50
|
+
[nzBackdrop]="!!props['backdrop']"
|
49
51
|
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
50
52
|
[nzDisabledDate]="props['disabledDate']"
|
51
53
|
[nzDropdownClassName]="props['dropdownClassName']"
|
52
54
|
[nzFormat]="props['format']"
|
53
|
-
[nzInputReadOnly]="props['inputReadOnly']
|
55
|
+
[nzInputReadOnly]="!!props['inputReadOnly']"
|
54
56
|
[nzMode]="props['mode']"
|
55
57
|
[nzPopupStyle]="props['popupStyle']"
|
56
58
|
[nzSize]="props['size']"
|
@@ -63,9 +65,9 @@ class FormlyFieldDatepicker extends FieldType {
|
|
63
65
|
[nzDateRender]="props['dateRender']"
|
64
66
|
[nzDisabledTime]="props['rangeOptions']?.disabledTime"
|
65
67
|
[nzShowTime]="props['showTime']"
|
66
|
-
[nzShowToday]="props['showToday']
|
67
|
-
[nzShowNow]="props['showNow']
|
68
|
-
[nzShowWeekNumber]="props['showWeekNumber']
|
68
|
+
[nzShowToday]="!!props['showToday']"
|
69
|
+
[nzShowNow]="!!props['showNow']"
|
70
|
+
[nzShowWeekNumber]="!!props['showWeekNumber']"
|
69
71
|
[nzRanges]="props['rangeOptions']?.ranges"
|
70
72
|
[nzSeparator]="props['rangeOptions']?.separator"
|
71
73
|
(nzOnOpenChange)="props['openChange']?.(field, $event)"
|
@@ -77,7 +79,6 @@ class FormlyFieldDatepicker extends FieldType {
|
|
77
79
|
<nz-date-picker
|
78
80
|
[nzId]="id"
|
79
81
|
[formControl]="formControl"
|
80
|
-
[formlyAttributes]="field"
|
81
82
|
[ngClass]="props['ngClass']"
|
82
83
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
83
84
|
[nzAllowClear]="!!props['allowClear']"
|
@@ -107,7 +108,7 @@ class FormlyFieldDatepicker extends FieldType {
|
|
107
108
|
(nzOnOk)="props['onOk']?.(field, $event)"
|
108
109
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
109
110
|
></nz-date-picker>
|
110
|
-
}`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }
|
111
|
+
}`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
111
112
|
}
|
112
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
|
113
114
|
type: Component,
|
@@ -117,17 +118,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
117
118
|
<nz-range-picker
|
118
119
|
[nzId]="id"
|
119
120
|
[formControl]="formControl"
|
120
|
-
[formlyAttributes]="field"
|
121
121
|
[ngClass]="props['ngClass']"
|
122
122
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
123
123
|
[nzAllowClear]="!!props['allowClear']"
|
124
|
-
[nzAutoFocus]="props['autoFocus']
|
125
|
-
[nzBackdrop]="props['backdrop']
|
124
|
+
[nzAutoFocus]="!!props['autoFocus']"
|
125
|
+
[nzBackdrop]="!!props['backdrop']"
|
126
126
|
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
127
127
|
[nzDisabledDate]="props['disabledDate']"
|
128
128
|
[nzDropdownClassName]="props['dropdownClassName']"
|
129
129
|
[nzFormat]="props['format']"
|
130
|
-
[nzInputReadOnly]="props['inputReadOnly']
|
130
|
+
[nzInputReadOnly]="!!props['inputReadOnly']"
|
131
131
|
[nzMode]="props['mode']"
|
132
132
|
[nzPopupStyle]="props['popupStyle']"
|
133
133
|
[nzSize]="props['size']"
|
@@ -140,9 +140,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
140
140
|
[nzDateRender]="props['dateRender']"
|
141
141
|
[nzDisabledTime]="props['rangeOptions']?.disabledTime"
|
142
142
|
[nzShowTime]="props['showTime']"
|
143
|
-
[nzShowToday]="props['showToday']
|
144
|
-
[nzShowNow]="props['showNow']
|
145
|
-
[nzShowWeekNumber]="props['showWeekNumber']
|
143
|
+
[nzShowToday]="!!props['showToday']"
|
144
|
+
[nzShowNow]="!!props['showNow']"
|
145
|
+
[nzShowWeekNumber]="!!props['showWeekNumber']"
|
146
146
|
[nzRanges]="props['rangeOptions']?.ranges"
|
147
147
|
[nzSeparator]="props['rangeOptions']?.separator"
|
148
148
|
(nzOnOpenChange)="props['openChange']?.(field, $event)"
|
@@ -154,7 +154,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
154
154
|
<nz-date-picker
|
155
155
|
[nzId]="id"
|
156
156
|
[formControl]="formControl"
|
157
|
-
[formlyAttributes]="field"
|
158
157
|
[ngClass]="props['ngClass']"
|
159
158
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
160
159
|
[nzAllowClear]="!!props['allowClear']"
|
@@ -194,7 +193,7 @@ class FormlyNzDatepickerModule {
|
|
194
193
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
|
195
194
|
ReactiveFormsModule,
|
196
195
|
FormlyNzFormFieldModule,
|
197
|
-
NzDatePickerModule,
|
196
|
+
NzDatePickerModule, i1$1.FormlyModule] }); }
|
198
197
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
|
199
198
|
ReactiveFormsModule,
|
200
199
|
FormlyNzFormFieldModule,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.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 { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: ` @if (props.type === 'range') {\n <nz-range-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.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 { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-datepicker',\n template: ` @if (props.type === 'range') {\n <nz-range-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [ngClass]=\"props['ngClass']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"!!props['allowClear']\"\n [nzAutoFocus]=\"!!props['autoFocus']\"\n [nzBackdrop]=\"!!props['backdrop']\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"!!props['inputReadOnly']\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"!!props['showToday']\"\n [nzShowNow]=\"!!props['showNow']\"\n [nzShowWeekNumber]=\"!!props['showWeekNumber']\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange']?.(field, $event)\"\n (nzOnOk)=\"props['onOk']?.(field, $event)\"\n (nzOnCalendarChange)=\"props['rangeOptions']?.calendarChange?.(field, $event)\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n ></nz-range-picker>\n } @else {\n <nz-date-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [ngClass]=\"props['ngClass']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"!!props['allowClear']\"\n [nzAutoFocus]=\"!!props['autoFocus']\"\n [nzBackdrop]=\"!!props['backdrop']\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"!!props['inputReadOnly']\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"!!props['showToday']\"\n [nzShowNow]=\"!!props['showNow']\"\n [nzShowWeekNumber]=\"!!props['showWeekNumber']\"\n (nzOnOpenChange)=\"props['openChange']?.(field, $event)\"\n (nzOnOk)=\"props['onOk']?.(field, $event)\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n ></nz-date-picker>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAQA;;AAEG;AA2EG,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA1ErE,IAAA,WAAA,GAAA;;AA2EW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,UAAU,EAAE,EAAE;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,gBAAgB,EAAE,KAAK;AACvB,gBAAA,YAAY,EAAE;AACZ,oBAAA,SAAS,EAAE,GAAG;AACf,iBAAA;AACF,aAAA;SACF,CAAC;AACH,KAAA;8GAtBY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA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L,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -7,6 +7,9 @@ import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
7
7
|
import * as i2 from 'ng-zorro-antd/flex';
|
8
8
|
import { NzFlexModule } from 'ng-zorro-antd/flex';
|
9
9
|
|
10
|
+
/**
|
11
|
+
* @private
|
12
|
+
*/
|
10
13
|
class FormlyFieldFlex extends FieldType {
|
11
14
|
constructor() {
|
12
15
|
super(...arguments);
|
@@ -27,7 +30,7 @@ class FormlyFieldFlex extends FieldType {
|
|
27
30
|
[ngClass]="props['ngClass']"
|
28
31
|
[ngStyle]="props['ngStyle']"
|
29
32
|
[formlyAttributes]="field"
|
30
|
-
[nzVertical]="props['vertical']
|
33
|
+
[nzVertical]="!!props['vertical']"
|
31
34
|
[nzJustify]="props['justify']!"
|
32
35
|
[nzAlign]="props['align']!"
|
33
36
|
[nzGap]="props['gap']!"
|
@@ -50,7 +53,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
50
53
|
[ngClass]="props['ngClass']"
|
51
54
|
[ngStyle]="props['ngStyle']"
|
52
55
|
[formlyAttributes]="field"
|
53
|
-
[nzVertical]="props['vertical']
|
56
|
+
[nzVertical]="!!props['vertical']"
|
54
57
|
[nzJustify]="props['justify']!"
|
55
58
|
[nzAlign]="props['align']!"
|
56
59
|
[nzGap]="props['gap']!"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-flex.mjs","sources":["../../../../packages/formlyantd/flex/src/flex.type.ts","../../../../packages/formlyantd/flex/src/flex.module.ts","../../../../packages/formlyantd/flex/src/ngx-formly-zorro-antd-flex.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';\nimport type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';\n\n/**\n * @publicApi\n */\nexport interface FlexProps extends FormlyFieldProps {\n /**\n * 自定义css类\n */\n ngClass?: NgClassType;\n /**\n * 自定义样式\n */\n ngStyle?: NgStyleType;\n /**\n * flex 主轴的方向是否垂直,使用 flex-direction: column\n * @default false\n */\n vertical?: boolean;\n\n /** 设置元素在主轴方向上的对齐方式 */\n justify?: NzJustify;\n\n /** 设置元素在交叉轴方向上的对齐方式 */\n align?: NzAlign;\n\n /** 设置网格之间的间隙 */\n gap?: NzGap;\n\n /** 设置元素单行显示还是多行显示 */\n wrap?: NzWrap;\n\n /** flex CSS 简写属性 */\n flex?: NzFlex;\n}\n\nexport interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {\n type: 'flex' | Type<FormlyFieldFlex>;\n}\n\n@Component({\n selector: 'formly-field-flex',\n template: `\n <div\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [formlyAttributes]=\"field\"\n [nzVertical]=\"props['vertical']
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-flex.mjs","sources":["../../../../packages/formlyantd/flex/src/flex.type.ts","../../../../packages/formlyantd/flex/src/flex.module.ts","../../../../packages/formlyantd/flex/src/ngx-formly-zorro-antd-flex.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';\nimport type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';\n\n/**\n * @publicApi\n */\nexport interface FlexProps extends FormlyFieldProps {\n /**\n * 自定义css类\n */\n ngClass?: NgClassType;\n /**\n * 自定义样式\n */\n ngStyle?: NgStyleType;\n /**\n * flex 主轴的方向是否垂直,使用 flex-direction: column\n * @default false\n */\n vertical?: boolean;\n\n /** 设置元素在主轴方向上的对齐方式 */\n justify?: NzJustify;\n\n /** 设置元素在交叉轴方向上的对齐方式 */\n align?: NzAlign;\n\n /** 设置网格之间的间隙 */\n gap?: NzGap;\n\n /** 设置元素单行显示还是多行显示 */\n wrap?: NzWrap;\n\n /** flex CSS 简写属性 */\n flex?: NzFlex;\n}\n\nexport interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {\n type: 'flex' | Type<FormlyFieldFlex>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-flex',\n template: `\n <div\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [formlyAttributes]=\"field\"\n [nzVertical]=\"!!props['vertical']\"\n [nzJustify]=\"props['justify']!\"\n [nzAlign]=\"props['align']!\"\n [nzGap]=\"props['gap']!\"\n [nzWrap]=\"props['wrap']!\"\n [nzFlex]=\"props['flex']!\"\n nz-flex\n >\n @for (item of field.fieldGroup; track item.id) {\n <formly-field [field]=\"item\"></formly-field>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps>> {\n override defaultOptions = {\n props: {\n vertical: false,\n justify: 'normal' as const,\n align: 'normal' as const,\n gap: 0,\n wrap: 'nowrap' as const,\n flex: 'unset' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyFieldFlex } from './flex.type';\n\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\n\n@NgModule({\n declarations: [FormlyFieldFlex],\n imports: [\n CommonModule,\n NzFlexModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'flex',\n component: FormlyFieldFlex\n }\n ]\n })\n ]\n})\nexport class FormlyNzFlexModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AA0CA;;AAEG;AAuBG,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAtB1E,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,QAAiB;AAC1B,gBAAA,KAAK,EAAE,QAAiB;AACxB,gBAAA,GAAG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,QAAiB;AACvB,gBAAA,IAAI,EAAE,OAAgB;AACvB,aAAA;SACF,CAAC;AACH,KAAA;8GAXY,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,EApBhB,QAAA,EAAA,mBAAA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hideRequiredMarker'] !== true"
|
74
74
|
[nzFor]="id"
|
75
|
-
[nzNoColon]="props['noColon'] ?? formState.noColon
|
75
|
+
[nzNoColon]="props['noColon'] ?? !!formState.noColon"
|
76
76
|
[nzTooltipTitle]="nzTooltipTitle"
|
77
77
|
[nzTooltipIcon]="props['tooltipIcon']!"
|
78
78
|
[nzLabelAlign]="props['labelAlign'] || 'right'"
|
79
|
-
[nzLabelWrap]="props['labelWrap'] ?? formState.labelWrap
|
79
|
+
[nzLabelWrap]="props['labelWrap'] ?? !!formState.labelWrap"
|
80
80
|
>
|
81
81
|
<ng-container *nzStringTemplateOutlet="label; context: { $implicit: field, options: props }">
|
82
82
|
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
@@ -145,11 +145,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
145
145
|
[ngStyle]="props.labelStyle || formState.labelStyle"
|
146
146
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
147
147
|
[nzFor]="id"
|
148
|
-
[nzNoColon]="props['noColon'] ?? formState.noColon
|
148
|
+
[nzNoColon]="props['noColon'] ?? !!formState.noColon"
|
149
149
|
[nzTooltipTitle]="nzTooltipTitle"
|
150
150
|
[nzTooltipIcon]="props['tooltipIcon']!"
|
151
151
|
[nzLabelAlign]="props['labelAlign'] || 'right'"
|
152
|
-
[nzLabelWrap]="props['labelWrap'] ?? formState.labelWrap
|
152
|
+
[nzLabelWrap]="props['labelWrap'] ?? !!formState.labelWrap"
|
153
153
|
>
|
154
154
|
<ng-container *nzStringTemplateOutlet="label; context: { $implicit: field, options: props }">
|
155
155
|
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
@@ -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';\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/**\n * @private\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 *nzStringTemplateOutlet=\"label; context: { $implicit: field, options: props }\">\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 *nzStringTemplateOutlet=\"afterText; context: { $implicit: field, options: props }\">\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 * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAQA;;AAEG;AA2EG,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,c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E,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/**\n * @private\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 *nzStringTemplateOutlet=\"label; context: { $implicit: field, options: props }\">\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 *nzStringTemplateOutlet=\"afterText; context: { $implicit: field, options: props }\">\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 * Generated bundle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A,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;;;;"}
|
@@ -7,6 +7,9 @@ import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
7
7
|
import * as i2 from 'ng-zorro-antd/grid';
|
8
8
|
import { NzGridModule } from 'ng-zorro-antd/grid';
|
9
9
|
|
10
|
+
/**
|
11
|
+
* @private
|
12
|
+
*/
|
10
13
|
class FormlyFieldGrid extends FieldType {
|
11
14
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
12
15
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
@@ -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';\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":";;;;;;;;;
|
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 * @private\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":";;;;;;;;;AAQA;;AAEG;AAmCG,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,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,+CAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,QAAA,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AAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAYH,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAb3B,YAAY;YACZ,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,eAAe;AAC3B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,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;;;;"}
|
@@ -8,6 +8,9 @@ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
|
8
8
|
import * as i2 from 'ng-zorro-antd/input';
|
9
9
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
10
10
|
|
11
|
+
/**
|
12
|
+
* @private
|
13
|
+
*/
|
11
14
|
class FormlyFieldInputGroup extends FieldType {
|
12
15
|
constructor() {
|
13
16
|
super(...arguments);
|
@@ -29,8 +32,8 @@ class FormlyFieldInputGroup extends FieldType {
|
|
29
32
|
[nzAddOnAfter]="props['addOnAfter']"
|
30
33
|
[nzPrefix]="props['prefix']"
|
31
34
|
[nzSuffix]="props['suffix']"
|
32
|
-
[nzCompact]="props['compact']
|
33
|
-
[nzSearch]="props['search']
|
35
|
+
[nzCompact]="!!props['compact']"
|
36
|
+
[nzSearch]="!!props['search']"
|
34
37
|
[nzSize]="props['size']!"
|
35
38
|
[nzStatus]="props['status']!"
|
36
39
|
[ngClass]="props['ngClass']"
|
@@ -56,8 +59,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
56
59
|
[nzAddOnAfter]="props['addOnAfter']"
|
57
60
|
[nzPrefix]="props['prefix']"
|
58
61
|
[nzSuffix]="props['suffix']"
|
59
|
-
[nzCompact]="props['compact']
|
60
|
-
[nzSearch]="props['search']
|
62
|
+
[nzCompact]="!!props['compact']"
|
63
|
+
[nzSearch]="!!props['search']"
|
61
64
|
[nzSize]="props['size']!"
|
62
65
|
[nzStatus]="props['status']!"
|
63
66
|
[ngClass]="props['ngClass']"
|
@@ -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';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"props['compact']
|
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';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"!!props['compact']\"\n [nzSearch]=\"!!props['search']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n </nz-input-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\n override defaultOptions = {\n props: {\n status: '' as const,\n size: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputGroup } from './input-group.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [\n CommonModule,\n NzInputModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAQA;;AAEG;AA2BG,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AA1BtF,IAAA,WAAA,GAAA;;AA2BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAxBtB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;AAqBT,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,M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AqB,CAAA,EAAA,OAAA,EAAA,CAElC,YAAY;YACZ,aAAa;YAEb,uBAAuB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAYd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAfjC,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,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,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;;;;"}
|
@@ -4,12 +4,15 @@ import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i2 from '@angular/forms';
|
6
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
7
|
-
import * as
|
7
|
+
import * as i1$1 from '@ngx-formly/core';
|
8
8
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
9
9
|
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
10
10
|
import * as i3 from 'ng-zorro-antd/input-number';
|
11
11
|
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
12
12
|
|
13
|
+
/**
|
14
|
+
* @private
|
15
|
+
*/
|
13
16
|
class FormlyFieldInputNumber extends FieldType {
|
14
17
|
constructor() {
|
15
18
|
super(...arguments);
|
@@ -56,10 +59,10 @@ class FormlyFieldInputNumber extends FieldType {
|
|
56
59
|
<ng-template #inputNumberTpl>
|
57
60
|
<nz-input-number
|
58
61
|
[formControl]="formControl"
|
59
|
-
[
|
62
|
+
[nzId]="id"
|
60
63
|
[nzMax]="props.max!"
|
61
64
|
[nzMin]="props.min!"
|
62
|
-
[nzReadOnly]="props.readonly
|
65
|
+
[nzReadOnly]="!!props.readonly"
|
63
66
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
64
67
|
[nzSize]="props['size']!"
|
65
68
|
[nzStatus]="props['status']!"
|
@@ -76,7 +79,7 @@ class FormlyFieldInputNumber extends FieldType {
|
|
76
79
|
(nzBlur)="props.blur?.(field, $event)"
|
77
80
|
></nz-input-number>
|
78
81
|
</ng-template>
|
79
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }
|
82
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
80
83
|
}
|
81
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
82
85
|
type: Component,
|
@@ -106,10 +109,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
106
109
|
<ng-template #inputNumberTpl>
|
107
110
|
<nz-input-number
|
108
111
|
[formControl]="formControl"
|
109
|
-
[
|
112
|
+
[nzId]="id"
|
110
113
|
[nzMax]="props.max!"
|
111
114
|
[nzMin]="props.min!"
|
112
|
-
[nzReadOnly]="props.readonly
|
115
|
+
[nzReadOnly]="!!props.readonly"
|
113
116
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
114
117
|
[nzSize]="props['size']!"
|
115
118
|
[nzStatus]="props['status']!"
|
@@ -136,7 +139,7 @@ class FormlyNzInputNumberModule {
|
|
136
139
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
|
137
140
|
ReactiveFormsModule,
|
138
141
|
FormlyNzFormFieldModule,
|
139
|
-
NzInputNumberModule,
|
142
|
+
NzInputNumberModule, i1$1.FormlyModule] }); }
|
140
143
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
|
141
144
|
ReactiveFormsModule,
|
142
145
|
FormlyNzFormFieldModule,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.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 { InputNumberProps } from './input-number.props';\n\nexport interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\n}\n\n@Component({\n selector: 'formly-field-inputnumber',\n template: `\n @switch (props.type) {\n @case ('group') {\n <nz-input-number-group\n [ngClass]=\"props['ngClass']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzCompact]=\"props['compact']\"\n >\n <ng-container *ngTemplateOutlet=\"inputNumberTpl\"></ng-container>\n </nz-input-number-group>\n }\n @default {\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\n }\n }\n\n <ng-template #inputNumberTpl>\n <nz-input-number\n [formControl]=\"formControl\"\n [
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.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 { InputNumberProps } from './input-number.props';\n\nexport interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-inputnumber',\n template: `\n @switch (props.type) {\n @case ('group') {\n <nz-input-number-group\n [ngClass]=\"props['ngClass']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzCompact]=\"props['compact']\"\n >\n <ng-container *ngTemplateOutlet=\"inputNumberTpl\"></ng-container>\n </nz-input-number-group>\n }\n @default {\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\n }\n }\n\n <ng-template #inputNumberTpl>\n <nz-input-number\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzMax]=\"props.max!\"\n [nzMin]=\"props.min!\"\n [nzReadOnly]=\"!!props.readonly\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzPrecision]=\"props['precision']\"\n [nzPrecisionMode]=\"props['precisionMode']!\"\n [nzStep]=\"props['step'] ?? 1\"\n [nzFormatter]=\"props['formatter']!\"\n [nzParser]=\"props['parser']!\"\n [nzInputMode]=\"props['inputMode']!\"\n [ngClass]=\"props['ngClass']\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n ></nz-input-number>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n max: Infinity,\n min: -Infinity,\n parser: (value: string) =>\n value\n .trim()\n .replace(/。/g, '.')\n // eslint-disable-next-line no-useless-escape\n .replace(/[^\\w\\.-]+/g, ''),\n precisionMode: 'toFixed' as const,\n size: 'default' as const,\n status: '' as const,\n step: 1,\n inputMode: 'auto',\n formatter: (value: number | string) => value\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputNumber } from './input-number.type';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\n\n@NgModule({\n declarations: [FormlyFieldInputNumber],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputNumberModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'number',\n component: FormlyFieldInputNumber,\n wrappers: ['form-field']\n },\n {\n name: 'integer',\n extends: 'number'\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAQA;;AAEG;AAkDG,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAjDtE,IAAA,WAAA,GAAA;;AAkDW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,CAAC,QAAQ;AACd,gBAAA,MAAM,EAAE,CAAC,KAAa,KACpB,KAAK;AACF,qBAAA,IAAI,EAAE;AACN,qBAAA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;AAElB,qBAAA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;AAC9B,gBAAA,aAAa,EAAE,SAAkB;AACjC,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,SAAS,EAAE,MAAM;AACjB,gBAAA,SAAS,EAAE,CAAC,KAAsB,KAAK,KAAK;AAC7C,aAAA;SACF,CAAC;AACH,KAAA;8GAnBY,sBA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