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
@@ -6,7 +6,7 @@ import * as i2 from "@angular/forms";
|
|
6
6
|
import * as i3 from "ng-zorro-antd/input";
|
7
7
|
import * as i4 from "ng-zorro-antd/icon";
|
8
8
|
import * as i5 from "@ngx-formly/core";
|
9
|
-
|
9
|
+
class FormlyFieldTextarea extends FieldType {
|
10
10
|
constructor() {
|
11
11
|
super(...arguments);
|
12
12
|
this.defaultOptions = {
|
@@ -17,9 +17,8 @@ export class FormlyFieldTextarea extends FieldType {
|
|
17
17
|
}
|
18
18
|
};
|
19
19
|
}
|
20
|
-
}
|
21
|
-
|
22
|
-
FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
|
23
22
|
<ng-container [ngSwitch]="props.type">
|
24
23
|
<ng-container *ngSwitchCase="'count'">
|
25
24
|
<nz-textarea-count [nzMaxCharacterCount]="props['maxCharacterCount'] || 0">
|
@@ -74,8 +73,10 @@ FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
74
73
|
(click)="formControl.reset()"
|
75
74
|
></span>
|
76
75
|
</ng-template>
|
77
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
78
|
-
|
76
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
77
|
+
}
|
78
|
+
export { FormlyFieldTextarea };
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
|
79
80
|
type: Component,
|
80
81
|
args: [{
|
81
82
|
selector: 'formly-field-textarea',
|
@@ -138,4 +139,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
138
139
|
changeDetection: ChangeDetectionStrategy.OnPush
|
139
140
|
}]
|
140
141
|
}] });
|
141
|
-
//# sourceMappingURL=data:application/json;base64,
|
142
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdGV4dGFyZWEvc3JjL3RleHRhcmVhLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7O0FBNEJqRixNQTREYSxtQkFBb0IsU0FBUSxTQUF5QztJQTVEbEY7O1FBNkRXLG1CQUFjLEdBQUc7WUFDeEIsS0FBSyxFQUFFO2dCQUNMLElBQUksRUFBRSxDQUFDO2dCQUNQLFFBQVEsRUFBRSxLQUFLO2dCQUNmLFVBQVUsRUFBRSxLQUFLO2FBQ2xCO1NBQ0YsQ0FBQztLQUNIOzhHQVJZLG1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gICAgfVxuICB9O1xufVxuIl19
|
@@ -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 { NzTimePickerModule } from 'ng-zorro-antd/time-picker';
|
7
|
+
import { FormlyFieldTimepicker } from './timepicker.type';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@ngx-formly/core";
|
10
|
+
class FormlyNzTimepickerModule {
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
12
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTimepickerModule, declarations: [FormlyFieldTimepicker], imports: [CommonModule,
|
13
|
+
ReactiveFormsModule,
|
14
|
+
FormlyNzFormFieldModule,
|
15
|
+
NzTimePickerModule, i1.FormlyModule] }); }
|
16
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTimepickerModule, imports: [CommonModule,
|
17
|
+
ReactiveFormsModule,
|
18
|
+
FormlyNzFormFieldModule,
|
19
|
+
NzTimePickerModule,
|
20
|
+
FormlyModule.forChild({
|
21
|
+
types: [
|
22
|
+
{
|
23
|
+
name: 'timepicker',
|
24
|
+
component: FormlyFieldTimepicker,
|
25
|
+
wrappers: ['form-field']
|
26
|
+
}
|
27
|
+
]
|
28
|
+
})] }); }
|
29
|
+
}
|
30
|
+
export { FormlyNzTimepickerModule };
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTimepickerModule, decorators: [{
|
32
|
+
type: NgModule,
|
33
|
+
args: [{
|
34
|
+
declarations: [FormlyFieldTimepicker],
|
35
|
+
imports: [
|
36
|
+
CommonModule,
|
37
|
+
ReactiveFormsModule,
|
38
|
+
FormlyNzFormFieldModule,
|
39
|
+
NzTimePickerModule,
|
40
|
+
FormlyModule.forChild({
|
41
|
+
types: [
|
42
|
+
{
|
43
|
+
name: 'timepicker',
|
44
|
+
component: FormlyFieldTimepicker,
|
45
|
+
wrappers: ['form-field']
|
46
|
+
}
|
47
|
+
]
|
48
|
+
})
|
49
|
+
]
|
50
|
+
}]
|
51
|
+
}] });
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3RpbWVwaWNrZXIvc3JjL3RpbWVwaWNrZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUUzRSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUMvRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7O0FBRTFELE1Bb0JhLHdCQUF3Qjs4R0FBeEIs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ZUZvcm1zTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuaW1wb3J0IHsgRm9ybWx5TnpGb3JtRmllbGRNb2R1bGUgfSBmcm9tICduZ3gtZm9ybWx5LXpvcnJvLWFudGQvZm9ybS1maWVsZCc7XG5cbmltcG9ydCB7IE56VGltZVBpY2tlck1vZHVsZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvdGltZS1waWNrZXInO1xuaW1wb3J0IHsgRm9ybWx5RmllbGRUaW1lcGlja2VyIH0gZnJvbSAnLi90aW1lcGlja2VyLnR5cGUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtGb3JtbHlGaWVsZFRpbWVwaWNrZXJdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXG4gICAgRm9ybWx5TnpGb3JtRmllbGRNb2R1bGUsXG5cbiAgICBOelRpbWVQaWNrZXJNb2R1bGUsXG5cbiAgICBGb3JtbHlNb2R1bGUuZm9yQ2hpbGQoe1xuICAgICAgdHlwZXM6IFtcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICd0aW1lcGlja2VyJyxcbiAgICAgICAgICBjb21wb25lbnQ6IEZvcm1seUZpZWxkVGltZXBpY2tlcixcbiAgICAgICAgICB3cmFwcGVyczogWydmb3JtLWZpZWxkJ11cbiAgICAgICAgfVxuICAgICAgXVxuICAgIH0pXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5TnpUaW1lcGlja2VyTW9kdWxlIHt9XG4iXX0=
|
@@ -0,0 +1,97 @@
|
|
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/common";
|
5
|
+
import * as i2 from "@angular/forms";
|
6
|
+
import * as i3 from "ng-zorro-antd/time-picker";
|
7
|
+
import * as i4 from "@ngx-formly/core";
|
8
|
+
class FormlyFieldTimepicker extends FieldType {
|
9
|
+
constructor() {
|
10
|
+
super(...arguments);
|
11
|
+
this.defaultOptions = {
|
12
|
+
props: {
|
13
|
+
allowEmpty: true,
|
14
|
+
autoFocus: false,
|
15
|
+
backdrop: false,
|
16
|
+
borderless: false,
|
17
|
+
inputReadOnly: false,
|
18
|
+
open: false,
|
19
|
+
clearText: 'clear',
|
20
|
+
defaultOpenValue: new Date(),
|
21
|
+
format: 'HH:mm:ss'
|
22
|
+
}
|
23
|
+
};
|
24
|
+
}
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldTimepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldTimepicker, selector: "formly-field-timepicker", usesInheritance: true, ngImport: i0, template: `<nz-time-picker
|
27
|
+
#time
|
28
|
+
[formControl]="formControl"
|
29
|
+
[formlyAttributes]="field"
|
30
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
31
|
+
[ngClass]="props['className']"
|
32
|
+
[nzAddOn]="props['addOn']"
|
33
|
+
[nzAllowEmpty]="props['allowEmpty']!!"
|
34
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
35
|
+
[nzBackdrop]="props['backdrop']!!"
|
36
|
+
[nzClearText]="props['clearText']"
|
37
|
+
[nzNowText]="props['nowText']"
|
38
|
+
[nzOkText]="props['okText']"
|
39
|
+
[nzDefaultOpenValue]="props['defaultOpenValue']"
|
40
|
+
[nzDisabledHours]="props['disabledHours']"
|
41
|
+
[nzDisabledMinutes]="props['disabledMinutes']"
|
42
|
+
[nzDisabledSeconds]="props['disabledSeconds']"
|
43
|
+
[nzFormat]="props['format']"
|
44
|
+
[nzHideDisabledOptions]="props['hideDisabledOptions']!!"
|
45
|
+
[nzHourStep]="props['hourStep']"
|
46
|
+
[nzBorderless]="props['borderless']!!"
|
47
|
+
[nzInputReadOnly]="props['inputReadOnly']!!"
|
48
|
+
[nzMinuteStep]="props['minuteStep']"
|
49
|
+
[nzSecondStep]="props['secondStep']"
|
50
|
+
[nzOpen]="props['open']!!"
|
51
|
+
[nzPopupClassName]="props['popupClassName']"
|
52
|
+
[nzUse12Hours]="props['use12Hours']!!"
|
53
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
54
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
55
|
+
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
56
|
+
></nz-time-picker>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzTimePickerComponent, selector: "nz-time-picker", inputs: ["nzId", "nzSize", "nzStatus", "nzHourStep", "nzMinuteStep", "nzSecondStep", "nzClearText", "nzNowText", "nzOkText", "nzPopupClassName", "nzPlaceHolder", "nzAddOn", "nzDefaultOpenValue", "nzDisabledHours", "nzDisabledMinutes", "nzDisabledSeconds", "nzFormat", "nzOpen", "nzUse12Hours", "nzSuffixIcon", "nzHideDisabledOptions", "nzAllowEmpty", "nzDisabled", "nzAutoFocus", "nzBackdrop", "nzBorderless", "nzInputReadOnly"], outputs: ["nzOpenChange"], exportAs: ["nzTimePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
57
|
+
}
|
58
|
+
export { FormlyFieldTimepicker };
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldTimepicker, decorators: [{
|
60
|
+
type: Component,
|
61
|
+
args: [{
|
62
|
+
selector: 'formly-field-timepicker',
|
63
|
+
template: `<nz-time-picker
|
64
|
+
#time
|
65
|
+
[formControl]="formControl"
|
66
|
+
[formlyAttributes]="field"
|
67
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
68
|
+
[ngClass]="props['className']"
|
69
|
+
[nzAddOn]="props['addOn']"
|
70
|
+
[nzAllowEmpty]="props['allowEmpty']!!"
|
71
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
72
|
+
[nzBackdrop]="props['backdrop']!!"
|
73
|
+
[nzClearText]="props['clearText']"
|
74
|
+
[nzNowText]="props['nowText']"
|
75
|
+
[nzOkText]="props['okText']"
|
76
|
+
[nzDefaultOpenValue]="props['defaultOpenValue']"
|
77
|
+
[nzDisabledHours]="props['disabledHours']"
|
78
|
+
[nzDisabledMinutes]="props['disabledMinutes']"
|
79
|
+
[nzDisabledSeconds]="props['disabledSeconds']"
|
80
|
+
[nzFormat]="props['format']"
|
81
|
+
[nzHideDisabledOptions]="props['hideDisabledOptions']!!"
|
82
|
+
[nzHourStep]="props['hourStep']"
|
83
|
+
[nzBorderless]="props['borderless']!!"
|
84
|
+
[nzInputReadOnly]="props['inputReadOnly']!!"
|
85
|
+
[nzMinuteStep]="props['minuteStep']"
|
86
|
+
[nzSecondStep]="props['secondStep']"
|
87
|
+
[nzOpen]="props['open']!!"
|
88
|
+
[nzPopupClassName]="props['popupClassName']"
|
89
|
+
[nzUse12Hours]="props['use12Hours']!!"
|
90
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
91
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
92
|
+
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
93
|
+
></nz-time-picker>`,
|
94
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
95
|
+
}]
|
96
|
+
}] });
|
97
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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GZpZWxkLCAkZXZlbnQpXCJcbiAgICAobnpPcGVuQ2hhbmdlKT1cInByb3BzWydvcGVuQ2hhbmdlJ10gJiYgcHJvcHNbJ29wZW5DaGFuZ2UnXShmaWVsZCwgJGV2ZW50KVwiXG4gID48L256LXRpbWUtcGlja2VyPmAsXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seUZpZWxkVGltZXBpY2tlciBleHRlbmRzIEZpZWxkVHlwZTxGaWVsZFR5cGVDb25maWc+IHtcbiAgb3ZlcnJpZGUgZGVmYXVsdE9wdGlvbnMgPSB7XG4gICAgcHJvcHM6IHtcbiAgICAgIGFsbG93RW1wdHk6IHRydWUsXG4gICAgICBhdXRvRm9jdXM6IGZhbHNlLFxuICAgICAgYmFja2Ryb3A6IGZhbHNlLFxuICAgICAgYm9yZGVybGVzczogZmFsc2UsXG4gICAgICBpbnB1dFJlYWRPbmx5OiBmYWxzZSxcbiAgICAgIG9wZW46IGZhbHNlLFxuICAgICAgY2xlYXJUZXh0OiAnY2xlYXInLFxuICAgICAgZGVmYXVsdE9wZW5WYWx1ZTogbmV3IERhdGUoKSxcbiAgICAgIGZvcm1hdDogJ0hIOm1tOnNzJyBhcyBOelNhZmVBbnlcbiAgICB9XG4gIH07XG59XG4iXX0=
|
@@ -0,0 +1,129 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
2
|
+
import { ChangeDetectionStrategy, Component, Input, ViewChild, ViewEncapsulation } from '@angular/core';
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
+
import { NzTransferComponent } from 'ng-zorro-antd/transfer';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "ng-zorro-antd/transfer";
|
7
|
+
class TransferComponent extends NzTransferComponent {
|
8
|
+
constructor() {
|
9
|
+
super(...arguments);
|
10
|
+
this.onChange = () => { };
|
11
|
+
this.onTouched = () => { };
|
12
|
+
}
|
13
|
+
writeValue(obj) {
|
14
|
+
setTimeout(() => {
|
15
|
+
this.nzTargetKeys = obj;
|
16
|
+
this['cdr'].markForCheck();
|
17
|
+
this.onChange(this.transfer.rightDataSource);
|
18
|
+
}, 0);
|
19
|
+
}
|
20
|
+
registerOnChange(fn) {
|
21
|
+
this.onChange = fn;
|
22
|
+
}
|
23
|
+
registerOnTouched(fn) {
|
24
|
+
this.onTouched = fn;
|
25
|
+
}
|
26
|
+
setDisabledState(isDisabled) {
|
27
|
+
this.nzDisabled = isDisabled;
|
28
|
+
}
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
30
|
+
change(value) {
|
31
|
+
if (this.resultMap instanceof Function) {
|
32
|
+
this.onChange(this.resultMap(this.transfer.rightDataSource));
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
this.onChange(this.transfer.rightDataSource);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* 选中项发生改变时的回调函数
|
40
|
+
*/
|
41
|
+
selectChange(value) {
|
42
|
+
this.nzSelectChange.emit(value);
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* 搜索框内容时改变时的回调函数
|
46
|
+
*/
|
47
|
+
searchChange(value) {
|
48
|
+
this.nzSearchChange.emit(value);
|
49
|
+
}
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
51
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
|
52
|
+
{
|
53
|
+
provide: NG_VALUE_ACCESSOR,
|
54
|
+
useExisting: TransferComponent,
|
55
|
+
multi: true
|
56
|
+
}
|
57
|
+
], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
58
|
+
<nz-transfer
|
59
|
+
#transfer
|
60
|
+
[nzDataSource]="nzDataSource"
|
61
|
+
[nzDisabled]="nzDisabled"
|
62
|
+
[nzTitles]="nzTitles"
|
63
|
+
[nzOperations]="nzOperations"
|
64
|
+
[nzListStyle]="nzListStyle"
|
65
|
+
[nzItemUnit]="nzItemUnit"
|
66
|
+
[nzItemsUnit]="nzItemsUnit"
|
67
|
+
[nzRenderList]="nzRenderList"
|
68
|
+
[nzRender]="nzRender"
|
69
|
+
[nzFooter]="nzFooter"
|
70
|
+
[nzShowSearch]="nzShowSearch"
|
71
|
+
[nzFilterOption]="nzFilterOption"
|
72
|
+
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
73
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
74
|
+
[nzSelectedKeys]="nzSelectedKeys"
|
75
|
+
[nzTargetKeys]="nzTargetKeys"
|
76
|
+
(nzChange)="change($event)"
|
77
|
+
(nzSearchChange)="searchChange($event)"
|
78
|
+
(nzSelectChange)="selectChange($event)"
|
79
|
+
style="flex: auto;"
|
80
|
+
></nz-transfer>
|
81
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
82
|
+
}
|
83
|
+
export { TransferComponent };
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: TransferComponent, decorators: [{
|
85
|
+
type: Component,
|
86
|
+
args: [{
|
87
|
+
selector: 'formly-transfer',
|
88
|
+
template: `
|
89
|
+
<nz-transfer
|
90
|
+
#transfer
|
91
|
+
[nzDataSource]="nzDataSource"
|
92
|
+
[nzDisabled]="nzDisabled"
|
93
|
+
[nzTitles]="nzTitles"
|
94
|
+
[nzOperations]="nzOperations"
|
95
|
+
[nzListStyle]="nzListStyle"
|
96
|
+
[nzItemUnit]="nzItemUnit"
|
97
|
+
[nzItemsUnit]="nzItemsUnit"
|
98
|
+
[nzRenderList]="nzRenderList"
|
99
|
+
[nzRender]="nzRender"
|
100
|
+
[nzFooter]="nzFooter"
|
101
|
+
[nzShowSearch]="nzShowSearch"
|
102
|
+
[nzFilterOption]="nzFilterOption"
|
103
|
+
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
104
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
105
|
+
[nzSelectedKeys]="nzSelectedKeys"
|
106
|
+
[nzTargetKeys]="nzTargetKeys"
|
107
|
+
(nzChange)="change($event)"
|
108
|
+
(nzSearchChange)="searchChange($event)"
|
109
|
+
(nzSelectChange)="selectChange($event)"
|
110
|
+
style="flex: auto;"
|
111
|
+
></nz-transfer>
|
112
|
+
`,
|
113
|
+
encapsulation: ViewEncapsulation.None,
|
114
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
115
|
+
providers: [
|
116
|
+
{
|
117
|
+
provide: NG_VALUE_ACCESSOR,
|
118
|
+
useExisting: TransferComponent,
|
119
|
+
multi: true
|
120
|
+
}
|
121
|
+
]
|
122
|
+
}]
|
123
|
+
}], propDecorators: { transfer: [{
|
124
|
+
type: ViewChild,
|
125
|
+
args: ['transfer', { static: true }]
|
126
|
+
}], resultMap: [{
|
127
|
+
type: Input
|
128
|
+
}] } });
|
129
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiI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LmoYblhoXlrrnml7bmlLnlj5jml7bnmoTlm57osIPlh73mlbBcbiAgICovXG4gIHNlYXJjaENoYW5nZSh2YWx1ZTogVHJhbnNmZXJTZWFyY2hDaGFuZ2UpIHtcbiAgICB0aGlzLm56U2VhcmNoQ2hhbmdlLmVtaXQodmFsdWUpO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,53 @@
|
|
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 { NzTransferModule } from 'ng-zorro-antd/transfer';
|
7
|
+
import { FormlyFieldTransfer } from './transfer.type';
|
8
|
+
import { TransferComponent } from './transfer.component';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
import * as i1 from "@ngx-formly/core";
|
11
|
+
class FormlyNzTransferModule {
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
13
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
|
14
|
+
ReactiveFormsModule,
|
15
|
+
FormlyNzFormFieldModule,
|
16
|
+
NzTransferModule, i1.FormlyModule] }); }
|
17
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
|
18
|
+
ReactiveFormsModule,
|
19
|
+
FormlyNzFormFieldModule,
|
20
|
+
NzTransferModule,
|
21
|
+
FormlyModule.forChild({
|
22
|
+
types: [
|
23
|
+
{
|
24
|
+
name: 'transfer',
|
25
|
+
component: FormlyFieldTransfer,
|
26
|
+
wrappers: ['form-field']
|
27
|
+
}
|
28
|
+
]
|
29
|
+
})] }); }
|
30
|
+
}
|
31
|
+
export { FormlyNzTransferModule };
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
|
33
|
+
type: NgModule,
|
34
|
+
args: [{
|
35
|
+
declarations: [FormlyFieldTransfer, TransferComponent],
|
36
|
+
imports: [
|
37
|
+
CommonModule,
|
38
|
+
ReactiveFormsModule,
|
39
|
+
FormlyNzFormFieldModule,
|
40
|
+
NzTransferModule,
|
41
|
+
FormlyModule.forChild({
|
42
|
+
types: [
|
43
|
+
{
|
44
|
+
name: 'transfer',
|
45
|
+
component: FormlyFieldTransfer,
|
46
|
+
wrappers: ['form-field']
|
47
|
+
}
|
48
|
+
]
|
49
|
+
})
|
50
|
+
]
|
51
|
+
}]
|
52
|
+
}] });
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90cmFuc2Zlci9zcmMvdHJhbnNmZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0F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XG4gICAgICAgICAgd3JhcHBlcnM6IFsnZm9ybS1maWVsZCddXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9KVxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seU56VHJhbnNmZXJNb2R1bGUge31cbiJdfQ==
|
@@ -0,0 +1,88 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import { NzTransferComponent } from 'ng-zorro-antd/transfer';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@angular/forms";
|
6
|
+
import * as i2 from "@ngx-formly/core";
|
7
|
+
import * as i3 from "./transfer.component";
|
8
|
+
class FormlyFieldTransfer extends FieldType {
|
9
|
+
constructor() {
|
10
|
+
super(...arguments);
|
11
|
+
this.defaultOptions = {
|
12
|
+
props: {
|
13
|
+
dataSource: [],
|
14
|
+
titles: ['', ''],
|
15
|
+
operations: ['', ''],
|
16
|
+
renderList: [null, null],
|
17
|
+
listStyle: {}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
}
|
21
|
+
ngOnInit() {
|
22
|
+
const canMove = this.props['canMove'];
|
23
|
+
if (canMove !== null && canMove !== undefined) {
|
24
|
+
this.transfer.nzCanMove = canMove;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
|
29
|
+
#transfer
|
30
|
+
[formControl]="formControl"
|
31
|
+
[formlyAttributes]="field"
|
32
|
+
[nzDataSource]="props['dataSource']"
|
33
|
+
[nzTitles]="props['titles']"
|
34
|
+
[nzOperations]="props['operations']"
|
35
|
+
[nzListStyle]="props['listStyle']"
|
36
|
+
[nzItemUnit]="props['itemUnit']"
|
37
|
+
[nzItemsUnit]="props['itemsUnit']"
|
38
|
+
[nzRenderList]="props['renderList']!"
|
39
|
+
[nzRender]="props['render'] ?? null"
|
40
|
+
[nzFooter]="props['footer'] ?? null"
|
41
|
+
[nzShowSearch]="props['showSearch']!!"
|
42
|
+
[nzFilterOption]="props['filterOption']"
|
43
|
+
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
44
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
45
|
+
[nzSelectedKeys]="props['selectedKeys']"
|
46
|
+
[nzTargetKeys]="props['targetKeys']"
|
47
|
+
[resultMap]="props['resultMap']"
|
48
|
+
(nzChange)="props['onChange'] && props['onChange']($event)"
|
49
|
+
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
50
|
+
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
51
|
+
></formly-transfer>`, 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: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i3.TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
52
|
+
}
|
53
|
+
export { FormlyFieldTransfer };
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
|
55
|
+
type: Component,
|
56
|
+
args: [{
|
57
|
+
selector: 'formly-field-transfer',
|
58
|
+
template: `<formly-transfer
|
59
|
+
#transfer
|
60
|
+
[formControl]="formControl"
|
61
|
+
[formlyAttributes]="field"
|
62
|
+
[nzDataSource]="props['dataSource']"
|
63
|
+
[nzTitles]="props['titles']"
|
64
|
+
[nzOperations]="props['operations']"
|
65
|
+
[nzListStyle]="props['listStyle']"
|
66
|
+
[nzItemUnit]="props['itemUnit']"
|
67
|
+
[nzItemsUnit]="props['itemsUnit']"
|
68
|
+
[nzRenderList]="props['renderList']!"
|
69
|
+
[nzRender]="props['render'] ?? null"
|
70
|
+
[nzFooter]="props['footer'] ?? null"
|
71
|
+
[nzShowSearch]="props['showSearch']!!"
|
72
|
+
[nzFilterOption]="props['filterOption']"
|
73
|
+
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
74
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
75
|
+
[nzSelectedKeys]="props['selectedKeys']"
|
76
|
+
[nzTargetKeys]="props['targetKeys']"
|
77
|
+
[resultMap]="props['resultMap']"
|
78
|
+
(nzChange)="props['onChange'] && props['onChange']($event)"
|
79
|
+
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
80
|
+
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
81
|
+
></formly-transfer>`,
|
82
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
83
|
+
}]
|
84
|
+
}], propDecorators: { transfer: [{
|
85
|
+
type: ViewChild,
|
86
|
+
args: ['transfer', { static: true }]
|
87
|
+
}] } });
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXIudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdHJhbnNmZXIvc3JjL3RyYW5zZmVyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFHdk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6lemDqOa4suafk+aooeadv++8jOingeekuuS+i1xuICAgKi9cbiAgZm9vdGVyPzogVGVtcGxhdGVSZWY8TnpTYWZlQW55PiB8IG51bGw7XG5cbiAgLyoqXG4gICAqIOaYr+WQpuaYvuekuuaQnOe0ouahhlxuICAgKiBAZGVmYXVsdCBmYWxzZVxuICAgKi9cbiAgc2hvd1NlYXJjaD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIOaOpeaUtiBpbnB1dFZhbHVlb3B0aW9uIOS4pOS4quWPguaVsO+8jOW9kyBvcHRpb24g56ym5ZCI562b6YCJ5p2h5Lu25pe277yM5bqU6L+U5ZueIHRydWXvvIzlj43kuYvliJnov5Tlm54gZmFsc2XjgIJcbiAgICovXG4gIGZpbHRlck9wdGlvbj86IChpbnB1dFZhbHVlOiBzdHJpbmcsIGl0ZW06IFRyYW5zZmVySXRlbSkgPT4gYm9vbGVhbjtcblxuICAvKipcbiAgICog5pCc57Si5qGG55qE6buY6K6k5YC8XG4gICAqIEBkZWZhdWx0IOivt+i+k+WFpeaQnOe0ouWGheWuuVxuICAgKi9cbiAgc2VhcmNoUGxhY2Vob2xkZXI/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIOW9k+WIl+ihqOS4uuepuuaXtuaYvuekuueahOWGheWuuVxuICAgKiBAZGVmYXVsdCDliJfooajkuLrnqbpcbiAgICovXG4gIG5vdEZvdW5kQ29udGVudD86IHN0cmluZztcblxuICAvKipcbiAgICog56m/5qKt5pe25LqM5qyh5qCh6aqM44CC5rOo5oSP77yaIOepv+airee7hOS7tuWGhemDqOWni+e7iOWPquS/neeVmeS4gOS7veaVsOaNru+8jOS6jOasoeagoemqjOi/h+eoi+S4remcgOWPlua2iOepv+airemhueWImeebtOaOpeWIoOmZpOivpemhue+8m+WFt+S9k+eUqOazleingeekuuS+i+OAglxuICAgKi9cbiAgY2FuTW92ZT86IChhcmc6IFRyYW5zZmVyQ2FuTW92ZSkgPT4gT2JzZXJ2YWJsZTxUcmF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AgICBjb25zdCBjYW5Nb3ZlID0gdGhpcy5wcm9wc1snY2FuTW92ZSddO1xuICAgIGlmIChjYW5Nb3ZlICE9PSBudWxsICYmIGNhbk1vdmUgIT09IHVuZGVmaW5lZCkge1xuICAgICAgdGhpcy50cmFuc2Zlci5uekNhbk1vdmUgPSBjYW5Nb3ZlO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -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 { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
|
7
|
+
import { FormlyFieldTreeSelect } from './tree-select.type';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@ngx-formly/core";
|
10
|
+
class FormlyNzTreeSelectModule {
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
12
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
|
13
|
+
ReactiveFormsModule,
|
14
|
+
FormlyNzFormFieldModule,
|
15
|
+
NzTreeSelectModule, i1.FormlyModule] }); }
|
16
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
|
17
|
+
ReactiveFormsModule,
|
18
|
+
FormlyNzFormFieldModule,
|
19
|
+
NzTreeSelectModule,
|
20
|
+
FormlyModule.forChild({
|
21
|
+
types: [
|
22
|
+
{
|
23
|
+
name: 'tree-select',
|
24
|
+
component: FormlyFieldTreeSelect,
|
25
|
+
wrappers: ['form-field']
|
26
|
+
}
|
27
|
+
]
|
28
|
+
})] }); }
|
29
|
+
}
|
30
|
+
export { FormlyNzTreeSelectModule };
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
|
32
|
+
type: NgModule,
|
33
|
+
args: [{
|
34
|
+
declarations: [FormlyFieldTreeSelect],
|
35
|
+
imports: [
|
36
|
+
CommonModule,
|
37
|
+
ReactiveFormsModule,
|
38
|
+
FormlyNzFormFieldModule,
|
39
|
+
NzTreeSelectModule,
|
40
|
+
FormlyModule.forChild({
|
41
|
+
types: [
|
42
|
+
{
|
43
|
+
name: 'tree-select',
|
44
|
+
component: FormlyFieldTreeSelect,
|
45
|
+
wrappers: ['form-field']
|
46
|
+
}
|
47
|
+
]
|
48
|
+
})
|
49
|
+
]
|
50
|
+
}]
|
51
|
+
}] });
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1zZWxlY3QubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90cmVlLXNlbGVjdC9zcmMvdHJlZS1zZWxlY3QubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsdU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