ngx-formly-zorro-antd 17.0.7 → 17.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +4 -0
- package/esm2022/button/button.type.mjs +5 -1
- package/esm2022/button-group/button-group.type.mjs +7 -5
- package/esm2022/cascader/cascader.type.mjs +3 -3
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +6 -2
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +9 -4
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +10 -6
- package/esm2022/select/select.type.mjs +12 -8
- package/esm2022/textarea/textarea.type.mjs +6 -4
- package/esm2022/upload/upload.component.mjs +5 -6
- package/esm2022/upload/upload.type.mjs +3 -3
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +6 -4
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +4 -0
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +5 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +9 -4
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +9 -5
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +12 -8
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +5 -3
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +6 -7
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +22 -2
- package/grid/grid.props.d.ts +13 -1
- package/package.json +17 -17
- package/upload/upload.component.d.ts +4 -1
@@ -2,10 +2,10 @@ import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
3
3
|
import { NzSelectComponent } from 'ng-zorro-antd/select';
|
4
4
|
import * as i0 from "@angular/core";
|
5
|
-
import * as i1 from "@angular/
|
6
|
-
import * as i2 from "
|
7
|
-
import * as i3 from "
|
8
|
-
import * as i4 from "@
|
5
|
+
import * as i1 from "@angular/common";
|
6
|
+
import * as i2 from "@angular/forms";
|
7
|
+
import * as i3 from "ng-zorro-antd/select";
|
8
|
+
import * as i4 from "@ngx-formly/core";
|
9
9
|
import * as i5 from "@ngx-formly/core/select";
|
10
10
|
export class FormlyFieldSelect extends FieldType {
|
11
11
|
constructor() {
|
@@ -42,7 +42,9 @@ export class FormlyFieldSelect extends FieldType {
|
|
42
42
|
<nz-select
|
43
43
|
#select
|
44
44
|
[class.ng-dirty]="showError"
|
45
|
-
[
|
45
|
+
[ngStyle]="props['style']"
|
46
|
+
[ngClass]="props['className']"
|
47
|
+
[nzPlaceHolder]="props.placeholder ?? null"
|
46
48
|
[compareWith]="props['compareWith']!"
|
47
49
|
[nzAllowClear]="props['allowClear']!!"
|
48
50
|
[nzSelectOnTab]="props['selectOnTab']!!"
|
@@ -97,7 +99,7 @@ export class FormlyFieldSelect extends FieldType {
|
|
97
99
|
}
|
98
100
|
}
|
99
101
|
</nz-select>
|
100
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type:
|
102
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
101
103
|
}
|
102
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
103
105
|
type: Component,
|
@@ -107,7 +109,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
107
109
|
<nz-select
|
108
110
|
#select
|
109
111
|
[class.ng-dirty]="showError"
|
110
|
-
[
|
112
|
+
[ngStyle]="props['style']"
|
113
|
+
[ngClass]="props['className']"
|
114
|
+
[nzPlaceHolder]="props.placeholder ?? null"
|
111
115
|
[compareWith]="props['compareWith']!"
|
112
116
|
[nzAllowClear]="props['allowClear']!!"
|
113
117
|
[nzSelectOnTab]="props['selectOnTab']!!"
|
@@ -169,4 +173,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
169
173
|
type: ViewChild,
|
170
174
|
args: ['select', { static: true }]
|
171
175
|
}] } });
|
172
|
-
//# sourceMappingURL=data:application/json;base64,
|
176
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3NlbGVjdC9zcmMvc2VsZWN0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDNUYsT0FBTyxFQUFFLFNBQVMsRUFBbUIsTUFBTSxrQkFBa0IsQ0FBQztBQUU5RCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7Ozs7OztBQTBFekQsTUFBTSxPQUFPLGlCQUFrQixTQUFRLFNBQTBCO0lBbEVqRTs7UUFtRVcsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsV0FBVyxFQUFFLENBQUMsRUFBYSxFQUFFLEVBQWEsRUFBRSxFQUFFLENBQUMs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VsdGlwbGVDb3VudF09XCJwcm9wc1snbWF4TXVsdGlwbGVDb3VudCddIVwiXG4gICAgICBbbnpNb2RlXT1cInByb3BzWydtb2RlJ10hXCJcbiAgICAgIFtuelNob3dTZWFyY2hdPVwicHJvcHNbJ3Nob3dTZWFyY2gnXSEhXCJcbiAgICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxuICAgICAgW256U3RhdHVzXT1cInByb3BzWydzdGF0dXMnXSFcIlxuICAgICAgW256TG9hZGluZ109XCJwcm9wc1snbG9hZGluZyddISFcIlxuICAgICAgW256UGxhY2VtZW50XT1cInByb3BzWydwbGFjZW1lbnQnXVwiXG4gICAgICBbbnpTaG93QXJyb3ddPVwicHJvcHNbJ3Nob3dBcnJvdyddISFcIlxuICAgICAgW256TWF4VGFnQ291bnRdPVwicHJvcHNbJ21heFRhZ0NvdW50J11cIlxuICAgICAgW256TWF4VGFnUGxhY2Vob2xkZXJdPVwicHJvcHNbJ21heFRhZ1BsYWNlaG9sZGVyJ10gPz8gbnVsbFwiXG4gICAgICBbbnpPcHRpb25IZWlnaHRQeF09XCJwcm9wc1snb3B0aW9uSGVpZ2h0UHgnXSFcIlxuICAgICAgW256T3B0aW9uT3ZlcmZsb3dTaXplXT1cInByb3BzWydvcHRpb25PdmVyZmxvd1NpemUnXSFcIlxuICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcbiAgICAgIFtmb3JtbHlBdHRyaWJ1dGVzXT1cImZpZWxkXCJcbiAgICAgIChuZ01vZGVsQ2hhbmdlKT1cInByb3BzLmNoYW5nZT8uKGZpZWxkLCAkZXZlbnQpXCJcbiAgICAgIChuekJsdXIpPVwicHJvcHMuYmx1cj8uKGZpZWxkLCAkZXZlbnQpXCJcbiAgICAgIChuekZvY3VzKT1cInByb3BzLmZvY3VzPy4oZmllbGQsICRldmVudClcIlxuICAgICAgKG56T3BlbkNoYW5nZSk9XCJwcm9wc1snb3BlbkNoYW5nZSddICYmIHByb3BzWydvcGVuQ2hhbmdlJ10oZmllbGQsICRldmVudClcIlxuICAgICAgKG56U2Nyb2xsVG9Cb3R0b20pPVwicHJvcHNbJ3Njcm9sbFRvQm90dG9tJ10gJiYgcHJvcHNbJ3Njcm9sbFRvQm90dG9tJ10oZmllbGQsICRldmVudClcIlxuICAgICAgKG56T25TZWFyY2gpPVwicHJvcHNbJ29uU2VhcmNoJ10gJiYgcHJvcHNbJ29uU2VhcmNoJ10oZmllbGQsICRldmVudClcIlxuICAgID5cbiAgICAgIEBmb3IgKGl0ZW0gb2YgdG8ub3B0aW9ucyB8IGZvcm1seVNlbGVjdE9wdGlvbnM6IGZpZWxkIHwgYXN5bmM7IHRyYWNrIGl0ZW0pIHtcbiAgICAgICAgQGlmIChpdGVtLmdyb3VwKSB7XG4gICAgICAgICAgPG56LW9wdGlvbi1ncm91cCBbbnpMYWJlbF09XCJpdGVtLmxhYmVsXCI+XG4gICAgICAgICAgICBAZm9yIChjaGlsZCBvZiBpdGVtLmdyb3VwOyB0cmFjayBjaGlsZCkge1xuICAgICAgICAgICAgICA8bnotb3B0aW9uXG4gICAgICAgICAgICAgICAgW256VmFsdWVdPVwiY2hpbGQudmFsdWVcIlxuICAgICAgICAgICAgICAgIFtuekRpc2FibGVkXT1cImNoaWxkLmRpc2FibGVkXCJcbiAgICAgICAgICAgICAgICBbbnpMYWJlbF09XCJjaGlsZC5sYWJlbFwiXG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgPC9uei1vcHRpb24+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgPC9uei1vcHRpb24tZ3JvdXA+XG4gICAgICAgIH0gQGVsc2Uge1xuICAgICAgICAgIDxuei1vcHRpb25cbiAgICAgICAgICAgIFtuelZhbHVlXT1cIml0ZW0udmFsdWVcIlxuICAgICAgICAgICAgW256RGlzYWJsZWRdPVwiaXRlbS5kaXNhYmxlZFwiXG4gICAgICAgICAgICBbbnpMYWJlbF09XCJpdGVtLmxhYmVsXCJcbiAgICA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aWM6IHRydWUgfSkgc2VsZWN0ITogTnpTZWxlY3RDb21wb25lbnQ7XG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIGlmICh0aGlzLnByb3BzWydmaWx0ZXJPcHRpb24nXSBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XG4gICAgICB0aGlzLnNlbGVjdC5uekZpbHRlck9wdGlvbiA9IHRoaXMucHJvcHNbJ2ZpbHRlck9wdGlvbiddIGFzIE56U2FmZUFueTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -26,11 +26,12 @@ export class FormlyFieldTextarea extends FieldType {
|
|
26
26
|
[formControl]="formControl"
|
27
27
|
[formlyAttributes]="field"
|
28
28
|
[ngClass]="props['className']"
|
29
|
+
[ngStyle]="props['style']"
|
29
30
|
[attr.rows]="props.rows"
|
30
31
|
[attr.cols]="props.cols"
|
31
|
-
nz-input
|
32
32
|
[nzBorderless]="props['borderless']!!"
|
33
33
|
[nzAutosize]="props['autosize']!!"
|
34
|
+
nz-input
|
34
35
|
></textarea>
|
35
36
|
</nz-textarea-count>
|
36
37
|
}
|
@@ -72,7 +73,7 @@ export class FormlyFieldTextarea extends FieldType {
|
|
72
73
|
></span>
|
73
74
|
}
|
74
75
|
</ng-template>
|
75
|
-
`, 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: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
76
|
+
`, 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: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
76
77
|
}
|
77
78
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
|
78
79
|
type: Component,
|
@@ -86,11 +87,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
86
87
|
[formControl]="formControl"
|
87
88
|
[formlyAttributes]="field"
|
88
89
|
[ngClass]="props['className']"
|
90
|
+
[ngStyle]="props['style']"
|
89
91
|
[attr.rows]="props.rows"
|
90
92
|
[attr.cols]="props.cols"
|
91
|
-
nz-input
|
92
93
|
[nzBorderless]="props['borderless']!!"
|
93
94
|
[nzAutosize]="props['autosize']!!"
|
95
|
+
nz-input
|
94
96
|
></textarea>
|
95
97
|
</nz-textarea-count>
|
96
98
|
}
|
@@ -136,4 +138,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
136
138
|
changeDetection: ChangeDetectionStrategy.OnPush
|
137
139
|
}]
|
138
140
|
}] });
|
139
|
-
//# sourceMappingURL=data:application/json;base64,
|
141
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdGV4dGFyZWEvc3JjL3RleHRhcmVhLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLGtCQUFrQixDQUFDOzs7Ozs7O0FBeUY5RCxNQUFNLE9BQU8sbUJBQW9CLFNBQVEsU0FBeUM7SUE1RGxGOztRQTZEVyxtQkFBYyxHQUFHO1lBQ3hCLEtBQUssRUFBRTtnQkFDTCxJQUFJLEVBQUUsQ0FBQztnQkFDUCxRQUFRLEVBQUUsS0FBSztnQkFDZixVQUFVLEVBQUUsS0FBSzthQUNsQjtTQUNGLENBQUM7S0FDSDs4R0FSWSxtQkFBbUI7a0dBQW5CLG1CQUFtQixvRkExRHBCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs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c109XCJwcm9wc1snYm9yZGVybGVzcyddISFcIlxuICAgICAgICAgICAgW256QXV0b3NpemVdPVwicHJvcHNbJ2F1dG9zaXplJ10hIVwiXG4gICAgICAgICAgICBuei1pbnB1dFxuICAgICAgICAgID48L3RleHRhcmVhPlxuICAgICAgICA8L256LXRleHRhcmVhLWNvdW50PlxuICAgICAgfVxuICAgICAgQGNhc2UgKCdjbGVhcicpIHtcbiAgICAgICAgPG56LWlucHV0LWdyb3VwXG4gICAgICAgICAgY2xhc3M9XCJhbnQtaW5wdXQtYWZmaXgtd3JhcHBlci10ZXh0YXJlYS13aXRoLWNsZWFyLWJ0blwiXG4gICAgICAgICAgW256U3VmZml4XT1cInRleHRBcmVhQ2xlYXJUcGxcIlxuICAgICAgICA+XG4gICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInRleHRhcmVhVHBsXCI+IDwvbmctY29udGFpbmVyPlxuICAgICAgICA8L256LWlucHV0LWdyb3VwPlxuICAgICAgfVxuICAgICAgQGRlZmF1bHQge1xuICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwidGV4dGFyZWFUcGxcIj4gPC9uZy1jb250YWluZXI+XG4gICAgICB9XG4gICAgfVxuXG4gICAgPG5nLXRlbXBsYXRlICN0ZXh0YXJlYVRwbD5cbiAgICAgIDx0ZXh0YXJlYVxuICAgICAgICBbZm9ybUNvbnRyb2xdPVwiZm9ybUNvbnRyb2xcIlxuICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgIFtuZ0NsYXNzXT1cInByb3BzWydjbGFzc05hbWUnXVwiXG4gICAgICAgIFthdHRyLnJvd3NdPVwicHJvcHMucm93c1wiXG4gICAgICAgIFthdHRyLmNvbHNdPVwicHJvcHMuY29sc1wiXG4gICAgICAgIG56LWlucHV0XG4gICAgICAgIFtuekJvcmRlcmxlc3NdPVwicHJvcHNbJ2JvcmRlcmxlc3MnXSEhXCJcbiAgICAgICAgW256QXV0b3NpemVdPVwicHJvcHNbJ2F1dG9zaXplJ10hIVwiXG4gICAgICA+PC90ZXh0YXJlYT5cbiAgICA8L25nLXRlbXBsYXRlPlxuXG4gICAgPCEtLSDmuIXpmaTmlbDmja4gLS0+XG4gICAgPG5nLXRlbXBsYXRlICN0ZXh0QXJlYUNsZWFyVHBsPlxuICAgICAgQGlmIChmb3JtQ29udHJvbC52YWx1ZSAmJiAhcHJvcHNbJ2Rpc2FibGVkJ10gJiYgIXByb3BzWydyZWFkb25seSddKSB7XG4gICAgICAgIDxzcGFuXG4gICAgICAgICAgbnotaWNvblxuICAgICAgICAgIGNsYXNzPVwiYW50LWlucHV0LWNsZWFyLWljb25cIlxuICAgICAgICAgIG56VGhlbWU9XCJmaWxsXCJcbiAgICAgICAgICBuelR5cGU9XCJjbG9zZS1jaXJjbGVcIlxuICAgICAgICAgIChjbGljayk9XCJmb3JtQ29udHJvbC5yZXNldCgpXCJcbiAgICAgICAgPjwvc3Bhbj5cbiAgICAgIH1cbiAgICA8L25nLXRlbXBsYXRlPlxuICBgLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlGaWVsZFRleHRhcmVhIGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZzxUZXh0YXJlYVByb3BzPj4ge1xuICBvdmVycmlkZSBkZWZhdWx0T3B0aW9ucyA9IHtcbiAgICBwcm9wczoge1xuICAgICAgcm93czogNCxcbiAgICAgIGF1dG9zaXplOiBmYWxzZSxcbiAgICAgIGJvcmRlcmxlc3M6IGZhbHNlXG4gICAgfVxuICB9O1xufVxuIl19
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
2
|
-
import { ChangeDetectionStrategy, Component, forwardRef, Input, ViewEncapsulation } from '@angular/core';
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, booleanAttribute, Input, ViewEncapsulation } from '@angular/core';
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
4
|
import { NzUploadComponent } from 'ng-zorro-antd/upload';
|
5
5
|
import * as i0 from "@angular/core";
|
@@ -16,8 +16,6 @@ export class UploadNzComponent extends NzUploadComponent {
|
|
16
16
|
this.nzeUploadButtonIcon = {
|
17
17
|
type: 'cloud-upload'
|
18
18
|
};
|
19
|
-
/** 样式名 */
|
20
|
-
this.className = '';
|
21
19
|
this.onChange = () => { };
|
22
20
|
this.onTouched = () => { };
|
23
21
|
}
|
@@ -46,7 +44,7 @@ export class UploadNzComponent extends NzUploadComponent {
|
|
46
44
|
}
|
47
45
|
}
|
48
46
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
49
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: "nzeShowUploadButton", nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: ["nzeShowUploadButton", "nzeShowUploadButton", booleanAttribute], nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
|
50
48
|
{
|
51
49
|
provide: NG_VALUE_ACCESSOR,
|
52
50
|
useExisting: forwardRef(() => UploadNzComponent),
|
@@ -216,7 +214,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
216
214
|
}], nzeHint: [{
|
217
215
|
type: Input
|
218
216
|
}], nzeShowUploadButton: [{
|
219
|
-
type: Input
|
217
|
+
type: Input,
|
218
|
+
args: [{ transform: booleanAttribute }]
|
220
219
|
}], nzeUploadButton: [{
|
221
220
|
type: Input
|
222
221
|
}], nzeUploadButtonIcon: [{
|
@@ -226,4 +225,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
226
225
|
}], resultMap: [{
|
227
226
|
type: Input
|
228
227
|
}] } });
|
229
|
-
//# sourceMappingURL=data:application/json;base64,
|
228
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFFVCxVQUFVLEVBQ1YsZ0JBQWdCLEVBQ2hCLEtBQUssRUFDTCxpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUF3QixpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXpFLE9BQU8sRUFBdUIsaUJBQWlCLEVBQWdCLE1BQU0sc0JBQXNCLENBQUM7Ozs7Ozs7O0FBdUY1RixNQUFNLE9BQU8saUJBQWtCLFNBQVEsaUJBQWlCO0lBcEZ4RDs7UUFpR0UsY0FBYztRQUNMLHdCQUFtQixHQUFxQjtZQUMvQyxJQUFJLEVBQUUsY0FBYztTQUNyQixDQUFDO1FBY0YsYUFBUSxHQUFpQixH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ekFjY2VwdF09XCJuekFjY2VwdFwiXG4gICAgICBbbnpBY3Rpb25dPVwibnpBY3Rpb25cIlxuICAgICAgW256RGlyZWN0b3J5XT1cIm56RGlyZWN0b3J5XCJcbiAgICAgIFtuekJlZm9yZVVwbG9hZF09XCJuekJlZm9yZVVwbG9hZFwiXG4gICAgICBbbnpDdXN0b21SZXF1ZXN0XT1cIm56Q3VzdG9tUmVxdWVzdFwiXG4gICAgICBbbnpEYXRhXT1cIm56RGF0YVwiXG4gICAgICBbbnpEaXNhYmxlZF09XCJuekRpc2FibGVkXCJcbiAgICAgIFsobnpGaWxlTGlzdCldPVwibnpGaWxlTGlzdFwiXG4gICAgICBbbnpMaW1pdF09XCJuekxpbWl0XCJcbiAgICAgIFtuelNpemVdPVwibnpTaXplXCJcbiAgICAgIFtuekZpbGVUeXBlXT1cIm56RmlsZVR5cGVcIlxuICAgICAgW256RmlsdGVyXT1cIm56RmlsdGVyXCJcbiAgICAgIFtuekhlYWRlcnNdPVwibnpIZWFkZXJzXCJcbiAgICAgIFtuekxpc3RUeXBlXT1cIm56TGlzdFR5cGVcIlxuICAgICAgW256TXVsdGlwbGVdPVwibnpNdWx0aXBsZVwiXG4gICAgICBbbnpOYW1lXT1cIm56TmFtZVwiXG4gICAgICBbbnpTaG93VXBsb2FkTGlzdF09XCJuelNob3dVcGxvYWRMaXN0XCJcbiAgICAgIFtuelNob3dCdXR0b25dPVwibnpTaG93QnV0dG9uXCJcbiAgICAgIFtueldpdGhDcmVkZW50aWFsc109XCJueldpdGhDcmVkZW50aWFsc1wiXG4gICAgICBbbnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tdPVwibnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tcIlxuICAgICAgW256UHJldmlld109XCJuelByZXZpZXdcIlxuICAgICAgW256UHJldmlld0ZpbGVdPVwibnpQcmV2aWV3RmlsZVwiXG4gICAgICBbbnpQcmV2aWV3SXNJbWFnZV09XCJuelByZXZpZXdJc0ltYWdlXCJcb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sZXQ9XCJ1cGxvYWRCdXR0b25JY29uVHBsXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgIHt7IG56ZVRleHQgfX1cbiAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgIH0gQGVsc2UgaWYgKG56ZVNob3dVcGxvYWRCdXR0b24gPT09IGZhbHNlKSB7XG4gICAgICAgICAgICA8ZGl2PlxuICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwidXBsb2FkQnV0dG9uSWNvblRwbFwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICB7eyBuemVUZXh0IH19XG4gICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJhbnQtdXBsb2FkLWhpbnRcIiBzdHlsZT1cIm1hcmdpbi10b3A6IDhweFwiPnt7IG56ZUhpbnQgfX08L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICA8bmctdGVtcGxhdGUgI3VwbG9hZEJ1dHRvbkljb25UcGw+XG4gICAgICAgIEBpZiAobnplVXBsb2FkQnV0dG9uSWNvbikge1xuICAgICAgICAgIDxzcGFuXG4gICAgICAgICAgICBuei1pY29uXG4gICAgICAgICAgICBbbnpUeXBlXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHlwZVwiXG4gICAgICAgICAgICBbbnpUaGVtZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnRoZW1lIHx8ICdvdXRsaW5lJ1wiXG4gICAgICAgICAgICBbbnpTcGluXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24uc3BpbiEhXCJcbiAgICAgICAgICAgIFtuelR3b3RvbmVDb2xvcl09XCJuemVVcGxvYWRCdXR0b25JY29uLnR3b1RvbmVDb2xvciB8fCAnJ1wiXG4gICAgICAgICAgPjwvc3Bhbj5cbiAgICAgICAgfVxuICAgICAgPC9uZy10ZW1wbGF0ZT5cbi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RDaGFuZ2VQYXJhbSkge1xuICAgIHRoaXMubnpDaGFuZ2UuZW1pdCh2YWx1ZSk7XG4gICAgaWYgKFsncmVtb3ZlZCcsICdzdWNjZXNzJ10uaW5jbHVkZXModmFsdWUudHlwZSA/PyAnJykpIHtcbiAgICAgIGlmICh0aGlzLnJlc3VsdE1hcCBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XG4gICAgICAgIHRoaXMub25DaGFuZ2UodGhpcy5yZXN1bHRNYXAodmFsdWUuZmlsZUxpc3QuZmlsdGVyKHggPT4geC5zdGF0dXMgPT09ICdkb25lJykpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMub25DaGFuZ2UodmFsdWUuZmlsZUxpc3QuZmlsdGVyKHggPT4geC5zdGF0dXMgPT09ICdkb25lJykpO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19
|
@@ -78,7 +78,7 @@ export class FormlyFieldUpload extends FieldType {
|
|
78
78
|
[nzeText]="props['text']"
|
79
79
|
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
80
80
|
[nzeShowUploadButton]="props['showUploadButton']"
|
81
|
-
[className]="props['className']
|
81
|
+
[className]="props['className']"
|
82
82
|
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
83
83
|
>
|
84
84
|
</formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i4.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
@@ -125,7 +125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
125
125
|
[nzeText]="props['text']"
|
126
126
|
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
127
127
|
[nzeShowUploadButton]="props['showUploadButton']"
|
128
|
-
[className]="props['className']
|
128
|
+
[className]="props['className']"
|
129
129
|
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
130
130
|
>
|
131
131
|
</formly-nz-upload>`,
|
@@ -137,4 +137,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
137
137
|
type: ViewChild,
|
138
138
|
args: ['upload', { static: true }]
|
139
139
|
}] } });
|
140
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFFdkIsU0FBUyxFQUVULFFBQVEsRUFDVCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLGtCQUFrQixDQUFDO0FBRTlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRXZELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxjQUFjLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQzs7Ozs7O0FBb0RsRixNQUFNLE9BQU8saUJBQWtCLFNBQVEsU0FBdUM7SUFtQjVFLFlBQStCLGNBQWtDO1FBQy9ELEtBQUssRUFBRSxDQUFDO1FBRHFCLG1CQUFjLEdBQWQsY0FBYyx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lJ10gfHwgJydcIlxuICAgIFtuelNob3dVcGxvYWRMaXN0XT1cInByb3BzWydzaG93VXBsb2FkTGlzdCddXCJcbiAgICBbbnpTaG93QnV0dG9uXT1cInByb3BzWydzaG93QnV0dG9uJ10hIVwiXG4gICAgW256V2l0aENyZWRlbnRpYWxzXT1cInByb3BzWyd3aXRoQ3JlZGVudGlhbHMnXSEhXCJcbiAgICBbbnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tdPVwicHJvcHNbJ29wZW5GaWxlRGlhbG9nT25DbGljayddISFcIlxuICAgIFtuelByZXZpZXddPVwicHJvcHNbJ3ByZXZpZXcnXVwiXG4gICAgW256UHJldmlld0ZpbGVdPVwicHJvcHNbJ3ByZXZpZXdGaWxlJ11cIlxuICAgIFtuelByZXZpZXdJc0ltYWdlXT1cInByb3BzWydwcmV2aWV3SXNJbWFnZSddXCJcbiAgICBbbnpSZW1vdmVdPVwicHJvcHNbJ3JlbW92ZSddXCJcbiAgICAobnpDaGFuZ2UpPVwicHJvcHMuY2hhbmdlICYmIHByb3BzLmNoYW5nZShmaWVsZCwgJGV2ZW50KVwiXG4gICAgW256RG93bmxvYWRdPVwicHJvcHNbJ2Rvd25sb2FkJ11cIlxuICAgIFtuelRyYW5zZm9ybUZpbGVdPVwicHJvcHNbJ3RyYW5zZm9ybUZpbGUnXVwiXG4gICAgW256SWNvblJlbmRlcl09XCJuekljb25SZW5kZXIgPz8gbnVsbFwiXG4gICAgW256RmlsZUxpc3RSZW5kZXJdPVwibnpGaWxlTGlzdFJlbmRlciA/
|
140
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEs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0cnVlLFxuICAgICAgc2hvd0J1dHRvbjogdHJ1ZSxcbiAgICAgIG9wZW5GaWxlRGlhbG9nT25DbGljazogdHJ1ZSxcbiAgICAgIHNob3dVcGxvYWRCdXR0b246IHRydWUsXG4gICAgICBsaW1pdDogMCxcbiAgICAgIHNpemU6IDAsXG4gICAgICBmaWxlTGlzdDogW10sXG4gICAgICBmaWx0ZXI6IFtdLFxuICAgICAgdGV4dDogJydcbiAgICB9XG4gIH07XG5cbiAgQFZpZXdDaGlsZCgndXBsb2FkJywgeyBzdGF0aWM6IHRydWUgfSkgdXBsb2FkITogVXBsb2FkTnpDb21wb25lbnQ7XG5cbiAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgcHVibGljIGZpZWxkVGVtcGxhdGVzOiBGb3JtbHlCb3hUZW1wbGF0ZXMpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgY29uc3QgdHlwZSA9IHRoaXMucHJvcHMudHlwZTtcbiAgICBpZiAodHlwZSkge1xuICAgICAgdGhpcy51cGxvYWQubnpUeXBlID0gdHlwZTtcbiAgICB9XG4gIH1cblxuICBnZXQgbnpJY29uUmVuZGVyKCkge1xuICAgIHJldHVybiByZXNvbHZlVHBsTmFtZSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAnaWNvblJlbmRlcicpO1xuICB9XG5cbiAgZ2V0IG56RmlsZUxpc3RSZW5kZXIoKSB7XG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICdmaWxlTGlzdFJlbmRlcicpO1xuICB9XG59XG4iXX0=
|
@@ -43,14 +43,15 @@ class FormlyFieldButtonGroup extends FieldType {
|
|
43
43
|
nz-button
|
44
44
|
[formlyAttributes]="item"
|
45
45
|
[type]="item.type || 'button'"
|
46
|
+
[attr.title]="item.props['title']"
|
46
47
|
[disabled]="item.props.disabled!!"
|
47
48
|
[nzBlock]="item.props.block!!"
|
48
49
|
[nzDanger]="item.props.danger!!"
|
49
50
|
[nzGhost]="item.props.ghost!!"
|
50
51
|
[nzSize]="item.props.size || 'default'"
|
51
52
|
[nzLoading]="item.props.loading!!"
|
52
|
-
[nzShape]="item.props.shape"
|
53
|
-
[nzType]="item.props.nzType
|
53
|
+
[nzShape]="item.props.shape ?? null"
|
54
|
+
[nzType]="item.props.nzType ?? null"
|
54
55
|
>
|
55
56
|
@if (item.props.beforeIcon) {
|
56
57
|
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
@@ -81,14 +82,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
81
82
|
nz-button
|
82
83
|
[formlyAttributes]="item"
|
83
84
|
[type]="item.type || 'button'"
|
85
|
+
[attr.title]="item.props['title']"
|
84
86
|
[disabled]="item.props.disabled!!"
|
85
87
|
[nzBlock]="item.props.block!!"
|
86
88
|
[nzDanger]="item.props.danger!!"
|
87
89
|
[nzGhost]="item.props.ghost!!"
|
88
90
|
[nzSize]="item.props.size || 'default'"
|
89
91
|
[nzLoading]="item.props.loading!!"
|
90
|
-
[nzShape]="item.props.shape"
|
91
|
-
[nzType]="item.props.nzType
|
92
|
+
[nzShape]="item.props.shape ?? null"
|
93
|
+
[nzType]="item.props.nzType ?? null"
|
92
94
|
>
|
93
95
|
@if (item.props.beforeIcon) {
|
94
96
|
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { Subject } from 'rxjs';\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\n\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\n\ninterface ButtonGroupProps extends FormlyFieldProps {\n size?: NzButtonGroupSize;\n\n /**\n * 每个按钮配置\n */\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\n}\n\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\n}\n\n@Component({\n selector: 'formly-field-button-group',\n template: `\n <nz-button-group [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\n @for (item of props.buttons; track item.id) {\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\n }\n </nz-button-group>\n\n <ng-template #btnTemplate let-item>\n <button\n nz-button\n [formlyAttributes]=\"item\"\n [type]=\"item.type || 'button'\"\n [disabled]=\"item.props.disabled!!\"\n [nzBlock]=\"item.props.block!!\"\n [nzDanger]=\"item.props.danger!!\"\n [nzGhost]=\"item.props.ghost!!\"\n [nzSize]=\"item.props.size || 'default'\"\n [nzLoading]=\"item.props.loading!!\"\n [nzShape]=\"item.props.shape\"\n [nzType]=\"item.props.nzType
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { Subject } from 'rxjs';\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\n\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\n\ninterface ButtonGroupProps extends FormlyFieldProps {\n size?: NzButtonGroupSize;\n\n /**\n * 每个按钮配置\n */\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\n}\n\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\n}\n\n@Component({\n selector: 'formly-field-button-group',\n template: `\n <nz-button-group [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\n @for (item of props.buttons; track item.id) {\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\n }\n </nz-button-group>\n\n <ng-template #btnTemplate let-item>\n <button\n nz-button\n [formlyAttributes]=\"item\"\n [type]=\"item.type || 'button'\"\n [attr.title]=\"item.props['title']\"\n [disabled]=\"item.props.disabled!!\"\n [nzBlock]=\"item.props.block!!\"\n [nzDanger]=\"item.props.danger!!\"\n [nzGhost]=\"item.props.ghost!!\"\n [nzSize]=\"item.props.size || 'default'\"\n [nzLoading]=\"item.props.loading!!\"\n [nzShape]=\"item.props.shape ?? null\"\n [nzType]=\"item.props.nzType ?? null\"\n >\n @if (item.props.beforeIcon) {\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\n }\n @if (item.props.text) {\n <span>{{ item.props.text }}</span>\n }\n @if (item.props.afterIcon) {\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\n }\n </button>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButtonGroup\n extends FieldType<FieldTypeConfig<ButtonGroupProps>>\n implements OnDestroy\n{\n destroy$ = new Subject<void>();\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttons: []\n }\n };\n\n constructor() {\n super();\n }\n\n subjectDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n ngOnDestroy(): void {\n this.subjectDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButtonGroup } from './button-group.type';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButtonGroup],\n imports: [\n CommonModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button-group',\n component: FormlyFieldButtonGroup\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA4DM,MAAO,sBACX,SAAQ,SAA4C,CAAA;AAWpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AATV,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,OAAO,EAAE,EAAE;AACZ,aAAA;SACF,CAAC;KAID;IAED,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC1B;IAED,WAAW,GAAA;QACT,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;8GAvBU,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAA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AAc;AACpB,wBAAA,SAAS,EAAE,sBAAsB;AAClC,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAjBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
@@ -41,6 +41,7 @@ class FormlyFieldButton extends FieldType {
|
|
41
41
|
<a
|
42
42
|
nz-button
|
43
43
|
[formlyAttributes]="field"
|
44
|
+
[attr.title]="props['title']"
|
44
45
|
[nzGhost]="props['ghost']!!"
|
45
46
|
[nzLoading]="props['loading']!!"
|
46
47
|
[nzShape]="props['shape'] ?? null"
|
@@ -69,6 +70,7 @@ class FormlyFieldButton extends FieldType {
|
|
69
70
|
[formlyAttributes]="field"
|
70
71
|
[attr.type]="field.type"
|
71
72
|
[attr.form]="props['formName']"
|
73
|
+
[attr.title]="props['title']"
|
72
74
|
[disabled]="props['disabled']!!"
|
73
75
|
[nzGhost]="props['ghost']!!"
|
74
76
|
[nzLoading]="props['loading']!!"
|
@@ -106,6 +108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
106
108
|
<a
|
107
109
|
nz-button
|
108
110
|
[formlyAttributes]="field"
|
111
|
+
[attr.title]="props['title']"
|
109
112
|
[nzGhost]="props['ghost']!!"
|
110
113
|
[nzLoading]="props['loading']!!"
|
111
114
|
[nzShape]="props['shape'] ?? null"
|
@@ -134,6 +137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
134
137
|
[formlyAttributes]="field"
|
135
138
|
[attr.type]="field.type"
|
136
139
|
[attr.form]="props['formName']"
|
140
|
+
[attr.title]="props['title']"
|
137
141
|
[disabled]="props['disabled']!!"
|
138
142
|
[nzGhost]="props['ghost']!!"
|
139
143
|
[nzLoading]="props['loading']!!"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport {\n NzFormlyFieldConfig,\n FormlyBoxTemplates,\n hasTplNameValue,\n resolveTplName\n} from 'ngx-formly-zorro-antd/common';\n\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface ButtonProps extends FormlyFieldProps {\n type?: 'a' | 'button';\n\n /**\n * form 名称\n */\n formName?: string;\n\n /**\n * 按钮内容文本\n */\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\n textName?: string;\n\n /**\n * 幽灵属性,使按钮背景透明\n * @default false\n */\n ghost?: boolean;\n\n /**\n * 设置按钮载入状态\n * @default false\n */\n loading?: boolean;\n\n /**\n * 设置按钮形状\n */\n shape?: NzButtonShape;\n\n /**\n * 设置按钮大小\n * @default default\n */\n size?: NzButtonSize;\n\n /**\n * 设置按钮类型\n */\n nzType?: NzButtonType;\n\n /**\n * 将按钮宽度调整为其父宽度的选项\n * @default false\n */\n block?: boolean;\n\n /**\n * 设置危险按钮\n * @default false\n */\n danger?: boolean;\n\n /**\n * 文字前面的图标\n */\n beforeIcon?: string;\n\n /**\n * 文字后面面的图标\n */\n afterIcon?: string;\n}\n\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\n}\n\n@Component({\n selector: 'formly-field-button',\n template: `\n @if (props.type === 'a') {\n <a\n nz-button\n [formlyAttributes]=\"field\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? 'link'\"\n [ngClass]=\"props['className']\"\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </a>\n } @else {\n <button\n [formlyAttributes]=\"field\"\n [attr.type]=\"field.type\"\n [attr.form]=\"props['formName']\"\n [disabled]=\"props['disabled']!!\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? null\"\n [ngClass]=\"props['className']\"\n nz-button\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\n override defaultOptions = {\n props: {\n ghost: false,\n loading: false,\n block: false,\n size: 'default' as const,\n danger: false\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get hasText() {\n return hasTplNameValue(this.props, 'text');\n }\n\n get text() {\n return resolveTplName(this.props, this.fieldTemplates, 'text');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButton } from './button.type';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButton],\n imports: [\n CommonModule,\n NzOutletModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button',\n component: FormlyFieldButton\n },\n {\n name: 'submit',\n extends: 'button'\n },\n {\n name: 'reset',\n extends: 'button'\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport {\n NzFormlyFieldConfig,\n FormlyBoxTemplates,\n hasTplNameValue,\n resolveTplName\n} from 'ngx-formly-zorro-antd/common';\n\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface ButtonProps extends FormlyFieldProps {\n type?: 'a' | 'button';\n\n /**\n * 标题\n */\n title?: string;\n\n /**\n * form 名称\n */\n formName?: string;\n\n /**\n * 按钮内容文本\n */\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\n textName?: string;\n\n /**\n * 幽灵属性,使按钮背景透明\n * @default false\n */\n ghost?: boolean;\n\n /**\n * 设置按钮载入状态\n * @default false\n */\n loading?: boolean;\n\n /**\n * 设置按钮形状\n */\n shape?: NzButtonShape;\n\n /**\n * 设置按钮大小\n * @default default\n */\n size?: NzButtonSize;\n\n /**\n * 设置按钮类型\n */\n nzType?: NzButtonType;\n\n /**\n * 将按钮宽度调整为其父宽度的选项\n * @default false\n */\n block?: boolean;\n\n /**\n * 设置危险按钮\n * @default false\n */\n danger?: boolean;\n\n /**\n * 文字前面的图标\n */\n beforeIcon?: string;\n\n /**\n * 文字后面面的图标\n */\n afterIcon?: string;\n}\n\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\n}\n\n@Component({\n selector: 'formly-field-button',\n template: `\n @if (props.type === 'a') {\n <a\n nz-button\n [formlyAttributes]=\"field\"\n [attr.title]=\"props['title']\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? 'link'\"\n [ngClass]=\"props['className']\"\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </a>\n } @else {\n <button\n [formlyAttributes]=\"field\"\n [attr.type]=\"field.type\"\n [attr.form]=\"props['formName']\"\n [attr.title]=\"props['title']\"\n [disabled]=\"props['disabled']!!\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? null\"\n [ngClass]=\"props['className']\"\n nz-button\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\n override defaultOptions = {\n props: {\n ghost: false,\n loading: false,\n block: false,\n size: 'default' as const,\n danger: false\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get hasText() {\n return hasTplNameValue(this.props, 'text');\n }\n\n get text() {\n return resolveTplName(this.props, this.fieldTemplates, 'text');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButton } from './button.type';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButton],\n imports: [\n CommonModule,\n NzOutletModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button',\n component: FormlyFieldButton\n },\n {\n name: 'submit',\n extends: 'button'\n },\n {\n name: 'reset',\n extends: 'button'\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAyJM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAW5E,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAVxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,KAAK;AACd,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC5C;AAED,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;KAChE;8GArBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAhElB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,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,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBA1BhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,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;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
|
@@ -61,7 +61,7 @@ class FormlyFieldCascader extends FieldType {
|
|
61
61
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
62
62
|
[formControl]="formControl"
|
63
63
|
[formlyAttributes]="field"
|
64
|
-
[ngClass]="props['className']
|
64
|
+
[ngClass]="props['className']"
|
65
65
|
[nzAllowClear]="props['allowClear']!!"
|
66
66
|
[nzAutoFocus]="props['autoFocus']!!"
|
67
67
|
[nzBackdrop]="props['backdrop']!!"
|
@@ -99,7 +99,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
99
99
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
100
100
|
[formControl]="formControl"
|
101
101
|
[formlyAttributes]="field"
|
102
|
-
[ngClass]="props['className']
|
102
|
+
[ngClass]="props['className']"
|
103
103
|
[nzAllowClear]="props['allowClear']!!"
|
104
104
|
[nzAutoFocus]="props['autoFocus']!!"
|
105
105
|
[nzBackdrop]="props['backdrop']!!"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n Optional,\n Type,\n ChangeDetectionStrategy,\n OnInit\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type {\n NzCascaderOption,\n NzShowSearchOptions,\n NzCascaderExpandTrigger,\n NzCascaderSize\n} from 'ng-zorro-antd/cascader';\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\n\ninterface CascaderProps extends FormlyFieldProps {\n /**\n * 是否支持清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否自动聚焦,当存在输入框时\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\n */\n changeOn?: (option: NzSafeAny, index: number) => boolean;\n\n /**\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\n * @default false\n */\n changeOnSelect?: boolean;\n\n /**\n * 自定义浮层列类名\n */\n columnClassName?: string;\n\n /**\n * 自定义次级菜单展开图标\n */\n expandIcon?: string | TemplateRef<void>;\n expandIconName?: string;\n\n /**\n * 次级菜单的展开方式\n * @default 'click'\n */\n expandTrigger?: NzCascaderExpandTrigger;\n\n /**\n * 选项的显示值的属性名\n * @default 'label'\n */\n labelProperty: string;\n\n /**\n * 选择后展示的渲染模板\n */\n labelRender?: TemplateRef<NzSafeAny> | null;\n labelRenderName?: string;\n\n /**\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\n */\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\n\n /**\n * 自定义浮层类名\n */\n menuClassName?: string;\n\n /**\n * 自定义浮层样式\n */\n menuStyle?: NgStyleInterface | null;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n notFoundContentName?: string;\n\n /**\n * 选项的渲染模板\n */\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\n optionRenderName?: string;\n\n /**\n * 是否显示箭头\n * @default true\n */\n showArrow?: boolean;\n\n /**\n * 显示输入框\n * @default true\n */\n showInput?: boolean;\n\n /**\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\n * @default false\n */\n showSearch?: boolean | NzShowSearchOptions;\n\n /**\n * 输入框大小\n * @default default\n */\n size?: NzCascaderSize;\n\n /**\n * 设置校验状态\n */\n status?: NzStatus;\n\n /**\n * 自定义的选择框后缀图标\n */\n suffixIcon?: string | TemplateRef<void>;\n suffixIconName?: string;\n\n /**\n * 选项的实际值的属性名\n * @default 'value'\n */\n valueProperty?: string;\n\n /**\n * 可选项数据源\n */\n cascaderOptions?: NzCascaderOption[] | null;\n\n /**\n * 清除值时触发\n */\n onClear?: FormlyAttributeEvent;\n /**\n * 菜单浮层的显示/隐藏\n */\n visibleChange?: FormlyAttributeEvent<boolean>;\n\n /**\n * 值发生变化时触发\n */\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\n}\n\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\n type: 'cascader' | Type<FormlyFieldCascader>;\n}\n\n@Component({\n selector: 'formly-field-cascader',\n template: `<nz-cascader\n #cascader\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzChangeOn]=\"props['changeOn']\"\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\n [nzColumnClassName]=\"props['columnClassName']\"\n [nzExpandIcon]=\"nzExpandIcon!\"\n [nzExpandTrigger]=\"props['expandTrigger']!\"\n [nzLabelProperty]=\"props['labelProperty']\"\n [nzLabelRender]=\"nzLabelRender ?? null\"\n [nzLoadData]=\"props['loadData']\"\n [nzMenuClassName]=\"props['menuClassName']\"\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzOptionRender]=\"nzOptionRender ?? null\"\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzShowInput]=\"props['showInput']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzSuffixIcon]=\"nzSuffixIcon!\"\n [nzValueProperty]=\"props['valueProperty']!\"\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\n ></nz-cascader>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCascader\n extends FieldType<FieldTypeConfig<CascaderProps>>\n implements OnInit\n{\n override defaultOptions = {\n props: {\n placeholder: '请选择',\n allowClear: true,\n backdrop: false,\n changeOnSelect: false,\n expandTrigger: 'click' as const,\n labelProperty: 'label',\n showArrow: true,\n showInput: true,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n valueProperty: 'value',\n cascaderOptions: []\n }\n };\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzNotFoundContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\n }\n\n get nzExpandIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\n }\n\n get nzLabelRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\n }\n\n get nzOptionRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\n }\n\n get nzSuffixIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\n }\n\n ngOnInit(): void {\n const options = this.props['cascaderOptions'];\n if (!options || options.length === 0) {\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\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';\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\nimport { FormlyFieldCascader } from './cascader.type';\n\n@NgModule({\n declarations: [FormlyFieldCascader],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzCascaderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'cascader',\n component: FormlyFieldCascader,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCascaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAoBjD,IAA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ources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n Optional,\n Type,\n ChangeDetectionStrategy,\n OnInit\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type {\n NzCascaderOption,\n NzShowSearchOptions,\n NzCascaderExpandTrigger,\n NzCascaderSize\n} from 'ng-zorro-antd/cascader';\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\n\ninterface CascaderProps extends FormlyFieldProps {\n /**\n * 是否支持清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否自动聚焦,当存在输入框时\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\n */\n changeOn?: (option: NzSafeAny, index: number) => boolean;\n\n /**\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\n * @default false\n */\n changeOnSelect?: boolean;\n\n /**\n * 自定义浮层列类名\n */\n columnClassName?: string;\n\n /**\n * 自定义次级菜单展开图标\n */\n expandIcon?: string | TemplateRef<void>;\n expandIconName?: string;\n\n /**\n * 次级菜单的展开方式\n * @default 'click'\n */\n expandTrigger?: NzCascaderExpandTrigger;\n\n /**\n * 选项的显示值的属性名\n * @default 'label'\n */\n labelProperty: string;\n\n /**\n * 选择后展示的渲染模板\n */\n labelRender?: TemplateRef<NzSafeAny> | null;\n labelRenderName?: string;\n\n /**\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\n */\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\n\n /**\n * 自定义浮层类名\n */\n menuClassName?: string;\n\n /**\n * 自定义浮层样式\n */\n menuStyle?: NgStyleInterface | null;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n notFoundContentName?: string;\n\n /**\n * 选项的渲染模板\n */\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\n optionRenderName?: string;\n\n /**\n * 是否显示箭头\n * @default true\n */\n showArrow?: boolean;\n\n /**\n * 显示输入框\n * @default true\n */\n showInput?: boolean;\n\n /**\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\n * @default false\n */\n showSearch?: boolean | NzShowSearchOptions;\n\n /**\n * 输入框大小\n * @default default\n */\n size?: NzCascaderSize;\n\n /**\n * 设置校验状态\n */\n status?: NzStatus;\n\n /**\n * 自定义的选择框后缀图标\n */\n suffixIcon?: string | TemplateRef<void>;\n suffixIconName?: string;\n\n /**\n * 选项的实际值的属性名\n * @default 'value'\n */\n valueProperty?: string;\n\n /**\n * 可选项数据源\n */\n cascaderOptions?: NzCascaderOption[] | null;\n\n /**\n * 清除值时触发\n */\n onClear?: FormlyAttributeEvent;\n /**\n * 菜单浮层的显示/隐藏\n */\n visibleChange?: FormlyAttributeEvent<boolean>;\n\n /**\n * 值发生变化时触发\n */\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\n}\n\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\n type: 'cascader' | Type<FormlyFieldCascader>;\n}\n\n@Component({\n selector: 'formly-field-cascader',\n template: `<nz-cascader\n #cascader\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzChangeOn]=\"props['changeOn']\"\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\n [nzColumnClassName]=\"props['columnClassName']\"\n [nzExpandIcon]=\"nzExpandIcon!\"\n [nzExpandTrigger]=\"props['expandTrigger']!\"\n [nzLabelProperty]=\"props['labelProperty']\"\n [nzLabelRender]=\"nzLabelRender ?? null\"\n [nzLoadData]=\"props['loadData']\"\n [nzMenuClassName]=\"props['menuClassName']\"\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzOptionRender]=\"nzOptionRender ?? null\"\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzShowInput]=\"props['showInput']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzSuffixIcon]=\"nzSuffixIcon!\"\n [nzValueProperty]=\"props['valueProperty']!\"\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\n ></nz-cascader>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCascader\n extends FieldType<FieldTypeConfig<CascaderProps>>\n implements OnInit\n{\n override defaultOptions = {\n props: {\n placeholder: '请选择',\n allowClear: true,\n backdrop: false,\n changeOnSelect: false,\n expandTrigger: 'click' as const,\n labelProperty: 'label',\n showArrow: true,\n showInput: true,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n valueProperty: 'value',\n cascaderOptions: []\n }\n };\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzNotFoundContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\n }\n\n get nzExpandIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\n }\n\n get nzLabelRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\n }\n\n get nzOptionRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\n }\n\n get nzSuffixIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\n }\n\n ngOnInit(): void {\n const options = this.props['cascaderOptions'];\n if (!options || options.length === 0) {\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\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';\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\nimport { FormlyFieldCascader } from './cascader.type';\n\n@NgModule({\n declarations: [FormlyFieldCascader],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzCascaderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'cascader',\n component: FormlyFieldCascader,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCascaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAoBjD,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAjBxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EA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,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAhB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAnBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,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;;;AC1BD;;AAEG;;;;"}
|
@@ -54,6 +54,7 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
54
54
|
[nzXl]="props.labelXl || formState.labelXl"
|
55
55
|
[nzXXl]="props.labelXXl || formState.labelXXl"
|
56
56
|
[ngClass]="props.labelClass || formState.labelClass"
|
57
|
+
[ngStyle]="props.labelStyle || formState.labelStyle"
|
57
58
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
58
59
|
[nzFor]="id"
|
59
60
|
[nzNoColon]="props['noColon'] ?? formState.noColon!!"
|
@@ -75,6 +76,7 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
75
76
|
[nzExtra]="props.description || nzExtra"
|
76
77
|
[nzErrorTip]="errorTip"
|
77
78
|
[ngClass]="props.controlClass || formState.controlClass"
|
79
|
+
[ngStyle]="props.controlStyle || formState.controlStyle"
|
78
80
|
[nzFlex]="props.controlFlex || formState.controlFlex"
|
79
81
|
[nzOffset]="props.controlOffset || formState.controlOffset"
|
80
82
|
[nzOrder]="props.controlOrder || formState.controlOrder"
|
@@ -97,7 +99,7 @@ class FormlyWrapperFormField extends FieldWrapper {
|
|
97
99
|
</ng-template>
|
98
100
|
</nz-form-control>
|
99
101
|
</nz-form-item>
|
100
|
-
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: i5.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i6.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
|
102
|
+
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: i5.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i6.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
|
101
103
|
}
|
102
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
103
105
|
type: Component,
|
@@ -118,6 +120,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
118
120
|
[nzXl]="props.labelXl || formState.labelXl"
|
119
121
|
[nzXXl]="props.labelXXl || formState.labelXXl"
|
120
122
|
[ngClass]="props.labelClass || formState.labelClass"
|
123
|
+
[ngStyle]="props.labelStyle || formState.labelStyle"
|
121
124
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
122
125
|
[nzFor]="id"
|
123
126
|
[nzNoColon]="props['noColon'] ?? formState.noColon!!"
|
@@ -139,6 +142,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
139
142
|
[nzExtra]="props.description || nzExtra"
|
140
143
|
[nzErrorTip]="errorTip"
|
141
144
|
[ngClass]="props.controlClass || formState.controlClass"
|
145
|
+
[ngStyle]="props.controlStyle || formState.controlStyle"
|
142
146
|
[nzFlex]="props.controlFlex || formState.controlFlex"
|
143
147
|
[nzOffset]="props.controlOffset || formState.controlOffset"
|
144
148
|
[nzOrder]="props.controlOrder || formState.controlOrder"
|