ngx-formly-zorro-antd 17.0.11 → 17.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +2 -4
- package/autocomplete/package.json +3 -0
- package/button/package.json +3 -0
- package/button-group/package.json +3 -0
- package/card/card.module.d.ts +1 -1
- package/card/package.json +3 -0
- package/card-wrapper/card-wrapper.props.d.ts +3 -2
- package/card-wrapper/package.json +3 -0
- package/cascader/package.json +3 -0
- package/checkbox/package.json +3 -0
- package/common/interface.d.ts +3 -1
- package/common/package.json +3 -0
- package/datepicker/package.json +3 -0
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +1 -1
- package/esm2022/button/button.type.mjs +123 -123
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +1 -1
- package/esm2022/button-group/button-group.type.mjs +67 -67
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +3 -4
- package/esm2022/card/card.type.mjs +51 -51
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +65 -65
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +39 -39
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +1 -1
- package/esm2022/common/formly-box-templates.directive.mjs +1 -1
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +1 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +149 -149
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +159 -125
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +59 -59
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +275 -275
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +1 -1
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +39 -39
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +81 -81
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +33 -33
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +123 -123
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +33 -33
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +27 -27
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +25 -25
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +79 -79
- package/esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs +5 -0
- package/esm2022/text-value/public_api.mjs +3 -0
- package/esm2022/text-value/text-value.module.mjs +46 -0
- package/esm2022/text-value/text-value.type.mjs +68 -0
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +113 -113
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +61 -61
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +47 -47
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +69 -69
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +145 -145
- package/esm2022/upload/upload.module.mjs +1 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +88 -87
- package/extension/package.json +3 -0
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +52 -53
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +158 -124
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +274 -274
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +115 -0
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +230 -230
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +24 -16
- package/form-field/form-field.wrapper.d.ts +4 -0
- package/form-field/package.json +3 -0
- package/grid/grid.props.d.ts +6 -9
- package/grid/package.json +3 -0
- package/input/package.json +3 -0
- package/input-group/package.json +3 -0
- package/input-number/package.json +3 -0
- package/package.json +19 -13
- package/radio/package.json +3 -0
- package/rate/package.json +3 -0
- package/ref-template/package.json +3 -0
- package/select/package.json +3 -0
- package/slider/package.json +3 -0
- package/space/package.json +3 -0
- package/switch/package.json +3 -0
- package/tabs/package.json +3 -0
- package/text-value/index.d.ts +5 -0
- package/text-value/package.json +3 -0
- package/text-value/public_api.d.ts +2 -0
- package/text-value/text-value.module.d.ts +11 -0
- package/text-value/text-value.type.d.ts +37 -0
- package/textarea/package.json +3 -0
- package/timepicker/package.json +3 -0
- package/transfer/package.json +3 -0
- package/tree-select/package.json +3 -0
- package/tree-select/tree-select.type.d.ts +2 -3
- package/upload/package.json +3 -0
- package/upload/upload.component.d.ts +3 -4
@@ -36,160 +36,160 @@ class FormlyFieldDatepicker extends FieldType {
|
|
36
36
|
};
|
37
37
|
}
|
38
38
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
|
40
|
-
<nz-range-picker
|
41
|
-
[nzId]="id"
|
42
|
-
[formControl]="formControl"
|
43
|
-
[formlyAttributes]="field"
|
44
|
-
[ngClass]="props['
|
45
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
46
|
-
[nzAllowClear]="props['allowClear']!!"
|
47
|
-
[nzAutoFocus]="props['autoFocus']!!"
|
48
|
-
[nzBackdrop]="props['backdrop']!!"
|
49
|
-
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
50
|
-
[nzDisabledDate]="props['disabledDate']"
|
51
|
-
[nzDropdownClassName]="props['dropdownClassName']"
|
52
|
-
[nzFormat]="props['format']"
|
53
|
-
[nzInputReadOnly]="props['inputReadOnly']!!"
|
54
|
-
[nzMode]="props['mode']"
|
55
|
-
[nzPopupStyle]="props['popupStyle']"
|
56
|
-
[nzSize]="props['size']"
|
57
|
-
[nzStatus]="props['status'] ?? ''"
|
58
|
-
[nzPlacement]="props['placement']"
|
59
|
-
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
60
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
61
|
-
[nzBorderless]="props['borderless']"
|
62
|
-
[nzInline]="props['inline']"
|
63
|
-
[nzDateRender]="props['dateRender']"
|
64
|
-
[nzDisabledTime]="props['rangeOptions']?.disabledTime"
|
65
|
-
[nzShowTime]="props['showTime']"
|
66
|
-
[nzShowToday]="props['showToday']!!"
|
67
|
-
[nzShowNow]="props['showNow']!!"
|
68
|
-
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
69
|
-
[nzRanges]="props['rangeOptions']?.ranges"
|
70
|
-
[nzSeparator]="props['rangeOptions']?.separator"
|
71
|
-
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
72
|
-
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
73
|
-
(nzOnCalendarChange)="
|
74
|
-
props['rangeOptions']?.calendarChange &&
|
75
|
-
props['rangeOptions']?.calendarChange(field, $event)
|
76
|
-
"
|
77
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
78
|
-
></nz-range-picker>
|
79
|
-
} @else {
|
80
|
-
<nz-date-picker
|
81
|
-
[nzId]="id"
|
82
|
-
[formControl]="formControl"
|
83
|
-
[formlyAttributes]="field"
|
84
|
-
[ngClass]="props['
|
85
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
86
|
-
[nzAllowClear]="props['allowClear']!!"
|
87
|
-
[nzAutoFocus]="props['autoFocus']!!"
|
88
|
-
[nzBackdrop]="props['backdrop']!!"
|
89
|
-
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
90
|
-
[nzDisabledDate]="props['disabledDate']"
|
91
|
-
[nzDropdownClassName]="props['dropdownClassName']"
|
92
|
-
[nzFormat]="props['format']"
|
93
|
-
[nzInputReadOnly]="props['inputReadOnly']!!"
|
94
|
-
[nzMode]="props['mode']"
|
95
|
-
[nzPopupStyle]="props['popupStyle']!"
|
96
|
-
[nzSize]="props['size']!"
|
97
|
-
[nzStatus]="props['status']!"
|
98
|
-
[nzPlacement]="props['placement']!"
|
99
|
-
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
100
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
101
|
-
[nzBorderless]="props['borderless']"
|
102
|
-
[nzInline]="props['inline']"
|
103
|
-
[nzDateRender]="props['dateRender']"
|
104
|
-
[nzDisabledTime]="props['disabledTime']"
|
105
|
-
[nzShowTime]="props['showTime']"
|
106
|
-
[nzShowToday]="props['showToday']!!"
|
107
|
-
[nzShowNow]="props['showNow']!!"
|
108
|
-
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
109
|
-
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
110
|
-
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
111
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
112
|
-
></nz-date-picker>
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
|
40
|
+
<nz-range-picker
|
41
|
+
[nzId]="id"
|
42
|
+
[formControl]="formControl"
|
43
|
+
[formlyAttributes]="field"
|
44
|
+
[ngClass]="props['ngClass']"
|
45
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
46
|
+
[nzAllowClear]="props['allowClear']!!"
|
47
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
48
|
+
[nzBackdrop]="props['backdrop']!!"
|
49
|
+
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
50
|
+
[nzDisabledDate]="props['disabledDate']"
|
51
|
+
[nzDropdownClassName]="props['dropdownClassName']"
|
52
|
+
[nzFormat]="props['format']"
|
53
|
+
[nzInputReadOnly]="props['inputReadOnly']!!"
|
54
|
+
[nzMode]="props['mode']"
|
55
|
+
[nzPopupStyle]="props['popupStyle']"
|
56
|
+
[nzSize]="props['size']"
|
57
|
+
[nzStatus]="props['status'] ?? ''"
|
58
|
+
[nzPlacement]="props['placement']"
|
59
|
+
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
60
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
61
|
+
[nzBorderless]="props['borderless']"
|
62
|
+
[nzInline]="props['inline']"
|
63
|
+
[nzDateRender]="props['dateRender']"
|
64
|
+
[nzDisabledTime]="props['rangeOptions']?.disabledTime"
|
65
|
+
[nzShowTime]="props['showTime']"
|
66
|
+
[nzShowToday]="props['showToday']!!"
|
67
|
+
[nzShowNow]="props['showNow']!!"
|
68
|
+
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
69
|
+
[nzRanges]="props['rangeOptions']?.ranges"
|
70
|
+
[nzSeparator]="props['rangeOptions']?.separator"
|
71
|
+
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
72
|
+
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
73
|
+
(nzOnCalendarChange)="
|
74
|
+
props['rangeOptions']?.calendarChange &&
|
75
|
+
props['rangeOptions']?.calendarChange(field, $event)
|
76
|
+
"
|
77
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
78
|
+
></nz-range-picker>
|
79
|
+
} @else {
|
80
|
+
<nz-date-picker
|
81
|
+
[nzId]="id"
|
82
|
+
[formControl]="formControl"
|
83
|
+
[formlyAttributes]="field"
|
84
|
+
[ngClass]="props['ngClass']"
|
85
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
86
|
+
[nzAllowClear]="props['allowClear']!!"
|
87
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
88
|
+
[nzBackdrop]="props['backdrop']!!"
|
89
|
+
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
90
|
+
[nzDisabledDate]="props['disabledDate']"
|
91
|
+
[nzDropdownClassName]="props['dropdownClassName']"
|
92
|
+
[nzFormat]="props['format']"
|
93
|
+
[nzInputReadOnly]="props['inputReadOnly']!!"
|
94
|
+
[nzMode]="props['mode']"
|
95
|
+
[nzPopupStyle]="props['popupStyle']!"
|
96
|
+
[nzSize]="props['size']!"
|
97
|
+
[nzStatus]="props['status']!"
|
98
|
+
[nzPlacement]="props['placement']!"
|
99
|
+
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
100
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
101
|
+
[nzBorderless]="props['borderless']"
|
102
|
+
[nzInline]="props['inline']"
|
103
|
+
[nzDateRender]="props['dateRender']"
|
104
|
+
[nzDisabledTime]="props['disabledTime']"
|
105
|
+
[nzShowTime]="props['showTime']"
|
106
|
+
[nzShowToday]="props['showToday']!!"
|
107
|
+
[nzShowNow]="props['showNow']!!"
|
108
|
+
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
109
|
+
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
110
|
+
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
111
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
112
|
+
></nz-date-picker>
|
113
113
|
}`, 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"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
114
114
|
}
|
115
115
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
|
116
116
|
type: Component,
|
117
117
|
args: [{
|
118
118
|
selector: 'formly-field-datepicker',
|
119
|
-
template: ` @if (props.type === 'range') {
|
120
|
-
<nz-range-picker
|
121
|
-
[nzId]="id"
|
122
|
-
[formControl]="formControl"
|
123
|
-
[formlyAttributes]="field"
|
124
|
-
[ngClass]="props['
|
125
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
126
|
-
[nzAllowClear]="props['allowClear']!!"
|
127
|
-
[nzAutoFocus]="props['autoFocus']!!"
|
128
|
-
[nzBackdrop]="props['backdrop']!!"
|
129
|
-
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
130
|
-
[nzDisabledDate]="props['disabledDate']"
|
131
|
-
[nzDropdownClassName]="props['dropdownClassName']"
|
132
|
-
[nzFormat]="props['format']"
|
133
|
-
[nzInputReadOnly]="props['inputReadOnly']!!"
|
134
|
-
[nzMode]="props['mode']"
|
135
|
-
[nzPopupStyle]="props['popupStyle']"
|
136
|
-
[nzSize]="props['size']"
|
137
|
-
[nzStatus]="props['status'] ?? ''"
|
138
|
-
[nzPlacement]="props['placement']"
|
139
|
-
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
140
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
141
|
-
[nzBorderless]="props['borderless']"
|
142
|
-
[nzInline]="props['inline']"
|
143
|
-
[nzDateRender]="props['dateRender']"
|
144
|
-
[nzDisabledTime]="props['rangeOptions']?.disabledTime"
|
145
|
-
[nzShowTime]="props['showTime']"
|
146
|
-
[nzShowToday]="props['showToday']!!"
|
147
|
-
[nzShowNow]="props['showNow']!!"
|
148
|
-
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
149
|
-
[nzRanges]="props['rangeOptions']?.ranges"
|
150
|
-
[nzSeparator]="props['rangeOptions']?.separator"
|
151
|
-
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
152
|
-
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
153
|
-
(nzOnCalendarChange)="
|
154
|
-
props['rangeOptions']?.calendarChange &&
|
155
|
-
props['rangeOptions']?.calendarChange(field, $event)
|
156
|
-
"
|
157
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
158
|
-
></nz-range-picker>
|
159
|
-
} @else {
|
160
|
-
<nz-date-picker
|
161
|
-
[nzId]="id"
|
162
|
-
[formControl]="formControl"
|
163
|
-
[formlyAttributes]="field"
|
164
|
-
[ngClass]="props['
|
165
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
166
|
-
[nzAllowClear]="props['allowClear']!!"
|
167
|
-
[nzAutoFocus]="props['autoFocus']!!"
|
168
|
-
[nzBackdrop]="props['backdrop']!!"
|
169
|
-
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
170
|
-
[nzDisabledDate]="props['disabledDate']"
|
171
|
-
[nzDropdownClassName]="props['dropdownClassName']"
|
172
|
-
[nzFormat]="props['format']"
|
173
|
-
[nzInputReadOnly]="props['inputReadOnly']!!"
|
174
|
-
[nzMode]="props['mode']"
|
175
|
-
[nzPopupStyle]="props['popupStyle']!"
|
176
|
-
[nzSize]="props['size']!"
|
177
|
-
[nzStatus]="props['status']!"
|
178
|
-
[nzPlacement]="props['placement']!"
|
179
|
-
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
180
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
181
|
-
[nzBorderless]="props['borderless']"
|
182
|
-
[nzInline]="props['inline']"
|
183
|
-
[nzDateRender]="props['dateRender']"
|
184
|
-
[nzDisabledTime]="props['disabledTime']"
|
185
|
-
[nzShowTime]="props['showTime']"
|
186
|
-
[nzShowToday]="props['showToday']!!"
|
187
|
-
[nzShowNow]="props['showNow']!!"
|
188
|
-
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
189
|
-
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
190
|
-
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
191
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
192
|
-
></nz-date-picker>
|
119
|
+
template: ` @if (props.type === 'range') {
|
120
|
+
<nz-range-picker
|
121
|
+
[nzId]="id"
|
122
|
+
[formControl]="formControl"
|
123
|
+
[formlyAttributes]="field"
|
124
|
+
[ngClass]="props['ngClass']"
|
125
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
126
|
+
[nzAllowClear]="props['allowClear']!!"
|
127
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
128
|
+
[nzBackdrop]="props['backdrop']!!"
|
129
|
+
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
130
|
+
[nzDisabledDate]="props['disabledDate']"
|
131
|
+
[nzDropdownClassName]="props['dropdownClassName']"
|
132
|
+
[nzFormat]="props['format']"
|
133
|
+
[nzInputReadOnly]="props['inputReadOnly']!!"
|
134
|
+
[nzMode]="props['mode']"
|
135
|
+
[nzPopupStyle]="props['popupStyle']"
|
136
|
+
[nzSize]="props['size']"
|
137
|
+
[nzStatus]="props['status'] ?? ''"
|
138
|
+
[nzPlacement]="props['placement']"
|
139
|
+
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
140
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
141
|
+
[nzBorderless]="props['borderless']"
|
142
|
+
[nzInline]="props['inline']"
|
143
|
+
[nzDateRender]="props['dateRender']"
|
144
|
+
[nzDisabledTime]="props['rangeOptions']?.disabledTime"
|
145
|
+
[nzShowTime]="props['showTime']"
|
146
|
+
[nzShowToday]="props['showToday']!!"
|
147
|
+
[nzShowNow]="props['showNow']!!"
|
148
|
+
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
149
|
+
[nzRanges]="props['rangeOptions']?.ranges"
|
150
|
+
[nzSeparator]="props['rangeOptions']?.separator"
|
151
|
+
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
152
|
+
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
153
|
+
(nzOnCalendarChange)="
|
154
|
+
props['rangeOptions']?.calendarChange &&
|
155
|
+
props['rangeOptions']?.calendarChange(field, $event)
|
156
|
+
"
|
157
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
158
|
+
></nz-range-picker>
|
159
|
+
} @else {
|
160
|
+
<nz-date-picker
|
161
|
+
[nzId]="id"
|
162
|
+
[formControl]="formControl"
|
163
|
+
[formlyAttributes]="field"
|
164
|
+
[ngClass]="props['ngClass']"
|
165
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
166
|
+
[nzAllowClear]="props['allowClear']!!"
|
167
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
168
|
+
[nzBackdrop]="props['backdrop']!!"
|
169
|
+
[nzDefaultPickerValue]="props['defaultPickerValue']"
|
170
|
+
[nzDisabledDate]="props['disabledDate']"
|
171
|
+
[nzDropdownClassName]="props['dropdownClassName']"
|
172
|
+
[nzFormat]="props['format']"
|
173
|
+
[nzInputReadOnly]="props['inputReadOnly']!!"
|
174
|
+
[nzMode]="props['mode']"
|
175
|
+
[nzPopupStyle]="props['popupStyle']!"
|
176
|
+
[nzSize]="props['size']!"
|
177
|
+
[nzStatus]="props['status']!"
|
178
|
+
[nzPlacement]="props['placement']!"
|
179
|
+
[nzRenderExtraFooter]="props['renderExtraFooter']"
|
180
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
181
|
+
[nzBorderless]="props['borderless']"
|
182
|
+
[nzInline]="props['inline']"
|
183
|
+
[nzDateRender]="props['dateRender']"
|
184
|
+
[nzDisabledTime]="props['disabledTime']"
|
185
|
+
[nzShowTime]="props['showTime']"
|
186
|
+
[nzShowToday]="props['showToday']!!"
|
187
|
+
[nzShowNow]="props['showNow']!!"
|
188
|
+
[nzShowWeekNumber]="props['showWeekNumber']!!"
|
189
|
+
(nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
190
|
+
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
191
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
192
|
+
></nz-date-picker>
|
193
193
|
}`,
|
194
194
|
changeDetection: ChangeDetectionStrategy.OnPush
|
195
195
|
}]
|
@@ -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';\
|
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 [formlyAttributes]=\"field\"\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'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n } @else {\n <nz-date-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\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'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && 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":";;;;;;;;;;;;AAwFM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA/ErE,IAAA,WAAA,GAAA;;AAgFW,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,gBAA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d/extension/value-changes-extension.ts","../../../../packages/formlyantd/extension/ngx-formly-zorro-antd-extension.ts"],"sourcesContent":["import { FormlyExtension } from '@ngx-formly/core';\
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-extension.mjs","sources":["../../../../packages/formlyantd/extension/value-changes-extension.ts","../../../../packages/formlyantd/extension/ngx-formly-zorro-antd-extension.ts"],"sourcesContent":["import { FormlyExtension } from '@ngx-formly/core';\n\n/**\n * 自动添加valueChanges函数\n * @example\n * fields = [\n * {\n * type: 'input',\n * props: {\n * valueChanges: (value, field) => {}\n * }\n * }\n * ]\n */\nexport const valueChangesExtension: FormlyExtension = {\n postPopulate(field): void {\n if (\n !field.formControl ||\n !field.props?.['valueChanges'] ||\n field.props['valueChanges'].observed\n ) {\n return;\n }\n\n field.props['valueChanges'].observed = true;\n field.formControl.valueChanges.subscribe(value => field.props!['valueChanges'](value, field));\n }\n};\n\n/**\n * valueChanges函数配置\n */\nexport const valueChangesExtensionOption = {\n name: 'value-changes',\n extension: valueChangesExtension\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAEA;;;;;;;;;;;AAWG;AACU,MAAA,qBAAqB,GAAoB;AACpD,IAAA,YAAY,CAAC,KAAK,EAAA;QAChB,IACE,CAAC,KAAK,CAAC,WAAW;AAClB,YAAA,CAAC,KAAK,CAAC,KAAK,GAAG,cAAc,CAAC;AAC9B,YAAA,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EACpC;YACA,OAAO;AACR,SAAA;QAED,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC5C,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,IAAI,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;KAC/F;EACD;AAEF;;AAEG;AACU,MAAA,2BAA2B,GAAG;AACzC,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,SAAS,EAAE,qBAAqB;;;AClClC;;AAEG;;;;"}
|