ngx-formly-zorro-antd 15.0.2 → 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 +8 -7
- 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 +8 -7
- 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 +41 -41
- 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 +26 -26
- 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
@@ -0,0 +1,58 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FormlyModule } from '@ngx-formly/core';
|
5
|
+
import { FormlySelectModule } from '@ngx-formly/core/select';
|
6
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
7
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
8
|
+
import { FormlyFieldSelect } from './select.type';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
import * as i1 from "@ngx-formly/core";
|
11
|
+
class FormlyNzSelectModule {
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
13
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
14
|
+
ReactiveFormsModule,
|
15
|
+
NzSelectModule,
|
16
|
+
FormlyNzFormFieldModule,
|
17
|
+
FormlySelectModule, i1.FormlyModule] }); }
|
18
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
|
19
|
+
ReactiveFormsModule,
|
20
|
+
NzSelectModule,
|
21
|
+
FormlyNzFormFieldModule,
|
22
|
+
FormlySelectModule,
|
23
|
+
FormlyModule.forChild({
|
24
|
+
types: [
|
25
|
+
{
|
26
|
+
name: 'select',
|
27
|
+
component: FormlyFieldSelect,
|
28
|
+
wrappers: ['form-field']
|
29
|
+
},
|
30
|
+
{ name: 'enum', extends: 'select' }
|
31
|
+
]
|
32
|
+
})] }); }
|
33
|
+
}
|
34
|
+
export { FormlyNzSelectModule };
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
|
36
|
+
type: NgModule,
|
37
|
+
args: [{
|
38
|
+
declarations: [FormlyFieldSelect],
|
39
|
+
imports: [
|
40
|
+
CommonModule,
|
41
|
+
ReactiveFormsModule,
|
42
|
+
NzSelectModule,
|
43
|
+
FormlyNzFormFieldModule,
|
44
|
+
FormlySelectModule,
|
45
|
+
FormlyModule.forChild({
|
46
|
+
types: [
|
47
|
+
{
|
48
|
+
name: 'select',
|
49
|
+
component: FormlyFieldSelect,
|
50
|
+
wrappers: ['form-field']
|
51
|
+
},
|
52
|
+
{ name: 'enum', extends: 'select' }
|
53
|
+
]
|
54
|
+
})
|
55
|
+
]
|
56
|
+
}]
|
57
|
+
}] });
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc2VsZWN0L3NyYy9zZWxlY3QubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUM3RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUUzRSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFdEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFFbEQsTUFxQmEsb0JBQW9COzhHQUFwQixvQkFBb0I7K0dBQXBCLG9CQUFvQixpQkFwQmhCLGlCQUFpQixhQUU5QixZQUFZO1lBQ1osbUJBQW1CO1lBQ25CLGNBQWM7WUFFZ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elNlbGVjdE1vZHVsZSB7fVxuIl19
|
@@ -7,7 +7,7 @@ import * as i2 from "@angular/forms";
|
|
7
7
|
import * as i3 from "ng-zorro-antd/select";
|
8
8
|
import * as i4 from "@ngx-formly/core";
|
9
9
|
import * as i5 from "@ngx-formly/core/select";
|
10
|
-
|
10
|
+
class FormlyFieldSelect extends FieldType {
|
11
11
|
constructor() {
|
12
12
|
super(...arguments);
|
13
13
|
this.defaultOptions = {
|
@@ -37,9 +37,8 @@ export class FormlyFieldSelect extends FieldType {
|
|
37
37
|
this.select.nzFilterOption = this.props['filterOption'];
|
38
38
|
}
|
39
39
|
}
|
40
|
-
}
|
41
|
-
|
42
|
-
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
43
42
|
<nz-select
|
44
43
|
#select
|
45
44
|
[class.ng-dirty]="showError"
|
@@ -97,8 +96,10 @@ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
97
96
|
</ng-template>
|
98
97
|
</ng-container>
|
99
98
|
</nz-select>
|
100
|
-
`, 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", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "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 });
|
101
|
-
|
99
|
+
`, 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", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "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 }); }
|
100
|
+
}
|
101
|
+
export { FormlyFieldSelect };
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
102
103
|
type: Component,
|
103
104
|
args: [{
|
104
105
|
selector: 'formly-field-select',
|
@@ -167,4 +168,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
167
168
|
type: ViewChild,
|
168
169
|
args: ['select', { static: true }]
|
169
170
|
}] } });
|
170
|
-
//# sourceMappingURL=data:application/json;base64,
|
171
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3NlbGVjdC9zcmMvc2VsZWN0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDNUYsT0FBTyxFQUFFLFNBQVMsRUFBc0MsTUFBTSxrQkFBa0IsQ0FBQztBQUVqRixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7Ozs7OztBQVF6RCxNQStEYSxpQkFBa0IsU0FBUSxTQUEwQjtJQS9EakU7O1FBZ0VXLG1CQUFjLEdBQUc7WUFDeEIsS0FBSyxFQUFFO2dCQUNMLFdBQVcsRUFBRSxDQUFDLEVBQWEsRUFBRSxFQUFhLEVBQUUsRUFBRSxDQUFDLEVBQUUsS0FBSyxFQUFFO2dCQUN4RCxvQkFBb0IsRUFBRSxJQUFJO2dCQUMxQixVQUFVLEVBQUUsS0FBSztnQkFDakIsUUFBUSxFQUFFLEtBQUs7Z0JBQ2YsSUFBSSxFQUFFLEtBQUs7Z0JBQ1gsd0JBQXdCLEVBQUU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nXSBhcyBhbnk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FormlyModule } from '@ngx-formly/core';
|
5
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
6
|
+
import { FormlyFieldSlider } from './slider.type';
|
7
|
+
import { NzSliderModule } from 'ng-zorro-antd/slider';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@ngx-formly/core";
|
10
|
+
class FormlyNzSliderModule {
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
12
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
|
13
|
+
ReactiveFormsModule,
|
14
|
+
FormlyNzFormFieldModule,
|
15
|
+
NzSliderModule, i1.FormlyModule] }); }
|
16
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSliderModule, imports: [CommonModule,
|
17
|
+
ReactiveFormsModule,
|
18
|
+
FormlyNzFormFieldModule,
|
19
|
+
NzSliderModule,
|
20
|
+
FormlyModule.forChild({
|
21
|
+
types: [
|
22
|
+
{
|
23
|
+
name: 'slider',
|
24
|
+
component: FormlyFieldSlider,
|
25
|
+
wrappers: ['form-field']
|
26
|
+
}
|
27
|
+
]
|
28
|
+
})] }); }
|
29
|
+
}
|
30
|
+
export { FormlyNzSliderModule };
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSliderModule, decorators: [{
|
32
|
+
type: NgModule,
|
33
|
+
args: [{
|
34
|
+
declarations: [FormlyFieldSlider],
|
35
|
+
imports: [
|
36
|
+
CommonModule,
|
37
|
+
ReactiveFormsModule,
|
38
|
+
FormlyNzFormFieldModule,
|
39
|
+
NzSliderModule,
|
40
|
+
FormlyModule.forChild({
|
41
|
+
types: [
|
42
|
+
{
|
43
|
+
name: 'slider',
|
44
|
+
component: FormlyFieldSlider,
|
45
|
+
wrappers: ['form-field']
|
46
|
+
}
|
47
|
+
]
|
48
|
+
})
|
49
|
+
]
|
50
|
+
}]
|
51
|
+
}] });
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGVyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc2xpZGVyL3NyYy9zbGlkZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUUzRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHNCQUFzQixDQUFDOzs7QUFFdEQsTUFtQmEsb0JBQW9COzhHQUFwQixvQkFBb0I7K0dBQXBCLG9CQUFvQixpQkFsQmhCLGlCQUF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3JlJztcbmltcG9ydCB7IEZvcm1seU56Rm9ybUZpZWxkTW9kdWxlIH0gZnJvbSAnbmd4LWZvcm1seS16b3Jyby1hbnRkL2Zvcm0tZmllbGQnO1xuXG5pbXBvcnQgeyBGb3JtbHlGaWVsZFNsaWRlciB9IGZyb20gJy4vc2xpZGVyLnR5cGUnO1xuaW1wb3J0IHsgTnpTbGlkZXJNb2R1bGUgfSBmcm9tICduZy16b3Jyby1hbnRkL3NsaWRlcic7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0Zvcm1seUZpZWxkU2xpZGVyXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBSZWFjdGl2ZUZvcm1zTW9kdWxlLFxuICAgIEZvcm1seU56Rm9ybUZpZWxkTW9kdWxlLFxuICAgIE56U2xpZGVyTW9kdWxlLFxuXG4gICAgRm9ybWx5TW9kdWxlLmZvckNoaWxkKHtcbiAgICAgIHR5cGVzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBuYW1lOiAnc2xpZGVyJyxcbiAgICAgICAgICBjb21wb25lbnQ6IEZvcm1seUZpZWxkU2xpZGVyLFxuICAgICAgICAgIHdyYXBwZXJzOiBbJ2Zvcm0tZmllbGQnXVxuICAgICAgICB9XG4gICAgICBdXG4gICAgfSlcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlOelNsaWRlck1vZHVsZSB7fVxuIl19
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/forms";
|
5
|
+
import * as i2 from "ng-zorro-antd/slider";
|
6
|
+
import * as i3 from "@ngx-formly/core";
|
7
|
+
class FormlyFieldSlider extends FieldType {
|
8
|
+
constructor() {
|
9
|
+
super(...arguments);
|
10
|
+
this.defaultOptions = {
|
11
|
+
props: {
|
12
|
+
max: 100,
|
13
|
+
min: 0,
|
14
|
+
step: 1,
|
15
|
+
dots: false,
|
16
|
+
included: true,
|
17
|
+
range: false,
|
18
|
+
vertical: false,
|
19
|
+
reverse: false,
|
20
|
+
tooltipVisible: 'default'
|
21
|
+
}
|
22
|
+
};
|
23
|
+
}
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldSlider, selector: "formly-field-slider", usesInheritance: true, ngImport: i0, template: `<nz-slider
|
26
|
+
#slider
|
27
|
+
[formControl]="formControl"
|
28
|
+
[formlyAttributes]="field"
|
29
|
+
[nzDots]="props['dots']!!"
|
30
|
+
[nzIncluded]="props['included']!!"
|
31
|
+
[nzMax]="props.max"
|
32
|
+
[nzMin]="props.min"
|
33
|
+
[nzRange]="props['range']!!"
|
34
|
+
[nzStep]="props.step"
|
35
|
+
[nzTipFormatter]="props['tipFormatter']"
|
36
|
+
[nzVertical]="props['vertical']!!"
|
37
|
+
[nzReverse]="props['reverse']!!"
|
38
|
+
[nzTooltipVisible]="props['tooltipVisible']!"
|
39
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
40
|
+
(nzOnAfterChange)="props['afterChange'] && props['afterChange'](field, $event)"
|
41
|
+
></nz-slider>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzSliderComponent, selector: "nz-slider", inputs: ["nzDisabled", "nzDots", "nzIncluded", "nzRange", "nzVertical", "nzReverse", "nzDefaultValue", "nzMarks", "nzMax", "nzMin", "nzStep", "nzTooltipVisible", "nzTooltipPlacement", "nzTipFormatter"], outputs: ["nzOnAfterChange"], exportAs: ["nzSlider"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
42
|
+
}
|
43
|
+
export { FormlyFieldSlider };
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldSlider, decorators: [{
|
45
|
+
type: Component,
|
46
|
+
args: [{
|
47
|
+
selector: 'formly-field-slider',
|
48
|
+
template: `<nz-slider
|
49
|
+
#slider
|
50
|
+
[formControl]="formControl"
|
51
|
+
[formlyAttributes]="field"
|
52
|
+
[nzDots]="props['dots']!!"
|
53
|
+
[nzIncluded]="props['included']!!"
|
54
|
+
[nzMax]="props.max"
|
55
|
+
[nzMin]="props.min"
|
56
|
+
[nzRange]="props['range']!!"
|
57
|
+
[nzStep]="props.step"
|
58
|
+
[nzTipFormatter]="props['tipFormatter']"
|
59
|
+
[nzVertical]="props['vertical']!!"
|
60
|
+
[nzReverse]="props['reverse']!!"
|
61
|
+
[nzTooltipVisible]="props['tooltipVisible']!"
|
62
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
63
|
+
(nzOnAfterChange)="props['afterChange'] && props['afterChange'](field, $event)"
|
64
|
+
></nz-slider>`,
|
65
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
66
|
+
}]
|
67
|
+
}] });
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGVyLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3NsaWRlci9zcmMvc2xpZGVyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFN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3J0IGNsYXNzIEZvcm1seUZpZWxkU2xpZGVyIGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZzxTbGlkZVByb3BzPj4ge1xuICBvdmVycmlkZSBkZWZhdWx0T3B0aW9ucyA9IHtcbiAgICBwcm9wczoge1xuICAgICAgbWF4OiAxMDAsXG4gICAgICBtaW46IDAsXG4gICAgICBzdGVwOiAxLFxuICAgICAgZG90czogZmFsc2UsXG4gICAgICBpbmNsdWRlZDogdHJ1ZSxcbiAgICAgIHJhbmdlOiBmYWxzZSxcbiAgICAgIHZlcnRpY2FsOiBmYWxzZSxcbiAgICAgIHJldmVyc2U6IGZhbHNlLFxuICAgICAgdG9vbHRpcFZpc2libGU6ICdkZWZhdWx0JyBhcyBjb25zdFxuICAgIH1cbiAgfTtcbn1cbiJdfQ==
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
5
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
6
|
+
import { FormlyFieldSwitch } from './switch.type';
|
7
|
+
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@ngx-formly/core";
|
10
|
+
class FormlyNzSwitchModule {
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
12
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSwitchModule, declarations: [FormlyFieldSwitch], imports: [CommonModule,
|
13
|
+
ReactiveFormsModule,
|
14
|
+
FormlyNzFormFieldModule,
|
15
|
+
NzSwitchModule, i1.FormlyModule] }); }
|
16
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSwitchModule, imports: [CommonModule,
|
17
|
+
ReactiveFormsModule,
|
18
|
+
FormlyNzFormFieldModule,
|
19
|
+
NzSwitchModule,
|
20
|
+
FormlyModule.forChild({
|
21
|
+
types: [
|
22
|
+
{
|
23
|
+
name: 'switch',
|
24
|
+
component: FormlyFieldSwitch,
|
25
|
+
wrappers: ['form-field']
|
26
|
+
}
|
27
|
+
]
|
28
|
+
})] }); }
|
29
|
+
}
|
30
|
+
export { FormlyNzSwitchModule };
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzSwitchModule, decorators: [{
|
32
|
+
type: NgModule,
|
33
|
+
args: [{
|
34
|
+
declarations: [FormlyFieldSwitch],
|
35
|
+
imports: [
|
36
|
+
CommonModule,
|
37
|
+
ReactiveFormsModule,
|
38
|
+
FormlyNzFormFieldModule,
|
39
|
+
NzSwitchModule,
|
40
|
+
FormlyModule.forChild({
|
41
|
+
types: [
|
42
|
+
{
|
43
|
+
name: 'switch',
|
44
|
+
component: FormlyFieldSwitch,
|
45
|
+
wrappers: ['form-field']
|
46
|
+
}
|
47
|
+
]
|
48
|
+
})
|
49
|
+
]
|
50
|
+
}]
|
51
|
+
}] });
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc3dpdGNoL3NyYy9zd2l0Y2gubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQU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sXG4gICAgICAgICAgd3JhcHBlcnM6IFsnZm9ybS1maWVsZCddXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9KVxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seU56U3dpdGNoTW9kdWxlIHt9XG4iXX0=
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/forms";
|
5
|
+
import * as i2 from "ng-zorro-antd/switch";
|
6
|
+
import * as i3 from "@ngx-formly/core";
|
7
|
+
class FormlyFieldSwitch extends FieldType {
|
8
|
+
constructor() {
|
9
|
+
super(...arguments);
|
10
|
+
this.defaultOptions = {
|
11
|
+
props: {
|
12
|
+
size: 'default',
|
13
|
+
loading: false,
|
14
|
+
control: false
|
15
|
+
}
|
16
|
+
};
|
17
|
+
}
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
19
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldSwitch, selector: "formly-field-switch", usesInheritance: true, ngImport: i0, template: `
|
20
|
+
<nz-switch
|
21
|
+
[formControl]="formControl"
|
22
|
+
[formlyAttributes]="field"
|
23
|
+
[nzId]="id"
|
24
|
+
[nzCheckedChildren]="props['checkedChildren'] ?? null"
|
25
|
+
[nzUnCheckedChildren]="props['unCheckedChildren'] ?? null"
|
26
|
+
[nzSize]="props['size']!"
|
27
|
+
[nzLoading]="props['loading']!!"
|
28
|
+
[nzControl]="props['control']!!"
|
29
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
30
|
+
></nz-switch>
|
31
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
32
|
+
}
|
33
|
+
export { FormlyFieldSwitch };
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldSwitch, decorators: [{
|
35
|
+
type: Component,
|
36
|
+
args: [{
|
37
|
+
selector: 'formly-field-switch',
|
38
|
+
template: `
|
39
|
+
<nz-switch
|
40
|
+
[formControl]="formControl"
|
41
|
+
[formlyAttributes]="field"
|
42
|
+
[nzId]="id"
|
43
|
+
[nzCheckedChildren]="props['checkedChildren'] ?? null"
|
44
|
+
[nzUnCheckedChildren]="props['unCheckedChildren'] ?? null"
|
45
|
+
[nzSize]="props['size']!"
|
46
|
+
[nzLoading]="props['loading']!!"
|
47
|
+
[nzControl]="props['control']!!"
|
48
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
49
|
+
></nz-switch>
|
50
|
+
`,
|
51
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
52
|
+
}]
|
53
|
+
}] });
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3N3aXRjaC9zcmMvc3dpdGNoLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkF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pbGRyZW5dPVwicHJvcHNbJ2NoZWNrZWRDaGlsZHJlbiddID8/IG51bGxcIlxuICAgICAgW256VW5DaGVja2VkQ2hpbGRyZW5dPVwicHJvcHNbJ3VuQ2hlY2tlZENoaWxkcmVuJ10gPz8gbnVsbFwiXG4gICAgICBbbnpTaXplXT1cInByb3BzWydzaXplJ10hXCJcbiAgICAgIFtuekxvYWRpbmddPVwicHJvcHNbJ2xvYWRpbmcnXSEhXCJcbiAgICAgIFtuekNvbnRyb2xdPVwicHJvcHNbJ2NvbnRyb2wnXSEhXCJcbiAgICAgIChuZ01vZGVsQ2hhbmdlKT1cInByb3BzLmNoYW5nZSAmJiBwcm9wcy5jaGFuZ2UoZmllbGQsICRldmVudClcIlxuICAgID48L256LXN3aXRjaD5cbiAgYCxcbiAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2hcbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5RmllbGRTd2l0Y2ggZXh0ZW5kcyBGaWVsZFR5cGU8RmllbGRUeXBlQ29uZmlnPFN3aXRjaFByb3BzPj4ge1xuICBvdmVycmlkZSBkZWZhdWx0T3B0aW9ucyA9IHtcbiAgICBwcm9wczoge1xuICAgICAgc2l6ZTogJ2RlZmF1bHQnIGFzIGNvbnN0LFxuICAgICAgbG9hZGluZzogZmFsc2UsXG4gICAgICBjb250cm9sOiBmYWxzZVxuICAgIH1cbiAgfTtcbn1cbiJdfQ==
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
4
|
+
import { FormlyWrapperTabs } from './tabs.wrapper';
|
5
|
+
import { NzTabsModule } from 'ng-zorro-antd/tabs';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
import * as i1 from "@ngx-formly/core";
|
8
|
+
class FormlyNzTabsModule {
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
10
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTabsModule, declarations: [FormlyWrapperTabs], imports: [CommonModule,
|
11
|
+
NzTabsModule, i1.FormlyModule] }); }
|
12
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTabsModule, imports: [CommonModule,
|
13
|
+
NzTabsModule,
|
14
|
+
FormlyModule.forChild({
|
15
|
+
wrappers: [
|
16
|
+
{
|
17
|
+
name: 'tabs',
|
18
|
+
component: FormlyWrapperTabs
|
19
|
+
}
|
20
|
+
]
|
21
|
+
})] }); }
|
22
|
+
}
|
23
|
+
export { FormlyNzTabsModule };
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTabsModule, decorators: [{
|
25
|
+
type: NgModule,
|
26
|
+
args: [{
|
27
|
+
declarations: [FormlyWrapperTabs],
|
28
|
+
imports: [
|
29
|
+
CommonModule,
|
30
|
+
NzTabsModule,
|
31
|
+
FormlyModule.forChild({
|
32
|
+
wrappers: [
|
33
|
+
{
|
34
|
+
name: 'tabs',
|
35
|
+
component: FormlyWrapperTabs
|
36
|
+
}
|
37
|
+
]
|
38
|
+
})
|
39
|
+
]
|
40
|
+
}]
|
41
|
+
}] });
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3RhYnMvc3JjL3RhYnMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcG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9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IEZvcm1seU1vZHVsZSB9IGZyb20gJ0BuZ3gtZm9ybWx5L2NvcmUnO1xuXG5pbXBvcnQgeyBGb3JtbHlXcmFwcGVyVGFicyB9IGZyb20gJy4vdGFicy53cmFwcGVyJztcbmltcG9ydCB7IE56VGFic01vZHVsZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvdGFicyc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0Zvcm1seVdyYXBwZXJUYWJzXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcblxuICAgIE56VGFic01vZHVsZSxcblxuICAgIEZvcm1seU1vZHVsZS5mb3JDaGlsZCh7XG4gICAgICB3cmFwcGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ3RhYnMnLFxuICAgICAgICAgIGNvbXBvbmVudDogRm9ybWx5V3JhcHBlclRhYnNcbiAgICAgICAgfVxuICAgICAgXVxuICAgIH0pXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5TnpUYWJzTW9kdWxlIHt9XG4iXX0=
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
5
5
|
import * as i2 from "ng-zorro-antd/tabs";
|
6
6
|
import * as i3 from "@ngx-formly/core";
|
7
|
-
|
7
|
+
class FormlyWrapperTabs extends FieldWrapper {
|
8
8
|
constructor() {
|
9
9
|
super(...arguments);
|
10
10
|
this.defaultOptions = {
|
@@ -25,9 +25,8 @@ export class FormlyWrapperTabs extends FieldWrapper {
|
|
25
25
|
}
|
26
26
|
};
|
27
27
|
}
|
28
|
-
}
|
29
|
-
|
30
|
-
FormlyWrapperTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyWrapperTabs, selector: "formly-wrapper-tabs", usesInheritance: true, ngImport: i0, template: `<nz-tabset
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperTabs, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyWrapperTabs, selector: "formly-wrapper-tabs", usesInheritance: true, ngImport: i0, template: `<nz-tabset
|
31
30
|
[(nzSelectedIndex)]="props['selectedIndex']"
|
32
31
|
[nzAnimated]="props['animated']!"
|
33
32
|
[nzSize]="props['size']!"
|
@@ -65,8 +64,10 @@ FormlyWrapperTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
65
64
|
>
|
66
65
|
<formly-field [field]="tab"></formly-field>
|
67
66
|
</nz-tab>
|
68
|
-
</nz-tabset>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i2.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
69
|
-
|
67
|
+
</nz-tabset>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i2.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
68
|
+
}
|
69
|
+
export { FormlyWrapperTabs };
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperTabs, decorators: [{
|
70
71
|
type: Component,
|
71
72
|
args: [{
|
72
73
|
selector: 'formly-wrapper-tabs',
|
@@ -112,4 +113,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
112
113
|
changeDetection: ChangeDetectionStrategy.OnPush
|
113
114
|
}]
|
114
115
|
}] });
|
115
|
-
//# sourceMappingURL=data:application/json;base64,
|
116
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy53cmFwcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90YWJzL3NyYy90YWJzLndyYXBwZXIudHMiXSwibmFtZXMiOltdLC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NlLFxuICAgICAgbGlua0V4YWN0OiB0cnVlLFxuICAgICAgY2VudGVyZWQ6IGZhbHNlLFxuICAgICAgaGlkZUFkZDogZmFsc2UsXG4gICAgICB0YWI6IHtcbiAgICAgICAgZm9yY2VSZW5kZXI6IGZhbHNlLFxuICAgICAgICBkaXNhYmxlZDogZmFsc2VcbiAgICAgIH1cbiAgICB9XG4gIH07XG59XG4iXX0=
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FormlyModule } from '@ngx-formly/core';
|
5
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
6
|
+
import { FormlyFieldTextarea } from './textarea.type';
|
7
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
8
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
import * as i1 from "@ngx-formly/core";
|
11
|
+
class FormlyNzTextareaModule {
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
13
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTextareaModule, declarations: [FormlyFieldTextarea], imports: [CommonModule,
|
14
|
+
ReactiveFormsModule,
|
15
|
+
FormlyNzFormFieldModule,
|
16
|
+
NzInputModule,
|
17
|
+
NzIconModule, i1.FormlyModule] }); }
|
18
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTextareaModule, imports: [CommonModule,
|
19
|
+
ReactiveFormsModule,
|
20
|
+
FormlyNzFormFieldModule,
|
21
|
+
NzInputModule,
|
22
|
+
NzIconModule,
|
23
|
+
FormlyModule.forChild({
|
24
|
+
types: [
|
25
|
+
{
|
26
|
+
name: 'textarea',
|
27
|
+
component: FormlyFieldTextarea,
|
28
|
+
wrappers: ['form-field']
|
29
|
+
}
|
30
|
+
]
|
31
|
+
})] }); }
|
32
|
+
}
|
33
|
+
export { FormlyNzTextareaModule };
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTextareaModule, decorators: [{
|
35
|
+
type: NgModule,
|
36
|
+
args: [{
|
37
|
+
declarations: [FormlyFieldTextarea],
|
38
|
+
imports: [
|
39
|
+
CommonModule,
|
40
|
+
ReactiveFormsModule,
|
41
|
+
FormlyNzFormFieldModule,
|
42
|
+
NzInputModule,
|
43
|
+
NzIconModule,
|
44
|
+
FormlyModule.forChild({
|
45
|
+
types: [
|
46
|
+
{
|
47
|
+
name: 'textarea',
|
48
|
+
component: FormlyFieldTextarea,
|
49
|
+
wrappers: ['form-field']
|
50
|
+
}
|
51
|
+
]
|
52
|
+
})
|
53
|
+
]
|
54
|
+
}]
|
55
|
+
}] });
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90ZXh0YXJlYS9zcmMvdGV4dGFyZWEubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxr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