ngx-formly-zorro-antd 13.0.0 → 14.0.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 +38 -38
- package/autocomplete/{ngx-formly-zorro-antd-autocomplete.d.ts → index.d.ts} +5 -5
- package/autocomplete/public_api.d.ts +1 -1
- package/button/button.module.d.ts +11 -11
- package/button/button.type.d.ts +66 -66
- package/button/{ngx-formly-zorro-antd-button.d.ts → index.d.ts} +5 -5
- package/button/public_api.d.ts +2 -2
- package/card/card.module.d.ts +10 -10
- package/card/card.wrapper.d.ts +58 -58
- package/card/{ngx-formly-zorro-antd-card.d.ts → index.d.ts} +5 -5
- package/card/public_api.d.ts +2 -2
- package/cascader/cascader.module.d.ts +12 -12
- package/cascader/cascader.type.d.ts +152 -152
- package/cascader/{ngx-formly-zorro-antd-cascader.d.ts → index.d.ts} +5 -5
- package/cascader/public_api.d.ts +2 -2
- package/checkbox/checkbox.module.d.ts +12 -12
- package/checkbox/checkbox.type.d.ts +35 -35
- package/checkbox/{ngx-formly-zorro-antd-checkbox.d.ts → index.d.ts} +5 -5
- package/checkbox/public_api.d.ts +2 -2
- package/datepicker/datepicker.module.d.ts +12 -12
- package/datepicker/datepicker.props.d.ts +144 -146
- package/datepicker/datepicker.type.d.ts +31 -31
- package/datepicker/{ngx-formly-zorro-antd-datepicker.d.ts → index.d.ts} +5 -5
- package/datepicker/public_api.d.ts +2 -2
- package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
- package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
- package/esm2020/autocomplete/public_api.mjs +2 -2
- package/esm2020/button/button.module.mjs +61 -63
- package/esm2020/button/button.type.mjs +110 -110
- package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
- package/esm2020/button/public_api.mjs +3 -3
- package/esm2020/card/card.module.mjs +43 -45
- package/esm2020/card/card.wrapper.mjs +47 -47
- package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
- package/esm2020/card/public_api.mjs +3 -3
- package/esm2020/cascader/cascader.module.mjs +51 -53
- package/esm2020/cascader/cascader.type.mjs +112 -112
- package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
- package/esm2020/cascader/public_api.mjs +3 -3
- package/esm2020/checkbox/checkbox.module.mjs +59 -61
- package/esm2020/checkbox/checkbox.type.mjs +69 -69
- package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
- package/esm2020/checkbox/public_api.mjs +3 -3
- package/esm2020/datepicker/datepicker.module.mjs +51 -53
- package/esm2020/datepicker/datepicker.props.mjs +2 -2
- package/esm2020/datepicker/datepicker.type.mjs +191 -189
- package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
- package/esm2020/datepicker/public_api.mjs +3 -3
- package/esm2020/form-field/form-field.module.mjs +45 -47
- package/esm2020/form-field/form-field.props.mjs +2 -2
- package/esm2020/form-field/form-field.wrapper.mjs +127 -127
- package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
- package/esm2020/form-field/public_api.mjs +2 -2
- package/esm2020/grid/grid.module.mjs +41 -43
- package/esm2020/grid/grid.props.mjs +2 -2
- package/esm2020/grid/grid.type.mjs +71 -71
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
- package/esm2020/grid/public_api.mjs +3 -3
- package/esm2020/index.mjs +2 -2
- package/esm2020/input/input.module.mjs +89 -91
- package/esm2020/input/input.props.mjs +2 -2
- package/esm2020/input/input.type.mjs +309 -263
- package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
- package/esm2020/input/public_api.mjs +3 -3
- package/esm2020/input-group/input-group.module.mjs +47 -49
- package/esm2020/input-group/input-group.props.mjs +2 -2
- package/esm2020/input-group/input-group.type.mjs +71 -71
- package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
- package/esm2020/input-group/public_api.mjs +3 -3
- package/esm2020/input-number/input-number.module.mjs +59 -61
- package/esm2020/input-number/input-number.props.mjs +2 -2
- package/esm2020/input-number/input-number.type.mjs +128 -128
- package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
- package/esm2020/input-number/public_api.mjs +3 -3
- package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -99
- package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
- package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
- package/esm2020/radio/public_api.mjs +3 -3
- package/esm2020/radio/radio.module.mjs +59 -61
- package/esm2020/radio/radio.type.mjs +96 -96
- package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
- package/esm2020/rate/public_api.mjs +3 -3
- package/esm2020/rate/rate.module.mjs +51 -53
- package/esm2020/rate/rate.type.mjs +63 -63
- package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
- package/esm2020/select/public_api.mjs +3 -3
- package/esm2020/select/select.module.mjs +57 -59
- package/esm2020/select/select.props.mjs +2 -2
- package/esm2020/select/select.type.mjs +163 -163
- package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
- package/esm2020/slider/public_api.mjs +3 -3
- package/esm2020/slider/slider.module.mjs +51 -53
- package/esm2020/slider/slider.type.mjs +67 -67
- package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
- package/esm2020/switch/public_api.mjs +3 -3
- package/esm2020/switch/switch.module.mjs +51 -53
- package/esm2020/switch/switch.type.mjs +53 -53
- package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
- package/esm2020/tabs/public_api.mjs +3 -3
- package/esm2020/tabs/tabs.module.mjs +41 -43
- package/esm2020/tabs/tabs.props.mjs +2 -2
- package/esm2020/tabs/tabs.wrapper.mjs +111 -111
- package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
- package/esm2020/textarea/public_api.mjs +3 -3
- package/esm2020/textarea/textarea.module.mjs +51 -53
- package/esm2020/textarea/textarea.type.mjs +88 -88
- package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
- package/esm2020/timepicker/public_api.mjs +3 -3
- package/esm2020/timepicker/timepicker.module.mjs +51 -53
- package/esm2020/timepicker/timepicker.type.mjs +92 -92
- package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
- package/esm2020/transfer/public_api.mjs +3 -3
- package/esm2020/transfer/transfer.component.mjs +128 -128
- package/esm2020/transfer/transfer.module.mjs +52 -54
- package/esm2020/transfer/transfer.type.mjs +87 -87
- package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
- package/esm2020/tree-select/public_api.mjs +3 -3
- package/esm2020/tree-select/tree-select.module.mjs +51 -53
- package/esm2020/tree-select/tree-select.type.mjs +98 -98
- package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
- package/esm2020/upload/public_api.mjs +3 -3
- package/esm2020/upload/upload.component.mjs +174 -174
- package/esm2020/upload/upload.module.mjs +60 -62
- package/esm2020/upload/upload.type.mjs +119 -119
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +156 -158
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -79
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +148 -150
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +113 -115
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +227 -227
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +159 -161
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +99 -101
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +105 -107
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +172 -174
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +382 -338
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +137 -139
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +99 -101
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +202 -204
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +103 -105
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +89 -91
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +140 -142
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +124 -126
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +128 -130
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +243 -245
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +134 -136
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +328 -330
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +74 -76
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +156 -158
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -79
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +148 -150
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +113 -115
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +227 -227
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +159 -161
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +99 -101
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +105 -107
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +172 -174
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +382 -338
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +137 -139
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +99 -101
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +202 -204
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +103 -105
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +89 -91
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +140 -142
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +124 -126
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +128 -130
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +243 -245
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +134 -136
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +327 -329
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +74 -76
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.module.d.ts +11 -11
- package/form-field/form-field.props.d.ts +105 -105
- package/form-field/form-field.wrapper.d.ts +9 -9
- package/form-field/{ngx-formly-zorro-antd-form-field.d.ts → index.d.ts} +5 -5
- package/form-field/public_api.d.ts +3 -3
- package/grid/grid.module.d.ts +10 -10
- package/grid/grid.props.d.ts +44 -44
- package/grid/grid.type.d.ts +11 -11
- package/grid/{ngx-formly-zorro-antd-grid.d.ts → index.d.ts} +5 -5
- package/grid/public_api.d.ts +3 -3
- package/index.d.ts +1 -1
- package/input/{ngx-formly-zorro-antd-input.d.ts → index.d.ts} +5 -5
- package/input/input.module.d.ts +14 -14
- package/input/input.props.d.ts +36 -33
- package/input/input.type.d.ts +26 -26
- package/input/public_api.d.ts +2 -2
- package/input-group/{ngx-formly-zorro-antd-input-group.d.ts → index.d.ts} +5 -5
- package/input-group/input-group.module.d.ts +11 -11
- package/input-group/input-group.props.d.ts +56 -56
- package/input-group/input-group.type.d.ts +22 -22
- package/input-group/public_api.d.ts +3 -3
- package/input-number/{ngx-formly-zorro-antd-input-number.d.ts → index.d.ts} +5 -5
- package/input-number/input-number.module.d.ts +12 -12
- package/input-number/input-number.props.d.ts +81 -78
- package/input-number/input-number.type.d.ts +24 -24
- package/input-number/public_api.d.ts +2 -2
- package/lib/ui-ng-zorro-antd.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
- package/package.json +34 -30
- package/radio/{ngx-formly-zorro-antd-radio.d.ts → index.d.ts} +5 -5
- package/radio/public_api.d.ts +2 -2
- package/radio/radio.module.d.ts +14 -14
- package/radio/radio.type.d.ts +38 -38
- package/rate/{ngx-formly-zorro-antd-rate.d.ts → index.d.ts} +5 -5
- package/rate/public_api.d.ts +2 -2
- package/rate/rate.module.d.ts +12 -12
- package/rate/rate.type.d.ts +57 -57
- package/select/{ngx-formly-zorro-antd-select.d.ts → index.d.ts} +5 -5
- package/select/public_api.d.ts +2 -2
- package/select/select.module.d.ts +13 -13
- package/select/select.props.d.ts +162 -162
- package/select/select.type.d.ts +35 -35
- package/slider/{ngx-formly-zorro-antd-slider.d.ts → index.d.ts} +5 -5
- package/slider/public_api.d.ts +2 -2
- package/slider/slider.module.d.ts +12 -12
- package/slider/slider.type.d.ts +76 -76
- package/switch/{ngx-formly-zorro-antd-switch.d.ts → index.d.ts} +5 -5
- package/switch/public_api.d.ts +2 -2
- package/switch/switch.module.d.ts +12 -12
- package/switch/switch.type.d.ts +44 -44
- package/tabs/{ngx-formly-zorro-antd-tabs.d.ts → index.d.ts} +5 -5
- package/tabs/public_api.d.ts +2 -2
- package/tabs/tabs.module.d.ts +10 -10
- package/tabs/tabs.props.d.ts +126 -126
- package/tabs/tabs.wrapper.d.ts +28 -28
- package/textarea/{ngx-formly-zorro-antd-textarea.d.ts → index.d.ts} +5 -5
- package/textarea/public_api.d.ts +2 -2
- package/textarea/textarea.module.d.ts +12 -12
- package/textarea/textarea.type.d.ts +38 -38
- package/timepicker/{ngx-formly-zorro-antd-timepicker.d.ts → index.d.ts} +5 -5
- package/timepicker/public_api.d.ts +2 -2
- package/timepicker/timepicker.module.d.ts +12 -12
- package/timepicker/timepicker.type.d.ts +131 -131
- package/transfer/{ngx-formly-zorro-antd-transfer.d.ts → index.d.ts} +5 -5
- package/transfer/public_api.d.ts +2 -2
- package/transfer/transfer.component.d.ts +26 -26
- package/transfer/transfer.module.d.ts +13 -13
- package/transfer/transfer.type.d.ts +118 -118
- package/tree-select/{ngx-formly-zorro-antd-tree-select.d.ts → index.d.ts} +5 -5
- package/tree-select/public_api.d.ts +2 -2
- package/tree-select/tree-select.module.d.ts +12 -12
- package/tree-select/tree-select.type.d.ts +158 -158
- package/upload/{ngx-formly-zorro-antd-upload.d.ts → index.d.ts} +5 -5
- package/upload/public_api.d.ts +2 -2
- package/upload/upload.component.d.ts +27 -27
- package/upload/upload.module.d.ts +15 -15
- package/upload/upload.type.d.ts +173 -173
- package/autocomplete/package.json +0 -10
- package/button/package.json +0 -10
- package/card/package.json +0 -10
- package/cascader/package.json +0 -10
- package/checkbox/package.json +0 -10
- package/datepicker/package.json +0 -10
- package/form-field/package.json +0 -10
- package/grid/package.json +0 -10
- package/input/package.json +0 -10
- package/input-group/package.json +0 -10
- package/input-number/package.json +0 -10
- package/ngx-formly-zorro-antd.d.ts +0 -5
- package/radio/package.json +0 -10
- package/rate/package.json +0 -10
- package/select/package.json +0 -10
- package/slider/package.json +0 -10
- package/switch/package.json +0 -10
- package/tabs/package.json +0 -10
- package/textarea/package.json +0 -10
- package/timepicker/package.json +0 -10
- package/transfer/package.json +0 -10
- package/tree-select/package.json +0 -10
- package/upload/package.json +0 -10
@@ -1,222 +1,220 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { Component, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i1 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i2 from '@angular/forms';
|
6
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
7
|
-
import * as
|
7
|
+
import * as i4 from '@ngx-formly/core';
|
8
8
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
9
9
|
import * as i5 from '@ngx-formly/core/select';
|
10
10
|
import { FormlySelectModule } from '@ngx-formly/core/select';
|
11
11
|
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
12
|
-
import * as
|
12
|
+
import * as i3 from 'ng-zorro-antd/select';
|
13
13
|
import { NzSelectModule } from 'ng-zorro-antd/select';
|
14
14
|
|
15
|
-
class FormlyFieldSelect extends FieldType {
|
16
|
-
constructor() {
|
17
|
-
super(...arguments);
|
18
|
-
this.defaultOptions = {
|
19
|
-
props: {
|
20
|
-
compareWith: (o1, o2) => o1 === o2,
|
21
|
-
autoClearSearchValue: true,
|
22
|
-
allowClear: false,
|
23
|
-
backdrop: false,
|
24
|
-
open: false,
|
25
|
-
dropdownMatchSelectWidth: true,
|
26
|
-
serverSearch: false,
|
27
|
-
maxMultipleCount: Infinity,
|
28
|
-
mode: 'default',
|
29
|
-
showSearch: false,
|
30
|
-
size: 'default',
|
31
|
-
status: '',
|
32
|
-
tokenSeparators: [],
|
33
|
-
loading: false,
|
34
|
-
optionHeightPx: 32,
|
35
|
-
optionOverflowSize: 8
|
36
|
-
}
|
37
|
-
};
|
38
|
-
}
|
39
|
-
ngOnInit() {
|
40
|
-
if (this.props['filterOption'] instanceof Function) {
|
41
|
-
this.select.nzFilterOption = this.props['filterOption'];
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
46
|
-
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
47
|
-
<nz-select
|
48
|
-
#select
|
49
|
-
[class.ng-dirty]="showError"
|
50
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
51
|
-
[compareWith]="props['compareWith']!"
|
52
|
-
[nzAllowClear]="props['allowClear']!!"
|
53
|
-
[nzAutoClearSearchValue]="props['autoClearSearchValue']"
|
54
|
-
[nzBackdrop]="props['backdrop']!!"
|
55
|
-
[nzBorderless]="props['borderless']"
|
56
|
-
[nzOpen]="props['open']!!"
|
57
|
-
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
58
|
-
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
59
|
-
[nzCustomTemplate]="props['customTemplate'] ?? null"
|
60
|
-
[nzServerSearch]="props['serverSearch']!!"
|
61
|
-
[nzMaxMultipleCount]="props['maxMultipleCount']!"
|
62
|
-
[nzMode]="props['mode']!"
|
63
|
-
[nzShowSearch]="props['showSearch']!!"
|
64
|
-
[nzSize]="props['size']!"
|
65
|
-
[nzStatus]="props['status']!"
|
66
|
-
[nzLoading]="props['loading']!!"
|
67
|
-
[nzShowArrow]="props['showArrow']!!"
|
68
|
-
[nzMaxTagCount]="props['maxTagCount']"
|
69
|
-
[nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
|
70
|
-
[nzOptionHeightPx]="props['optionHeightPx']!"
|
71
|
-
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
72
|
-
[formControl]="formControl"
|
73
|
-
[formlyAttributes]="field"
|
74
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
75
|
-
(nzBlur)="props.blur && props.blur(field, $event)"
|
76
|
-
(nzFocus)="props.focus && props.focus(field, $event)"
|
77
|
-
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
78
|
-
(nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
|
79
|
-
(nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
|
80
|
-
>
|
81
|
-
<ng-container *ngFor="let item of to.options | formlySelectOptions: field | async">
|
82
|
-
<nz-option-group [nzLabel]="item.label" *ngIf="item.group; else selectoption">
|
83
|
-
<nz-option
|
84
|
-
*ngFor="let child of item.group"
|
85
|
-
[nzValue]="child.value"
|
86
|
-
[nzDisabled]="child.disabled"
|
87
|
-
[nzLabel]="child.label"
|
88
|
-
>
|
89
|
-
</nz-option>
|
90
|
-
</nz-option-group>
|
91
|
-
|
92
|
-
<ng-template #selectoption>
|
93
|
-
<nz-option
|
94
|
-
[nzValue]="item.value"
|
95
|
-
[nzDisabled]="item.disabled"
|
96
|
-
[nzLabel]="item.label"
|
97
|
-
></nz-option>
|
98
|
-
</ng-template>
|
99
|
-
</ng-container>
|
100
|
-
</nz-select>
|
101
|
-
`, isInline: true,
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
103
|
-
type: Component,
|
104
|
-
args: [{
|
105
|
-
selector: 'formly-field-select',
|
106
|
-
template: `
|
107
|
-
<nz-select
|
108
|
-
#select
|
109
|
-
[class.ng-dirty]="showError"
|
110
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
111
|
-
[compareWith]="props['compareWith']!"
|
112
|
-
[nzAllowClear]="props['allowClear']!!"
|
113
|
-
[nzAutoClearSearchValue]="props['autoClearSearchValue']"
|
114
|
-
[nzBackdrop]="props['backdrop']!!"
|
115
|
-
[nzBorderless]="props['borderless']"
|
116
|
-
[nzOpen]="props['open']!!"
|
117
|
-
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
118
|
-
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
119
|
-
[nzCustomTemplate]="props['customTemplate'] ?? null"
|
120
|
-
[nzServerSearch]="props['serverSearch']!!"
|
121
|
-
[nzMaxMultipleCount]="props['maxMultipleCount']!"
|
122
|
-
[nzMode]="props['mode']!"
|
123
|
-
[nzShowSearch]="props['showSearch']!!"
|
124
|
-
[nzSize]="props['size']!"
|
125
|
-
[nzStatus]="props['status']!"
|
126
|
-
[nzLoading]="props['loading']!!"
|
127
|
-
[nzShowArrow]="props['showArrow']!!"
|
128
|
-
[nzMaxTagCount]="props['maxTagCount']"
|
129
|
-
[nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
|
130
|
-
[nzOptionHeightPx]="props['optionHeightPx']!"
|
131
|
-
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
132
|
-
[formControl]="formControl"
|
133
|
-
[formlyAttributes]="field"
|
134
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
135
|
-
(nzBlur)="props.blur && props.blur(field, $event)"
|
136
|
-
(nzFocus)="props.focus && props.focus(field, $event)"
|
137
|
-
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
138
|
-
(nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
|
139
|
-
(nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
|
140
|
-
>
|
141
|
-
<ng-container *ngFor="let item of to.options | formlySelectOptions: field | async">
|
142
|
-
<nz-option-group [nzLabel]="item.label" *ngIf="item.group; else selectoption">
|
143
|
-
<nz-option
|
144
|
-
*ngFor="let child of item.group"
|
145
|
-
[nzValue]="child.value"
|
146
|
-
[nzDisabled]="child.disabled"
|
147
|
-
[nzLabel]="child.label"
|
148
|
-
>
|
149
|
-
</nz-option>
|
150
|
-
</nz-option-group>
|
151
|
-
|
152
|
-
<ng-template #selectoption>
|
153
|
-
<nz-option
|
154
|
-
[nzValue]="item.value"
|
155
|
-
[nzDisabled]="item.disabled"
|
156
|
-
[nzLabel]="item.label"
|
157
|
-
></nz-option>
|
158
|
-
</ng-template>
|
159
|
-
</ng-container>
|
160
|
-
</nz-select>
|
161
|
-
`,
|
162
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
163
|
-
}]
|
164
|
-
}], propDecorators: { select: [{
|
165
|
-
type: ViewChild,
|
166
|
-
args: ['select', { static: true }]
|
15
|
+
class FormlyFieldSelect extends FieldType {
|
16
|
+
constructor() {
|
17
|
+
super(...arguments);
|
18
|
+
this.defaultOptions = {
|
19
|
+
props: {
|
20
|
+
compareWith: (o1, o2) => o1 === o2,
|
21
|
+
autoClearSearchValue: true,
|
22
|
+
allowClear: false,
|
23
|
+
backdrop: false,
|
24
|
+
open: false,
|
25
|
+
dropdownMatchSelectWidth: true,
|
26
|
+
serverSearch: false,
|
27
|
+
maxMultipleCount: Infinity,
|
28
|
+
mode: 'default',
|
29
|
+
showSearch: false,
|
30
|
+
size: 'default',
|
31
|
+
status: '',
|
32
|
+
tokenSeparators: [],
|
33
|
+
loading: false,
|
34
|
+
optionHeightPx: 32,
|
35
|
+
optionOverflowSize: 8
|
36
|
+
}
|
37
|
+
};
|
38
|
+
}
|
39
|
+
ngOnInit() {
|
40
|
+
if (this.props['filterOption'] instanceof Function) {
|
41
|
+
this.select.nzFilterOption = this.props['filterOption'];
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
46
|
+
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
47
|
+
<nz-select
|
48
|
+
#select
|
49
|
+
[class.ng-dirty]="showError"
|
50
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
51
|
+
[compareWith]="props['compareWith']!"
|
52
|
+
[nzAllowClear]="props['allowClear']!!"
|
53
|
+
[nzAutoClearSearchValue]="props['autoClearSearchValue']"
|
54
|
+
[nzBackdrop]="props['backdrop']!!"
|
55
|
+
[nzBorderless]="props['borderless']"
|
56
|
+
[nzOpen]="props['open']!!"
|
57
|
+
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
58
|
+
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
59
|
+
[nzCustomTemplate]="props['customTemplate'] ?? null"
|
60
|
+
[nzServerSearch]="props['serverSearch']!!"
|
61
|
+
[nzMaxMultipleCount]="props['maxMultipleCount']!"
|
62
|
+
[nzMode]="props['mode']!"
|
63
|
+
[nzShowSearch]="props['showSearch']!!"
|
64
|
+
[nzSize]="props['size']!"
|
65
|
+
[nzStatus]="props['status']!"
|
66
|
+
[nzLoading]="props['loading']!!"
|
67
|
+
[nzShowArrow]="props['showArrow']!!"
|
68
|
+
[nzMaxTagCount]="props['maxTagCount']"
|
69
|
+
[nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
|
70
|
+
[nzOptionHeightPx]="props['optionHeightPx']!"
|
71
|
+
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
72
|
+
[formControl]="formControl"
|
73
|
+
[formlyAttributes]="field"
|
74
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
75
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
76
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
77
|
+
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
78
|
+
(nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
|
79
|
+
(nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
|
80
|
+
>
|
81
|
+
<ng-container *ngFor="let item of to.options | formlySelectOptions: field | async">
|
82
|
+
<nz-option-group [nzLabel]="item.label" *ngIf="item.group; else selectoption">
|
83
|
+
<nz-option
|
84
|
+
*ngFor="let child of item.group"
|
85
|
+
[nzValue]="child.value"
|
86
|
+
[nzDisabled]="child.disabled"
|
87
|
+
[nzLabel]="child.label"
|
88
|
+
>
|
89
|
+
</nz-option>
|
90
|
+
</nz-option-group>
|
91
|
+
|
92
|
+
<ng-template #selectoption>
|
93
|
+
<nz-option
|
94
|
+
[nzValue]="item.value"
|
95
|
+
[nzDisabled]="item.disabled"
|
96
|
+
[nzLabel]="item.label"
|
97
|
+
></nz-option>
|
98
|
+
</ng-template>
|
99
|
+
</ng-container>
|
100
|
+
</nz-select>
|
101
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
103
|
+
type: Component,
|
104
|
+
args: [{
|
105
|
+
selector: 'formly-field-select',
|
106
|
+
template: `
|
107
|
+
<nz-select
|
108
|
+
#select
|
109
|
+
[class.ng-dirty]="showError"
|
110
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
111
|
+
[compareWith]="props['compareWith']!"
|
112
|
+
[nzAllowClear]="props['allowClear']!!"
|
113
|
+
[nzAutoClearSearchValue]="props['autoClearSearchValue']"
|
114
|
+
[nzBackdrop]="props['backdrop']!!"
|
115
|
+
[nzBorderless]="props['borderless']"
|
116
|
+
[nzOpen]="props['open']!!"
|
117
|
+
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
118
|
+
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
119
|
+
[nzCustomTemplate]="props['customTemplate'] ?? null"
|
120
|
+
[nzServerSearch]="props['serverSearch']!!"
|
121
|
+
[nzMaxMultipleCount]="props['maxMultipleCount']!"
|
122
|
+
[nzMode]="props['mode']!"
|
123
|
+
[nzShowSearch]="props['showSearch']!!"
|
124
|
+
[nzSize]="props['size']!"
|
125
|
+
[nzStatus]="props['status']!"
|
126
|
+
[nzLoading]="props['loading']!!"
|
127
|
+
[nzShowArrow]="props['showArrow']!!"
|
128
|
+
[nzMaxTagCount]="props['maxTagCount']"
|
129
|
+
[nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
|
130
|
+
[nzOptionHeightPx]="props['optionHeightPx']!"
|
131
|
+
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
132
|
+
[formControl]="formControl"
|
133
|
+
[formlyAttributes]="field"
|
134
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
135
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
136
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
137
|
+
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
138
|
+
(nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
|
139
|
+
(nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
|
140
|
+
>
|
141
|
+
<ng-container *ngFor="let item of to.options | formlySelectOptions: field | async">
|
142
|
+
<nz-option-group [nzLabel]="item.label" *ngIf="item.group; else selectoption">
|
143
|
+
<nz-option
|
144
|
+
*ngFor="let child of item.group"
|
145
|
+
[nzValue]="child.value"
|
146
|
+
[nzDisabled]="child.disabled"
|
147
|
+
[nzLabel]="child.label"
|
148
|
+
>
|
149
|
+
</nz-option>
|
150
|
+
</nz-option-group>
|
151
|
+
|
152
|
+
<ng-template #selectoption>
|
153
|
+
<nz-option
|
154
|
+
[nzValue]="item.value"
|
155
|
+
[nzDisabled]="item.disabled"
|
156
|
+
[nzLabel]="item.label"
|
157
|
+
></nz-option>
|
158
|
+
</ng-template>
|
159
|
+
</ng-container>
|
160
|
+
</nz-select>
|
161
|
+
`,
|
162
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
163
|
+
}]
|
164
|
+
}], propDecorators: { select: [{
|
165
|
+
type: ViewChild,
|
166
|
+
args: ['select', { static: true }]
|
167
167
|
}] } });
|
168
168
|
|
169
|
-
class FormlyNzSelectModule {
|
170
|
-
}
|
171
|
-
FormlyNzSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
172
|
-
FormlyNzSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
173
|
-
ReactiveFormsModule,
|
174
|
-
NzSelectModule,
|
175
|
-
FormlyNzFormFieldModule,
|
176
|
-
FormlySelectModule,
|
177
|
-
FormlyNzSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
]
|
215
|
-
}]
|
169
|
+
class FormlyNzSelectModule {
|
170
|
+
}
|
171
|
+
FormlyNzSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
172
|
+
FormlyNzSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
173
|
+
ReactiveFormsModule,
|
174
|
+
NzSelectModule,
|
175
|
+
FormlyNzFormFieldModule,
|
176
|
+
FormlySelectModule, i4.FormlyModule] });
|
177
|
+
FormlyNzSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
|
178
|
+
ReactiveFormsModule,
|
179
|
+
NzSelectModule,
|
180
|
+
FormlyNzFormFieldModule,
|
181
|
+
FormlySelectModule,
|
182
|
+
FormlyModule.forChild({
|
183
|
+
types: [
|
184
|
+
{
|
185
|
+
name: 'select',
|
186
|
+
component: FormlyFieldSelect,
|
187
|
+
wrappers: ['form-field']
|
188
|
+
},
|
189
|
+
{ name: 'enum', extends: 'select' }
|
190
|
+
]
|
191
|
+
})] });
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
|
193
|
+
type: NgModule,
|
194
|
+
args: [{
|
195
|
+
declarations: [FormlyFieldSelect],
|
196
|
+
imports: [
|
197
|
+
CommonModule,
|
198
|
+
ReactiveFormsModule,
|
199
|
+
NzSelectModule,
|
200
|
+
FormlyNzFormFieldModule,
|
201
|
+
FormlySelectModule,
|
202
|
+
FormlyModule.forChild({
|
203
|
+
types: [
|
204
|
+
{
|
205
|
+
name: 'select',
|
206
|
+
component: FormlyFieldSelect,
|
207
|
+
wrappers: ['form-field']
|
208
|
+
},
|
209
|
+
{ name: 'enum', extends: 'select' }
|
210
|
+
]
|
211
|
+
})
|
212
|
+
]
|
213
|
+
}]
|
216
214
|
}] });
|
217
215
|
|
218
|
-
/**
|
219
|
-
* Generated bundle index. Do not edit.
|
216
|
+
/**
|
217
|
+
* Generated bundle index. Do not edit.
|
220
218
|
*/
|
221
219
|
|
222
220
|
export { FormlyFieldSelect, FormlyNzSelectModule };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n <ng-container *ngFor=\"let item of to.options | formlySelectOptions: field | async\">\n <nz-option-group [nzLabel]=\"item.label\" *ngIf=\"item.group; else selectoption\">\n <nz-option\n *ngFor=\"let child of item.group\"\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n </nz-option-group>\n\n <ng-template #selectoption>\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n </ng-template>\n </ng-container>\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as any;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAuEM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AA5DjE,IAAA,WAAA,GAAA;;AA6DW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACxD,gBAAA,oBAAoB,EAAE,IAAI;AAC1B,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,YAAY,EAAE,KAAK;AACnB,gBAAA,gBAAgB,EAAE,QAAQ;AAC1B,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,cAAc,EAAE,EAAE;AAClB,gBAAA,kBAAkB,EAAE,CAAC;AACtB,aAAA;SACF,CAAC;AAOH,KAAA;IALC,QAAQ,GAAA;QACN,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,QAAQ,EAAE;YAClD,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAQ,CAAC;AAChE,SAAA;KACF;;8GA1BU,iBAAiB,EAAA,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