ngx-formly-zorro-antd 14.1.0 → 14.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/tabs/tabs.props.mjs +1 -1
- package/esm2020/tabs/tabs.wrapper.mjs +13 -9
- package/esm2020/textarea/textarea.module.mjs +6 -2
- package/esm2020/textarea/textarea.type.mjs +92 -39
- package/esm2020/upload/upload.component.mjs +121 -42
- package/esm2020/upload/upload.module.mjs +4 -4
- package/esm2020/upload/upload.props.mjs +2 -0
- package/esm2020/upload/upload.type.mjs +26 -16
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +12 -8
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +96 -39
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +146 -57
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +12 -8
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +96 -39
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +146 -57
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/package.json +1 -1
- package/tabs/tabs.props.d.ts +4 -4
- package/textarea/textarea.module.d.ts +3 -2
- package/textarea/textarea.type.d.ts +2 -1
- package/upload/upload.component.d.ts +16 -10
- package/upload/upload.module.d.ts +1 -1
- package/upload/upload.props.d.ts +173 -0
- package/upload/upload.type.d.ts +7 -151
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5wcm9wcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL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bnmoTkuovku7ZcbiAgICovXG4gIG9uQ2xvc2U/OiAoZmllbGQ6IEZvcm1seUZpZWxkQ29uZmlnLCBpbmRleDogbnVtYmVyKSA9PiB2b2lkO1xuXG4gIHRhYj86IHtcbiAgICAvKipcbiAgICAgKiDpgInpobnljaHlpLTmmL7npLrmloflrZdcbiAgICAgKi9cbiAgICB0aXRsZT86IHN0cmluZyB8IFRlbXBsYXRlUmVmPFRhYlRlbXBsYXRlQ29udGV4dD47XG5cbiAgICAvKipcbiAgICAgKiDooqvpmpDol4/ml7bmmK/lkKbmuLLmn5MgRE9NIOe7k+aehFxuICAgICAqIEBkZWZhdWx0IGZhbHNlXG4gICAgICovXG4gICAgZm9yY2VSZW5kZXI/OiBib29sZWFuO1xuXG4gICAgLyoqXG4gICAgICog5piv5ZCm56aB55SoXG4gICAgICogQGRlZmF1bHQgZmFsc2VcbiAgICAgKi9cbiAgICBkaXNhYmxlZD86IGJvb2xlYW47XG5cbiAgICAvKipcbiAgICAgKiDljZXlh7sgdGl0bGUg55qE5Zue6LCD5Ye95pWwXG4gICAgICovXG4gICAgY2xpY2s/
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5wcm9wcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdGFicy9zcmMvdGFicy5wcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB0eXBlIHsgRm9ybWx5RmllbGRDb25maWcgfSBmcm9tICdAbmd4LWZvcm1seS9jb3JlJztcblxuaW1wb3J0IHsgTnpUYWJDb21wb25lbnQgfSBmcm9tICduZy16b3Jyby1hbnRkL3RhYnMnO1xuaW1wb3J0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BkZWZhdWx0IGZhbHNlXG4gICAgICovXG4gICAgZm9yY2VSZW5kZXI/OiBib29sZWFuO1xuXG4gICAgLyoqXG4gICAgICog5piv5ZCm56aB55SoXG4gICAgICogQGRlZmF1bHQgZmFsc2VcbiAgICAgKi9cbiAgICBkaXNhYmxlZD86IGJvb2xlYW47XG5cbiAgICAvKipcbiAgICAgKiDljZXlh7sgdGl0bGUg55qE5Zue6LCD5Ye95pWwXG4gICAgICovXG4gICAgY2xpY2s/OiAoZmllbGQ6IEZvcm1seUZpZWxkQ29uZmlnKSA9PiB2b2lkO1xuXG4gICAgLyoqXG4gICAgICog5Y+z6ZSuIHRpdGxlIOeahOWbnuiwg+WHveaVsFxuICAgICAqL1xuICAgIGNvbnRleHRtZW51PzogKGZpZWxkOiBGb3JtbHlGaWVsZENvbmZpZywgZXZlbnQ6IE1vdXNlRXZlbnQpID0+IHZvaWQ7XG5cbiAgICAvKipcbiAgICAgKiB0YWIg6KKr6YCJ5Lit55qE5Zue6LCD5Ye95pWwXG4gICAgICovXG4gICAgc2VsZWN0PzogKGZpZWxkOiBGb3JtbHlGaWVsZENvbmZpZykgPT4gdm9pZDtcblxuICAgIC8qKlxuICAgICAqIHRhYiDooqvlj5bmtojpgInkuK3nmoTlm57osIPlh73mlbBcbiAgICAgKi9cbiAgICBkZXNlbGVjdD86IChmaWVsZDogRm9ybWx5RmllbGRDb25maWcpID0+IHZvaWQ7XG4gIH07XG59XG4iXX0=
|
@@ -56,10 +56,12 @@ FormlyWrapperTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
56
56
|
[nzTitle]="tab.props?.label || ''"
|
57
57
|
[nzForceRender]="tab.props!['tab']?.forceRender"
|
58
58
|
[nzDisabled]="tab.props!['tab']?.disabled"
|
59
|
-
(nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click()"
|
60
|
-
(nzContextmenu)="
|
61
|
-
|
62
|
-
|
59
|
+
(nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click(field)"
|
60
|
+
(nzContextmenu)="
|
61
|
+
tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)
|
62
|
+
"
|
63
|
+
(nzSelect)="tab.props!['tab']?.select && tab.props!['tab']?.select(field)"
|
64
|
+
(nzDeselect)="tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)"
|
63
65
|
>
|
64
66
|
<formly-field [field]="tab"></formly-field>
|
65
67
|
</nz-tab>
|
@@ -97,10 +99,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
97
99
|
[nzTitle]="tab.props?.label || ''"
|
98
100
|
[nzForceRender]="tab.props!['tab']?.forceRender"
|
99
101
|
[nzDisabled]="tab.props!['tab']?.disabled"
|
100
|
-
(nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click()"
|
101
|
-
(nzContextmenu)="
|
102
|
-
|
103
|
-
|
102
|
+
(nzClick)="tab.props!['tab']?.click && tab.props!['tab']?.click(field)"
|
103
|
+
(nzContextmenu)="
|
104
|
+
tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)
|
105
|
+
"
|
106
|
+
(nzSelect)="tab.props!['tab']?.select && tab.props!['tab']?.select(field)"
|
107
|
+
(nzDeselect)="tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)"
|
104
108
|
>
|
105
109
|
<formly-field [field]="tab"></formly-field>
|
106
110
|
</nz-tab>
|
@@ -108,4 +112,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
108
112
|
changeDetection: ChangeDetectionStrategy.OnPush
|
109
113
|
}]
|
110
114
|
}] });
|
111
|
-
//# sourceMappingURL=data:application/json;base64,
|
115
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy53cmFwcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4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xuICAgICAgaGlkZUFsbDogZmFsc2UsXG4gICAgICBsaW5rUm91dGVyOiBmYWxzZSxcbiAgICAgIGxpbmtFeGFjdDogdHJ1ZSxcbiAgICAgIGNlbnRlcmVkOiBmYWxzZSxcbiAgICAgIGhpZGVBZGQ6IGZhbHNlLFxuICAgICAgdGFiOiB7XG4gICAgICAgIGZvcmNlUmVuZGVyOiBmYWxzZSxcbiAgICAgICAgZGlzYWJsZWQ6IGZhbHNlXG4gICAgICB9XG4gICAgfVxuICB9O1xufVxuIl19
|
@@ -5,6 +5,7 @@ import { FormlyModule } from '@ngx-formly/core';
|
|
5
5
|
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
6
6
|
import { FormlyFieldTextarea } from './textarea.type';
|
7
7
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
8
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
8
9
|
import * as i0 from "@angular/core";
|
9
10
|
import * as i1 from "@ngx-formly/core";
|
10
11
|
export class FormlyNzTextareaModule {
|
@@ -13,11 +14,13 @@ FormlyNzTextareaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", v
|
|
13
14
|
FormlyNzTextareaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTextareaModule, declarations: [FormlyFieldTextarea], imports: [CommonModule,
|
14
15
|
ReactiveFormsModule,
|
15
16
|
FormlyNzFormFieldModule,
|
16
|
-
NzInputModule,
|
17
|
+
NzInputModule,
|
18
|
+
NzIconModule, i1.FormlyModule] });
|
17
19
|
FormlyNzTextareaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTextareaModule, imports: [CommonModule,
|
18
20
|
ReactiveFormsModule,
|
19
21
|
FormlyNzFormFieldModule,
|
20
22
|
NzInputModule,
|
23
|
+
NzIconModule,
|
21
24
|
FormlyModule.forChild({
|
22
25
|
types: [
|
23
26
|
{
|
@@ -36,6 +39,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
36
39
|
ReactiveFormsModule,
|
37
40
|
FormlyNzFormFieldModule,
|
38
41
|
NzInputModule,
|
42
|
+
NzIconModule,
|
39
43
|
FormlyModule.forChild({
|
40
44
|
types: [
|
41
45
|
{
|
@@ -48,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
48
52
|
]
|
49
53
|
}]
|
50
54
|
}] });
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90ZXh0YXJlYS9zcmMvdGV4dGFyZWEubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUUzRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7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Jtc01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcbmltcG9ydCB7IEZvcm1seU1vZHVsZSB9IGZyb20gJ0BuZ3gtZm9ybWx5L2NvcmUnO1xuaW1wb3J0IHsgRm9ybWx5TnpGb3JtRmllbGRNb2R1bGUgfSBmcm9tICduZ3gtZm9ybWx5LXpvcnJvLWFudGQvZm9ybS1maWVsZCc7XG5cbmltcG9ydCB7IEZvcm1seUZpZWxkVGV4dGFyZWEgfSBmcm9tICcuL3RleHRhcmVhLnR5cGUnO1xuaW1wb3J0IHsgTnpJbnB1dE1vZHVsZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvaW5wdXQnO1xuaW1wb3J0IHsgTnpJY29uTW9kdWxlIH0gZnJvbSAnbmctem9ycm8tYW50ZC9pY29uJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbRm9ybWx5RmllbGRUZXh0YXJlYV0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgUmVhY3RpdmVGb3Jtc01vZHVsZSxcbiAgICBGb3JtbHlOekZvcm1GaWVsZE1vZHVsZSxcbiAgICBOeklucHV0TW9kdWxlLFxuICAgIE56SWNvbk1vZHVsZSxcblxuICAgIEZvcm1seU1vZHVsZS5mb3JDaGlsZCh7XG4gICAgICB0eXBlczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ3RleHRhcmVhJyxcbiAgICAgICAgICBjb21wb25lbnQ6IEZvcm1seUZpZWxkVGV4dGFyZWEsXG4gICAgICAgICAgd3JhcHBlcnM6IFsnZm9ybS1maWVsZCddXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9KVxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seU56VGV4dGFyZWFNb2R1bGUge31cbiJdfQ==
|
@@ -4,7 +4,8 @@ import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
5
5
|
import * as i2 from "@angular/forms";
|
6
6
|
import * as i3 from "ng-zorro-antd/input";
|
7
|
-
import * as i4 from "
|
7
|
+
import * as i4 from "ng-zorro-antd/icon";
|
8
|
+
import * as i5 from "@ngx-formly/core";
|
8
9
|
export class FormlyFieldTextarea extends FieldType {
|
9
10
|
constructor() {
|
10
11
|
super(...arguments);
|
@@ -19,23 +20,37 @@ export class FormlyFieldTextarea extends FieldType {
|
|
19
20
|
}
|
20
21
|
FormlyFieldTextarea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
21
22
|
FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
|
22
|
-
<
|
23
|
-
*
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
23
|
+
<ng-container [ngSwitch]="props.type">
|
24
|
+
<ng-container *ngSwitchCase="'count'">
|
25
|
+
<nz-textarea-count [nzMaxCharacterCount]="props['maxCharacterCount'] || 0">
|
26
|
+
<textarea
|
27
|
+
[formControl]="formControl"
|
28
|
+
[formlyAttributes]="field"
|
29
|
+
[ngClass]="props['className']"
|
30
|
+
[rows]="props.rows"
|
31
|
+
[cols]="props.cols"
|
32
|
+
nz-input
|
33
|
+
[nzBorderless]="props['borderless']!!"
|
34
|
+
[nzAutosize]="props['autosize']!!"
|
35
|
+
></textarea>
|
36
|
+
</nz-textarea-count>
|
37
|
+
</ng-container>
|
38
|
+
|
39
|
+
<ng-container *ngSwitchCase="'clear'">
|
40
|
+
<nz-input-group
|
41
|
+
class="ant-input-affix-wrapper-textarea-with-clear-btn"
|
42
|
+
[nzSuffix]="textAreaClearTpl"
|
43
|
+
>
|
44
|
+
<ng-container *ngTemplateOutlet="textareaTpl"> </ng-container>
|
45
|
+
</nz-input-group>
|
46
|
+
</ng-container>
|
37
47
|
|
38
|
-
|
48
|
+
<ng-container *ngSwitchDefault>
|
49
|
+
<ng-container *ngTemplateOutlet="textareaTpl"> </ng-container>
|
50
|
+
</ng-container>
|
51
|
+
</ng-container>
|
52
|
+
|
53
|
+
<ng-template #textareaTpl>
|
39
54
|
<textarea
|
40
55
|
[formControl]="formControl"
|
41
56
|
[formlyAttributes]="field"
|
@@ -43,33 +58,59 @@ FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
43
58
|
[rows]="props.rows"
|
44
59
|
[cols]="props.cols"
|
45
60
|
nz-input
|
46
|
-
[nzBorderless]="props['borderless']"
|
47
|
-
[nzAutosize]="props['autosize']
|
61
|
+
[nzBorderless]="props['borderless']!!"
|
62
|
+
[nzAutosize]="props['autosize']!!"
|
48
63
|
></textarea>
|
49
64
|
</ng-template>
|
50
|
-
|
65
|
+
|
66
|
+
<!-- 清除数据 -->
|
67
|
+
<ng-template #textAreaClearTpl>
|
68
|
+
<span
|
69
|
+
nz-icon
|
70
|
+
class="ant-input-clear-icon"
|
71
|
+
nzTheme="fill"
|
72
|
+
nzType="close-circle"
|
73
|
+
*ngIf="formControl.value"
|
74
|
+
(click)="formControl.reset()"
|
75
|
+
></span>
|
76
|
+
</ng-template>
|
77
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
51
78
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
|
52
79
|
type: Component,
|
53
80
|
args: [{
|
54
81
|
selector: 'formly-field-textarea',
|
55
82
|
template: `
|
56
|
-
<
|
57
|
-
*
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
83
|
+
<ng-container [ngSwitch]="props.type">
|
84
|
+
<ng-container *ngSwitchCase="'count'">
|
85
|
+
<nz-textarea-count [nzMaxCharacterCount]="props['maxCharacterCount'] || 0">
|
86
|
+
<textarea
|
87
|
+
[formControl]="formControl"
|
88
|
+
[formlyAttributes]="field"
|
89
|
+
[ngClass]="props['className']"
|
90
|
+
[rows]="props.rows"
|
91
|
+
[cols]="props.cols"
|
92
|
+
nz-input
|
93
|
+
[nzBorderless]="props['borderless']!!"
|
94
|
+
[nzAutosize]="props['autosize']!!"
|
95
|
+
></textarea>
|
96
|
+
</nz-textarea-count>
|
97
|
+
</ng-container>
|
98
|
+
|
99
|
+
<ng-container *ngSwitchCase="'clear'">
|
100
|
+
<nz-input-group
|
101
|
+
class="ant-input-affix-wrapper-textarea-with-clear-btn"
|
102
|
+
[nzSuffix]="textAreaClearTpl"
|
103
|
+
>
|
104
|
+
<ng-container *ngTemplateOutlet="textareaTpl"> </ng-container>
|
105
|
+
</nz-input-group>
|
106
|
+
</ng-container>
|
71
107
|
|
72
|
-
|
108
|
+
<ng-container *ngSwitchDefault>
|
109
|
+
<ng-container *ngTemplateOutlet="textareaTpl"> </ng-container>
|
110
|
+
</ng-container>
|
111
|
+
</ng-container>
|
112
|
+
|
113
|
+
<ng-template #textareaTpl>
|
73
114
|
<textarea
|
74
115
|
[formControl]="formControl"
|
75
116
|
[formlyAttributes]="field"
|
@@ -77,12 +118,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
77
118
|
[rows]="props.rows"
|
78
119
|
[cols]="props.cols"
|
79
120
|
nz-input
|
80
|
-
[nzBorderless]="props['borderless']"
|
81
|
-
[nzAutosize]="props['autosize']
|
121
|
+
[nzBorderless]="props['borderless']!!"
|
122
|
+
[nzAutosize]="props['autosize']!!"
|
82
123
|
></textarea>
|
83
124
|
</ng-template>
|
125
|
+
|
126
|
+
<!-- 清除数据 -->
|
127
|
+
<ng-template #textAreaClearTpl>
|
128
|
+
<span
|
129
|
+
nz-icon
|
130
|
+
class="ant-input-clear-icon"
|
131
|
+
nzTheme="fill"
|
132
|
+
nzType="close-circle"
|
133
|
+
*ngIf="formControl.value"
|
134
|
+
(click)="formControl.reset()"
|
135
|
+
></span>
|
136
|
+
</ng-template>
|
84
137
|
`,
|
85
138
|
changeDetection: ChangeDetectionStrategy.OnPush
|
86
139
|
}]
|
87
140
|
}] });
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
141
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdGV4dGFyZWEvc3JjL3RleHRhcmVhLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7O0FBd0ZqRixNQUFNLE9BQU8sbUJBQW9CLFNBQVEsU0FBeUM7SUE1RGxGOztRQTZEVyxtQkFBYyxHQUFHO1lBQ3hCLEtBQUssRUFBRTtnQkFDTCxJQUFJLEVBQUUsQ0FBQztnQkFDUCxRQUFRLEVBQUUsS0FBSztnQkFDZixVQUFVLEVBQU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able @typescript-eslint/no-empty-function */
|
2
|
-
import { ChangeDetectionStrategy, Component,
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, 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";
|
@@ -9,12 +9,14 @@ import * as i3 from "ng-zorro-antd/button";
|
|
9
9
|
import * as i4 from "ng-zorro-antd/core/transition-patch";
|
10
10
|
import * as i5 from "ng-zorro-antd/core/wave";
|
11
11
|
import * as i6 from "ng-zorro-antd/icon";
|
12
|
-
export class
|
12
|
+
export class UploadNzComponent extends NzUploadComponent {
|
13
13
|
constructor() {
|
14
14
|
super(...arguments);
|
15
|
-
/**
|
16
|
-
|
17
|
-
|
15
|
+
/** 上传按钮的图标 */
|
16
|
+
this.nzeUploadButtonIcon = {
|
17
|
+
type: 'cloud-upload'
|
18
|
+
};
|
19
|
+
/** 样式名 */
|
18
20
|
this.className = '';
|
19
21
|
this.onChange = () => { };
|
20
22
|
this.onTouched = () => { };
|
@@ -44,21 +46,23 @@ export class UploadComponent extends NzUploadComponent {
|
|
44
46
|
}
|
45
47
|
}
|
46
48
|
}
|
47
|
-
|
48
|
-
|
49
|
+
UploadNzComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
50
|
+
UploadNzComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: "nzeShowUploadButton", nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
|
49
51
|
{
|
50
52
|
provide: NG_VALUE_ACCESSOR,
|
51
|
-
useExisting:
|
53
|
+
useExisting: forwardRef(() => UploadNzComponent),
|
52
54
|
multi: true
|
53
55
|
}
|
54
|
-
],
|
56
|
+
], usesInheritance: true, ngImport: i0, template: `
|
55
57
|
<nz-upload
|
58
|
+
[nzType]="nzType"
|
56
59
|
[nzAccept]="nzAccept"
|
57
60
|
[nzAction]="nzAction"
|
58
61
|
[nzDirectory]="nzDirectory"
|
59
62
|
[nzBeforeUpload]="nzBeforeUpload"
|
60
63
|
[nzCustomRequest]="nzCustomRequest"
|
61
64
|
[nzData]="nzData"
|
65
|
+
[nzDisabled]="nzDisabled"
|
62
66
|
[(nzFileList)]="nzFileList"
|
63
67
|
[nzLimit]="nzLimit"
|
64
68
|
[nzSize]="nzSize"
|
@@ -82,35 +86,71 @@ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
82
86
|
[nzFileListRender]="nzFileListRender"
|
83
87
|
[ngClass]="className"
|
84
88
|
(nzChange)="change($event)"
|
85
|
-
[nzType]="nzType"
|
86
89
|
(nzFileListChange)="fileListChange($event)"
|
87
90
|
>
|
88
|
-
<ng-container
|
89
|
-
<
|
90
|
-
<
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
<ng-container [ngSwitch]="nzType">
|
92
|
+
<ng-container *ngSwitchCase="'drag'">
|
93
|
+
<p class="ant-upload-drag-icon">
|
94
|
+
<span
|
95
|
+
*ngIf="nzeUploadButtonIcon"
|
96
|
+
nz-icon
|
97
|
+
[nzType]="nzeUploadButtonIcon.type"
|
98
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
99
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
100
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
101
|
+
></span>
|
102
|
+
</p>
|
103
|
+
<p class="ant-upload-text">{{ nzeText }}</p>
|
104
|
+
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
105
|
+
</ng-container>
|
106
|
+
<ng-container *ngSwitchDefault>
|
107
|
+
<button
|
108
|
+
type="button"
|
109
|
+
nz-button
|
110
|
+
[disabled]="nzDisabled!!"
|
111
|
+
*ngIf="nzeShowUploadButton !== false"
|
112
|
+
>
|
113
|
+
<span
|
114
|
+
*ngIf="nzeUploadButtonIcon"
|
115
|
+
nz-icon
|
116
|
+
[nzType]="nzeUploadButtonIcon.type"
|
117
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
118
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
119
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
120
|
+
></span>
|
121
|
+
{{ nzeText }}
|
122
|
+
</button>
|
94
123
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
124
|
+
<div *ngIf="nzeShowUploadButton === false">
|
125
|
+
<span
|
126
|
+
*ngIf="nzeUploadButtonIcon"
|
127
|
+
nz-icon
|
128
|
+
[nzType]="nzeUploadButtonIcon.type"
|
129
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
130
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
131
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
132
|
+
></span>
|
133
|
+
{{ nzeText }}
|
134
|
+
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
135
|
+
</div>
|
136
|
+
</ng-container>
|
137
|
+
</ng-container>
|
100
138
|
</nz-upload>
|
101
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "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 });
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type:
|
139
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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 });
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, decorators: [{
|
103
141
|
type: Component,
|
104
142
|
args: [{
|
105
|
-
selector: 'formly-upload',
|
143
|
+
selector: 'formly-nz-upload',
|
106
144
|
template: `
|
107
145
|
<nz-upload
|
146
|
+
[nzType]="nzType"
|
108
147
|
[nzAccept]="nzAccept"
|
109
148
|
[nzAction]="nzAction"
|
110
149
|
[nzDirectory]="nzDirectory"
|
111
150
|
[nzBeforeUpload]="nzBeforeUpload"
|
112
151
|
[nzCustomRequest]="nzCustomRequest"
|
113
152
|
[nzData]="nzData"
|
153
|
+
[nzDisabled]="nzDisabled"
|
114
154
|
[(nzFileList)]="nzFileList"
|
115
155
|
[nzLimit]="nzLimit"
|
116
156
|
[nzSize]="nzSize"
|
@@ -134,21 +174,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
134
174
|
[nzFileListRender]="nzFileListRender"
|
135
175
|
[ngClass]="className"
|
136
176
|
(nzChange)="change($event)"
|
137
|
-
[nzType]="nzType"
|
138
177
|
(nzFileListChange)="fileListChange($event)"
|
139
178
|
>
|
140
|
-
<ng-container
|
141
|
-
<
|
142
|
-
<
|
143
|
-
|
144
|
-
|
145
|
-
|
179
|
+
<ng-container [ngSwitch]="nzType">
|
180
|
+
<ng-container *ngSwitchCase="'drag'">
|
181
|
+
<p class="ant-upload-drag-icon">
|
182
|
+
<span
|
183
|
+
*ngIf="nzeUploadButtonIcon"
|
184
|
+
nz-icon
|
185
|
+
[nzType]="nzeUploadButtonIcon.type"
|
186
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
187
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
188
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
189
|
+
></span>
|
190
|
+
</p>
|
191
|
+
<p class="ant-upload-text">{{ nzeText }}</p>
|
192
|
+
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
193
|
+
</ng-container>
|
194
|
+
<ng-container *ngSwitchDefault>
|
195
|
+
<button
|
196
|
+
type="button"
|
197
|
+
nz-button
|
198
|
+
[disabled]="nzDisabled!!"
|
199
|
+
*ngIf="nzeShowUploadButton !== false"
|
200
|
+
>
|
201
|
+
<span
|
202
|
+
*ngIf="nzeUploadButtonIcon"
|
203
|
+
nz-icon
|
204
|
+
[nzType]="nzeUploadButtonIcon.type"
|
205
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
206
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
207
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
208
|
+
></span>
|
209
|
+
{{ nzeText }}
|
210
|
+
</button>
|
146
211
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
212
|
+
<div *ngIf="nzeShowUploadButton === false">
|
213
|
+
<span
|
214
|
+
*ngIf="nzeUploadButtonIcon"
|
215
|
+
nz-icon
|
216
|
+
[nzType]="nzeUploadButtonIcon.type"
|
217
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
218
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
219
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
220
|
+
></span>
|
221
|
+
{{ nzeText }}
|
222
|
+
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
223
|
+
</div>
|
224
|
+
</ng-container>
|
225
|
+
</ng-container>
|
152
226
|
</nz-upload>
|
153
227
|
`,
|
154
228
|
encapsulation: ViewEncapsulation.None,
|
@@ -156,19 +230,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
156
230
|
providers: [
|
157
231
|
{
|
158
232
|
provide: NG_VALUE_ACCESSOR,
|
159
|
-
useExisting:
|
233
|
+
useExisting: forwardRef(() => UploadNzComponent),
|
160
234
|
multi: true
|
161
235
|
}
|
162
236
|
]
|
163
237
|
}]
|
164
|
-
}], propDecorators: {
|
165
|
-
type:
|
166
|
-
|
167
|
-
|
238
|
+
}], propDecorators: { nzeText: [{
|
239
|
+
type: Input
|
240
|
+
}], nzeHint: [{
|
241
|
+
type: Input
|
242
|
+
}], nzeShowUploadButton: [{
|
243
|
+
type: Input
|
244
|
+
}], nzeUploadButton: [{
|
245
|
+
type: Input
|
246
|
+
}], nzeUploadButtonIcon: [{
|
168
247
|
type: Input
|
169
248
|
}], className: [{
|
170
249
|
type: Input
|
171
250
|
}], resultMap: [{
|
172
251
|
type: Input
|
173
252
|
}] } });
|
174
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxLQUFLLEVBQ0wsU0FBUyxFQUNULGlCQUFpQixFQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXdCLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekUsT0FBTyxFQUF1QixpQkFBaUIsRUFBZ0IsTUFBTSxzQkFBc0IsQ0FBQzs7Ozs7Ozs7QUE4RDVGLE1BQU0sT0FBTyxlQUFnQixTQUFRLGlCQUFpQjtJQTVEdEQ7O1FBb0VFOztXQUVHO1FBQ00sY0FBUyxHQUFHLEVBQUUsQ0FBQztRQUd4QixhQUFRLEdBQWlCLEdBQUcsRUFBRSxHQUFFLENBQUMsQ0FBQztRQUNsQyxjQUFTLEdBQWtCLEdBQUcsRUFBRSxHQUFFLENBQUMsQ0FBQztLQTBCckM7SUF6QkMsVUFBVSxLQUFVLENBQUM7SUFDckIsZ0JBQWdCLENBQUMsRUFBYTtRQUM1QixJQUFJLENBQUMsUUFBUSxHQUFHLEVBQUUsQ0FBQztJQUNyQixDQUFDO0lBQ0QsaUJBQWlCLENBQUMsRUFBYTtRQUM3QixJQUFJLENBQUMsU0FBUyxHQUFHLEVBQUUsQ0FBQztJQUN0QixDQUFDO0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G5nLWNvbnRhaW5lciAqbmdTd2l0Y2hDYXNlPVwiJ2RyYWcnXCI+XG4gICAgICAgICAgPHAgY2xhc3M9XCJhbnQtdXBsb2FkLWRyYWctaWNvblwiPlxuICAgICAgICAgICAgPHNwYW5cbiAgICAgICAgICAgICAgKm5nSWY9XCJuemVVcGxvYWRCdXR0b25JY29uXCJcbiAgICAgICAgICAgICAgbnotaWNvblxuICAgICAgICAgICAgICBbbnpUeXBlXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHlwZVwiXG4gICAgICAgICAgICAgIFtuelRoZW1lXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udGhlbWUgfHwgJ291dGxpbmUnXCJcbiAgICAgICAgICAgICAgW256U3Bpbl09XCJuemVVcGxvYWRCdXR0b25JY29uLnNwaW4hIVwiXG4gICAgICAgICAgICAgIFtuelR3b3RvbmVDb2xvcl09XCJuemVVcGxvYWRCdXR0b25JY29uLnR3b1RvbmVDb2xvciB8fCAnJ1wiXG4gICAgICAgICAgICA+PC9zcGFuPlxuICAgICAgICAgIDwvcD5cbiAgICAgICAgICA8cCBjbGFzcz1cImFudC11cGxvYWQtdGV4dFwiPnt7IG56ZVRleHQgfX08L3A+XG4gICAgICAgICAgPHAgY2xhc3M9XCJhbnQtdXBsb2FkLWhpbnRcIj57eyBuemVIaW50IH19PC9wPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdTd2l0Y2hEZWZhdWx0PlxuICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgbnotYnV0dG9uXG4gICAgICAgICAgICBbZGlzYWJsZWRdPVwibnpEaXNhYmxlZCEhXCJcbiAgICAgICAgICAgICpuZ0lmPVwibnplU2hvd1VwbG9hZEJ1dHRvbiAhPT0gZmFsc2VcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxzcGFuXG4gICAgICAgICAgICAgICpuZ0lmPVwibnplVXBsb2FkQnV0dG9uSWNvblwiXG4gICAgICAgICAgICAgIG56LWljb25cbiAgICAgICAgICAgICAgW256VHlwZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnR5cGVcIlxuICAgICAgICAgICAgICBbbnpUaGVtZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnRoZW1lIHx8ICdvdXRsaW5lJ1wiXG4gICAgICAgICAgICAgIFtuelNwaW5dPVwibnplVXBsb2FkQnV0dG9uSWNvbi5zcGluISFcIlxuICAgICAgICAgICAgICBbbnpUd290b25lQ29sb3JdPVwibnplVXBsb2FkQnV0dG9uSWNvbi50d29Ub25lQ29sb3IgfHwgJydcIlxuICAgICAgICAgICAgPjwvc3Bhbj5cbiAgICAgICAgICAgIHt7IG56ZVRleHQgfX1cbiAgICAgICAgICA8L2J1dHRvbj5cblxuICAgICAgICAgIDxkaXYgKm5nSWY9XCJuemVTaG93VXBsb2FkQnV0dG9uID09PSBmYWxzZVwiPlxuICAgICAgICAgICAgPHNwYW5cbiAgICAgICAgICAgICAgKm5nSWY9XCJuemVVcGxvYWRCdXR0b25JY29uXCJcbiAgICAgICAgICAgICAgbnotaWNvblxuICAgICAgICAgICAgICBbbnpUeXBlXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHlwZVwiXG4gICAgICAgICAgICAgIFtuelRoZW1lXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udGhlbWUgfHwgJ291dGxpbmUnXCJcbiAgICAgICAgICAgICAgW256U3Bpbl09XCJuemVVcGxvYWRCdXR0b25JY29uLnNwaW4hIVwiXG4gICAgICAgICAgICAgIFtuelR3b3RvbmVDb2xvcl09XCJuemVVcGxvYWRCdXR0b25JY29uLnR3b1RvbmVDb2xvciB8fCAnJ1wiXG4gICAgICAgICAgICA+PC9zcGFuPlxuICAgICAgICAgICAge3sgbnplVGV4dCB9fVxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImFudC11cGxvYWQtaGludFwiIHN0eWxlPVw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