ngx-formly-zorro-antd 14.0.0 → 14.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +38 -38
- package/autocomplete/index.d.ts +5 -5
- package/autocomplete/public_api.d.ts +1 -1
- package/button/button.module.d.ts +11 -11
- package/button/button.type.d.ts +66 -66
- package/button/index.d.ts +5 -5
- package/button/public_api.d.ts +2 -2
- package/card/card.module.d.ts +10 -10
- package/card/card.wrapper.d.ts +58 -58
- package/card/index.d.ts +5 -5
- package/card/public_api.d.ts +2 -2
- package/cascader/cascader.module.d.ts +12 -12
- package/cascader/cascader.type.d.ts +152 -152
- package/cascader/index.d.ts +5 -5
- package/cascader/public_api.d.ts +2 -2
- package/checkbox/checkbox.module.d.ts +12 -12
- package/checkbox/checkbox.type.d.ts +35 -35
- package/checkbox/index.d.ts +5 -5
- package/checkbox/public_api.d.ts +2 -2
- package/datepicker/datepicker.module.d.ts +12 -12
- package/datepicker/datepicker.props.d.ts +144 -146
- package/datepicker/datepicker.type.d.ts +31 -31
- package/datepicker/index.d.ts +5 -5
- package/datepicker/public_api.d.ts +2 -2
- package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
- package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
- package/esm2020/autocomplete/public_api.mjs +2 -2
- package/esm2020/button/button.module.mjs +61 -61
- package/esm2020/button/button.type.mjs +110 -110
- package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
- package/esm2020/button/public_api.mjs +3 -3
- package/esm2020/card/card.module.mjs +43 -43
- package/esm2020/card/card.wrapper.mjs +47 -47
- package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
- package/esm2020/card/public_api.mjs +3 -3
- package/esm2020/cascader/cascader.module.mjs +51 -51
- package/esm2020/cascader/cascader.type.mjs +112 -112
- package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
- package/esm2020/cascader/public_api.mjs +3 -3
- package/esm2020/checkbox/checkbox.module.mjs +59 -59
- package/esm2020/checkbox/checkbox.type.mjs +69 -69
- package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
- package/esm2020/checkbox/public_api.mjs +3 -3
- package/esm2020/datepicker/datepicker.module.mjs +51 -51
- package/esm2020/datepicker/datepicker.props.mjs +2 -2
- package/esm2020/datepicker/datepicker.type.mjs +191 -189
- package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
- package/esm2020/datepicker/public_api.mjs +3 -3
- package/esm2020/form-field/form-field.module.mjs +45 -45
- package/esm2020/form-field/form-field.props.mjs +2 -2
- package/esm2020/form-field/form-field.wrapper.mjs +127 -127
- package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
- package/esm2020/form-field/public_api.mjs +2 -2
- package/esm2020/grid/grid.module.mjs +41 -41
- package/esm2020/grid/grid.props.mjs +2 -2
- package/esm2020/grid/grid.type.mjs +71 -71
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
- package/esm2020/grid/public_api.mjs +3 -3
- package/esm2020/index.mjs +2 -2
- package/esm2020/input/input.module.mjs +89 -89
- package/esm2020/input/input.props.mjs +2 -2
- package/esm2020/input/input.type.mjs +309 -309
- package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
- package/esm2020/input/public_api.mjs +3 -3
- package/esm2020/input-group/input-group.module.mjs +47 -47
- package/esm2020/input-group/input-group.props.mjs +2 -2
- package/esm2020/input-group/input-group.type.mjs +71 -71
- package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
- package/esm2020/input-group/public_api.mjs +3 -3
- package/esm2020/input-number/input-number.module.mjs +59 -59
- package/esm2020/input-number/input-number.props.mjs +2 -2
- package/esm2020/input-number/input-number.type.mjs +128 -128
- package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
- package/esm2020/input-number/public_api.mjs +3 -3
- package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -97
- package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
- package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
- package/esm2020/radio/public_api.mjs +3 -3
- package/esm2020/radio/radio.module.mjs +59 -59
- package/esm2020/radio/radio.type.mjs +96 -96
- package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
- package/esm2020/rate/public_api.mjs +3 -3
- package/esm2020/rate/rate.module.mjs +51 -51
- package/esm2020/rate/rate.type.mjs +63 -63
- package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
- package/esm2020/select/public_api.mjs +3 -3
- package/esm2020/select/select.module.mjs +57 -57
- package/esm2020/select/select.props.mjs +2 -2
- package/esm2020/select/select.type.mjs +163 -163
- package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
- package/esm2020/slider/public_api.mjs +3 -3
- package/esm2020/slider/slider.module.mjs +51 -51
- package/esm2020/slider/slider.type.mjs +67 -67
- package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
- package/esm2020/switch/public_api.mjs +3 -3
- package/esm2020/switch/switch.module.mjs +51 -51
- package/esm2020/switch/switch.type.mjs +53 -53
- package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
- package/esm2020/tabs/public_api.mjs +3 -3
- package/esm2020/tabs/tabs.module.mjs +41 -41
- package/esm2020/tabs/tabs.props.mjs +2 -2
- package/esm2020/tabs/tabs.wrapper.mjs +111 -111
- package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
- package/esm2020/textarea/public_api.mjs +3 -3
- package/esm2020/textarea/textarea.module.mjs +51 -51
- package/esm2020/textarea/textarea.type.mjs +88 -88
- package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
- package/esm2020/timepicker/public_api.mjs +3 -3
- package/esm2020/timepicker/timepicker.module.mjs +51 -51
- package/esm2020/timepicker/timepicker.type.mjs +92 -92
- package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
- package/esm2020/transfer/public_api.mjs +3 -3
- package/esm2020/transfer/transfer.component.mjs +128 -128
- package/esm2020/transfer/transfer.module.mjs +52 -52
- package/esm2020/transfer/transfer.type.mjs +87 -87
- package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
- package/esm2020/tree-select/public_api.mjs +3 -3
- package/esm2020/tree-select/tree-select.module.mjs +51 -51
- package/esm2020/tree-select/tree-select.type.mjs +98 -98
- package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
- package/esm2020/upload/public_api.mjs +3 -3
- package/esm2020/upload/upload.component.mjs +174 -174
- package/esm2020/upload/upload.module.mjs +60 -60
- package/esm2020/upload/upload.type.mjs +119 -119
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +224 -222
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +199 -199
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +125 -125
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +321 -321
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +224 -222
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +199 -199
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +125 -125
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +320 -320
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.module.d.ts +11 -11
- package/form-field/form-field.props.d.ts +105 -105
- package/form-field/form-field.wrapper.d.ts +9 -9
- package/form-field/index.d.ts +5 -5
- package/form-field/public_api.d.ts +3 -3
- package/grid/grid.module.d.ts +10 -10
- package/grid/grid.props.d.ts +44 -44
- package/grid/grid.type.d.ts +11 -11
- package/grid/index.d.ts +5 -5
- package/grid/public_api.d.ts +3 -3
- package/index.d.ts +1 -1
- package/input/index.d.ts +5 -5
- package/input/input.module.d.ts +14 -14
- package/input/input.props.d.ts +36 -33
- package/input/input.type.d.ts +26 -26
- package/input/public_api.d.ts +2 -2
- package/input-group/index.d.ts +5 -5
- package/input-group/input-group.module.d.ts +11 -11
- package/input-group/input-group.props.d.ts +56 -56
- package/input-group/input-group.type.d.ts +22 -22
- package/input-group/public_api.d.ts +3 -3
- package/input-number/index.d.ts +5 -5
- package/input-number/input-number.module.d.ts +12 -12
- package/input-number/input-number.props.d.ts +81 -78
- package/input-number/input-number.type.d.ts +24 -24
- package/input-number/public_api.d.ts +2 -2
- package/lib/ui-ng-zorro-antd.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
- package/package.json +5 -1
- package/radio/index.d.ts +5 -5
- package/radio/public_api.d.ts +2 -2
- package/radio/radio.module.d.ts +14 -14
- package/radio/radio.type.d.ts +38 -38
- package/rate/index.d.ts +5 -5
- package/rate/public_api.d.ts +2 -2
- package/rate/rate.module.d.ts +12 -12
- package/rate/rate.type.d.ts +57 -57
- package/select/index.d.ts +5 -5
- package/select/public_api.d.ts +2 -2
- package/select/select.module.d.ts +13 -13
- package/select/select.props.d.ts +162 -162
- package/select/select.type.d.ts +35 -35
- package/slider/index.d.ts +5 -5
- package/slider/public_api.d.ts +2 -2
- package/slider/slider.module.d.ts +12 -12
- package/slider/slider.type.d.ts +76 -76
- package/switch/index.d.ts +5 -5
- package/switch/public_api.d.ts +2 -2
- package/switch/switch.module.d.ts +12 -12
- package/switch/switch.type.d.ts +44 -44
- package/tabs/index.d.ts +5 -5
- package/tabs/public_api.d.ts +2 -2
- package/tabs/tabs.module.d.ts +10 -10
- package/tabs/tabs.props.d.ts +126 -126
- package/tabs/tabs.wrapper.d.ts +28 -28
- package/textarea/index.d.ts +5 -5
- package/textarea/public_api.d.ts +2 -2
- package/textarea/textarea.module.d.ts +12 -12
- package/textarea/textarea.type.d.ts +38 -38
- package/timepicker/index.d.ts +5 -5
- package/timepicker/public_api.d.ts +2 -2
- package/timepicker/timepicker.module.d.ts +12 -12
- package/timepicker/timepicker.type.d.ts +131 -131
- package/transfer/index.d.ts +5 -5
- package/transfer/public_api.d.ts +2 -2
- package/transfer/transfer.component.d.ts +26 -26
- package/transfer/transfer.module.d.ts +13 -13
- package/transfer/transfer.type.d.ts +118 -118
- package/tree-select/index.d.ts +5 -5
- package/tree-select/public_api.d.ts +2 -2
- package/tree-select/tree-select.module.d.ts +12 -12
- package/tree-select/tree-select.type.d.ts +158 -158
- package/upload/index.d.ts +5 -5
- package/upload/public_api.d.ts +2 -2
- package/upload/upload.component.d.ts +27 -27
- package/upload/upload.module.d.ts +15 -15
- package/upload/upload.type.d.ts +173 -173
@@ -1,128 +1,128 @@
|
|
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
|
-
export 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
|
-
}
|
51
|
-
TransferComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
52
|
-
TransferComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
|
53
|
-
{
|
54
|
-
provide: NG_VALUE_ACCESSOR,
|
55
|
-
useExisting: TransferComponent,
|
56
|
-
multi: true
|
57
|
-
}
|
58
|
-
], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
59
|
-
<nz-transfer
|
60
|
-
#transfer
|
61
|
-
[nzDataSource]="nzDataSource"
|
62
|
-
[nzDisabled]="nzDisabled"
|
63
|
-
[nzTitles]="nzTitles"
|
64
|
-
[nzOperations]="nzOperations"
|
65
|
-
[nzListStyle]="nzListStyle"
|
66
|
-
[nzItemUnit]="nzItemUnit"
|
67
|
-
[nzItemsUnit]="nzItemsUnit"
|
68
|
-
[nzRenderList]="nzRenderList"
|
69
|
-
[nzRender]="nzRender"
|
70
|
-
[nzFooter]="nzFooter"
|
71
|
-
[nzShowSearch]="nzShowSearch"
|
72
|
-
[nzFilterOption]="nzFilterOption"
|
73
|
-
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
74
|
-
[nzNotFoundContent]="nzNotFoundContent"
|
75
|
-
[nzSelectedKeys]="nzSelectedKeys"
|
76
|
-
[nzTargetKeys]="nzTargetKeys"
|
77
|
-
(nzChange)="change($event)"
|
78
|
-
(nzSearchChange)="searchChange($event)"
|
79
|
-
(nzSelectChange)="selectChange($event)"
|
80
|
-
style="flex: auto;"
|
81
|
-
></nz-transfer>
|
82
|
-
`, 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 });
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: TransferComponent, decorators: [{
|
84
|
-
type: Component,
|
85
|
-
args: [{
|
86
|
-
selector: 'formly-transfer',
|
87
|
-
template: `
|
88
|
-
<nz-transfer
|
89
|
-
#transfer
|
90
|
-
[nzDataSource]="nzDataSource"
|
91
|
-
[nzDisabled]="nzDisabled"
|
92
|
-
[nzTitles]="nzTitles"
|
93
|
-
[nzOperations]="nzOperations"
|
94
|
-
[nzListStyle]="nzListStyle"
|
95
|
-
[nzItemUnit]="nzItemUnit"
|
96
|
-
[nzItemsUnit]="nzItemsUnit"
|
97
|
-
[nzRenderList]="nzRenderList"
|
98
|
-
[nzRender]="nzRender"
|
99
|
-
[nzFooter]="nzFooter"
|
100
|
-
[nzShowSearch]="nzShowSearch"
|
101
|
-
[nzFilterOption]="nzFilterOption"
|
102
|
-
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
103
|
-
[nzNotFoundContent]="nzNotFoundContent"
|
104
|
-
[nzSelectedKeys]="nzSelectedKeys"
|
105
|
-
[nzTargetKeys]="nzTargetKeys"
|
106
|
-
(nzChange)="change($event)"
|
107
|
-
(nzSearchChange)="searchChange($event)"
|
108
|
-
(nzSelectChange)="selectChange($event)"
|
109
|
-
style="flex: auto;"
|
110
|
-
></nz-transfer>
|
111
|
-
`,
|
112
|
-
encapsulation: ViewEncapsulation.None,
|
113
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
114
|
-
providers: [
|
115
|
-
{
|
116
|
-
provide: NG_VALUE_ACCESSOR,
|
117
|
-
useExisting: TransferComponent,
|
118
|
-
multi: true
|
119
|
-
}
|
120
|
-
]
|
121
|
-
}]
|
122
|
-
}], propDecorators: { transfer: [{
|
123
|
-
type: ViewChild,
|
124
|
-
args: ['transfer', { static: true }]
|
125
|
-
}], resultMap: [{
|
126
|
-
type: Input
|
127
|
-
}] } });
|
128
|
-
//# sourceMappingURL=data:application/json;base64,
|
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
|
+
export 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
|
+
}
|
51
|
+
TransferComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
52
|
+
TransferComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
|
53
|
+
{
|
54
|
+
provide: NG_VALUE_ACCESSOR,
|
55
|
+
useExisting: TransferComponent,
|
56
|
+
multi: true
|
57
|
+
}
|
58
|
+
], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
59
|
+
<nz-transfer
|
60
|
+
#transfer
|
61
|
+
[nzDataSource]="nzDataSource"
|
62
|
+
[nzDisabled]="nzDisabled"
|
63
|
+
[nzTitles]="nzTitles"
|
64
|
+
[nzOperations]="nzOperations"
|
65
|
+
[nzListStyle]="nzListStyle"
|
66
|
+
[nzItemUnit]="nzItemUnit"
|
67
|
+
[nzItemsUnit]="nzItemsUnit"
|
68
|
+
[nzRenderList]="nzRenderList"
|
69
|
+
[nzRender]="nzRender"
|
70
|
+
[nzFooter]="nzFooter"
|
71
|
+
[nzShowSearch]="nzShowSearch"
|
72
|
+
[nzFilterOption]="nzFilterOption"
|
73
|
+
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
74
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
75
|
+
[nzSelectedKeys]="nzSelectedKeys"
|
76
|
+
[nzTargetKeys]="nzTargetKeys"
|
77
|
+
(nzChange)="change($event)"
|
78
|
+
(nzSearchChange)="searchChange($event)"
|
79
|
+
(nzSelectChange)="selectChange($event)"
|
80
|
+
style="flex: auto;"
|
81
|
+
></nz-transfer>
|
82
|
+
`, 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 });
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: TransferComponent, decorators: [{
|
84
|
+
type: Component,
|
85
|
+
args: [{
|
86
|
+
selector: 'formly-transfer',
|
87
|
+
template: `
|
88
|
+
<nz-transfer
|
89
|
+
#transfer
|
90
|
+
[nzDataSource]="nzDataSource"
|
91
|
+
[nzDisabled]="nzDisabled"
|
92
|
+
[nzTitles]="nzTitles"
|
93
|
+
[nzOperations]="nzOperations"
|
94
|
+
[nzListStyle]="nzListStyle"
|
95
|
+
[nzItemUnit]="nzItemUnit"
|
96
|
+
[nzItemsUnit]="nzItemsUnit"
|
97
|
+
[nzRenderList]="nzRenderList"
|
98
|
+
[nzRender]="nzRender"
|
99
|
+
[nzFooter]="nzFooter"
|
100
|
+
[nzShowSearch]="nzShowSearch"
|
101
|
+
[nzFilterOption]="nzFilterOption"
|
102
|
+
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
103
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
104
|
+
[nzSelectedKeys]="nzSelectedKeys"
|
105
|
+
[nzTargetKeys]="nzTargetKeys"
|
106
|
+
(nzChange)="change($event)"
|
107
|
+
(nzSearchChange)="searchChange($event)"
|
108
|
+
(nzSelectChange)="selectChange($event)"
|
109
|
+
style="flex: auto;"
|
110
|
+
></nz-transfer>
|
111
|
+
`,
|
112
|
+
encapsulation: ViewEncapsulation.None,
|
113
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
114
|
+
providers: [
|
115
|
+
{
|
116
|
+
provide: NG_VALUE_ACCESSOR,
|
117
|
+
useExisting: TransferComponent,
|
118
|
+
multi: true
|
119
|
+
}
|
120
|
+
]
|
121
|
+
}]
|
122
|
+
}], propDecorators: { transfer: [{
|
123
|
+
type: ViewChild,
|
124
|
+
args: ['transfer', { static: true }]
|
125
|
+
}], resultMap: [{
|
126
|
+
type: Input
|
127
|
+
}] } });
|
128
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90cmFuc2Zlci9zcmMvdHJhbnNmZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBRXZCLFNBQVMsRUFDVCxLQUFLLEVBQ0wsU0FBUyxFQUNULGlCQUFpQixFQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXdCLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDekUsT0FBTyxFQUFFLG1CQUFtQixFQ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OiB2b2lkIHtcbiAgICB0aGlzLm56RGlzYWJsZWQgPSBpc0Rpc2FibGVkO1xuICB9XG5cbiAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby11bnVzZWQtdmFyc1xuICBjaGFuZ2UodmFsdWU6IFRyYW5zZmVyQ2hhbmdlKTogdm9pZCB7XG4gICAgaWYgKHRoaXMucmVzdWx0TWFwIGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcbiAgICAgIHRoaXMub25DaGFuZ2UodGhpcy5yZXN1bHRNYXAodGhpcy50cmFuc2Zlci5yaWdodERhdGFTb3VyY2UpKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5vbkNoYW5nZSh0aGlzLnRyYW5zZmVyLnJpZ2h0RGF0YVNvdXJjZSk7XG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqIOmAieS4remhueWPkeeUn+aUueWPmOaXtueahOWbnuiwg+WHveaVsFxuICAgKi9cbiAgc2VsZWN0Q2hhbmdlKHZhbHVlOiBUcmFuc2ZlclNlbGVjdENoYW5nZSkge1xuICAgIHRoaXMubnpTZWxlY3RDaGFuZ2UuZW1pdCh2YWx1ZSk7XG4gIH1cblxuICAvKipcbiAgICog5pCc57Si5qGG5YaF5a655pe25pS55Y+Y5pe255qE5Zue6LCD5Ye95pWwXG4gICAqL1xuICBzZWFyY2hDaGFuZ2UodmFsdWU6IFRyYW5zZmVyU2VhcmNoQ2hhbmdlKSB7XG4gICAgdGhpcy5uelNlYXJjaENoYW5nZS5lbWl0KHZhbHVlKTtcbiAgfVxufVxuIl19
|
@@ -1,52 +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 { 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
|
-
export class FormlyNzTransferModule {
|
12
|
-
}
|
13
|
-
FormlyNzTransferModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
14
|
-
FormlyNzTransferModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
|
15
|
-
ReactiveFormsModule,
|
16
|
-
FormlyNzFormFieldModule,
|
17
|
-
NzTransferModule, i1.FormlyModule] });
|
18
|
-
FormlyNzTransferModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
|
19
|
-
ReactiveFormsModule,
|
20
|
-
FormlyNzFormFieldModule,
|
21
|
-
NzTransferModule,
|
22
|
-
FormlyModule.forChild({
|
23
|
-
types: [
|
24
|
-
{
|
25
|
-
name: 'transfer',
|
26
|
-
component: FormlyFieldTransfer,
|
27
|
-
wrappers: ['form-field']
|
28
|
-
}
|
29
|
-
]
|
30
|
-
})] });
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
|
32
|
-
type: NgModule,
|
33
|
-
args: [{
|
34
|
-
declarations: [FormlyFieldTransfer, TransferComponent],
|
35
|
-
imports: [
|
36
|
-
CommonModule,
|
37
|
-
ReactiveFormsModule,
|
38
|
-
FormlyNzFormFieldModule,
|
39
|
-
NzTransferModule,
|
40
|
-
FormlyModule.forChild({
|
41
|
-
types: [
|
42
|
-
{
|
43
|
-
name: 'transfer',
|
44
|
-
component: FormlyFieldTransfer,
|
45
|
-
wrappers: ['form-field']
|
46
|
-
}
|
47
|
-
]
|
48
|
-
})
|
49
|
-
]
|
50
|
-
}]
|
51
|
-
}] });
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
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
|
+
export class FormlyNzTransferModule {
|
12
|
+
}
|
13
|
+
FormlyNzTransferModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
14
|
+
FormlyNzTransferModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
|
15
|
+
ReactiveFormsModule,
|
16
|
+
FormlyNzFormFieldModule,
|
17
|
+
NzTransferModule, i1.FormlyModule] });
|
18
|
+
FormlyNzTransferModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
|
19
|
+
ReactiveFormsModule,
|
20
|
+
FormlyNzFormFieldModule,
|
21
|
+
NzTransferModule,
|
22
|
+
FormlyModule.forChild({
|
23
|
+
types: [
|
24
|
+
{
|
25
|
+
name: 'transfer',
|
26
|
+
component: FormlyFieldTransfer,
|
27
|
+
wrappers: ['form-field']
|
28
|
+
}
|
29
|
+
]
|
30
|
+
})] });
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
|
32
|
+
type: NgModule,
|
33
|
+
args: [{
|
34
|
+
declarations: [FormlyFieldTransfer, TransferComponent],
|
35
|
+
imports: [
|
36
|
+
CommonModule,
|
37
|
+
ReactiveFormsModule,
|
38
|
+
FormlyNzFormFieldModule,
|
39
|
+
NzTransferModule,
|
40
|
+
FormlyModule.forChild({
|
41
|
+
types: [
|
42
|
+
{
|
43
|
+
name: 'transfer',
|
44
|
+
component: FormlyFieldTransfer,
|
45
|
+
wrappers: ['form-field']
|
46
|
+
}
|
47
|
+
]
|
48
|
+
})
|
49
|
+
]
|
50
|
+
}]
|
51
|
+
}] });
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90cmFuc2Zlci9zcmMvdHJhbnNmZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUUzRSxPQUFPLEVBQUUsZ0JBQWdCLEVB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VxuICAgICAgXVxuICAgIH0pXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5TnpUcmFuc2Zlck1vZHVsZSB7fVxuIl19
|
@@ -1,87 +1,87 @@
|
|
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
|
-
export 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
|
-
}
|
28
|
-
FormlyFieldTransfer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
29
|
-
FormlyFieldTransfer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
|
30
|
-
#transfer
|
31
|
-
[formControl]="formControl"
|
32
|
-
[formlyAttributes]="field"
|
33
|
-
[nzDataSource]="props['dataSource']"
|
34
|
-
[nzTitles]="props['titles']"
|
35
|
-
[nzOperations]="props['operations']"
|
36
|
-
[nzListStyle]="props['listStyle']"
|
37
|
-
[nzItemUnit]="props['itemUnit']"
|
38
|
-
[nzItemsUnit]="props['itemsUnit']"
|
39
|
-
[nzRenderList]="props['renderList']!"
|
40
|
-
[nzRender]="props['render'] ?? null"
|
41
|
-
[nzFooter]="props['footer'] ?? null"
|
42
|
-
[nzShowSearch]="props['showSearch']!!"
|
43
|
-
[nzFilterOption]="props['filterOption']"
|
44
|
-
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
45
|
-
[nzNotFoundContent]="props['notFoundContent']"
|
46
|
-
[nzSelectedKeys]="props['selectedKeys']"
|
47
|
-
[nzTargetKeys]="props['targetKeys']"
|
48
|
-
[resultMap]="props['resultMap']"
|
49
|
-
(nzChange)="props['onChange'] && props['onChange']($event)"
|
50
|
-
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
51
|
-
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
52
|
-
></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 });
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
|
54
|
-
type: Component,
|
55
|
-
args: [{
|
56
|
-
selector: 'formly-field-transfer',
|
57
|
-
template: `<formly-transfer
|
58
|
-
#transfer
|
59
|
-
[formControl]="formControl"
|
60
|
-
[formlyAttributes]="field"
|
61
|
-
[nzDataSource]="props['dataSource']"
|
62
|
-
[nzTitles]="props['titles']"
|
63
|
-
[nzOperations]="props['operations']"
|
64
|
-
[nzListStyle]="props['listStyle']"
|
65
|
-
[nzItemUnit]="props['itemUnit']"
|
66
|
-
[nzItemsUnit]="props['itemsUnit']"
|
67
|
-
[nzRenderList]="props['renderList']!"
|
68
|
-
[nzRender]="props['render'] ?? null"
|
69
|
-
[nzFooter]="props['footer'] ?? null"
|
70
|
-
[nzShowSearch]="props['showSearch']!!"
|
71
|
-
[nzFilterOption]="props['filterOption']"
|
72
|
-
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
73
|
-
[nzNotFoundContent]="props['notFoundContent']"
|
74
|
-
[nzSelectedKeys]="props['selectedKeys']"
|
75
|
-
[nzTargetKeys]="props['targetKeys']"
|
76
|
-
[resultMap]="props['resultMap']"
|
77
|
-
(nzChange)="props['onChange'] && props['onChange']($event)"
|
78
|
-
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
79
|
-
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
80
|
-
></formly-transfer>`,
|
81
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
82
|
-
}]
|
83
|
-
}], propDecorators: { transfer: [{
|
84
|
-
type: ViewChild,
|
85
|
-
args: ['transfer', { static: true }]
|
86
|
-
}] } });
|
87
|
-
//# sourceMappingURL=data:application/json;base64,
|
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
|
+
export 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
|
+
}
|
28
|
+
FormlyFieldTransfer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
29
|
+
FormlyFieldTransfer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
|
30
|
+
#transfer
|
31
|
+
[formControl]="formControl"
|
32
|
+
[formlyAttributes]="field"
|
33
|
+
[nzDataSource]="props['dataSource']"
|
34
|
+
[nzTitles]="props['titles']"
|
35
|
+
[nzOperations]="props['operations']"
|
36
|
+
[nzListStyle]="props['listStyle']"
|
37
|
+
[nzItemUnit]="props['itemUnit']"
|
38
|
+
[nzItemsUnit]="props['itemsUnit']"
|
39
|
+
[nzRenderList]="props['renderList']!"
|
40
|
+
[nzRender]="props['render'] ?? null"
|
41
|
+
[nzFooter]="props['footer'] ?? null"
|
42
|
+
[nzShowSearch]="props['showSearch']!!"
|
43
|
+
[nzFilterOption]="props['filterOption']"
|
44
|
+
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
45
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
46
|
+
[nzSelectedKeys]="props['selectedKeys']"
|
47
|
+
[nzTargetKeys]="props['targetKeys']"
|
48
|
+
[resultMap]="props['resultMap']"
|
49
|
+
(nzChange)="props['onChange'] && props['onChange']($event)"
|
50
|
+
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
51
|
+
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
52
|
+
></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 });
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
|
54
|
+
type: Component,
|
55
|
+
args: [{
|
56
|
+
selector: 'formly-field-transfer',
|
57
|
+
template: `<formly-transfer
|
58
|
+
#transfer
|
59
|
+
[formControl]="formControl"
|
60
|
+
[formlyAttributes]="field"
|
61
|
+
[nzDataSource]="props['dataSource']"
|
62
|
+
[nzTitles]="props['titles']"
|
63
|
+
[nzOperations]="props['operations']"
|
64
|
+
[nzListStyle]="props['listStyle']"
|
65
|
+
[nzItemUnit]="props['itemUnit']"
|
66
|
+
[nzItemsUnit]="props['itemsUnit']"
|
67
|
+
[nzRenderList]="props['renderList']!"
|
68
|
+
[nzRender]="props['render'] ?? null"
|
69
|
+
[nzFooter]="props['footer'] ?? null"
|
70
|
+
[nzShowSearch]="props['showSearch']!!"
|
71
|
+
[nzFilterOption]="props['filterOption']"
|
72
|
+
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
73
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
74
|
+
[nzSelectedKeys]="props['selectedKeys']"
|
75
|
+
[nzTargetKeys]="props['targetKeys']"
|
76
|
+
[resultMap]="props['resultMap']"
|
77
|
+
(nzChange)="props['onChange'] && props['onChange']($event)"
|
78
|
+
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
79
|
+
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
80
|
+
></formly-transfer>`,
|
81
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
82
|
+
}]
|
83
|
+
}], propDecorators: { transfer: [{
|
84
|
+
type: ViewChild,
|
85
|
+
args: ['transfer', { static: true }]
|
86
|
+
}] } });
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXIudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdHJhbnNmZXIvc3JjL3RyYW5zZmVyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFHdkIsU0FBUyxFQUVWLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxTQUFTLEVBQXNDLE1BQU0sa0JBQWtCLENBQUM7QUFJakYsT0FBTyxFQUNMLG1CQUFtQixFQU1wQixNQUFNLHdCQUF3QixDQUFDOzs7OztBQW1KaEMsTUFBTSxPQUFPLG1CQUFvQixTQUFRLFNBQTBCO0lBNUJuRTs7UUE2QlcsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsVUFBVSxFQUFFLEVBQUU7Z0JBQ2QsTUFBTSxFQUFFLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQztnQkFDaEIsVUFBVSxFQUFFLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQztnQkFDcEIsVUFBVSxFQUFFLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQztnQkFDeEIsU0FBUyxFQUFFLEVBQUU7YUFDZDtTQUNGLEN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Y3Rpb25TdHJhdGVneS5PblB1c2hcbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5RmllbGRUcmFuc2ZlciBleHRlbmRzIEZpZWxkVHlwZTxGaWVsZFR5cGVDb25maWc+IGltcGxlbWVudHMgT25Jbml0IHtcbiAgb3ZlcnJpZGUgZGVmYXVsdE9wdGlvbnMgPSB7XG4gICAgcHJvcHM6IHtcbiAgICAgIGRhdGFTb3VyY2U6IFtdLFxuICAgICAgdGl0bGVzOiBbJycsICcnXSxcbiAgICAgIG9wZXJhdGlvbnM6IFsnJywgJyddLFxuICAgICAgcmVuZGVyTGlzdDogW251bGwsIG51bGxdLFxuICAgICAgbGlzdFN0eWxlOiB7fVxuICAgIH1cbiAgfTtcblxuICBAVmlld0NoaWxkKCd0cmFuc2ZlcicsIHsgc3RhdGljOiB0cnVlIH0pIHRyYW5zZmVyITogTnpUcmFuc2ZlckNvbXBvbmVudDtcblxuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICBjb25zdCBjYW5Nb3ZlID0gdGhpcy5wcm9wc1snY2FuTW92ZSddO1xuICAgIGlmIChjYW5Nb3ZlICE9PSBudWxsICYmIGNhbk1vdmUgIT09IHVuZGVmaW5lZCkge1xuICAgICAgdGhpcy50cmFuc2Zlci5uekNhbk1vdmUgPSBjYW5Nb3ZlO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './public_api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLXRyZWUtc2VsZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90cmVlLXNlbGVjdC9zcmMvbmd4LWZvcm1seS16b3Jyby1hbnRkLXRyZWUtc2VsZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
|