ngx-formly-zorro-antd 15.0.1 → 16.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/button/button.module.mjs +62 -0
- package/{esm2020 → esm2022}/button/button.type.mjs +8 -7
- package/esm2022/card/card.module.mjs +44 -0
- package/esm2022/card/card.wrapper.mjs +48 -0
- package/esm2022/cascader/cascader.module.mjs +52 -0
- package/esm2022/cascader/cascader.type.mjs +113 -0
- package/esm2022/checkbox/checkbox.module.mjs +60 -0
- package/esm2022/checkbox/checkbox.type.mjs +70 -0
- package/esm2022/datepicker/datepicker.module.mjs +52 -0
- package/{esm2020 → esm2022}/datepicker/datepicker.type.mjs +8 -7
- package/esm2022/form-field/form-field.module.mjs +46 -0
- package/{esm2020 → esm2022}/form-field/form-field.wrapper.mjs +8 -7
- package/esm2022/grid/grid.module.mjs +42 -0
- package/{esm2020 → esm2022}/grid/grid.type.mjs +8 -7
- package/esm2022/input/input.module.mjs +90 -0
- package/{esm2020 → esm2022}/input/input.type.mjs +10 -9
- package/esm2022/input-group/input-group.module.mjs +48 -0
- package/esm2022/input-group/input-group.type.mjs +72 -0
- package/esm2022/input-number/input-number.module.mjs +60 -0
- package/{esm2020 → esm2022}/input-number/input-number.type.mjs +8 -7
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +98 -0
- package/esm2022/radio/radio.module.mjs +60 -0
- package/{esm2020 → esm2022}/radio/radio.type.mjs +8 -7
- package/esm2022/rate/rate.module.mjs +52 -0
- package/esm2022/rate/rate.type.mjs +64 -0
- package/esm2022/select/select.module.mjs +58 -0
- package/{esm2020 → esm2022}/select/select.type.mjs +8 -7
- package/esm2022/slider/slider.module.mjs +52 -0
- package/esm2022/slider/slider.type.mjs +68 -0
- package/esm2022/switch/switch.module.mjs +52 -0
- package/esm2022/switch/switch.type.mjs +54 -0
- package/esm2022/tabs/tabs.module.mjs +42 -0
- package/{esm2020 → esm2022}/tabs/tabs.wrapper.mjs +8 -7
- package/esm2022/textarea/textarea.module.mjs +56 -0
- package/{esm2020 → esm2022}/textarea/textarea.type.mjs +10 -9
- package/esm2022/timepicker/timepicker.module.mjs +52 -0
- package/esm2022/timepicker/timepicker.type.mjs +97 -0
- package/esm2022/transfer/transfer.component.mjs +129 -0
- package/esm2022/transfer/transfer.module.mjs +53 -0
- package/esm2022/transfer/transfer.type.mjs +88 -0
- package/esm2022/tree-select/tree-select.module.mjs +52 -0
- package/esm2022/tree-select/tree-select.type.mjs +102 -0
- package/{esm2020 → esm2022}/upload/upload.component.mjs +14 -13
- package/esm2022/upload/upload.module.mjs +61 -0
- package/{esm2020 → esm2022}/upload/upload.props.mjs +1 -1
- package/{esm2020 → esm2022}/upload/upload.type.mjs +8 -7
- package/fesm2022/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-button.mjs +29 -29
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-card.mjs +20 -20
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-cascader.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-checkbox.mjs +28 -28
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-datepicker.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-form-field.mjs +21 -21
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-grid.mjs +19 -19
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input-group.mjs +22 -22
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input-number.mjs +28 -28
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input.mjs +43 -43
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-radio.mjs +28 -28
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-rate.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-select.mjs +27 -27
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-slider.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-tabs.mjs +19 -19
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-textarea.mjs +28 -28
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-timepicker.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-transfer.mjs +35 -35
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-tree-select.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-upload.mjs +39 -39
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd.mjs +44 -44
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -0
- package/form-field/form-field.wrapper.d.ts +1 -1
- package/package.json +85 -135
- package/rate/rate.type.d.ts +3 -1
- package/transfer/transfer.component.d.ts +1 -1
- package/upload/upload.component.d.ts +1 -1
- package/upload/upload.props.d.ts +3 -1
- package/esm2020/button/button.module.mjs +0 -61
- package/esm2020/card/card.module.mjs +0 -43
- package/esm2020/card/card.wrapper.mjs +0 -47
- package/esm2020/cascader/cascader.module.mjs +0 -51
- package/esm2020/cascader/cascader.type.mjs +0 -112
- package/esm2020/checkbox/checkbox.module.mjs +0 -59
- package/esm2020/checkbox/checkbox.type.mjs +0 -69
- package/esm2020/datepicker/datepicker.module.mjs +0 -51
- package/esm2020/form-field/form-field.module.mjs +0 -45
- package/esm2020/grid/grid.module.mjs +0 -41
- package/esm2020/input/input.module.mjs +0 -89
- package/esm2020/input-group/input-group.module.mjs +0 -47
- package/esm2020/input-group/input-group.type.mjs +0 -71
- package/esm2020/input-number/input-number.module.mjs +0 -59
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +0 -97
- package/esm2020/radio/radio.module.mjs +0 -59
- package/esm2020/rate/rate.module.mjs +0 -51
- package/esm2020/rate/rate.type.mjs +0 -63
- package/esm2020/select/select.module.mjs +0 -57
- package/esm2020/slider/slider.module.mjs +0 -51
- package/esm2020/slider/slider.type.mjs +0 -67
- package/esm2020/switch/switch.module.mjs +0 -51
- package/esm2020/switch/switch.type.mjs +0 -53
- package/esm2020/tabs/tabs.module.mjs +0 -41
- package/esm2020/textarea/textarea.module.mjs +0 -55
- package/esm2020/timepicker/timepicker.module.mjs +0 -51
- package/esm2020/timepicker/timepicker.type.mjs +0 -96
- package/esm2020/transfer/transfer.component.mjs +0 -128
- package/esm2020/transfer/transfer.module.mjs +0 -52
- package/esm2020/transfer/transfer.type.mjs +0 -87
- package/esm2020/tree-select/tree-select.module.mjs +0 -51
- package/esm2020/tree-select/tree-select.type.mjs +0 -101
- package/esm2020/upload/upload.module.mjs +0 -60
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +0 -93
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +0 -165
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +0 -130
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +0 -114
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +0 -120
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +0 -189
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +0 -400
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +0 -157
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +0 -228
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +0 -120
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +0 -198
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +0 -149
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +0 -438
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +0 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +0 -4
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +0 -173
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +0 -249
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +0 -174
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +0 -116
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +0 -106
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +0 -158
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +0 -262
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +0 -154
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +0 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +0 -104
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +0 -1
- /package/{esm2020 → esm2022}/autocomplete/autocomplete.props.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/ngx-formly-zorro-antd-button.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/card/ngx-formly-zorro-antd-card.mjs +0 -0
- /package/{esm2020 → esm2022}/card/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/cascader/ngx-formly-zorro-antd-cascader.mjs +0 -0
- /package/{esm2020 → esm2022}/cascader/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/ngx-formly-zorro-antd-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/datepicker.props.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/ngx-formly-zorro-antd-datepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/form-field.props.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ngx-formly-zorro-antd-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/grid.props.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/ngx-formly-zorro-antd-grid.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/input.props.mjs +0 -0
- /package/{esm2020 → esm2022}/input/ngx-formly-zorro-antd-input.mjs +0 -0
- /package/{esm2020 → esm2022}/input/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/input-group/input-group.props.mjs +0 -0
- /package/{esm2020 → esm2022}/input-group/ngx-formly-zorro-antd-input-group.mjs +0 -0
- /package/{esm2020 → esm2022}/input-group/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/input-number/input-number.props.mjs +0 -0
- /package/{esm2020 → esm2022}/input-number/ngx-formly-zorro-antd-input-number.mjs +0 -0
- /package/{esm2020 → esm2022}/input-number/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/ui-ng-zorro-antd.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-formly-zorro-antd.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ngx-formly-zorro-antd-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/rate/ngx-formly-zorro-antd-rate.mjs +0 -0
- /package/{esm2020 → esm2022}/rate/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ngx-formly-zorro-antd-select.mjs +0 -0
- /package/{esm2020 → esm2022}/select/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/select/select.props.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/ngx-formly-zorro-antd-slider.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/ngx-formly-zorro-antd-switch.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/ngx-formly-zorro-antd-tabs.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/tabs.props.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ngx-formly-zorro-antd-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/ngx-formly-zorro-antd-timepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/transfer/ngx-formly-zorro-antd-transfer.mjs +0 -0
- /package/{esm2020 → esm2022}/transfer/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/ngx-formly-zorro-antd-tree-select.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/upload/ngx-formly-zorro-antd-upload.mjs +0 -0
- /package/{esm2020 → esm2022}/upload/public_api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-autocomplete.mjs +0 -0
@@ -7,9 +7,8 @@ import * as i1 from 'ng-zorro-antd/card';
|
|
7
7
|
import { NzCardModule } from 'ng-zorro-antd/card';
|
8
8
|
|
9
9
|
class FormlyWrapperCard extends FieldWrapper {
|
10
|
-
}
|
11
|
-
|
12
|
-
FormlyWrapperCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperCard, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
|
13
12
|
<nz-card
|
14
13
|
[nzActions]="props['actions'] || []"
|
15
14
|
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
@@ -24,8 +23,9 @@ FormlyWrapperCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
24
23
|
>
|
25
24
|
<ng-container #fieldComponent></ng-container>
|
26
25
|
</nz-card>
|
27
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
28
|
-
|
26
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
27
|
+
}
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperCard, decorators: [{
|
29
29
|
type: Component,
|
30
30
|
args: [{
|
31
31
|
selector: 'formly-wrapper-card',
|
@@ -50,22 +50,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
50
50
|
}] });
|
51
51
|
|
52
52
|
class FormlyNzCardModule {
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
54
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
|
55
|
+
NzCardModule, i1$1.FormlyModule] }); }
|
56
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
|
57
|
+
NzCardModule,
|
58
|
+
FormlyModule.forChild({
|
59
|
+
wrappers: [
|
60
|
+
{
|
61
|
+
name: 'card',
|
62
|
+
component: FormlyWrapperCard,
|
63
|
+
types: ['card']
|
64
|
+
}
|
65
|
+
]
|
66
|
+
})] }); }
|
53
67
|
}
|
54
|
-
|
55
|
-
FormlyNzCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
|
56
|
-
NzCardModule, i1$1.FormlyModule] });
|
57
|
-
FormlyNzCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
|
58
|
-
NzCardModule,
|
59
|
-
FormlyModule.forChild({
|
60
|
-
wrappers: [
|
61
|
-
{
|
62
|
-
name: 'card',
|
63
|
-
component: FormlyWrapperCard,
|
64
|
-
types: ['card']
|
65
|
-
}
|
66
|
-
]
|
67
|
-
})] });
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCardModule, decorators: [{
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, decorators: [{
|
69
69
|
type: NgModule,
|
70
70
|
args: [{
|
71
71
|
declarations: [FormlyWrapperCard],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.wrapper.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { NzSizeDSType, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\ninterface CardProps {\n /**\n * 卡片操作组,位置在卡片底部\n */\n actions?: Array<TemplateRef<void>>;\n\n /**\n * 内容区域自定义样式\n */\n bodyStyle?: NgStyleInterface | null;\n\n /**\n * \t是否移除边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 卡片封面\n */\n cover?: TemplateRef<void>;\n\n /**\n * 卡片右上角的操作区域\n */\n extra?: string | TemplateRef<void>;\n\n /**\n * 鼠标移过时可浮起\n * @default false\n */\n hoverable?: boolean;\n\n /**\n * 当卡片内容还在加载中时,可以用 loading 展示一个占位\n * @default false\n */\n loading?: boolean;\n\n /**\n * 卡片的尺寸\n * @default default\n */\n size?: NzSizeDSType;\n\n /**\n * \t卡片标题\n */\n title?: string | TemplateRef<void>;\n\n /**\n * 卡片类型,可设置为 inner 或 不设置\n */\n type?: string | 'inner';\n}\n\nexport interface FormlyCardWrapperConfig extends FormlyFieldConfig<CardProps> {\n wrappers: ('card' | Type<FormlyWrapperCard>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-card',\n template: `\n <nz-card\n [nzActions]=\"props['actions'] || []\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"props['cover']\"\n [nzExtra]=\"props['extra']\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"props['title']\"\n [nzType]=\"props['type'] ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperCard extends FieldWrapper<FormlyFieldConfig<CardProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperCard } from './card.wrapper';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\n@NgModule({\n declarations: [FormlyWrapperCard],\n imports: [\n CommonModule,\n NzCardModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'card',\n component: FormlyWrapperCard,\n types: ['card']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAiEA,MAoBa,iBAAkB,SAAQ,YAA0C,CAAA;8GAApE,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAlBlB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;AAeT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAA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;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,KAAK,EAAE,CAAC,MAAM,CAAC;AAChB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
@@ -37,9 +37,8 @@ class FormlyFieldCascader extends FieldType {
|
|
37
37
|
this.props['cascaderOptions'] = this.props.options;
|
38
38
|
}
|
39
39
|
}
|
40
|
-
}
|
41
|
-
|
42
|
-
FormlyFieldCascader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCascader, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
|
43
42
|
#cascader
|
44
43
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
45
44
|
[formControl]="formControl"
|
@@ -72,8 +71,9 @@ FormlyFieldCascader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
72
71
|
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
73
72
|
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
74
73
|
(ngModelChange)="props.change && props.change(field, $event)"
|
75
|
-
></nz-cascader>`, 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.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
76
|
-
|
74
|
+
></nz-cascader>`, 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.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
75
|
+
}
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCascader, decorators: [{
|
77
77
|
type: Component,
|
78
78
|
args: [{
|
79
79
|
selector: 'formly-field-cascader',
|
@@ -116,26 +116,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
116
116
|
}] });
|
117
117
|
|
118
118
|
class FormlyNzCascaderModule {
|
119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
120
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
|
121
|
+
ReactiveFormsModule,
|
122
|
+
FormlyNzFormFieldModule,
|
123
|
+
NzCascaderModule, i4.FormlyModule] }); }
|
124
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
|
125
|
+
ReactiveFormsModule,
|
126
|
+
FormlyNzFormFieldModule,
|
127
|
+
NzCascaderModule,
|
128
|
+
FormlyModule.forChild({
|
129
|
+
types: [
|
130
|
+
{
|
131
|
+
name: 'cascader',
|
132
|
+
component: FormlyFieldCascader,
|
133
|
+
wrappers: ['form-field']
|
134
|
+
}
|
135
|
+
]
|
136
|
+
})] }); }
|
119
137
|
}
|
120
|
-
|
121
|
-
FormlyNzCascaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
|
122
|
-
ReactiveFormsModule,
|
123
|
-
FormlyNzFormFieldModule,
|
124
|
-
NzCascaderModule, i4.FormlyModule] });
|
125
|
-
FormlyNzCascaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
|
126
|
-
ReactiveFormsModule,
|
127
|
-
FormlyNzFormFieldModule,
|
128
|
-
NzCascaderModule,
|
129
|
-
FormlyModule.forChild({
|
130
|
-
types: [
|
131
|
-
{
|
132
|
-
name: 'cascader',
|
133
|
-
component: FormlyFieldCascader,
|
134
|
-
wrappers: ['form-field']
|
135
|
-
}
|
136
|
-
]
|
137
|
-
})] });
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
|
139
139
|
type: NgModule,
|
140
140
|
args: [{
|
141
141
|
declarations: [FormlyFieldCascader],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type {\n NzCascaderOption,\n NzShowSearchOptions,\n NzCascaderExpandTrigger,\n NzCascaderSize\n} from 'ng-zorro-antd/cascader';\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\ninterface CascaderProps extends FormlyFieldProps {\n /**\n * 是否支持清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否自动聚焦,当存在输入框时\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\n */\n changeOn?: (option: NzSafeAny, index: number) => boolean;\n\n /**\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\n * @default false\n */\n changeOnSelect?: boolean;\n\n /**\n * 自定义浮层列类名\n */\n columnClassName?: string;\n\n /**\n * 自定义次级菜单展开图标\n */\n expandIcon?: string | TemplateRef<void>;\n\n /**\n * 次级菜单的展开方式\n * @default 'click'\n */\n expandTrigger?: NzCascaderExpandTrigger;\n\n /**\n * 选项的显示值的属性名\n * @default 'label'\n */\n labelProperty: string;\n\n /**\n * 选择后展示的渲染模板\n */\n labelRender?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\n */\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\n\n /**\n * 自定义浮层类名\n */\n menuClassName?: string;\n\n /**\n * 自定义浮层样式\n */\n menuStyle?: NgStyleInterface | null;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n\n /**\n * 选项的渲染模板\n */\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\n\n /**\n * 是否显示箭头\n * @default true\n */\n showArrow?: boolean;\n\n /**\n * 显示输入框\n * @default true\n */\n showInput?: boolean;\n\n /**\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\n * @default false\n */\n showSearch?: boolean | NzShowSearchOptions;\n\n /**\n * 输入框大小\n * @default default\n */\n size?: NzCascaderSize;\n\n /**\n * 设置校验状态\n */\n status?: NzStatus;\n\n /**\n * 自定义的选择框后缀图标\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 选项的实际值的属性名\n * @default 'value'\n */\n valueProperty?: string;\n\n /**\n * 可选项数据源\n */\n cascaderOptions?: NzCascaderOption[] | null;\n\n /**\n * 清除值时触发\n */\n onClear?: (field: FormlyFieldConfig) => void;\n /**\n * 菜单浮层的显示/隐藏\n */\n visibleChange?: (field: FormlyFieldConfig, visible: boolean) => void;\n\n /**\n * 值发生变化时触发\n */\n selectionChange?: (field: FormlyFieldConfig, value: NzCascaderOption[]) => void;\n}\n\nexport interface FormlyCascaderFieldConfig extends FormlyFieldConfig<CascaderProps> {\n type: 'cascader' | Type<FormlyFieldCascader>;\n}\n\n@Component({\n selector: 'formly-field-cascader',\n template: `<nz-cascader\n #cascader\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzChangeOn]=\"props['changeOn']\"\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\n [nzColumnClassName]=\"props['columnClassName']\"\n [nzExpandIcon]=\"props['expandIcon']!\"\n [nzExpandTrigger]=\"props['expandTrigger']!\"\n [nzLabelProperty]=\"props['labelProperty']\"\n [nzLabelRender]=\"props['labelRender'] ?? null\"\n [nzLoadData]=\"props['loadData']\"\n [nzMenuClassName]=\"props['menuClassName']\"\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzOptionRender]=\"props['optionRender'] ?? null\"\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzShowInput]=\"props['showInput']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzSuffixIcon]=\"props['suffixIcon']!\"\n [nzValueProperty]=\"props['valueProperty']!\"\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n ></nz-cascader>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCascader\n extends FieldType<FieldTypeConfig<CascaderProps>>\n implements OnInit\n{\n override defaultOptions = {\n props: {\n placeholder: '请选择',\n allowClear: true,\n backdrop: false,\n changeOnSelect: false,\n expandTrigger: 'click' as const,\n labelProperty: 'label',\n showArrow: true,\n showInput: true,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n valueProperty: 'value',\n cascaderOptions: []\n }\n };\n ngOnInit(): void {\n const options = this.props['cascaderOptions'];\n if (!options || options.length === 0) {\n this.props['cascaderOptions'] = this.props.options as any;\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 { NzCascaderModule } from 'ng-zorro-antd/cascader';\nimport { FormlyFieldCascader } from './cascader.type';\n\n@NgModule({\n declarations: [FormlyFieldCascader],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCascaderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'cascader',\n component: FormlyFieldCascader,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCascaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA8JA,MAsCa,mBACX,SAAQ,SAAyC,CAAA;AAvCnD,IAAA,WAAA,GAAA;;AA0CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,eAAe,EAAE,EAAE;AACpB,aAAA;SACF,CAAC;AAOH,KAAA;IANC,QAAQ,GAAA;QACN,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;YACpC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAc,CAAC;AAC3D,SAAA;KACF;8GA1BU,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CA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,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBApBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -20,9 +20,8 @@ class FormlyFieldCheckbox extends FieldType {
|
|
20
20
|
}
|
21
21
|
};
|
22
22
|
}
|
23
|
-
}
|
24
|
-
|
25
|
-
FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
|
26
25
|
<label
|
27
26
|
*ngIf="props.type !== 'group'; else checkboxgroup"
|
28
27
|
[formControl]="formControl"
|
@@ -42,8 +41,9 @@ FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
42
41
|
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
43
42
|
></nz-checkbox-group>
|
44
43
|
</ng-template>
|
45
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i3.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
46
|
-
|
44
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i3.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
45
|
+
}
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
47
47
|
type: Component,
|
48
48
|
args: [{
|
49
49
|
selector: 'formly-field-checkbox',
|
@@ -73,30 +73,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
73
73
|
}] });
|
74
74
|
|
75
75
|
class FormlyNzCheckboxModule {
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
77
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
78
|
+
ReactiveFormsModule,
|
79
|
+
FormlyNzFormFieldModule,
|
80
|
+
NzCheckboxModule, i4.FormlyModule] }); }
|
81
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, imports: [CommonModule,
|
82
|
+
ReactiveFormsModule,
|
83
|
+
FormlyNzFormFieldModule,
|
84
|
+
NzCheckboxModule,
|
85
|
+
FormlyModule.forChild({
|
86
|
+
types: [
|
87
|
+
{
|
88
|
+
name: 'checkbox',
|
89
|
+
component: FormlyFieldCheckbox,
|
90
|
+
wrappers: ['form-field']
|
91
|
+
},
|
92
|
+
{
|
93
|
+
name: 'boolean',
|
94
|
+
extends: 'checkbox'
|
95
|
+
}
|
96
|
+
]
|
97
|
+
})] }); }
|
76
98
|
}
|
77
|
-
|
78
|
-
FormlyNzCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
79
|
-
ReactiveFormsModule,
|
80
|
-
FormlyNzFormFieldModule,
|
81
|
-
NzCheckboxModule, i4.FormlyModule] });
|
82
|
-
FormlyNzCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCheckboxModule, imports: [CommonModule,
|
83
|
-
ReactiveFormsModule,
|
84
|
-
FormlyNzFormFieldModule,
|
85
|
-
NzCheckboxModule,
|
86
|
-
FormlyModule.forChild({
|
87
|
-
types: [
|
88
|
-
{
|
89
|
-
name: 'checkbox',
|
90
|
-
component: FormlyFieldCheckbox,
|
91
|
-
wrappers: ['form-field']
|
92
|
-
},
|
93
|
-
{
|
94
|
-
name: 'boolean',
|
95
|
-
extends: 'checkbox'
|
96
|
-
}
|
97
|
-
]
|
98
|
-
})] });
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
|
100
100
|
type: NgModule,
|
101
101
|
args: [{
|
102
102
|
declarations: [FormlyFieldCheckbox],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {\n type?: 'group' | 'single';\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @default false\n */\n indeterminate?: boolean;\n\n /**\n * 数值改变时回调\n */\n modelChange?: (field: FormlyFieldConfig, data?: boolean | null) => void;\n}\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-checkbox',\n template: `\n <label\n *ngIf=\"props.type !== 'group'; else checkboxgroup\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n nz-checkbox\n >\n {{ props.label }}\n </label>\n\n <ng-template #checkboxgroup>\n <nz-checkbox-group\n [(ngModel)]=\"props.options\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-checkbox-group>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n indeterminate: false,\n hideLabel: true\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 { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCheckboxModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n {\n name: 'boolean',\n extends: 'checkbox'\n }\n ]\n })\n ]\n})\nexport class FormlyNzCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA8BA,MAyBa,mBAAoB,SAAQ,SAAyC,CAAA;AAzBlF,IAAA,WAAA,GAAA;;AA0BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,SAAS,EAAE,IAAI;AAChB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EAvBpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAoBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAA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;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
@@ -35,9 +35,8 @@ class FormlyFieldDatepicker extends FieldType {
|
|
35
35
|
}
|
36
36
|
};
|
37
37
|
}
|
38
|
-
}
|
39
|
-
|
40
|
-
FormlyFieldDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: `<ng-container [ngSwitch]="props.type">
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: `<ng-container [ngSwitch]="props.type">
|
41
40
|
<nz-range-picker
|
42
41
|
*ngSwitchCase="'range'"
|
43
42
|
[nzId]="id"
|
@@ -113,8 +112,9 @@ FormlyFieldDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
113
112
|
(nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
|
114
113
|
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
115
114
|
></nz-date-picker>
|
116
|
-
</ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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 });
|
117
|
-
|
115
|
+
</ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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 }); }
|
116
|
+
}
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
|
118
118
|
type: Component,
|
119
119
|
args: [{
|
120
120
|
selector: 'formly-field-datepicker',
|
@@ -200,26 +200,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
200
200
|
}] });
|
201
201
|
|
202
202
|
class FormlyNzDatepickerModule {
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
204
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
|
205
|
+
ReactiveFormsModule,
|
206
|
+
FormlyNzFormFieldModule,
|
207
|
+
NzDatePickerModule, i4.FormlyModule] }); }
|
208
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
|
209
|
+
ReactiveFormsModule,
|
210
|
+
FormlyNzFormFieldModule,
|
211
|
+
NzDatePickerModule,
|
212
|
+
FormlyModule.forChild({
|
213
|
+
types: [
|
214
|
+
{
|
215
|
+
name: 'datepicker',
|
216
|
+
component: FormlyFieldDatepicker,
|
217
|
+
wrappers: ['form-field']
|
218
|
+
}
|
219
|
+
]
|
220
|
+
})] }); }
|
203
221
|
}
|
204
|
-
|
205
|
-
FormlyNzDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
|
206
|
-
ReactiveFormsModule,
|
207
|
-
FormlyNzFormFieldModule,
|
208
|
-
NzDatePickerModule, i4.FormlyModule] });
|
209
|
-
FormlyNzDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
|
210
|
-
ReactiveFormsModule,
|
211
|
-
FormlyNzFormFieldModule,
|
212
|
-
NzDatePickerModule,
|
213
|
-
FormlyModule.forChild({
|
214
|
-
types: [
|
215
|
-
{
|
216
|
-
name: 'datepicker',
|
217
|
-
component: FormlyFieldDatepicker,
|
218
|
-
wrappers: ['form-field']
|
219
|
-
}
|
220
|
-
]
|
221
|
-
})] });
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
|
223
223
|
type: NgModule,
|
224
224
|
args: [{
|
225
225
|
declarations: [FormlyFieldDatepicker],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\n\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: `<ng-container [ngSwitch]=\"props.type\">\n <nz-range-picker\n *ngSwitchCase=\"'range'\"\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"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 [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\n <nz-date-picker\n *ngSwitchDefault\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"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 [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 </ng-container>`,\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":";;;;;;;;;;;;AASA,MAiFa,qBAAsB,SAAQ,SAA0B,CAAA;AAjFrE,IAAA,WAAA,GAAA;;AAkFW,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,g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B,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -13,9 +13,8 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
13
13
|
get errorState() {
|
14
14
|
return this.showError ? 'error' : 'success';
|
15
15
|
}
|
16
|
-
}
|
17
|
-
|
18
|
-
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
19
18
|
<nz-form-item [ngClass]="props.itemClass!">
|
20
19
|
<ng-container *ngIf="props.label && props['hideLabel'] !== true">
|
21
20
|
<nz-form-label
|
@@ -69,8 +68,9 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
69
68
|
</ng-template>
|
70
69
|
</nz-form-control>
|
71
70
|
</nz-form-item>
|
72
|
-
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: i4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] });
|
73
|
-
|
71
|
+
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: i4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
|
72
|
+
}
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
74
74
|
type: Component,
|
75
75
|
args: [{ selector: 'formly-wrapper-nz-form-field', template: `
|
76
76
|
<nz-form-item [ngClass]="props.itemClass!">
|
@@ -130,23 +130,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
130
130
|
}] });
|
131
131
|
|
132
132
|
class FormlyNzFormFieldModule {
|
133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
134
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
135
|
+
ReactiveFormsModule,
|
136
|
+
NzFormModule, i4.FormlyModule] }); }
|
137
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzFormFieldModule, imports: [CommonModule,
|
138
|
+
ReactiveFormsModule,
|
139
|
+
NzFormModule,
|
140
|
+
FormlyModule.forChild({
|
141
|
+
wrappers: [
|
142
|
+
{
|
143
|
+
name: 'form-field',
|
144
|
+
component: FormlyWrapperFormField
|
145
|
+
}
|
146
|
+
]
|
147
|
+
})] }); }
|
133
148
|
}
|
134
|
-
|
135
|
-
FormlyNzFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
136
|
-
ReactiveFormsModule,
|
137
|
-
NzFormModule, i4.FormlyModule] });
|
138
|
-
FormlyNzFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzFormFieldModule, imports: [CommonModule,
|
139
|
-
ReactiveFormsModule,
|
140
|
-
NzFormModule,
|
141
|
-
FormlyModule.forChild({
|
142
|
-
wrappers: [
|
143
|
-
{
|
144
|
-
name: 'form-field',
|
145
|
-
component: FormlyWrapperFormField
|
146
|
-
}
|
147
|
-
]
|
148
|
-
})] });
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
|
150
150
|
type: NgModule,
|
151
151
|
args: [{
|
152
152
|
declarations: [FormlyWrapperFormField],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { NzFormWrapperProps } from './form-field.props';\n\nexport type FormlyFieldProps = NzFormWrapperProps;\n\n@Component({\n selector: 'formly-wrapper-nz-form-field',\n styleUrls: ['./form-field.wrapper.scss'],\n template: `\n <nz-form-item [ngClass]=\"props.itemClass!\">\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\n <nz-form-label\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\n [nzPull]=\"props['grid']?.labelPull ?? null\"\n [nzPush]=\"props['grid']?.labelPush ?? null\"\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\n [nzXs]=\"props['grid']?.labelXs ?? null\"\n [nzSm]=\"props['grid']?.labelSm ?? null\"\n [nzMd]=\"props['grid']?.labelMd ?? null\"\n [nzLg]=\"props['grid']?.labelLg ?? null\"\n [nzXl]=\"props['grid']?.labelXl ?? null\"\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\n [ngClass]=\"props.labelClass!\"\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\n [nzFor]=\"id\"\n [nzNoColon]=\"props['noColon']!!\"\n [nzTooltipTitle]=\"props['tooltipTitle']\"\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\n >\n <span class=\"formly-label-text\">\n {{ props.label }}\n </span>\n </nz-form-label>\n </ng-container>\n <nz-form-control\n [nzValidateStatus]=\"errorState\"\n [nzHasFeedback]=\"props['hasFeedback']!!\"\n [nzExtra]=\"props['controlExtra']\"\n [nzErrorTip]=\"errorTpl\"\n [ngClass]=\"props.controlClass!\"\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\n [nzPull]=\"props['grid']?.controlPull ?? null\"\n [nzPush]=\"props['grid']?.controlPush ?? null\"\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\n [nzXs]=\"props['grid']?.controlXs ?? null\"\n [nzSm]=\"props['grid']?.controlSm ?? null\"\n [nzMd]=\"props['grid']?.controlMd ?? null\"\n [nzLg]=\"props['grid']?.controlLg ?? null\"\n [nzXl]=\"props['grid']?.controlXl ?? null\"\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n\n <ng-template #errorTpl let-control>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n `\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {\n get errorState() {\n return this.showError ? 'error' : 'success';\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 { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField\n }\n ]\n })\n ]\n})\nexport class FormlyNzFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAMA,MA2Da,sBAAuB,SAAQ,YAAiD,CAAA;AAC3F,IAAA,IAAI,UAAU,GAAA;QACZ,OA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lyFieldGrid extends FieldType {
|
11
|
-
}
|
12
|
-
|
13
|
-
FormlyFieldGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
14
13
|
<div
|
15
14
|
nz-row
|
16
15
|
[nzAlign]="props.align ?? null"
|
@@ -36,8 +35,9 @@ FormlyFieldGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
36
35
|
[nzXXl]="item.props?.['grid']?.['xxl'] || props.xxl"
|
37
36
|
></formly-field>
|
38
37
|
</div>
|
39
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
40
|
-
|
38
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
39
|
+
}
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldGrid, decorators: [{
|
41
41
|
type: Component,
|
42
42
|
args: [{
|
43
43
|
selector: 'formly-field-grid',
|
@@ -73,21 +73,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
73
73
|
}] });
|
74
74
|
|
75
75
|
class FormlyNzGridModule {
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
77
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
|
78
|
+
NzGridModule, i3.FormlyModule] }); }
|
79
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
|
80
|
+
NzGridModule,
|
81
|
+
FormlyModule.forChild({
|
82
|
+
types: [
|
83
|
+
{
|
84
|
+
name: 'grid',
|
85
|
+
component: FormlyFieldGrid
|
86
|
+
}
|
87
|
+
]
|
88
|
+
})] }); }
|
76
89
|
}
|
77
|
-
|
78
|
-
FormlyNzGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
|
79
|
-
NzGridModule, i3.FormlyModule] });
|
80
|
-
FormlyNzGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
|
81
|
-
NzGridModule,
|
82
|
-
FormlyModule.forChild({
|
83
|
-
types: [
|
84
|
-
{
|
85
|
-
name: 'grid',
|
86
|
-
component: FormlyFieldGrid
|
87
|
-
}
|
88
|
-
]
|
89
|
-
})] });
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzGridModule, decorators: [{
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzGridModule, decorators: [{
|
91
91
|
type: NgModule,
|
92
92
|
args: [{
|
93
93
|
declarations: [FormlyFieldGrid],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-grid.mjs","sources":["../../../../packages/formlyantd/grid/src/grid.type.ts","../../../../packages/formlyantd/grid/src/grid.module.ts","../../../../packages/formlyantd/grid/src/ngx-formly-zorro-antd-grid.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { GridProps } from './grid.props';\n\nexport interface FormlyGridFieldConfig extends FormlyFieldConfig<GridProps> {\n type: 'grid' | Type<FormlyFieldGrid>;\n}\n\n@Component({\n selector: 'formly-field-grid',\n template: `\n <div\n nz-row\n [nzAlign]=\"props.align ?? null\"\n [nzGutter]=\"props.gutter ?? null\"\n [nzJustify]=\"props.justify ?? null\"\n [formlyAttributes]=\"field\"\n >\n <formly-field\n *ngFor=\"let item of field.fieldGroup\"\n [field]=\"item\"\n nz-col\n [nzFlex]=\"item.props?.['grid']?.['flex'] || props.flex\"\n [nzOffset]=\"item.props?.['grid']?.['offset'] || props.offset\"\n [nzOrder]=\"item.props?.['grid']?.['order'] || props.order\"\n [nzPull]=\"item.props?.['grid']?.['pull'] || props.pull\"\n [nzPush]=\"item.props?.['grid']?.['push'] || props.push\"\n [nzSpan]=\"item.props?.['grid']?.['span'] || props.span\"\n [nzXs]=\"item.props?.['grid']?.['xs'] || props.xs\"\n [nzSm]=\"item.props?.['grid']?.['sm'] || props.sm\"\n [nzMd]=\"item.props?.['grid']?.['md'] || props.md\"\n [nzLg]=\"item.props?.['grid']?.['lg'] || props.lg\"\n [nzXl]=\"item.props?.['grid']?.['xl'] || props.xl\"\n [nzXXl]=\"item.props?.['grid']?.['xxl'] || props.xxl\"\n ></formly-field>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldGrid } from './grid.type';\n\nimport { NzGridModule } from 'ng-zorro-antd/grid';\n\n@NgModule({\n declarations: [FormlyFieldGrid],\n imports: [\n CommonModule,\n NzGridModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'grid',\n component: FormlyFieldGrid\n }\n ]\n })\n ]\n})\nexport class FormlyNzGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AASA,MA+Ba,eAAgB,SAAQ,SAAqC,CAAA;8GAA7D,eAAe,EA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