ngx-formly-zorro-antd 20.3.3 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +8 -13
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +8 -15
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +8 -10
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +8 -15
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +8 -11
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +12 -12
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/package.json +41 -41
- package/{datepicker/index.d.ts → types/ngx-formly-zorro-antd-datepicker.d.ts} +0 -7
- package/{form-field/index.d.ts → types/ngx-formly-zorro-antd-form-field.d.ts} +6 -0
- package/{input/index.d.ts → types/ngx-formly-zorro-antd-input.d.ts} +0 -7
- package/{select/index.d.ts → types/ngx-formly-zorro-antd-select.d.ts} +0 -6
- package/{textarea/index.d.ts → types/ngx-formly-zorro-antd-textarea.d.ts} +0 -7
- package/{timepicker/index.d.ts → types/ngx-formly-zorro-antd-timepicker.d.ts} +0 -7
- /package/{autocomplete/index.d.ts → types/ngx-formly-zorro-antd-autocomplete.d.ts} +0 -0
- /package/{button/index.d.ts → types/ngx-formly-zorro-antd-button.d.ts} +0 -0
- /package/{card-wrapper/index.d.ts → types/ngx-formly-zorro-antd-card-wrapper.d.ts} +0 -0
- /package/{card/index.d.ts → types/ngx-formly-zorro-antd-card.d.ts} +0 -0
- /package/{cascader/index.d.ts → types/ngx-formly-zorro-antd-cascader.d.ts} +0 -0
- /package/{checkbox/index.d.ts → types/ngx-formly-zorro-antd-checkbox.d.ts} +0 -0
- /package/{common/index.d.ts → types/ngx-formly-zorro-antd-common.d.ts} +0 -0
- /package/{compose/index.d.ts → types/ngx-formly-zorro-antd-compose.d.ts} +0 -0
- /package/{extension/index.d.ts → types/ngx-formly-zorro-antd-extension.d.ts} +0 -0
- /package/{flex/index.d.ts → types/ngx-formly-zorro-antd-flex.d.ts} +0 -0
- /package/{grid/index.d.ts → types/ngx-formly-zorro-antd-grid.d.ts} +0 -0
- /package/{helpers/index.d.ts → types/ngx-formly-zorro-antd-helpers.d.ts} +0 -0
- /package/{input-group/index.d.ts → types/ngx-formly-zorro-antd-input-group.d.ts} +0 -0
- /package/{input-number/index.d.ts → types/ngx-formly-zorro-antd-input-number.d.ts} +0 -0
- /package/{input-otp/index.d.ts → types/ngx-formly-zorro-antd-input-otp.d.ts} +0 -0
- /package/{input-wrapper/index.d.ts → types/ngx-formly-zorro-antd-input-wrapper.d.ts} +0 -0
- /package/{radio/index.d.ts → types/ngx-formly-zorro-antd-radio.d.ts} +0 -0
- /package/{rate/index.d.ts → types/ngx-formly-zorro-antd-rate.d.ts} +0 -0
- /package/{ref-template/index.d.ts → types/ngx-formly-zorro-antd-ref-template.d.ts} +0 -0
- /package/{slider/index.d.ts → types/ngx-formly-zorro-antd-slider.d.ts} +0 -0
- /package/{space-compact/index.d.ts → types/ngx-formly-zorro-antd-space-compact.d.ts} +0 -0
- /package/{space/index.d.ts → types/ngx-formly-zorro-antd-space.d.ts} +0 -0
- /package/{switch/index.d.ts → types/ngx-formly-zorro-antd-switch.d.ts} +0 -0
- /package/{tabs/index.d.ts → types/ngx-formly-zorro-antd-tabs.d.ts} +0 -0
- /package/{text-value/index.d.ts → types/ngx-formly-zorro-antd-text-value.d.ts} +0 -0
- /package/{transfer/index.d.ts → types/ngx-formly-zorro-antd-transfer.d.ts} +0 -0
- /package/{tree-select/index.d.ts → types/ngx-formly-zorro-antd-tree-select.d.ts} +0 -0
- /package/types/{index.d.ts → ngx-formly-zorro-antd-types.d.ts} +0 -0
- /package/{upload/index.d.ts → types/ngx-formly-zorro-antd-upload.d.ts} +0 -0
- /package/{index.d.ts → types/ngx-formly-zorro-antd.d.ts} +0 -0
|
@@ -26,7 +26,6 @@ class FormlyFieldDatepicker extends FieldType {
|
|
|
26
26
|
status: '',
|
|
27
27
|
placement: 'bottomLeft',
|
|
28
28
|
popupStyle: {},
|
|
29
|
-
borderless: false,
|
|
30
29
|
variant: 'outlined',
|
|
31
30
|
inline: false,
|
|
32
31
|
showToday: true,
|
|
@@ -38,8 +37,8 @@ class FormlyFieldDatepicker extends FieldType {
|
|
|
38
37
|
}
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
42
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: FormlyFieldDatepicker, isStandalone: false, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
|
|
43
42
|
<nz-range-picker
|
|
44
43
|
[nzId]="id"
|
|
45
44
|
[formControl]="formControl"
|
|
@@ -60,7 +59,6 @@ class FormlyFieldDatepicker extends FieldType {
|
|
|
60
59
|
[nzPlacement]="props['placement']"
|
|
61
60
|
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
|
62
61
|
[nzSuffixIcon]="props['suffixIcon']"
|
|
63
|
-
[nzBorderless]="props['borderless']"
|
|
64
62
|
[nzVariant]="props['variant']"
|
|
65
63
|
[nzInline]="props['inline']"
|
|
66
64
|
[nzDateRender]="props['dateRender']"
|
|
@@ -98,7 +96,6 @@ class FormlyFieldDatepicker extends FieldType {
|
|
|
98
96
|
[nzPlacement]="props['placement']!"
|
|
99
97
|
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
|
100
98
|
[nzSuffixIcon]="props['suffixIcon']"
|
|
101
|
-
[nzBorderless]="props['borderless']"
|
|
102
99
|
[nzVariant]="props['variant']"
|
|
103
100
|
[nzInline]="props['inline']"
|
|
104
101
|
[nzDateRender]="props['dateRender']"
|
|
@@ -112,9 +109,9 @@ class FormlyFieldDatepicker extends FieldType {
|
|
|
112
109
|
(nzOnPanelChange)="props['onPanelChange']?.(field, $event)"
|
|
113
110
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
|
114
111
|
></nz-date-picker>
|
|
115
|
-
}`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["
|
|
112
|
+
}`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "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: i2.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
116
113
|
}
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
|
|
118
115
|
type: Component,
|
|
119
116
|
args: [{
|
|
120
117
|
selector: 'formly-field-datepicker',
|
|
@@ -139,7 +136,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
|
|
|
139
136
|
[nzPlacement]="props['placement']"
|
|
140
137
|
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
|
141
138
|
[nzSuffixIcon]="props['suffixIcon']"
|
|
142
|
-
[nzBorderless]="props['borderless']"
|
|
143
139
|
[nzVariant]="props['variant']"
|
|
144
140
|
[nzInline]="props['inline']"
|
|
145
141
|
[nzDateRender]="props['dateRender']"
|
|
@@ -177,7 +173,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
|
|
|
177
173
|
[nzPlacement]="props['placement']!"
|
|
178
174
|
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
|
179
175
|
[nzSuffixIcon]="props['suffixIcon']"
|
|
180
|
-
[nzBorderless]="props['borderless']"
|
|
181
176
|
[nzVariant]="props['variant']"
|
|
182
177
|
[nzInline]="props['inline']"
|
|
183
178
|
[nzDateRender]="props['dateRender']"
|
|
@@ -210,18 +205,18 @@ function withFormlyFieldDatepicker() {
|
|
|
210
205
|
}
|
|
211
206
|
|
|
212
207
|
class FormlyNzDatepickerModule {
|
|
213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
214
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
209
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
|
|
215
210
|
ReactiveFormsModule,
|
|
216
211
|
FormlyNzFormFieldModule,
|
|
217
212
|
NzDatePickerModule, i1$1.FormlyModule] }); }
|
|
218
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
213
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
|
|
219
214
|
ReactiveFormsModule,
|
|
220
215
|
FormlyNzFormFieldModule,
|
|
221
216
|
NzDatePickerModule,
|
|
222
217
|
FormlyModule.forChild(withFormlyFieldDatepicker())] }); }
|
|
223
218
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
|
|
225
220
|
type: NgModule,
|
|
226
221
|
args: [{
|
|
227
222
|
declarations: [FormlyFieldDatepicker],
|
|
@@ -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.config.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 [class]=\"props['className']\"\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 [
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.config.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 [class]=\"props['className']\"\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 [nzVariant]=\"props['variant']\"\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 (nzOnPanelChange)=\"props['onPanelChange']?.(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 [class]=\"props['className']\"\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 [nzVariant]=\"props['variant']\"\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 (nzOnPanelChange)=\"props['onPanelChange']?.(field, $event)\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n ></nz-date-picker>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\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 variant: 'outlined',\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\n } as const\n };\n}\n","import type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\nexport function withFormlyFieldDatepicker(): ConfigOption {\n return {\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\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';\nimport { withFormlyFieldDatepicker } from './datepicker.config';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild(withFormlyFieldDatepicker())\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;AA8EG,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA7ErE,IAAA,WAAA,GAAA;;AA8EW,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,OAAO,EAAE,UAAU;AACnB,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;AACZ;AACO;SACX;AACF,IAAA;8GAtBY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MA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AAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YATjC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,kBAAkB;AAElB,YAAA,YAAY,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;2FAGzC,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAZpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;AAElB,wBAAA,YAAY,CAAC,QAAQ,CAAC,yBAAyB,EAAE;AAClD;AACF,iBAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -23,8 +23,8 @@ class FormlyFieldFlex extends FieldType {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldFlex, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: FormlyFieldFlex, isStandalone: false, selector: "formly-field-flex", usesInheritance: true, ngImport: i0, template: `
|
|
28
28
|
<div
|
|
29
29
|
[class]="props['className']"
|
|
30
30
|
[style]="props['style']"
|
|
@@ -43,7 +43,7 @@ class FormlyFieldFlex extends FieldType {
|
|
|
43
43
|
</div>
|
|
44
44
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldFlex, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
48
|
args: [{
|
|
49
49
|
selector: 'formly-field-flex',
|
|
@@ -82,11 +82,11 @@ function withFormlyFieldFlex() {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
class FormlyNzFlexModule {
|
|
85
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
86
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
87
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
85
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFlexModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
86
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFlexModule, declarations: [FormlyFieldFlex], imports: [CommonModule, NzFlexModule, i2.FormlyModule] }); }
|
|
87
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFlexModule, imports: [CommonModule, NzFlexModule, FormlyModule.forChild(withFormlyFieldFlex())] }); }
|
|
88
88
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFlexModule, decorators: [{
|
|
90
90
|
type: NgModule,
|
|
91
91
|
args: [{
|
|
92
92
|
declarations: [FormlyFieldFlex],
|
|
@@ -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.config.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 className?: NgClassType;\n /**\n * 自定义样式\n */\n style?: 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 [class]=\"props['className']\"\n [style]=\"props['style']\"\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 standalone: false\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 type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldFlex } from './flex.type';\n\nexport function withFormlyFieldFlex(): ConfigOption {\n return {\n types: [\n {\n name: 'flex',\n component: FormlyFieldFlex\n }\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';\nimport { withFormlyFieldFlex } from './flex.config';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\n\n@NgModule({\n declarations: [FormlyFieldFlex],\n imports: [CommonModule, NzFlexModule, FormlyModule.forChild(withFormlyFieldFlex())]\n})\nexport class FormlyNzFlexModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AA0CA;;AAEG;AAwBG,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAvB1E,IAAA,WAAA,GAAA;;AAwBW,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;AACP;SACF;AACF,IAAA
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-flex.mjs","sources":["../../../../packages/formlyantd/flex/src/flex.type.ts","../../../../packages/formlyantd/flex/src/flex.config.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 className?: NgClassType;\n /**\n * 自定义样式\n */\n style?: 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 [class]=\"props['className']\"\n [style]=\"props['style']\"\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 standalone: false\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 type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldFlex } from './flex.type';\n\nexport function withFormlyFieldFlex(): ConfigOption {\n return {\n types: [\n {\n name: 'flex',\n component: FormlyFieldFlex\n }\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';\nimport { withFormlyFieldFlex } from './flex.config';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\n\n@NgModule({\n declarations: [FormlyFieldFlex],\n imports: [CommonModule, NzFlexModule, FormlyModule.forChild(withFormlyFieldFlex())]\n})\nexport class FormlyNzFlexModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AA0CA;;AAEG;AAwBG,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAvB1E,IAAA,WAAA,GAAA;;AAwBW,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;AACP;SACF;AACF,IAAA;8GAXY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CA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AAK,EAAE;AACL,YAAA;AACE,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,SAAS,EAAE;AACZ;AACF;KACF;AACH;;MCDa,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,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,EAAA,YAAA,EAAA,CAHd,eAAe,CAAA,EAAA,OAAA,EAAA,CACpB,YAAY,EAAE,YAAY,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;+GAEzB,kBAAkB,EAAA,OAAA,EAAA,CAFnB,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;2FAEvE,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;AACnF,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -49,8 +49,8 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
|
49
49
|
get validateStatus() {
|
|
50
50
|
return this.hasError ? 'error' : 'success';
|
|
51
51
|
}
|
|
52
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyWrapperFormField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
53
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: FormlyWrapperFormField, isStandalone: false, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
|
54
54
|
<nz-form-item [class]="props.itemClass" [style]="props.itemStyle">
|
|
55
55
|
@if (hasLabel && props['hideLabel'] !== true) {
|
|
56
56
|
<nz-form-label
|
|
@@ -121,7 +121,7 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
|
121
121
|
</nz-form-item>
|
|
122
122
|
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1.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: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
|
|
123
123
|
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
|
125
125
|
type: Component,
|
|
126
126
|
args: [{ selector: 'formly-wrapper-nz-form-field', template: `
|
|
127
127
|
<nz-form-item [class]="props.itemClass" [style]="props.itemStyle">
|
|
@@ -207,18 +207,18 @@ function withFormlyFormField() {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
class FormlyNzFormFieldModule {
|
|
210
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
211
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
211
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
|
212
212
|
ReactiveFormsModule,
|
|
213
213
|
NzFormModule,
|
|
214
214
|
NzOutletModule, i4.FormlyModule] }); }
|
|
215
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
215
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFormFieldModule, imports: [CommonModule,
|
|
216
216
|
ReactiveFormsModule,
|
|
217
217
|
NzFormModule,
|
|
218
218
|
NzOutletModule,
|
|
219
219
|
FormlyModule.forChild(withFormlyFormField())] }); }
|
|
220
220
|
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
|
|
222
222
|
type: NgModule,
|
|
223
223
|
args: [{
|
|
224
224
|
declarations: [FormlyWrapperFormField],
|
|
@@ -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.config.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, inject } 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 [class]=\"props.itemClass\" [style]=\"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 [class]=\"props.labelClass || formState.labelClass\"\n [style]=\"props.labelStyle || formState.labelStyle\"\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\n [nzFor]=\"props['noFor'] ? undefined : 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 [class]=\"props.controlClass || formState.controlClass\"\n [style]=\"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 standalone: false\n})\nexport class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {\n public fieldTemplates = inject(FormlyBoxTemplates, { optional: true });\n constructor() {\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 type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\nexport function withFormlyFormField(): ConfigOption {\n return {\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField\n }\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 { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { withFormlyFormField } from './form-field.config';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n NzOutletModule,\n FormlyModule.forChild(withFormlyFormField())\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;AA4EG,MAAO,sBAAuB,SAAQ,YAAmD,CAAA;AAE7F,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAFF,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAGtE;AAEA,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC;IACxE;AACA,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;IACjE;AACA,IAAA,IAAI,QAAQ,GAAA;QACV,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC;IAC7C;AAEA,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;IACjE;AAEA,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC;IACrE;AAEA,IAAA,IAAI,YAAY,GAAA;AACd,QAA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UAAA,EAAA,CAAA;kBAVnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,cAAc;AACd,wBAAA,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE;AAC5C;AACF,iBAAA;;;AClBD;;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.config.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, inject } 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 [class]=\"props.itemClass\" [style]=\"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 [class]=\"props.labelClass || formState.labelClass\"\n [style]=\"props.labelStyle || formState.labelStyle\"\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\n [nzFor]=\"props['noFor'] ? undefined : 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 [class]=\"props.controlClass || formState.controlClass\"\n [style]=\"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 standalone: false\n})\nexport class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {\n public fieldTemplates = inject(FormlyBoxTemplates, { optional: true });\n constructor() {\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 type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\nexport function withFormlyFormField(): ConfigOption {\n return {\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField\n }\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 { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { withFormlyFormField } from './form-field.config';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n NzOutletModule,\n FormlyModule.forChild(withFormlyFormField())\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;AA4EG,MAAO,sBAAuB,SAAQ,YAAmD,CAAA;AAE7F,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAFF,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAGtE;AAEA,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC;IACxE;AACA,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;IACjE;AACA,IAAA,IAAI,QAAQ,GAAA;QACV,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC;IAC7C;AAEA,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;IACjE;AAEA,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC;IACrE;AAEA,IAAA,IAAI,YAAY,GAAA;AACd,QAAA,OAAO,cAAc,CAAC,IAA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C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,cAAc;AACd,wBAAA,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE;AAC5C;AACF,iBAAA;;;AClBD;;AAEG;;;;"}
|
|
@@ -10,8 +10,8 @@ import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
class FormlyFieldGrid extends FieldType {
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: FormlyFieldGrid, isStandalone: false, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
|
15
15
|
<div
|
|
16
16
|
nz-row
|
|
17
17
|
[style]="props['style']"
|
|
@@ -42,7 +42,7 @@ class FormlyFieldGrid extends FieldType {
|
|
|
42
42
|
</div>
|
|
43
43
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.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: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
44
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldGrid, decorators: [{
|
|
46
46
|
type: Component,
|
|
47
47
|
args: [{
|
|
48
48
|
selector: 'formly-field-grid',
|
|
@@ -93,11 +93,11 @@ function withFormlyFieldGrid() {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
class FormlyNzGridModule {
|
|
96
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
97
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
98
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
96
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
97
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule, NzGridModule, i2.FormlyModule] }); }
|
|
98
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule, NzGridModule, FormlyModule.forChild(withFormlyFieldGrid())] }); }
|
|
99
99
|
}
|
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzGridModule, decorators: [{
|
|
101
101
|
type: NgModule,
|
|
102
102
|
args: [{
|
|
103
103
|
declarations: [FormlyFieldGrid],
|
|
@@ -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.config.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 [style]=\"props['style']\"\n [class]=\"props['className']\"\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]=\"props.independent ? props.flex : item.props?.['flex'] || props.flex\"\n [nzOffset]=\"props.independent ? props.offset : item.props?.['offset'] || props.offset\"\n [nzOrder]=\"props.independent ? props.order : item.props?.['order'] || props.order\"\n [nzPull]=\"props.independent ? props.pull : item.props?.['pull'] || props.pull\"\n [nzPush]=\"props.independent ? props.push : item.props?.['push'] || props.push\"\n [nzSpan]=\"props.independent ? props.span : item.props?.['span'] || props.span\"\n [nzXs]=\"props.independent ? props.xs : item.props?.['xs'] || props.xs\"\n [nzSm]=\"props.independent ? props.sm : item.props?.['sm'] || props.sm\"\n [nzMd]=\"props.independent ? props.md : item.props?.['md'] || props.md\"\n [nzLg]=\"props.independent ? props.lg : item.props?.['lg'] || props.lg\"\n [nzXl]=\"props.independent ? props.xl : item.props?.['xl'] || props.xl\"\n [nzXXl]=\"props.independent ? props.xxl : item.props?.['xxl'] || props.xxl\"\n ></formly-field>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\n","import type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldGrid } from './grid.type';\n\nexport function withFormlyFieldGrid(): ConfigOption {\n return {\n types: [\n {\n name: 'grid',\n component: FormlyFieldGrid\n }\n ]\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldGrid } from './grid.type';\nimport { withFormlyFieldGrid } from './grid.config';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\n\n@NgModule({\n declarations: [FormlyFieldGrid],\n imports: [CommonModule, NzGridModule, FormlyModule.forChild(withFormlyFieldGrid())]\n})\nexport class FormlyNzGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAQA;;AAEG;AAoCG,MAAO,eAAgB,SAAQ,SAAqC,CAAA
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-grid.mjs","sources":["../../../../packages/formlyantd/grid/src/grid.type.ts","../../../../packages/formlyantd/grid/src/grid.config.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 [style]=\"props['style']\"\n [class]=\"props['className']\"\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]=\"props.independent ? props.flex : item.props?.['flex'] || props.flex\"\n [nzOffset]=\"props.independent ? props.offset : item.props?.['offset'] || props.offset\"\n [nzOrder]=\"props.independent ? props.order : item.props?.['order'] || props.order\"\n [nzPull]=\"props.independent ? props.pull : item.props?.['pull'] || props.pull\"\n [nzPush]=\"props.independent ? props.push : item.props?.['push'] || props.push\"\n [nzSpan]=\"props.independent ? props.span : item.props?.['span'] || props.span\"\n [nzXs]=\"props.independent ? props.xs : item.props?.['xs'] || props.xs\"\n [nzSm]=\"props.independent ? props.sm : item.props?.['sm'] || props.sm\"\n [nzMd]=\"props.independent ? props.md : item.props?.['md'] || props.md\"\n [nzLg]=\"props.independent ? props.lg : item.props?.['lg'] || props.lg\"\n [nzXl]=\"props.independent ? props.xl : item.props?.['xl'] || props.xl\"\n [nzXXl]=\"props.independent ? props.xxl : item.props?.['xxl'] || props.xxl\"\n ></formly-field>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\n","import type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldGrid } from './grid.type';\n\nexport function withFormlyFieldGrid(): ConfigOption {\n return {\n types: [\n {\n name: 'grid',\n component: FormlyFieldGrid\n }\n ]\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldGrid } from './grid.type';\nimport { withFormlyFieldGrid } from './grid.config';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\n\n@NgModule({\n declarations: [FormlyFieldGrid],\n imports: [CommonModule, NzGridModule, FormlyModule.forChild(withFormlyFieldGrid())]\n})\nexport class FormlyNzGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAQA;;AAEG;AAoCG,MAAO,eAAgB,SAAQ,SAAqC,CAAA;8GAA7D,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAjChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,+CAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,SAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,WAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA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AAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;2FAEvE,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;AACnF,iBAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -20,8 +20,8 @@ class FormlyFieldInputGroup extends FieldType {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: FormlyFieldInputGroup, isStandalone: false, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
|
25
25
|
<nz-input-group
|
|
26
26
|
[nzPrefixIcon]="props['prefixIcon']"
|
|
27
27
|
[nzSuffixIcon]="props['suffixIcon']"
|
|
@@ -43,7 +43,7 @@ class FormlyFieldInputGroup extends FieldType {
|
|
|
43
43
|
</nz-input-group>
|
|
44
44
|
`, isInline: true, dependencies: [{ kind: "component", type: i1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
48
|
args: [{
|
|
49
49
|
selector: 'formly-field-input-group',
|
|
@@ -86,11 +86,11 @@ function withFormlyFieldInputGroup() {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
class FormlyNzInputGroupModule {
|
|
89
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
90
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
91
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
90
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule, NzInputModule, FormlyNzFormFieldModule, i2.FormlyModule] }); }
|
|
91
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule, NzInputModule, FormlyNzFormFieldModule, FormlyModule.forChild(withFormlyFieldInputGroup())] }); }
|
|
92
92
|
}
|
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
|
|
94
94
|
type: NgModule,
|
|
95
95
|
args: [{
|
|
96
96
|
declarations: [FormlyFieldInputGroup],
|
|
@@ -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.config.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\n/**\n * @deprecated Use `space-compact` instead.\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 [nzSearch]=\"!!props['search']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [class]=\"props['className']\"\n [style]=\"props['style']\"\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 standalone: false\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 type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInputGroup } from './input-group.type';\n\nexport function withFormlyFieldInputGroup(): ConfigOption {\n return {\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\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 { withFormlyFieldInputGroup } from './input-group.config';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [CommonModule, NzInputModule, FormlyNzFormFieldModule, FormlyModule.forChild(withFormlyFieldInputGroup())]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAWA;;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;AACP;SACF;AACF,IAAA
|
|
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.config.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\n/**\n * @deprecated Use `space-compact` instead.\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 [nzSearch]=\"!!props['search']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [class]=\"props['className']\"\n [style]=\"props['style']\"\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 standalone: false\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 type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInputGroup } from './input-group.type';\n\nexport function withFormlyFieldInputGroup(): ConfigOption {\n return {\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\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 { withFormlyFieldInputGroup } from './input-group.config';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [CommonModule, NzInputModule, FormlyNzFormFieldModule, FormlyModule.forChild(withFormlyFieldInputGroup())]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAWA;;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;AACP;SACF;AACF,IAAA;8GAPY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAxBtB;;;;;;;;;;;;;;;;;;;;AAoBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,kBAAA,EAAA,cAAA,EAAA,cAAA,EAAA,eAAA,EAAA,cAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,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,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,EAAA,OAAA,EAAA,CAFzB,YAAY,EAAE,aAAa,EAAE,uBAAuB,EAAE,YAAY,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;2FAEvG,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,uBAAuB,EAAE,YAAY,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC;AACnH,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -47,8 +47,8 @@ class FormlyFieldInputNumber extends FieldType {
|
|
|
47
47
|
get suffix() {
|
|
48
48
|
return resolveTplName(this.props, this.fieldTemplates, 'suffix');
|
|
49
49
|
}
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
51
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
51
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: FormlyFieldInputNumber, isStandalone: false, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
|
52
52
|
<nz-input-number
|
|
53
53
|
[formControl]="formControl"
|
|
54
54
|
[nzId]="id"
|
|
@@ -112,9 +112,9 @@ class FormlyFieldInputNumber extends FieldType {
|
|
|
112
112
|
</ng-container>
|
|
113
113
|
}
|
|
114
114
|
</nz-input-number>
|
|
115
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "
|
|
115
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzKeyboard", "nzControls", "nzChangeOnWheel", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "directive", type: i3.NzInputAddonBeforeDirective, selector: "[nzInputAddonBefore]" }, { kind: "directive", type: i3.NzInputAddonAfterDirective, selector: "[nzInputAddonAfter]" }, { kind: "directive", type: i3.NzInputPrefixDirective, selector: "[nzInputPrefix]" }, { kind: "directive", type: i3.NzInputSuffixDirective, selector: "[nzInputSuffix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
116
116
|
}
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
|
118
118
|
type: Component,
|
|
119
119
|
args: [{
|
|
120
120
|
selector: 'formly-field-inputnumber',
|
|
@@ -205,14 +205,14 @@ function withFormlyFieldInputNumber() {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
class FormlyNzInputNumberModule {
|
|
208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
209
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
209
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
|
|
210
210
|
ReactiveFormsModule,
|
|
211
211
|
FormlyNzFormFieldModule,
|
|
212
212
|
NzInputNumberModule,
|
|
213
213
|
NzIconModule,
|
|
214
214
|
NzOutletModule, i1$1.FormlyModule] }); }
|
|
215
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
215
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
|
|
216
216
|
ReactiveFormsModule,
|
|
217
217
|
FormlyNzFormFieldModule,
|
|
218
218
|
NzInputNumberModule,
|
|
@@ -220,7 +220,7 @@ class FormlyNzInputNumberModule {
|
|
|
220
220
|
NzOutletModule,
|
|
221
221
|
FormlyModule.forChild(withFormlyFieldInputNumber())] }); }
|
|
222
222
|
}
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
|
|
224
224
|
type: NgModule,
|
|
225
225
|
args: [{
|
|
226
226
|
declarations: [FormlyFieldInputNumber],
|
|
@@ -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.config.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, inject, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\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 <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 ?? null\"\n [nzAutoFocus]=\"!!props['autoFocus']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzVariant]=\"props['variant']!\"\n [nzControls]=\"!!props['controls']\"\n [nzKeyboard]=\"!!props['keyboard']\"\n [nzPrecision]=\"props['precision']!\"\n [nzStep]=\"props['step']\"\n [nzFormatter]=\"props['formatter']\"\n [nzParser]=\"props['parser']\"\n [class]=\"props['className']\"\n (nzOnStep)=\"props['onStep']?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n >\n @let beforeTpl = addOnBefore;\n @let beforeIcon = props['addOnBeforeIcon'];\n @if (beforeTpl || beforeIcon) {\n <ng-container nzInputAddonBefore>\n @if (beforeIcon) {\n <nz-icon [nzType]=\"beforeIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"beforeTpl\">{{ beforeTpl }}</ng-container>\n </ng-container>\n }\n @let afterTpl = addOnAfter;\n @let afterIcon = props['addOnAfterIcon'];\n @if (afterTpl || afterIcon) {\n <ng-container nzInputAddonAfter>\n @if (afterIcon) {\n <nz-icon [nzType]=\"afterIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"afterTpl\">{{ afterTpl }}</ng-container>\n </ng-container>\n }\n @let prefixTpl = prefix;\n @let prefixIcon = props['prefixIcon'];\n @if (prefixTpl || prefixIcon) {\n <ng-container nzInputPrefix>\n @if (prefixIcon) {\n <nz-icon [nzType]=\"prefixIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"prefixTpl\">{{ prefixTpl }}</ng-container>\n </ng-container>\n }\n @let suffixTpl = suffix;\n @let suffixIcon = props['suffixIcon'];\n @if (suffixTpl || suffixIcon) {\n <ng-container nzInputSuffix>\n @if (suffixIcon) {\n <nz-icon [nzType]=\"suffixIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"suffixTpl\">{{ suffixTpl }}</ng-container>\n </ng-container>\n }\n </nz-input-number>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig<InputNumberProps>> {\n override defaultOptions = {\n props: {\n max: Number.MAX_SAFE_INTEGER,\n min: Number.MIN_SAFE_INTEGER,\n controls: true,\n keyboard: true,\n variant: 'outlined' as const,\n size: 'default' as const,\n status: '' as const,\n step: 1\n }\n };\n fieldTemplates = inject(FormlyBoxTemplates, { optional: true });\n\n get addOnBefore() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnBefore');\n }\n get addOnAfter() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnAfter');\n }\n get prefix() {\n return resolveTplName(this.props, this.fieldTemplates, 'prefix');\n }\n get suffix() {\n return resolveTplName(this.props, this.fieldTemplates, 'suffix');\n }\n}\n","import type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInputNumber } from './input-number.type';\n\nexport function withFormlyFieldInputNumber(): ConfigOption {\n return {\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","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 { withFormlyFieldInputNumber } from './input-number.config';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\n@NgModule({\n declarations: [FormlyFieldInputNumber],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputNumberModule,\n NzIconModule,\n NzOutletModule,\n\n FormlyModule.forChild(withFormlyFieldInputNumber())\n ]\n})\nexport class FormlyNzInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AASA;;AAEG;AAuEG,MAAO,sBAAuB,SAAQ,SAA4C,CAAA;AAtExF,IAAA,WAAA,GAAA;;AAuEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,GAAG,EAAE,MAAM,CAAC,gBAAgB;gBAC5B,GAAG,EAAE,MAAM,CAAC,gBAAgB;AAC5B,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,OAAO,EAAE,UAAmB;AAC5B,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE;AACP;SACF;QACD,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAchE,IAAA;AAZC,IAAA,IAAI,WAAW,GAAA;AACb,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IACvE;AACA,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC;IACtE;AACA,IAAA,IAAI,MAAM,GAAA;AACR,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC;IAClE;AACA,IAAA,IAAI,MAAM,GAAA;AACR,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC;IAClE
|
|
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.config.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, inject, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\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 <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 ?? null\"\n [nzAutoFocus]=\"!!props['autoFocus']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzVariant]=\"props['variant']!\"\n [nzControls]=\"!!props['controls']\"\n [nzKeyboard]=\"!!props['keyboard']\"\n [nzPrecision]=\"props['precision']!\"\n [nzStep]=\"props['step']\"\n [nzFormatter]=\"props['formatter']\"\n [nzParser]=\"props['parser']\"\n [class]=\"props['className']\"\n (nzOnStep)=\"props['onStep']?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n >\n @let beforeTpl = addOnBefore;\n @let beforeIcon = props['addOnBeforeIcon'];\n @if (beforeTpl || beforeIcon) {\n <ng-container nzInputAddonBefore>\n @if (beforeIcon) {\n <nz-icon [nzType]=\"beforeIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"beforeTpl\">{{ beforeTpl }}</ng-container>\n </ng-container>\n }\n @let afterTpl = addOnAfter;\n @let afterIcon = props['addOnAfterIcon'];\n @if (afterTpl || afterIcon) {\n <ng-container nzInputAddonAfter>\n @if (afterIcon) {\n <nz-icon [nzType]=\"afterIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"afterTpl\">{{ afterTpl }}</ng-container>\n </ng-container>\n }\n @let prefixTpl = prefix;\n @let prefixIcon = props['prefixIcon'];\n @if (prefixTpl || prefixIcon) {\n <ng-container nzInputPrefix>\n @if (prefixIcon) {\n <nz-icon [nzType]=\"prefixIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"prefixTpl\">{{ prefixTpl }}</ng-container>\n </ng-container>\n }\n @let suffixTpl = suffix;\n @let suffixIcon = props['suffixIcon'];\n @if (suffixTpl || suffixIcon) {\n <ng-container nzInputSuffix>\n @if (suffixIcon) {\n <nz-icon [nzType]=\"suffixIcon\" />\n }\n <ng-container *nzStringTemplateOutlet=\"suffixTpl\">{{ suffixTpl }}</ng-container>\n </ng-container>\n }\n </nz-input-number>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig<InputNumberProps>> {\n override defaultOptions = {\n props: {\n max: Number.MAX_SAFE_INTEGER,\n min: Number.MIN_SAFE_INTEGER,\n controls: true,\n keyboard: true,\n variant: 'outlined' as const,\n size: 'default' as const,\n status: '' as const,\n step: 1\n }\n };\n fieldTemplates = inject(FormlyBoxTemplates, { optional: true });\n\n get addOnBefore() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnBefore');\n }\n get addOnAfter() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnAfter');\n }\n get prefix() {\n return resolveTplName(this.props, this.fieldTemplates, 'prefix');\n }\n get suffix() {\n return resolveTplName(this.props, this.fieldTemplates, 'suffix');\n }\n}\n","import type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInputNumber } from './input-number.type';\n\nexport function withFormlyFieldInputNumber(): ConfigOption {\n return {\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","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 { withFormlyFieldInputNumber } from './input-number.config';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\n@NgModule({\n declarations: [FormlyFieldInputNumber],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputNumberModule,\n NzIconModule,\n NzOutletModule,\n\n FormlyModule.forChild(withFormlyFieldInputNumber())\n ]\n})\nexport class FormlyNzInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AASA;;AAEG;AAuEG,MAAO,sBAAuB,SAAQ,SAA4C,CAAA;AAtExF,IAAA,WAAA,GAAA;;AAuEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,GAAG,EAAE,MAAM,CAAC,gBAAgB;gBAC5B,GAAG,EAAE,MAAM,CAAC,gBAAgB;AAC5B,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,OAAO,EAAE,UAAmB;AAC5B,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE;AACP;SACF;QACD,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAchE,IAAA;AAZC,IAAA,IAAI,WAAW,GAAA;AACb,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IACvE;AACA,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,OAAO,cAAc,CAAC,IAAI,CA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