ngx-formly-zorro-antd 17.1.1 → 17.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +5 -5
- package/esm2022/button/button.type.mjs +125 -125
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +5 -5
- package/esm2022/button-group/button-group.type.mjs +69 -69
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +5 -5
- package/esm2022/card/card.type.mjs +53 -53
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +5 -5
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +39 -39
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +5 -5
- package/esm2022/cascader/cascader.type.mjs +67 -67
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/checkbox/checkbox.type.mjs +41 -41
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +5 -5
- package/esm2022/common/formly-box-templates.directive.mjs +4 -4
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +5 -5
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +151 -151
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/flex/flex.module.mjs +41 -0
- package/esm2022/flex/flex.type.mjs +66 -0
- package/esm2022/flex/ngx-formly-zorro-antd-flex.mjs +5 -0
- package/esm2022/flex/public_api.mjs +3 -0
- package/esm2022/form-field/form-field.module.mjs +5 -5
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +149 -149
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +5 -5
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +61 -61
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +5 -5
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +277 -277
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +5 -5
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +41 -41
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +5 -5
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +91 -91
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +12 -8
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +5 -5
- package/esm2022/radio/radio.type.mjs +83 -83
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +5 -5
- package/esm2022/rate/rate.type.mjs +35 -35
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +5 -5
- package/esm2022/ref-template/ref-template.type.mjs +11 -11
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +5 -5
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +125 -125
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +5 -5
- package/esm2022/slider/slider.type.mjs +35 -35
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +5 -5
- package/esm2022/space/space.type.mjs +29 -29
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +5 -5
- package/esm2022/switch/switch.type.mjs +27 -27
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +5 -5
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +81 -81
- package/esm2022/text-value/public_api.mjs +1 -1
- package/esm2022/text-value/text-value.module.mjs +5 -5
- package/esm2022/text-value/text-value.type.mjs +21 -21
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +5 -5
- package/esm2022/textarea/textarea.type.mjs +115 -115
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +5 -5
- package/esm2022/timepicker/timepicker.type.mjs +63 -63
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +52 -52
- package/esm2022/transfer/transfer.module.mjs +5 -5
- package/esm2022/transfer/transfer.type.mjs +49 -49
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +5 -5
- package/esm2022/tree-select/tree-select.type.mjs +71 -71
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +146 -146
- package/esm2022/upload/upload.module.mjs +5 -5
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +85 -85
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +72 -72
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +128 -128
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +42 -42
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +56 -56
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +70 -70
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +44 -44
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +154 -154
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +109 -0
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +152 -152
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +44 -44
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +280 -280
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +86 -86
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +14 -14
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +128 -128
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +30 -30
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +84 -84
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +118 -118
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +103 -103
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +74 -74
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +233 -233
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +11 -7
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/flex.module.d.ts +10 -0
- package/flex/flex.type.d.ts +48 -0
- package/flex/index.d.ts +5 -0
- package/flex/public_api.d.ts +2 -0
- package/input/input.props.d.ts +4 -2
- package/input/public_api.d.ts +1 -0
- package/input-group/input-group.props.d.ts +2 -0
- package/input-group/public_api.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +24 -18
- package/autocomplete/package.json +0 -3
- package/button/package.json +0 -3
- package/button-group/package.json +0 -3
- package/card/package.json +0 -3
- package/card-wrapper/package.json +0 -3
- package/cascader/package.json +0 -3
- package/checkbox/package.json +0 -3
- package/common/package.json +0 -3
- package/datepicker/package.json +0 -3
- package/extension/package.json +0 -3
- package/form-field/package.json +0 -3
- package/grid/package.json +0 -3
- package/input/package.json +0 -3
- package/input-group/package.json +0 -3
- package/input-number/package.json +0 -3
- package/radio/package.json +0 -3
- package/rate/package.json +0 -3
- package/ref-template/package.json +0 -3
- package/select/package.json +0 -3
- package/slider/package.json +0 -3
- package/space/package.json +0 -3
- package/switch/package.json +0 -3
- package/tabs/package.json +0 -3
- package/text-value/package.json +0 -3
- package/textarea/package.json +0 -3
- package/timepicker/package.json +0 -3
- package/transfer/package.json +0 -3
- package/tree-select/package.json +0 -3
- package/upload/package.json +0 -3
@@ -53,67 +53,67 @@ class TransferComponent extends NzTransferComponent {
|
|
53
53
|
searchChange(value) {
|
54
54
|
this.nzSearchChange.emit(value);
|
55
55
|
}
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
|
58
58
|
{
|
59
59
|
provide: NG_VALUE_ACCESSOR,
|
60
60
|
useExisting: TransferComponent,
|
61
61
|
multi: true
|
62
62
|
}
|
63
|
-
], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
64
|
-
<nz-transfer
|
65
|
-
#transfer
|
66
|
-
[nzDataSource]="nzDataSource"
|
67
|
-
[nzDisabled]="nzDisabled"
|
68
|
-
[nzTitles]="nzTitles"
|
69
|
-
[nzOperations]="nzOperations"
|
70
|
-
[nzListStyle]="nzListStyle"
|
71
|
-
[nzItemUnit]="nzItemUnit"
|
72
|
-
[nzItemsUnit]="nzItemsUnit"
|
73
|
-
[nzRenderList]="nzRenderList"
|
74
|
-
[nzRender]="nzRender"
|
75
|
-
[nzFooter]="nzFooter"
|
76
|
-
[nzShowSearch]="nzShowSearch"
|
77
|
-
[nzFilterOption]="nzFilterOption"
|
78
|
-
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
79
|
-
[nzNotFoundContent]="nzNotFoundContent"
|
80
|
-
[nzSelectedKeys]="nzSelectedKeys"
|
81
|
-
[nzTargetKeys]="nzTargetKeys"
|
82
|
-
(nzChange)="change($event)"
|
83
|
-
(nzSearchChange)="searchChange($event)"
|
84
|
-
(nzSelectChange)="selectChange($event)"
|
85
|
-
style="flex: auto;"
|
86
|
-
></nz-transfer>
|
63
|
+
], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
64
|
+
<nz-transfer
|
65
|
+
#transfer
|
66
|
+
[nzDataSource]="nzDataSource"
|
67
|
+
[nzDisabled]="nzDisabled"
|
68
|
+
[nzTitles]="nzTitles"
|
69
|
+
[nzOperations]="nzOperations"
|
70
|
+
[nzListStyle]="nzListStyle"
|
71
|
+
[nzItemUnit]="nzItemUnit"
|
72
|
+
[nzItemsUnit]="nzItemsUnit"
|
73
|
+
[nzRenderList]="nzRenderList"
|
74
|
+
[nzRender]="nzRender"
|
75
|
+
[nzFooter]="nzFooter"
|
76
|
+
[nzShowSearch]="nzShowSearch"
|
77
|
+
[nzFilterOption]="nzFilterOption"
|
78
|
+
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
79
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
80
|
+
[nzSelectedKeys]="nzSelectedKeys"
|
81
|
+
[nzTargetKeys]="nzTargetKeys"
|
82
|
+
(nzChange)="change($event)"
|
83
|
+
(nzSearchChange)="searchChange($event)"
|
84
|
+
(nzSelectChange)="selectChange($event)"
|
85
|
+
style="flex: auto;"
|
86
|
+
></nz-transfer>
|
87
87
|
`, 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 }); }
|
88
88
|
}
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: TransferComponent, decorators: [{
|
90
90
|
type: Component,
|
91
91
|
args: [{
|
92
92
|
selector: 'formly-transfer',
|
93
|
-
template: `
|
94
|
-
<nz-transfer
|
95
|
-
#transfer
|
96
|
-
[nzDataSource]="nzDataSource"
|
97
|
-
[nzDisabled]="nzDisabled"
|
98
|
-
[nzTitles]="nzTitles"
|
99
|
-
[nzOperations]="nzOperations"
|
100
|
-
[nzListStyle]="nzListStyle"
|
101
|
-
[nzItemUnit]="nzItemUnit"
|
102
|
-
[nzItemsUnit]="nzItemsUnit"
|
103
|
-
[nzRenderList]="nzRenderList"
|
104
|
-
[nzRender]="nzRender"
|
105
|
-
[nzFooter]="nzFooter"
|
106
|
-
[nzShowSearch]="nzShowSearch"
|
107
|
-
[nzFilterOption]="nzFilterOption"
|
108
|
-
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
109
|
-
[nzNotFoundContent]="nzNotFoundContent"
|
110
|
-
[nzSelectedKeys]="nzSelectedKeys"
|
111
|
-
[nzTargetKeys]="nzTargetKeys"
|
112
|
-
(nzChange)="change($event)"
|
113
|
-
(nzSearchChange)="searchChange($event)"
|
114
|
-
(nzSelectChange)="selectChange($event)"
|
115
|
-
style="flex: auto;"
|
116
|
-
></nz-transfer>
|
93
|
+
template: `
|
94
|
+
<nz-transfer
|
95
|
+
#transfer
|
96
|
+
[nzDataSource]="nzDataSource"
|
97
|
+
[nzDisabled]="nzDisabled"
|
98
|
+
[nzTitles]="nzTitles"
|
99
|
+
[nzOperations]="nzOperations"
|
100
|
+
[nzListStyle]="nzListStyle"
|
101
|
+
[nzItemUnit]="nzItemUnit"
|
102
|
+
[nzItemsUnit]="nzItemsUnit"
|
103
|
+
[nzRenderList]="nzRenderList"
|
104
|
+
[nzRender]="nzRender"
|
105
|
+
[nzFooter]="nzFooter"
|
106
|
+
[nzShowSearch]="nzShowSearch"
|
107
|
+
[nzFilterOption]="nzFilterOption"
|
108
|
+
[nzSearchPlaceholder]="nzSearchPlaceholder"
|
109
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
110
|
+
[nzSelectedKeys]="nzSelectedKeys"
|
111
|
+
[nzTargetKeys]="nzTargetKeys"
|
112
|
+
(nzChange)="change($event)"
|
113
|
+
(nzSearchChange)="searchChange($event)"
|
114
|
+
(nzSelectChange)="selectChange($event)"
|
115
|
+
style="flex: auto;"
|
116
|
+
></nz-transfer>
|
117
117
|
`,
|
118
118
|
encapsulation: ViewEncapsulation.None,
|
119
119
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
@@ -151,59 +151,59 @@ class FormlyFieldTransfer extends FieldType {
|
|
151
151
|
this.transfer.nzCanMove = canMove;
|
152
152
|
}
|
153
153
|
}
|
154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
155
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
156
|
-
#transfer
|
157
|
-
[formControl]="formControl"
|
158
|
-
[formlyAttributes]="field"
|
159
|
-
[nzDataSource]="props['dataSource']"
|
160
|
-
[nzTitles]="props['titles']"
|
161
|
-
[nzOperations]="props['operations']"
|
162
|
-
[nzListStyle]="props['listStyle']"
|
163
|
-
[nzItemUnit]="props['itemUnit']"
|
164
|
-
[nzItemsUnit]="props['itemsUnit']"
|
165
|
-
[nzRenderList]="props['renderList']!"
|
166
|
-
[nzRender]="props['render'] ?? null"
|
167
|
-
[nzFooter]="props['footer'] ?? null"
|
168
|
-
[nzShowSearch]="props['showSearch']!!"
|
169
|
-
[nzFilterOption]="props['filterOption']"
|
170
|
-
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
171
|
-
[nzNotFoundContent]="props['notFoundContent']"
|
172
|
-
[nzSelectedKeys]="props['selectedKeys']"
|
173
|
-
[nzTargetKeys]="props['targetKeys']"
|
174
|
-
[resultMap]="props['resultMap']"
|
175
|
-
(nzChange)="props['onChange'] && props['onChange']($event)"
|
176
|
-
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
177
|
-
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
155
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
|
156
|
+
#transfer
|
157
|
+
[formControl]="formControl"
|
158
|
+
[formlyAttributes]="field"
|
159
|
+
[nzDataSource]="props['dataSource']"
|
160
|
+
[nzTitles]="props['titles']"
|
161
|
+
[nzOperations]="props['operations']"
|
162
|
+
[nzListStyle]="props['listStyle']"
|
163
|
+
[nzItemUnit]="props['itemUnit']"
|
164
|
+
[nzItemsUnit]="props['itemsUnit']"
|
165
|
+
[nzRenderList]="props['renderList']!"
|
166
|
+
[nzRender]="props['render'] ?? null"
|
167
|
+
[nzFooter]="props['footer'] ?? null"
|
168
|
+
[nzShowSearch]="props['showSearch']!!"
|
169
|
+
[nzFilterOption]="props['filterOption']"
|
170
|
+
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
171
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
172
|
+
[nzSelectedKeys]="props['selectedKeys']"
|
173
|
+
[nzTargetKeys]="props['targetKeys']"
|
174
|
+
[resultMap]="props['resultMap']"
|
175
|
+
(nzChange)="props['onChange'] && props['onChange']($event)"
|
176
|
+
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
177
|
+
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
178
178
|
></formly-transfer>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
179
179
|
}
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
|
181
181
|
type: Component,
|
182
182
|
args: [{
|
183
183
|
selector: 'formly-field-transfer',
|
184
|
-
template: `<formly-transfer
|
185
|
-
#transfer
|
186
|
-
[formControl]="formControl"
|
187
|
-
[formlyAttributes]="field"
|
188
|
-
[nzDataSource]="props['dataSource']"
|
189
|
-
[nzTitles]="props['titles']"
|
190
|
-
[nzOperations]="props['operations']"
|
191
|
-
[nzListStyle]="props['listStyle']"
|
192
|
-
[nzItemUnit]="props['itemUnit']"
|
193
|
-
[nzItemsUnit]="props['itemsUnit']"
|
194
|
-
[nzRenderList]="props['renderList']!"
|
195
|
-
[nzRender]="props['render'] ?? null"
|
196
|
-
[nzFooter]="props['footer'] ?? null"
|
197
|
-
[nzShowSearch]="props['showSearch']!!"
|
198
|
-
[nzFilterOption]="props['filterOption']"
|
199
|
-
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
200
|
-
[nzNotFoundContent]="props['notFoundContent']"
|
201
|
-
[nzSelectedKeys]="props['selectedKeys']"
|
202
|
-
[nzTargetKeys]="props['targetKeys']"
|
203
|
-
[resultMap]="props['resultMap']"
|
204
|
-
(nzChange)="props['onChange'] && props['onChange']($event)"
|
205
|
-
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
206
|
-
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
184
|
+
template: `<formly-transfer
|
185
|
+
#transfer
|
186
|
+
[formControl]="formControl"
|
187
|
+
[formlyAttributes]="field"
|
188
|
+
[nzDataSource]="props['dataSource']"
|
189
|
+
[nzTitles]="props['titles']"
|
190
|
+
[nzOperations]="props['operations']"
|
191
|
+
[nzListStyle]="props['listStyle']"
|
192
|
+
[nzItemUnit]="props['itemUnit']"
|
193
|
+
[nzItemsUnit]="props['itemsUnit']"
|
194
|
+
[nzRenderList]="props['renderList']!"
|
195
|
+
[nzRender]="props['render'] ?? null"
|
196
|
+
[nzFooter]="props['footer'] ?? null"
|
197
|
+
[nzShowSearch]="props['showSearch']!!"
|
198
|
+
[nzFilterOption]="props['filterOption']"
|
199
|
+
[nzSearchPlaceholder]="props['searchPlaceholder']"
|
200
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
201
|
+
[nzSelectedKeys]="props['selectedKeys']"
|
202
|
+
[nzTargetKeys]="props['targetKeys']"
|
203
|
+
[resultMap]="props['resultMap']"
|
204
|
+
(nzChange)="props['onChange'] && props['onChange']($event)"
|
205
|
+
(nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
|
206
|
+
(nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
|
207
207
|
></formly-transfer>`,
|
208
208
|
changeDetection: ChangeDetectionStrategy.OnPush
|
209
209
|
}]
|
@@ -213,12 +213,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
213
213
|
}] } });
|
214
214
|
|
215
215
|
class FormlyNzTransferModule {
|
216
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
217
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
217
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
|
218
218
|
ReactiveFormsModule,
|
219
219
|
FormlyNzFormFieldModule,
|
220
220
|
NzTransferModule, i2.FormlyModule] }); }
|
221
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
221
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
|
222
222
|
ReactiveFormsModule,
|
223
223
|
FormlyNzFormFieldModule,
|
224
224
|
NzTransferModule,
|
@@ -232,7 +232,7 @@ class FormlyNzTransferModule {
|
|
232
232
|
]
|
233
233
|
})] }); }
|
234
234
|
}
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
|
236
236
|
type: NgModule,
|
237
237
|
args: [{
|
238
238
|
declarations: [FormlyFieldTransfer, TransferComponent],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\n\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type {\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\n\n@Component({\n selector: 'formly-transfer',\n template: `\n <nz-transfer\n #transfer\n [nzDataSource]=\"nzDataSource\"\n [nzDisabled]=\"nzDisabled\"\n [nzTitles]=\"nzTitles\"\n [nzOperations]=\"nzOperations\"\n [nzListStyle]=\"nzListStyle\"\n [nzItemUnit]=\"nzItemUnit\"\n [nzItemsUnit]=\"nzItemsUnit\"\n [nzRenderList]=\"nzRenderList\"\n [nzRender]=\"nzRender\"\n [nzFooter]=\"nzFooter\"\n [nzShowSearch]=\"nzShowSearch\"\n [nzFilterOption]=\"nzFilterOption\"\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzSelectedKeys]=\"nzSelectedKeys\"\n [nzTargetKeys]=\"nzTargetKeys\"\n (nzChange)=\"change($event)\"\n (nzSearchChange)=\"searchChange($event)\"\n (nzSelectChange)=\"selectChange($event)\"\n style=\"flex: auto;\"\n ></nz-transfer>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: TransferComponent,\n multi: true\n }\n ]\n})\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(obj: NzSafeAny): void {\n setTimeout(() => {\n this.nzTargetKeys = obj;\n (this['cdr'] as ChangeDetectorRef).markForCheck();\n this.onChange(this.transfer.rightDataSource);\n }, 0);\n }\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n change(value: TransferChange): void {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(this.transfer.rightDataSource));\n } else {\n this.onChange(this.transfer.rightDataSource);\n }\n }\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange(value: TransferSelectChange) {\n this.nzSelectChange.emit(value);\n }\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange(value: TransferSearchChange) {\n this.nzSearchChange.emit(value);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n TemplateRef,\n Type,\n ViewChild,\n OnInit\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport { Observable } from 'rxjs';\nimport {\n NzTransferComponent,\n TransferCanMove,\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\ninterface TransferProps extends FormlyFieldProps {\n /**\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\n * @default []\n */\n dataSource?: TransferItem[];\n\n /**\n * 标题集合,顺序从左至右\n * @default ['', '']\n */\n titles?: string[];\n\n /**\n * 操作文案集合,顺序从下至上\n * @default ['', '']\n */\n operations?: string[];\n\n /**\n * 两个穿梭框的自定义样式,等同 ngStyle\n */\n listStyle?: NgStyleInterface;\n\n /**\n * 单数单位\n * @default 项目\n */\n itemUnit?: string;\n\n /**\n * 复数单位\n * @default 项目\n */\n itemsUnit?: string;\n\n /**\n * 自定义渲染列表,见示例\n * @default [null, null]\n */\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\n\n /**\n * 每行数据渲染模板,见示例\n */\n render?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 底部渲染模板,见示例\n */\n footer?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 是否显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\n */\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\n\n /**\n * 搜索框的默认值\n * @default 请输入搜索内容\n */\n searchPlaceholder?: string;\n\n /**\n * 当列表为空时显示的内容\n * @default 列表为空\n */\n notFoundContent?: string;\n\n /**\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\n */\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\n\n /**\n * 设置被选中的 key 集合\n */\n selectedKeys?: string[];\n\n /**\n * 显示在右侧框数据的 key 集合\n */\n targetKeys?: string[];\n\n /**\n * 选项在两栏之间转移时的回调函数\n */\n onChange?: (value: TransferChange) => void;\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange?: FormlyAttributeEvent<TransferSearchChange>;\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange?: FormlyAttributeEvent<TransferSelectChange>;\n\n /**\n * 返回结果格式映射\n * @returns 默认返回 TransferItem[] 格式\n */\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\n}\n\nexport interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {\n type: 'transfer' | Type<FormlyFieldTransfer>;\n}\n\n@Component({\n selector: 'formly-field-transfer',\n template: `<formly-transfer\n #transfer\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDataSource]=\"props['dataSource']\"\n [nzTitles]=\"props['titles']\"\n [nzOperations]=\"props['operations']\"\n [nzListStyle]=\"props['listStyle']\"\n [nzItemUnit]=\"props['itemUnit']\"\n [nzItemsUnit]=\"props['itemsUnit']\"\n [nzRenderList]=\"props['renderList']!\"\n [nzRender]=\"props['render'] ?? null\"\n [nzFooter]=\"props['footer'] ?? null\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzFilterOption]=\"props['filterOption']\"\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzSelectedKeys]=\"props['selectedKeys']\"\n [nzTargetKeys]=\"props['targetKeys']\"\n [resultMap]=\"props['resultMap']\"\n (nzChange)=\"props['onChange'] && props['onChange']($event)\"\n (nzSearchChange)=\"props['searchChange'] && props['searchChange'](field, $event)\"\n (nzSelectChange)=\"props['selectChange'] && props['selectChange'](field, $event)\"\n ></formly-transfer>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n dataSource: [],\n titles: ['', ''],\n operations: ['', ''],\n renderList: [null, null],\n listStyle: {}\n }\n };\n\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n\n ngOnInit(): void {\n const canMove = this.props['canMove'];\n if (canMove !== null && canMove !== undefined) {\n this.transfer.nzCanMove = canMove;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzTransferModule } from 'ng-zorro-antd/transfer';\nimport { FormlyFieldTransfer } from './transfer.type';\nimport { TransferComponent } from './transfer.component';\n\n@NgModule({\n declarations: [FormlyFieldTransfer, TransferComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTransferModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'transfer',\n component: FormlyFieldTransfer,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTransferModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i3.TransferComponent"],"mappings":";;;;;;;;;;;AAAA;AAyDM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AAwCrC,KAAA;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,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;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBApBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;AACtD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\r\n\r\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type {\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\n\r\n@Component({\r\n selector: 'formly-transfer',\r\n template: `\r\n <nz-transfer\r\n #transfer\r\n [nzDataSource]=\"nzDataSource\"\r\n [nzDisabled]=\"nzDisabled\"\r\n [nzTitles]=\"nzTitles\"\r\n [nzOperations]=\"nzOperations\"\r\n [nzListStyle]=\"nzListStyle\"\r\n [nzItemUnit]=\"nzItemUnit\"\r\n [nzItemsUnit]=\"nzItemsUnit\"\r\n [nzRenderList]=\"nzRenderList\"\r\n [nzRender]=\"nzRender\"\r\n [nzFooter]=\"nzFooter\"\r\n [nzShowSearch]=\"nzShowSearch\"\r\n [nzFilterOption]=\"nzFilterOption\"\r\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzSelectedKeys]=\"nzSelectedKeys\"\r\n [nzTargetKeys]=\"nzTargetKeys\"\r\n (nzChange)=\"change($event)\"\r\n (nzSearchChange)=\"searchChange($event)\"\r\n (nzSelectChange)=\"selectChange($event)\"\r\n style=\"flex: auto;\"\r\n ></nz-transfer>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: TransferComponent,\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n\r\n onChange: OnChangeType = () => {};\r\n onTouched: OnTouchedType = () => {};\r\n writeValue(obj: NzSafeAny): void {\r\n setTimeout(() => {\r\n this.nzTargetKeys = obj;\r\n (this['cdr'] as ChangeDetectorRef).markForCheck();\r\n this.onChange(this.transfer.rightDataSource);\r\n }, 0);\r\n }\r\n registerOnChange(fn: NzSafeAny): void {\r\n this.onChange = fn;\r\n }\r\n registerOnTouched(fn: NzSafeAny): void {\r\n this.onTouched = fn;\r\n }\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.nzDisabled = isDisabled;\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n change(value: TransferChange): void {\r\n if (this.resultMap instanceof Function) {\r\n this.onChange(this.resultMap(this.transfer.rightDataSource));\r\n } else {\r\n this.onChange(this.transfer.rightDataSource);\r\n }\r\n }\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange(value: TransferSelectChange) {\r\n this.nzSelectChange.emit(value);\r\n }\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange(value: TransferSearchChange) {\r\n this.nzSearchChange.emit(value);\r\n }\r\n}\r\n","import {\r\n Component,\r\n ChangeDetectionStrategy,\r\n TemplateRef,\r\n Type,\r\n ViewChild,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { Observable } from 'rxjs';\r\nimport {\r\n NzTransferComponent,\r\n TransferCanMove,\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TransferProps extends FormlyFieldProps {\r\n /**\r\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\r\n * @default []\r\n */\r\n dataSource?: TransferItem[];\r\n\r\n /**\r\n * 标题集合,顺序从左至右\r\n * @default ['', '']\r\n */\r\n titles?: string[];\r\n\r\n /**\r\n * 操作文案集合,顺序从下至上\r\n * @default ['', '']\r\n */\r\n operations?: string[];\r\n\r\n /**\r\n * 两个穿梭框的自定义样式,等同 ngStyle\r\n */\r\n listStyle?: NgStyleInterface;\r\n\r\n /**\r\n * 单数单位\r\n * @default 项目\r\n */\r\n itemUnit?: string;\r\n\r\n /**\r\n * 复数单位\r\n * @default 项目\r\n */\r\n itemsUnit?: string;\r\n\r\n /**\r\n * 自定义渲染列表,见示例\r\n * @default [null, null]\r\n */\r\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\r\n\r\n /**\r\n * 每行数据渲染模板,见示例\r\n */\r\n render?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 底部渲染模板,见示例\r\n */\r\n footer?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 是否显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\r\n */\r\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\r\n\r\n /**\r\n * 搜索框的默认值\r\n * @default 请输入搜索内容\r\n */\r\n searchPlaceholder?: string;\r\n\r\n /**\r\n * 当列表为空时显示的内容\r\n * @default 列表为空\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\r\n */\r\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\r\n\r\n /**\r\n * 设置被选中的 key 集合\r\n */\r\n selectedKeys?: string[];\r\n\r\n /**\r\n * 显示在右侧框数据的 key 集合\r\n */\r\n targetKeys?: string[];\r\n\r\n /**\r\n * 选项在两栏之间转移时的回调函数\r\n */\r\n onChange?: (value: TransferChange) => void;\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange?: FormlyAttributeEvent<TransferSearchChange>;\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange?: FormlyAttributeEvent<TransferSelectChange>;\r\n\r\n /**\r\n * 返回结果格式映射\r\n * @returns 默认返回 TransferItem[] 格式\r\n */\r\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n}\r\n\r\nexport interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {\r\n type: 'transfer' | Type<FormlyFieldTransfer>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-transfer',\r\n template: `<formly-transfer\r\n #transfer\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzDataSource]=\"props['dataSource']\"\r\n [nzTitles]=\"props['titles']\"\r\n [nzOperations]=\"props['operations']\"\r\n [nzListStyle]=\"props['listStyle']\"\r\n [nzItemUnit]=\"props['itemUnit']\"\r\n [nzItemsUnit]=\"props['itemsUnit']\"\r\n [nzRenderList]=\"props['renderList']!\"\r\n [nzRender]=\"props['render'] ?? null\"\r\n [nzFooter]=\"props['footer'] ?? null\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzFilterOption]=\"props['filterOption']\"\r\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzSelectedKeys]=\"props['selectedKeys']\"\r\n [nzTargetKeys]=\"props['targetKeys']\"\r\n [resultMap]=\"props['resultMap']\"\r\n (nzChange)=\"props['onChange'] && props['onChange']($event)\"\r\n (nzSearchChange)=\"props['searchChange'] && props['searchChange'](field, $event)\"\r\n (nzSelectChange)=\"props['selectChange'] && props['selectChange'](field, $event)\"\r\n ></formly-transfer>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n dataSource: [],\r\n titles: ['', ''],\r\n operations: ['', ''],\r\n renderList: [null, null],\r\n listStyle: {}\r\n }\r\n };\r\n\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n\r\n ngOnInit(): void {\r\n const canMove = this.props['canMove'];\r\n if (canMove !== null && canMove !== undefined) {\r\n this.transfer.nzCanMove = canMove;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzTransferModule } from 'ng-zorro-antd/transfer';\r\nimport { FormlyFieldTransfer } from './transfer.type';\r\nimport { TransferComponent } from './transfer.component';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTransfer, TransferComponent],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTransferModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'transfer',\r\n component: FormlyFieldTransfer,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTransferModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i3.TransferComponent"],"mappings":";;;;;;;;;;;AAAA;AAyDM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AAwCrC,KAAA;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAC9C,EAAE,CAAC,CAAC,CAAC;KACP;AACD,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gB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AA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
|
@@ -38,81 +38,81 @@ class FormlyFieldTreeSelect extends FieldType {
|
|
38
38
|
get nzTreeTemplate() {
|
39
39
|
return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');
|
40
40
|
}
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
42
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
43
|
-
[formControl]="formControl"
|
44
|
-
[formlyAttributes]="field"
|
45
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
46
|
-
[ngClass]="props['ngClass']"
|
47
|
-
[nzAllowClear]="props['allowClear']!!"
|
48
|
-
[nzExpandedIcon]="nzExpandedIcon"
|
49
|
-
[nzShowIcon]="props['showIcon']!!"
|
50
|
-
[nzShowSearch]="props['showSearch']!!"
|
51
|
-
[nzNotFoundContent]="props['notFoundContent']"
|
52
|
-
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
53
|
-
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
54
|
-
[nzDropdownClassName]="props['dropdownClassName']"
|
55
|
-
[nzMultiple]="props['multiple']!!"
|
56
|
-
[nzHideUnMatched]="props['hideUnMatched']!!"
|
57
|
-
[nzCheckable]="props['checkable']!!"
|
58
|
-
[nzCheckStrictly]="props['checkStrictly']!!"
|
59
|
-
[nzShowExpand]="props['showExpand']!!"
|
60
|
-
[nzShowLine]="props['showLine']!!"
|
61
|
-
[nzAsyncData]="props['asyncData']"
|
62
|
-
[nzNodes]="props['nodes']!"
|
63
|
-
[nzDefaultExpandAll]="props['defaultExpandAll']!!"
|
64
|
-
[nzExpandedKeys]="props['expandedKeys']"
|
65
|
-
[nzDisplayWith]="props['displayWith']"
|
66
|
-
[nzMaxTagCount]="props['maxTagCount']"
|
67
|
-
[nzPlacement]="props['placement']"
|
68
|
-
[nzMaxTagPlaceholder]="nzMaxTagPlaceholder ?? null"
|
69
|
-
[nzTreeTemplate]="nzTreeTemplate!"
|
70
|
-
[nzVirtualHeight]="props['virtualHeight'] ?? null"
|
71
|
-
[nzVirtualItemSize]="props['virtualItemSize']!"
|
72
|
-
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
73
|
-
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
74
|
-
[nzBackdrop]="props['backdrop']!!"
|
75
|
-
(nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTreeSelect, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
42
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
|
43
|
+
[formControl]="formControl"
|
44
|
+
[formlyAttributes]="field"
|
45
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
46
|
+
[ngClass]="props['ngClass']"
|
47
|
+
[nzAllowClear]="props['allowClear']!!"
|
48
|
+
[nzExpandedIcon]="nzExpandedIcon"
|
49
|
+
[nzShowIcon]="props['showIcon']!!"
|
50
|
+
[nzShowSearch]="props['showSearch']!!"
|
51
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
52
|
+
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
53
|
+
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
54
|
+
[nzDropdownClassName]="props['dropdownClassName']"
|
55
|
+
[nzMultiple]="props['multiple']!!"
|
56
|
+
[nzHideUnMatched]="props['hideUnMatched']!!"
|
57
|
+
[nzCheckable]="props['checkable']!!"
|
58
|
+
[nzCheckStrictly]="props['checkStrictly']!!"
|
59
|
+
[nzShowExpand]="props['showExpand']!!"
|
60
|
+
[nzShowLine]="props['showLine']!!"
|
61
|
+
[nzAsyncData]="props['asyncData']"
|
62
|
+
[nzNodes]="props['nodes']!"
|
63
|
+
[nzDefaultExpandAll]="props['defaultExpandAll']!!"
|
64
|
+
[nzExpandedKeys]="props['expandedKeys']"
|
65
|
+
[nzDisplayWith]="props['displayWith']"
|
66
|
+
[nzMaxTagCount]="props['maxTagCount']"
|
67
|
+
[nzPlacement]="props['placement']"
|
68
|
+
[nzMaxTagPlaceholder]="nzMaxTagPlaceholder ?? null"
|
69
|
+
[nzTreeTemplate]="nzTreeTemplate!"
|
70
|
+
[nzVirtualHeight]="props['virtualHeight'] ?? null"
|
71
|
+
[nzVirtualItemSize]="props['virtualItemSize']!"
|
72
|
+
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
73
|
+
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
74
|
+
[nzBackdrop]="props['backdrop']!!"
|
75
|
+
(nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
|
76
76
|
></nz-tree-select>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
77
77
|
}
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
|
79
79
|
type: Component,
|
80
80
|
args: [{
|
81
81
|
selector: 'formly-field-treeselect',
|
82
|
-
template: ` <nz-tree-select
|
83
|
-
[formControl]="formControl"
|
84
|
-
[formlyAttributes]="field"
|
85
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
86
|
-
[ngClass]="props['ngClass']"
|
87
|
-
[nzAllowClear]="props['allowClear']!!"
|
88
|
-
[nzExpandedIcon]="nzExpandedIcon"
|
89
|
-
[nzShowIcon]="props['showIcon']!!"
|
90
|
-
[nzShowSearch]="props['showSearch']!!"
|
91
|
-
[nzNotFoundContent]="props['notFoundContent']"
|
92
|
-
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
93
|
-
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
94
|
-
[nzDropdownClassName]="props['dropdownClassName']"
|
95
|
-
[nzMultiple]="props['multiple']!!"
|
96
|
-
[nzHideUnMatched]="props['hideUnMatched']!!"
|
97
|
-
[nzCheckable]="props['checkable']!!"
|
98
|
-
[nzCheckStrictly]="props['checkStrictly']!!"
|
99
|
-
[nzShowExpand]="props['showExpand']!!"
|
100
|
-
[nzShowLine]="props['showLine']!!"
|
101
|
-
[nzAsyncData]="props['asyncData']"
|
102
|
-
[nzNodes]="props['nodes']!"
|
103
|
-
[nzDefaultExpandAll]="props['defaultExpandAll']!!"
|
104
|
-
[nzExpandedKeys]="props['expandedKeys']"
|
105
|
-
[nzDisplayWith]="props['displayWith']"
|
106
|
-
[nzMaxTagCount]="props['maxTagCount']"
|
107
|
-
[nzPlacement]="props['placement']"
|
108
|
-
[nzMaxTagPlaceholder]="nzMaxTagPlaceholder ?? null"
|
109
|
-
[nzTreeTemplate]="nzTreeTemplate!"
|
110
|
-
[nzVirtualHeight]="props['virtualHeight'] ?? null"
|
111
|
-
[nzVirtualItemSize]="props['virtualItemSize']!"
|
112
|
-
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
113
|
-
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
114
|
-
[nzBackdrop]="props['backdrop']!!"
|
115
|
-
(nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
|
82
|
+
template: ` <nz-tree-select
|
83
|
+
[formControl]="formControl"
|
84
|
+
[formlyAttributes]="field"
|
85
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
86
|
+
[ngClass]="props['ngClass']"
|
87
|
+
[nzAllowClear]="props['allowClear']!!"
|
88
|
+
[nzExpandedIcon]="nzExpandedIcon"
|
89
|
+
[nzShowIcon]="props['showIcon']!!"
|
90
|
+
[nzShowSearch]="props['showSearch']!!"
|
91
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
92
|
+
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
93
|
+
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
94
|
+
[nzDropdownClassName]="props['dropdownClassName']"
|
95
|
+
[nzMultiple]="props['multiple']!!"
|
96
|
+
[nzHideUnMatched]="props['hideUnMatched']!!"
|
97
|
+
[nzCheckable]="props['checkable']!!"
|
98
|
+
[nzCheckStrictly]="props['checkStrictly']!!"
|
99
|
+
[nzShowExpand]="props['showExpand']!!"
|
100
|
+
[nzShowLine]="props['showLine']!!"
|
101
|
+
[nzAsyncData]="props['asyncData']"
|
102
|
+
[nzNodes]="props['nodes']!"
|
103
|
+
[nzDefaultExpandAll]="props['defaultExpandAll']!!"
|
104
|
+
[nzExpandedKeys]="props['expandedKeys']"
|
105
|
+
[nzDisplayWith]="props['displayWith']"
|
106
|
+
[nzMaxTagCount]="props['maxTagCount']"
|
107
|
+
[nzPlacement]="props['placement']"
|
108
|
+
[nzMaxTagPlaceholder]="nzMaxTagPlaceholder ?? null"
|
109
|
+
[nzTreeTemplate]="nzTreeTemplate!"
|
110
|
+
[nzVirtualHeight]="props['virtualHeight'] ?? null"
|
111
|
+
[nzVirtualItemSize]="props['virtualItemSize']!"
|
112
|
+
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
113
|
+
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
114
|
+
[nzBackdrop]="props['backdrop']!!"
|
115
|
+
(nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
|
116
116
|
></nz-tree-select>`,
|
117
117
|
changeDetection: ChangeDetectionStrategy.OnPush
|
118
118
|
}]
|
@@ -121,12 +121,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
121
121
|
}] }] });
|
122
122
|
|
123
123
|
class FormlyNzTreeSelectModule {
|
124
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
125
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
125
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
|
126
126
|
ReactiveFormsModule,
|
127
127
|
FormlyNzFormFieldModule,
|
128
128
|
NzTreeSelectModule, i5.FormlyModule] }); }
|
129
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
129
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
|
130
130
|
ReactiveFormsModule,
|
131
131
|
FormlyNzFormFieldModule,
|
132
132
|
NzTreeSelectModule,
|
@@ -140,7 +140,7 @@ class FormlyNzTreeSelectModule {
|
|
140
140
|
]
|
141
141
|
})] }); }
|
142
142
|
}
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
|
144
144
|
type: NgModule,
|
145
145
|
args: [{
|
146
146
|
declarations: [FormlyFieldTreeSelect],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, Optional, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type {\n NzFormlyFieldConfig,\n FormlyAttributeEvent,\n NgStyleType\n} from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\nimport type { NzPlacementType } from 'ng-zorro-antd/tree-select';\n\ninterface TreeSelectProps extends FormlyFieldProps {\n /**\n * 显示清除按钮\n * @default false\n */\n allowClear?: boolean;\n\n /**\n * 是否展示 TreeNode title 前的图标,没有默认样式\n * @default false\n */\n showIcon?: boolean;\n\n /**\n * 显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string;\n\n /**\n * 下拉菜单和选择器同宽\n * @default true\n */\n dropdownMatchSelectWidth?: boolean;\n\n /**\n * 下拉菜单的样式\n */\n dropdownStyle?: NgStyleType;\n\n /**\n * 下拉菜单的 className 属性\n */\n dropdownClassName?: string;\n\n /**\n * 选择框弹出的位置\n */\n placement?: NzPlacementType;\n\n /**\n * 支持多选(当设置 nzCheckable 时自动变为true)\n * @default false\n */\n multiple?: boolean;\n\n /**\n * 搜索隐藏未匹配的节点\n * @default false\n */\n hideUnMatched?: boolean;\n\n /**\n * 节点前添加 Checkbox 复选框\n * @default false\n */\n checkable?: boolean;\n\n /**\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\n * @default false\n */\n checkStrictly?: boolean;\n\n /**\n * 节点前添加展开图标\n * @default true\n */\n showExpand?: boolean;\n\n /**\n * 是否展示连接线\n * @default false\n */\n showLine?: boolean;\n\n /**\n * 是否异步加载(显示加载状态)\n * @default false\n */\n asyncData?: boolean;\n\n /**\n * treeNodes 数据\n * @default []\n */\n nodes?: NzTreeNodeOptions[];\n\n /**\n * 默认展开所有树节点\n * @default false\n */\n defaultExpandAll?: boolean;\n\n /**\n * 默认展开指定的树节点\n */\n expandedKeys?: string[];\n\n /**\n * \t如何在输入框显示所选的节点值的方法\n * @default (node: NzTreeNode) => node.title\n */\n displayWith?: (node: NzTreeNode) => string;\n\n /**\n * 最多显示多少个 tag\n *\n */\n maxTagCount?: number;\n\n /**\n * 隐藏 tag 时显示的内容\n */\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\n maxTagPlaceholderName?: string;\n\n /**\n * 自定义节点\n */\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\n treeTemplateName?: string;\n\n /**\n * 自定义展开图标\n */\n expandedIcon?: TemplateRef<{\n $implicit: NzTreeNode;\n origin: NzTreeNodeOptions;\n }>;\n expandedIconName?: string;\n\n /**\n * 虚拟滚动的总高度\n */\n virtualHeight?: string | null;\n\n /**\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\n * @default 28\n */\n virtualItemSize?: number;\n\n /**\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\n * @default 500\n */\n virtualMaxBufferPx?: number;\n\n /**\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\n * @default 28\n */\n virtualMinBufferPx?: number;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击展开树节点图标调用\n */\n expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;\n}\n\nexport interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\n}\n\n@Component({\n selector: 'formly-field-treeselect',\n template: ` <nz-tree-select\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzExpandedIcon]=\"nzExpandedIcon\"\n [nzShowIcon]=\"props['showIcon']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\n [nzCheckable]=\"props['checkable']!!\"\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\n [nzShowExpand]=\"props['showExpand']!!\"\n [nzShowLine]=\"props['showLine']!!\"\n [nzAsyncData]=\"props['asyncData']\"\n [nzNodes]=\"props['nodes']!\"\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\n [nzExpandedKeys]=\"props['expandedKeys']\"\n [nzDisplayWith]=\"props['displayWith']\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzPlacement]=\"props['placement']\"\n [nzMaxTagPlaceholder]=\"nzMaxTagPlaceholder ?? null\"\n [nzTreeTemplate]=\"nzTreeTemplate!\"\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n (nzExpandChange)=\"props['expandChange'] && props['expandChange'](field, $event)\"\n ></nz-tree-select>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n dropdownMatchSelectWidth: true,\n showExpand: true,\n nodes: [],\n displayWith: (node: NzTreeNode) => node.title,\n placement: 'bottomLeft',\n virtualItemSize: 28,\n virtualMaxBufferPx: 500,\n virtualMinBufferPx: 28\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzExpandedIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandedIcon');\n }\n\n get nzMaxTagPlaceholder() {\n return resolveTplName(this.props, this.fieldTemplates, 'maxTagPlaceholder');\n }\n get nzTreeTemplate() {\n return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\nimport { FormlyFieldTreeSelect } from './tree-select.type';\n\n@NgModule({\n declarations: [FormlyFieldTreeSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzTreeSelectModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'tree-select',\n component: FormlyFieldTreeSelect,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTreeSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAmOM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAcnE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAbxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,CAAC,IAAgB,KAAK,IAAI,CAAC,KAAK;AAC7C,gBAAA,SAAS,EAAE,YAAY;AACvB,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,kBAAkB,EAAE,GAAG;AACvB,gBAAA,kBAAkB,EAAE,EAAE;AACvB,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IA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F,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, Optional, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type {\r\n NzFormlyFieldConfig,\r\n FormlyAttributeEvent,\r\n NgStyleType\r\n} from 'ngx-formly-zorro-antd/common';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\r\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\r\nimport type { NzPlacementType } from 'ng-zorro-antd/tree-select';\r\n\r\ninterface TreeSelectProps extends FormlyFieldProps {\r\n /**\r\n * 显示清除按钮\r\n * @default false\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否展示 TreeNode title 前的图标,没有默认样式\r\n * @default false\r\n */\r\n showIcon?: boolean;\r\n\r\n /**\r\n * 显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 下拉菜单和选择器同宽\r\n * @default true\r\n */\r\n dropdownMatchSelectWidth?: boolean;\r\n\r\n /**\r\n * 下拉菜单的样式\r\n */\r\n dropdownStyle?: NgStyleType;\r\n\r\n /**\r\n * 下拉菜单的 className 属性\r\n */\r\n dropdownClassName?: string;\r\n\r\n /**\r\n * 选择框弹出的位置\r\n */\r\n placement?: NzPlacementType;\r\n\r\n /**\r\n * 支持多选(当设置 nzCheckable 时自动变为true)\r\n * @default false\r\n */\r\n multiple?: boolean;\r\n\r\n /**\r\n * 搜索隐藏未匹配的节点\r\n * @default false\r\n */\r\n hideUnMatched?: boolean;\r\n\r\n /**\r\n * 节点前添加 Checkbox 复选框\r\n * @default false\r\n */\r\n checkable?: boolean;\r\n\r\n /**\r\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\r\n * @default false\r\n */\r\n checkStrictly?: boolean;\r\n\r\n /**\r\n * 节点前添加展开图标\r\n * @default true\r\n */\r\n showExpand?: boolean;\r\n\r\n /**\r\n * 是否展示连接线\r\n * @default false\r\n */\r\n showLine?: boolean;\r\n\r\n /**\r\n * 是否异步加载(显示加载状态)\r\n * @default false\r\n */\r\n asyncData?: boolean;\r\n\r\n /**\r\n * treeNodes 数据\r\n * @default []\r\n */\r\n nodes?: NzTreeNodeOptions[];\r\n\r\n /**\r\n * 默认展开所有树节点\r\n * @default false\r\n */\r\n defaultExpandAll?: boolean;\r\n\r\n /**\r\n * 默认展开指定的树节点\r\n */\r\n expandedKeys?: string[];\r\n\r\n /**\r\n * \t如何在输入框显示所选的节点值的方法\r\n * @default (node: NzTreeNode) => node.title\r\n */\r\n displayWith?: (node: NzTreeNode) => string;\r\n\r\n /**\r\n * 最多显示多少个 tag\r\n *\r\n */\r\n maxTagCount?: number;\r\n\r\n /**\r\n * 隐藏 tag 时显示的内容\r\n */\r\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\r\n maxTagPlaceholderName?: string;\r\n\r\n /**\r\n * 自定义节点\r\n */\r\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\r\n treeTemplateName?: string;\r\n\r\n /**\r\n * 自定义展开图标\r\n */\r\n expandedIcon?: TemplateRef<{\r\n $implicit: NzTreeNode;\r\n origin: NzTreeNodeOptions;\r\n }>;\r\n expandedIconName?: string;\r\n\r\n /**\r\n * 虚拟滚动的总高度\r\n */\r\n virtualHeight?: string | null;\r\n\r\n /**\r\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\r\n * @default 28\r\n */\r\n virtualItemSize?: number;\r\n\r\n /**\r\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\r\n * @default 500\r\n */\r\n virtualMaxBufferPx?: number;\r\n\r\n /**\r\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\r\n * @default 28\r\n */\r\n virtualMinBufferPx?: number;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击展开树节点图标调用\r\n */\r\n expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;\r\n}\r\n\r\nexport interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {\r\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-treeselect',\r\n template: ` <nz-tree-select\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzExpandedIcon]=\"nzExpandedIcon\"\r\n [nzShowIcon]=\"props['showIcon']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\r\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzMultiple]=\"props['multiple']!!\"\r\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\r\n [nzCheckable]=\"props['checkable']!!\"\r\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\r\n [nzShowExpand]=\"props['showExpand']!!\"\r\n [nzShowLine]=\"props['showLine']!!\"\r\n [nzAsyncData]=\"props['asyncData']\"\r\n [nzNodes]=\"props['nodes']!\"\r\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\r\n [nzExpandedKeys]=\"props['expandedKeys']\"\r\n [nzDisplayWith]=\"props['displayWith']\"\r\n [nzMaxTagCount]=\"props['maxTagCount']\"\r\n [nzPlacement]=\"props['placement']\"\r\n [nzMaxTagPlaceholder]=\"nzMaxTagPlaceholder ?? null\"\r\n [nzTreeTemplate]=\"nzTreeTemplate!\"\r\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\r\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\r\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\r\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n (nzExpandChange)=\"props['expandChange'] && props['expandChange'](field, $event)\"\r\n ></nz-tree-select>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n dropdownMatchSelectWidth: true,\r\n showExpand: true,\r\n nodes: [],\r\n displayWith: (node: NzTreeNode) => node.title,\r\n placement: 'bottomLeft',\r\n virtualItemSize: 28,\r\n virtualMaxBufferPx: 500,\r\n virtualMinBufferPx: 28\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzExpandedIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'expandedIcon');\r\n }\r\n\r\n get nzMaxTagPlaceholder() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'maxTagPlaceholder');\r\n }\r\n get nzTreeTemplate() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\r\nimport { FormlyFieldTreeSelect } from './tree-select.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTreeSelect],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzTreeSelectModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'tree-select',\r\n component: FormlyFieldTreeSelect,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTreeSelectModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAmOM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAcnE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAbxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,CAAC,IAAgB,KAAK,IAAI,CAAC,KAAK;AAC7C,gBAAA,SAAS,EAAE,YAAY;AACvB,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,kBAAkB,EAAE,GAAG;AACvB,gBAAA,kBAAkB,EAAE,EAAE;AACvB,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;KACxE;AAED,IAAA,IAAI,mBAAmB,GAAA;AACrB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,c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