ngx-formly-zorro-antd 17.4.2 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -0
- package/button-group/button-group.type.d.ts +3 -0
- package/card/card.type.d.ts +3 -0
- package/card-wrapper/card-wrapper.props.d.ts +3 -1
- package/card-wrapper/card.wrapper.d.ts +3 -0
- package/cascader/cascader.type.d.ts +4 -0
- package/datepicker/datepicker.type.d.ts +3 -0
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button/button.type.mjs +9 -6
- package/esm2022/button-group/button-group.module.mjs +4 -4
- package/esm2022/button-group/button-group.type.mjs +7 -4
- package/esm2022/card/card.module.mjs +4 -4
- package/esm2022/card/card.type.mjs +10 -5
- package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +10 -5
- package/esm2022/cascader/cascader.module.mjs +4 -4
- package/esm2022/cascader/cascader.type.mjs +8 -4
- package/esm2022/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/checkbox/checkbox.type.mjs +6 -4
- package/esm2022/common/common.module.mjs +4 -4
- package/esm2022/common/formly-box-templates.directive.mjs +4 -4
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +4 -4
- package/esm2022/datepicker/datepicker.type.mjs +20 -22
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/flex/flex.module.mjs +4 -4
- package/esm2022/flex/flex.type.mjs +9 -6
- package/esm2022/form-field/form-field.module.mjs +4 -4
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +10 -10
- package/esm2022/grid/grid.module.mjs +4 -4
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +7 -4
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/input/input.type.mjs +34 -31
- package/esm2022/input-group/input-group.module.mjs +4 -4
- package/esm2022/input-group/input-group.type.mjs +11 -8
- package/esm2022/input-number/input-number.module.mjs +4 -4
- package/esm2022/input-number/input-number.type.mjs +12 -10
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +4 -4
- package/esm2022/radio/radio.module.mjs +4 -4
- package/esm2022/radio/radio.type.mjs +10 -10
- package/esm2022/rate/rate.module.mjs +4 -4
- package/esm2022/rate/rate.type.mjs +14 -14
- package/esm2022/ref-template/ref-template.module.mjs +4 -4
- package/esm2022/ref-template/ref-template.type.mjs +10 -8
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +24 -27
- package/esm2022/slider/slider.module.mjs +4 -4
- package/esm2022/slider/slider.type.mjs +18 -18
- package/esm2022/space/space.module.mjs +4 -4
- package/esm2022/space/space.type.mjs +8 -9
- package/esm2022/switch/switch.module.mjs +4 -4
- package/esm2022/switch/switch.type.mjs +10 -12
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tabs/tabs.wrapper.mjs +8 -6
- package/esm2022/text-value/text-value.module.mjs +4 -4
- package/esm2022/text-value/text-value.type.mjs +5 -4
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/textarea/textarea.type.mjs +13 -12
- package/esm2022/timepicker/timepicker.module.mjs +4 -4
- package/esm2022/timepicker/timepicker.type.mjs +24 -24
- package/esm2022/transfer/transfer.component.mjs +5 -4
- package/esm2022/transfer/transfer.module.mjs +4 -4
- package/esm2022/transfer/transfer.type.mjs +8 -9
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.type.mjs +36 -34
- package/esm2022/upload/upload.component.mjs +4 -4
- package/esm2022/upload/upload.module.mjs +4 -4
- package/esm2022/upload/upload.type.mjs +9 -8
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +10 -7
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +12 -9
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +13 -8
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +13 -8
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +11 -7
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +9 -7
- 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 +25 -26
- 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 +12 -9
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +13 -13
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +10 -7
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +14 -11
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +17 -14
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +37 -34
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +15 -14
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +19 -18
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +14 -13
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +29 -31
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +23 -22
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +11 -12
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +15 -16
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +11 -9
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +8 -7
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +16 -15
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +29 -28
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +16 -15
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +41 -38
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +15 -14
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
- package/flex/flex.type.d.ts +3 -0
- package/form-field/form-field.props.d.ts +5 -0
- package/grid/grid.props.d.ts +3 -0
- package/grid/grid.type.d.ts +3 -0
- package/input/input.type.d.ts +4 -1
- package/input-group/input-group.type.d.ts +3 -0
- package/input-number/input-number.type.d.ts +3 -0
- package/package.json +25 -25
- package/radio/radio.type.d.ts +3 -0
- package/rate/rate.type.d.ts +3 -0
- package/ref-template/ref-template.type.d.ts +1 -0
- package/select/select.props.d.ts +2 -4
- package/slider/slider.type.d.ts +3 -0
- package/space/space.type.d.ts +1 -0
- package/switch/switch.type.d.ts +1 -0
- package/tabs/tabs.wrapper.d.ts +2 -0
- package/text-value/text-value.type.d.ts +1 -0
- package/textarea/textarea.type.d.ts +1 -0
- package/timepicker/timepicker.type.d.ts +1 -0
- package/transfer/transfer.component.d.ts +1 -0
- package/transfer/transfer.type.d.ts +2 -0
- package/tree-select/tree-select.type.d.ts +1 -0
- package/upload/upload.type.d.ts +1 -0
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, ChangeDetectionStrategy, Optional, NgModule } from '@angular/core';
|
3
3
|
import * as i2 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
|
-
import * as
|
5
|
+
import * as i1$1 from '@ngx-formly/core';
|
6
6
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
7
|
import * as i3 from '@angular/forms';
|
8
8
|
import { ReactiveFormsModule } from '@angular/forms';
|
@@ -12,6 +12,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
|
|
12
12
|
import * as i1 from 'ngx-formly-zorro-antd/common';
|
13
13
|
import { resolveTplName } from 'ngx-formly-zorro-antd/common';
|
14
14
|
|
15
|
+
/** @private */
|
15
16
|
class FormlyFieldTreeSelect extends FieldType {
|
16
17
|
constructor(fieldTemplates) {
|
17
18
|
super();
|
@@ -37,29 +38,30 @@ class FormlyFieldTreeSelect extends FieldType {
|
|
37
38
|
get nzTreeTemplate() {
|
38
39
|
return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');
|
39
40
|
}
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", 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: "18.0.7", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
|
42
43
|
[formControl]="formControl"
|
43
|
-
[
|
44
|
+
[nzId]="id"
|
44
45
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
45
46
|
[ngClass]="props['ngClass']"
|
46
|
-
[
|
47
|
+
[ngStyle]="props['ngStyle']"
|
48
|
+
[nzAllowClear]="!!props['allowClear']"
|
47
49
|
[nzExpandedIcon]="nzExpandedIcon"
|
48
|
-
[nzShowIcon]="props['showIcon']
|
49
|
-
[nzShowSearch]="props['showSearch']
|
50
|
+
[nzShowIcon]="!!props['showIcon']"
|
51
|
+
[nzShowSearch]="!!props['showSearch']"
|
50
52
|
[nzNotFoundContent]="props['notFoundContent']"
|
51
|
-
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']
|
53
|
+
[nzDropdownMatchSelectWidth]="!!props['dropdownMatchSelectWidth']"
|
52
54
|
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
53
55
|
[nzDropdownClassName]="props['dropdownClassName']"
|
54
|
-
[nzMultiple]="props['multiple']
|
55
|
-
[nzHideUnMatched]="props['hideUnMatched']
|
56
|
-
[nzCheckable]="props['checkable']
|
57
|
-
[nzCheckStrictly]="props['checkStrictly']
|
58
|
-
[nzShowExpand]="props['showExpand']
|
59
|
-
[nzShowLine]="props['showLine']
|
60
|
-
[nzAsyncData]="props['asyncData']"
|
56
|
+
[nzMultiple]="!!props['multiple']"
|
57
|
+
[nzHideUnMatched]="!!props['hideUnMatched']"
|
58
|
+
[nzCheckable]="!!props['checkable']"
|
59
|
+
[nzCheckStrictly]="!!props['checkStrictly']"
|
60
|
+
[nzShowExpand]="!!props['showExpand']"
|
61
|
+
[nzShowLine]="!!props['showLine']"
|
62
|
+
[nzAsyncData]="!!props['asyncData']"
|
61
63
|
[nzNodes]="props['nodes']!"
|
62
|
-
[nzDefaultExpandAll]="props['defaultExpandAll']
|
64
|
+
[nzDefaultExpandAll]="!!props['defaultExpandAll']"
|
63
65
|
[nzExpandedKeys]="props['expandedKeys']"
|
64
66
|
[nzDisplayWith]="props['displayWith']"
|
65
67
|
[nzMaxTagCount]="props['maxTagCount']"
|
@@ -70,36 +72,37 @@ class FormlyFieldTreeSelect extends FieldType {
|
|
70
72
|
[nzVirtualItemSize]="props['virtualItemSize']!"
|
71
73
|
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
72
74
|
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
73
|
-
[nzBackdrop]="props['backdrop']
|
75
|
+
[nzBackdrop]="!!props['backdrop']"
|
74
76
|
(nzExpandChange)="props['expandChange']?.(field, $event)"
|
75
|
-
></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"] }
|
77
|
+
></nz-tree-select>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
76
78
|
}
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
|
78
80
|
type: Component,
|
79
81
|
args: [{
|
80
82
|
selector: 'formly-field-treeselect',
|
81
83
|
template: ` <nz-tree-select
|
82
84
|
[formControl]="formControl"
|
83
|
-
[
|
85
|
+
[nzId]="id"
|
84
86
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
85
87
|
[ngClass]="props['ngClass']"
|
86
|
-
[
|
88
|
+
[ngStyle]="props['ngStyle']"
|
89
|
+
[nzAllowClear]="!!props['allowClear']"
|
87
90
|
[nzExpandedIcon]="nzExpandedIcon"
|
88
|
-
[nzShowIcon]="props['showIcon']
|
89
|
-
[nzShowSearch]="props['showSearch']
|
91
|
+
[nzShowIcon]="!!props['showIcon']"
|
92
|
+
[nzShowSearch]="!!props['showSearch']"
|
90
93
|
[nzNotFoundContent]="props['notFoundContent']"
|
91
|
-
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']
|
94
|
+
[nzDropdownMatchSelectWidth]="!!props['dropdownMatchSelectWidth']"
|
92
95
|
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
93
96
|
[nzDropdownClassName]="props['dropdownClassName']"
|
94
|
-
[nzMultiple]="props['multiple']
|
95
|
-
[nzHideUnMatched]="props['hideUnMatched']
|
96
|
-
[nzCheckable]="props['checkable']
|
97
|
-
[nzCheckStrictly]="props['checkStrictly']
|
98
|
-
[nzShowExpand]="props['showExpand']
|
99
|
-
[nzShowLine]="props['showLine']
|
100
|
-
[nzAsyncData]="props['asyncData']"
|
97
|
+
[nzMultiple]="!!props['multiple']"
|
98
|
+
[nzHideUnMatched]="!!props['hideUnMatched']"
|
99
|
+
[nzCheckable]="!!props['checkable']"
|
100
|
+
[nzCheckStrictly]="!!props['checkStrictly']"
|
101
|
+
[nzShowExpand]="!!props['showExpand']"
|
102
|
+
[nzShowLine]="!!props['showLine']"
|
103
|
+
[nzAsyncData]="!!props['asyncData']"
|
101
104
|
[nzNodes]="props['nodes']!"
|
102
|
-
[nzDefaultExpandAll]="props['defaultExpandAll']
|
105
|
+
[nzDefaultExpandAll]="!!props['defaultExpandAll']"
|
103
106
|
[nzExpandedKeys]="props['expandedKeys']"
|
104
107
|
[nzDisplayWith]="props['displayWith']"
|
105
108
|
[nzMaxTagCount]="props['maxTagCount']"
|
@@ -110,7 +113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
110
113
|
[nzVirtualItemSize]="props['virtualItemSize']!"
|
111
114
|
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
112
115
|
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
113
|
-
[nzBackdrop]="props['backdrop']
|
116
|
+
[nzBackdrop]="!!props['backdrop']"
|
114
117
|
(nzExpandChange)="props['expandChange']?.(field, $event)"
|
115
118
|
></nz-tree-select>`,
|
116
119
|
changeDetection: ChangeDetectionStrategy.OnPush
|
@@ -120,12 +123,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
120
123
|
}] }] });
|
121
124
|
|
122
125
|
class FormlyNzTreeSelectModule {
|
123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
124
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
126
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
127
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
|
125
128
|
ReactiveFormsModule,
|
126
129
|
FormlyNzFormFieldModule,
|
127
|
-
NzTreeSelectModule,
|
128
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
130
|
+
NzTreeSelectModule, i1$1.FormlyModule] }); }
|
131
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
|
129
132
|
ReactiveFormsModule,
|
130
133
|
FormlyNzFormFieldModule,
|
131
134
|
NzTreeSelectModule,
|
@@ -139,7 +142,7 @@ class FormlyNzTreeSelectModule {
|
|
139
142
|
]
|
140
143
|
})] }); }
|
141
144
|
}
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
|
143
146
|
type: NgModule,
|
144
147
|
args: [{
|
145
148
|
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 { NzFormlyFieldConfig, FormlyAttributeEvent, NgStyleType } 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\n/**\n * @publicApi\n */\nexport interface 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']?.(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 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":";;;;;;;;;;;;;;AAkOM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAanE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAZxD,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,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,cAAc,EAAE,mBAAmB,CAAC,CAAC;KAC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A,EAAA;+GAAxB,wBAAwB,EAAA,YAAA,EAAA,CAlBpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAElC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAaT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAhBjC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB;YAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAnBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,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';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent, NgStyleType } 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\n/**\n * @publicApi\n */\nexport interface 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/** @private */\n@Component({\n selector: 'formly-field-treeselect',\n template: ` <nz-tree-select\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\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']?.(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 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":";;;;;;;;;;;;;;AA0LA;AAyCM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAanE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAZxD,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,CA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uBAAuB;wBACvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
|
@@ -56,8 +56,8 @@ class UploadNzComponent extends NzUploadComponent {
|
|
56
56
|
}
|
57
57
|
}
|
58
58
|
}
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
60
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
59
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
60
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.7", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: ["nzeShowUploadButton", "nzeShowUploadButton", booleanAttribute], nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", ngClass: "ngClass", resultMap: "resultMap" }, providers: [
|
61
61
|
{
|
62
62
|
provide: NG_VALUE_ACCESSOR,
|
63
63
|
useExisting: forwardRef(() => UploadNzComponent),
|
@@ -136,7 +136,7 @@ class UploadNzComponent extends NzUploadComponent {
|
|
136
136
|
</nz-upload>
|
137
137
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
138
138
|
}
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: UploadNzComponent, decorators: [{
|
140
140
|
type: Component,
|
141
141
|
args: [{
|
142
142
|
selector: 'formly-nz-upload',
|
@@ -239,6 +239,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
239
239
|
type: Input
|
240
240
|
}] } });
|
241
241
|
|
242
|
+
/** @private */
|
242
243
|
class FormlyFieldUpload extends FieldType {
|
243
244
|
constructor(fieldTemplates) {
|
244
245
|
super();
|
@@ -271,14 +272,14 @@ class FormlyFieldUpload extends FieldType {
|
|
271
272
|
get nzFileListRender() {
|
272
273
|
return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
|
273
274
|
}
|
274
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
275
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1$1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
276
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
|
276
277
|
#upload
|
277
278
|
[formControl]="formControl"
|
278
279
|
[formlyAttributes]="field"
|
279
280
|
[nzAccept]="props['accept']"
|
280
281
|
[nzAction]="props['action']"
|
281
|
-
[nzDirectory]="props['directory']
|
282
|
+
[nzDirectory]="!!props['directory']"
|
282
283
|
[nzBeforeUpload]="props['beforeUpload']"
|
283
284
|
[nzCustomRequest]="props['customRequest']"
|
284
285
|
[nzData]="props['data']"
|
@@ -291,7 +292,7 @@ class FormlyFieldUpload extends FieldType {
|
|
291
292
|
[nzHeaders]="props['headers']"
|
292
293
|
[nzListType]="props['listType']!"
|
293
294
|
[nzMultiple]="props['multiple']!!"
|
294
|
-
[nzName]="props
|
295
|
+
[nzName]="props.name ?? ''"
|
295
296
|
[nzShowUploadList]="props['showUploadList']"
|
296
297
|
[nzShowButton]="props['showButton']!!"
|
297
298
|
[nzWithCredentials]="props['withCredentials']!!"
|
@@ -315,7 +316,7 @@ class FormlyFieldUpload extends FieldType {
|
|
315
316
|
>
|
316
317
|
</formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "ngClass", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
317
318
|
}
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldUpload, decorators: [{
|
319
320
|
type: Component,
|
320
321
|
args: [{
|
321
322
|
selector: 'formly-field-upload',
|
@@ -325,7 +326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
325
326
|
[formlyAttributes]="field"
|
326
327
|
[nzAccept]="props['accept']"
|
327
328
|
[nzAction]="props['action']"
|
328
|
-
[nzDirectory]="props['directory']
|
329
|
+
[nzDirectory]="!!props['directory']"
|
329
330
|
[nzBeforeUpload]="props['beforeUpload']"
|
330
331
|
[nzCustomRequest]="props['customRequest']"
|
331
332
|
[nzData]="props['data']"
|
@@ -338,7 +339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
338
339
|
[nzHeaders]="props['headers']"
|
339
340
|
[nzListType]="props['listType']!"
|
340
341
|
[nzMultiple]="props['multiple']!!"
|
341
|
-
[nzName]="props
|
342
|
+
[nzName]="props.name ?? ''"
|
342
343
|
[nzShowUploadList]="props['showUploadList']"
|
343
344
|
[nzShowButton]="props['showButton']!!"
|
344
345
|
[nzWithCredentials]="props['withCredentials']!!"
|
@@ -371,14 +372,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
371
372
|
}] } });
|
372
373
|
|
373
374
|
class FormlyNzUploadModule {
|
374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
375
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
376
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
|
376
377
|
ReactiveFormsModule,
|
377
378
|
FormlyNzFormFieldModule,
|
378
379
|
NzUploadModule,
|
379
380
|
NzButtonModule,
|
380
381
|
NzIconModule, i4$1.FormlyModule] }); }
|
381
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
382
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
|
382
383
|
ReactiveFormsModule,
|
383
384
|
FormlyNzFormFieldModule,
|
384
385
|
NzUploadModule,
|
@@ -394,7 +395,7 @@ class FormlyNzUploadModule {
|
|
394
395
|
]
|
395
396
|
})] }); }
|
396
397
|
}
|
397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
|
398
399
|
type: NgModule,
|
399
400
|
args: [{
|
400
401
|
declarations: [FormlyFieldUpload, UploadNzComponent],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n/**\n * @private\n */\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\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 fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name'] ?? ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzChange)=\"props.change?.(field, $event)\"\n (nzFileListChange)=\"props['fileListChange']?.(field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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 { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAgBA;;AAEG;AAqFG,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAA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E,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;AACpD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n/**\n * @private\n */\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\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 fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"!!props['directory']\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props.name ?? ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzChange)=\"props.change?.(field, $event)\"\n (nzFileListChange)=\"props['fileListChange']?.(field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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 { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAgBA;;AAEG;AAqFG,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;AAOF,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,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,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;AAED,IAAA,cAAc,CAAC,IAAoB,EAAA;AACjC,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;AAED,IAAA,MAAM,CAAC,KAA0B,EAAA;AAC/B,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,QAAA,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE;AACrD,YAAA,IAAI,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AA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAlB7B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,cAAc;YACd,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;AACpD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
@@ -29,8 +29,8 @@ import { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';
|
|
29
29
|
import { FormlyNzFlexModule } from 'ngx-formly-zorro-antd/flex';
|
30
30
|
|
31
31
|
class FormlyNgAntdModule {
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
33
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
33
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyCommonModule,
|
34
34
|
FormlyRefTemplateModule,
|
35
35
|
FormlyNzFormFieldModule,
|
36
36
|
FormlyNzInputModule,
|
@@ -57,7 +57,7 @@ class FormlyNgAntdModule {
|
|
57
57
|
FormlyNzGridModule,
|
58
58
|
FormlyNzSpaceModule,
|
59
59
|
FormlyNzFlexModule], exports: [FormlyCommonModule] }); }
|
60
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
60
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyCommonModule,
|
61
61
|
FormlyRefTemplateModule,
|
62
62
|
FormlyNzFormFieldModule,
|
63
63
|
FormlyNzInputModule,
|
@@ -85,7 +85,7 @@ class FormlyNgAntdModule {
|
|
85
85
|
FormlyNzSpaceModule,
|
86
86
|
FormlyNzFlexModule, FormlyCommonModule] }); }
|
87
87
|
}
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, decorators: [{
|
89
89
|
type: NgModule,
|
90
90
|
args: [{
|
91
91
|
imports: [
|
package/flex/flex.type.d.ts
CHANGED
@@ -34,6 +34,9 @@ export interface FlexProps extends FormlyFieldProps {
|
|
34
34
|
export interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {
|
35
35
|
type: 'flex' | Type<FormlyFieldFlex>;
|
36
36
|
}
|
37
|
+
/**
|
38
|
+
* @private
|
39
|
+
*/
|
37
40
|
export declare class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps>> {
|
38
41
|
defaultOptions: {
|
39
42
|
props: {
|
package/grid/grid.props.d.ts
CHANGED
package/grid/grid.type.d.ts
CHANGED
@@ -6,6 +6,9 @@ import * as i0 from "@angular/core";
|
|
6
6
|
export interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {
|
7
7
|
type: 'grid' | Type<FormlyFieldGrid>;
|
8
8
|
}
|
9
|
+
/**
|
10
|
+
* @private
|
11
|
+
*/
|
9
12
|
export declare class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldGrid, never>;
|
11
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldGrid, "formly-field-grid", never, {}, {}, never, never, false, never>;
|
package/input/input.type.d.ts
CHANGED
@@ -8,6 +8,9 @@ import * as i0 from "@angular/core";
|
|
8
8
|
export interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {
|
9
9
|
type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;
|
10
10
|
}
|
11
|
+
/**
|
12
|
+
* @private
|
13
|
+
*/
|
11
14
|
export declare class FormlyFieldInput extends FieldType<FieldTypeConfig> {
|
12
15
|
fieldTemplates: FormlyBoxTemplates;
|
13
16
|
defaultOptions: {
|
@@ -23,7 +26,7 @@ export declare class FormlyFieldInput extends FieldType<FieldTypeConfig> {
|
|
23
26
|
};
|
24
27
|
};
|
25
28
|
};
|
26
|
-
|
29
|
+
passVisible: boolean;
|
27
30
|
constructor(fieldTemplates: FormlyBoxTemplates);
|
28
31
|
get addOnBefore(): import("@angular/core").TemplateRef<any> | undefined;
|
29
32
|
get addOnAfter(): import("@angular/core").TemplateRef<any> | undefined;
|
@@ -6,6 +6,9 @@ import * as i0 from "@angular/core";
|
|
6
6
|
export interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {
|
7
7
|
type: 'input-group' | Type<FormlyFieldInputGroup>;
|
8
8
|
}
|
9
|
+
/**
|
10
|
+
* @private
|
11
|
+
*/
|
9
12
|
export declare class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {
|
10
13
|
defaultOptions: {
|
11
14
|
props: {
|
@@ -6,6 +6,9 @@ import * as i0 from "@angular/core";
|
|
6
6
|
export interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {
|
7
7
|
type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;
|
8
8
|
}
|
9
|
+
/**
|
10
|
+
* @private
|
11
|
+
*/
|
9
12
|
export declare class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {
|
10
13
|
defaultOptions: {
|
11
14
|
props: {
|