ngx-formly-zorro-antd 16.1.0 → 16.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -2
- package/card/card.module.d.ts +4 -3
- package/card/card.type.d.ts +37 -0
- package/card/public_api.d.ts +1 -1
- package/card-wrapper/card-wrapper.module.d.ts +11 -0
- package/{card/card.wrapper.d.ts → card-wrapper/card-wrapper.props.d.ts} +10 -12
- package/card-wrapper/card.wrapper.d.ts +24 -0
- package/card-wrapper/index.d.ts +5 -0
- package/card-wrapper/public_api.d.ts +3 -0
- package/cascader/cascader.type.d.ts +6 -5
- package/checkbox/checkbox.type.d.ts +4 -3
- package/common/common.module.d.ts +9 -0
- package/common/formly-box-templates.directive.d.ts +46 -0
- package/common/formly-utils.d.ts +24 -0
- package/common/index.d.ts +5 -0
- package/common/interface.d.ts +19 -0
- package/common/public_api.d.ts +4 -0
- package/datepicker/datepicker.props.d.ts +5 -5
- package/datepicker/datepicker.type.d.ts +3 -2
- package/esm2022/button/button.type.mjs +1 -1
- package/esm2022/card/card.module.mjs +16 -12
- package/esm2022/card/card.type.mjs +93 -0
- package/esm2022/card/public_api.mjs +2 -2
- package/esm2022/card-wrapper/card-wrapper.module.mjs +45 -0
- package/esm2022/card-wrapper/card-wrapper.props.mjs +2 -0
- package/esm2022/card-wrapper/card.wrapper.mjs +77 -0
- package/esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs +5 -0
- package/esm2022/card-wrapper/public_api.mjs +3 -0
- package/esm2022/cascader/cascader.type.mjs +1 -3
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/common.module.mjs +19 -0
- package/esm2022/common/formly-box-templates.directive.mjs +106 -0
- package/esm2022/common/formly-utils.mjs +46 -0
- package/esm2022/common/interface.mjs +2 -0
- package/esm2022/common/ngx-formly-zorro-antd-common.mjs +5 -0
- package/esm2022/common/public_api.mjs +5 -0
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +1 -1
- package/esm2022/extension/ngx-formly-zorro-antd-extension.mjs +5 -0
- package/esm2022/extension/public_api.mjs +2 -0
- package/esm2022/extension/value-changes-extension.mjs +31 -0
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +3 -3
- package/esm2022/input-group/input-group.type.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +16 -4
- package/esm2022/radio/radio.type.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +7 -7
- package/esm2022/slider/slider.type.mjs +1 -1
- package/esm2022/space/ngx-formly-zorro-antd-space.mjs +5 -0
- package/esm2022/space/public_api.mjs +3 -0
- package/esm2022/space/space.module.mjs +45 -0
- package/esm2022/space/space.type.mjs +63 -0
- package/esm2022/switch/switch.type.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +5 -1
- package/esm2022/tree-select/tree-select.type.mjs +31 -15
- package/esm2022/upload/upload.module.mjs +5 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +25 -14
- package/extension/index.d.ts +5 -0
- package/extension/public_api.d.ts +1 -0
- package/extension/value-changes-extension.d.ts +23 -0
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +123 -0
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +81 -32
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +0 -2
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +174 -0
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs +37 -0
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +6 -6
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +109 -0
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +27 -13
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +15 -3
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +2 -2
- package/form-field/form-field.wrapper.d.ts +3 -2
- package/grid/grid.props.d.ts +15 -13
- package/grid/grid.type.d.ts +3 -2
- package/input/input.props.d.ts +3 -3
- package/input/input.type.d.ts +3 -2
- package/input-group/input-group.type.d.ts +4 -3
- package/input-number/input-number.props.d.ts +2 -2
- package/input-number/input-number.type.d.ts +3 -2
- package/lib/ui-ng-zorro-antd.module.d.ts +24 -21
- package/package.json +37 -12
- package/radio/radio.type.d.ts +3 -2
- package/rate/rate.type.d.ts +4 -3
- package/select/select.props.d.ts +4 -4
- package/select/select.type.d.ts +3 -2
- package/slider/slider.type.d.ts +4 -3
- package/space/index.d.ts +5 -0
- package/space/public_api.d.ts +2 -0
- package/space/space.module.d.ts +11 -0
- package/space/space.type.d.ts +51 -0
- package/switch/switch.type.d.ts +3 -2
- package/tabs/tabs.props.d.ts +9 -9
- package/tabs/tabs.wrapper.d.ts +4 -3
- package/textarea/textarea.type.d.ts +3 -2
- package/timepicker/timepicker.type.d.ts +4 -3
- package/transfer/transfer.type.d.ts +5 -4
- package/tree-select/tree-select.module.d.ts +4 -3
- package/tree-select/tree-select.type.d.ts +21 -4
- package/upload/upload.module.d.ts +6 -5
- package/upload/upload.props.d.ts +4 -2
- package/upload/upload.type.d.ts +9 -3
- package/esm2022/card/card.wrapper.mjs +0 -47
@@ -0,0 +1,45 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
4
|
+
import { FormlyWrapperCard } from './card.wrapper';
|
5
|
+
import { NzCardModule } from 'ng-zorro-antd/card';
|
6
|
+
import { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
import * as i1 from "@ngx-formly/core";
|
9
|
+
export class FormlyNzCardWrapperModule {
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
|
12
|
+
NzCardModule,
|
13
|
+
FormlyCommonModule, i1.FormlyModule] }); }
|
14
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
|
15
|
+
NzCardModule,
|
16
|
+
FormlyCommonModule,
|
17
|
+
FormlyModule.forChild({
|
18
|
+
wrappers: [
|
19
|
+
{
|
20
|
+
name: 'card-wrapper',
|
21
|
+
component: FormlyWrapperCard
|
22
|
+
}
|
23
|
+
]
|
24
|
+
})] }); }
|
25
|
+
}
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
|
27
|
+
type: NgModule,
|
28
|
+
args: [{
|
29
|
+
declarations: [FormlyWrapperCard],
|
30
|
+
imports: [
|
31
|
+
CommonModule,
|
32
|
+
NzCardModule,
|
33
|
+
FormlyCommonModule,
|
34
|
+
FormlyModule.forChild({
|
35
|
+
wrappers: [
|
36
|
+
{
|
37
|
+
name: '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Ki9cbiAgYm9yZGVybGVzcz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIOWNoeeJh+WwgemdolxuICAgKi9cbiAgY292ZXI/OiBUZW1wbGF0ZVJlZjx2b2lkPjtcbiAgY292ZXJOYW1lPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiDljaHniYflj7PkuIrop5LnmoTmk43kvZzljLrln59cbiAgICovXG4gIGV4dHJhPzogc3RyaW5nIHwgVGVtcGxhdGVSZWY8dm9pZD47XG4gIGV4dHJhTmFtZT86IHN0cmluZztcblxuICAvKipcbiAgICog6byg5qCH56e76L+H5pe25Y+v5rWu6LW3XG4gICAqIEBkZWZhdWx0IGZhbHNlXG4gICAqL1xuICBob3ZlcmFibGU/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiDlvZPljaHniYflhoXlrrnov5jlnKjliqDovb3kuK3ml7bvvIzlj6/ku6XnlKggbG9hZGluZyDlsZXnpLrkuIDkuKrljaDkvY1cbiAgICogQGRlZmF1bHQgZmFsc2VcbiAgICovXG4gIGxvYWRpbmc/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiDljaHniYfnmoTlsLrlr7hcbiAgICogQGRlZmF1bHQgZGVmYXVsdFxuICAgKi9cbiAgc2l6ZT86IE56U2l6ZURTVHlwZTtcblxuICAvKipcbiAgICogXHTljaHniYfmoIfpophcbiAgICovXG4gIHRpdGxlPzogc3RyaW5nIHwgVGVtcGxhdGVSZWY8dm9pZD47XG4gIHRpdGxlTmFtZT86IHN0cmluZztcblxuICAvKipcbiAgICog5Y2h54mH57G75Z6L77yM5Y+v6K6+572u5Li6IGlubmVyIOaIliDkuI3orr7nva5cbiAgICovXG4gIHR5cGU/OiBzdHJpbmcgfCAnaW5uZXInO1xuXG4gIC8qKlxuICAgKiDmmK/lkKbmmL7npLrovrnmoYZcbiAgICovXG4gIGJvcmRlcmVkPzogYm9vbGVhbjtcbn1cbiJdfQ==
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { Component, Optional, ChangeDetectionStrategy } from '@angular/core';
|
2
|
+
import { FieldWrapper } from '@ngx-formly/core';
|
3
|
+
import { FormlyBoxTemplates, resolveTplName, resolveTplNameArray } from 'ngx-formly-zorro-antd/common';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "ngx-formly-zorro-antd/common";
|
6
|
+
import * as i2 from "ng-zorro-antd/card";
|
7
|
+
import * as i3 from "@ngx-formly/core";
|
8
|
+
export class FormlyWrapperCard extends FieldWrapper {
|
9
|
+
constructor(fieldTemplates) {
|
10
|
+
super();
|
11
|
+
this.fieldTemplates = fieldTemplates;
|
12
|
+
this.defaultOptions = {
|
13
|
+
props: {
|
14
|
+
bordered: true
|
15
|
+
}
|
16
|
+
};
|
17
|
+
}
|
18
|
+
get nzTitle() {
|
19
|
+
return resolveTplName(this.props, this.fieldTemplates, 'title');
|
20
|
+
}
|
21
|
+
get nzCover() {
|
22
|
+
return resolveTplName(this.props, this.fieldTemplates, 'cover');
|
23
|
+
}
|
24
|
+
get nzExtra() {
|
25
|
+
return resolveTplName(this.props, this.fieldTemplates, 'extra');
|
26
|
+
}
|
27
|
+
get nzActions() {
|
28
|
+
return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
|
29
|
+
}
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
|
32
|
+
<nz-card
|
33
|
+
[nzActions]="nzActions"
|
34
|
+
[formlyAttributes]="field"
|
35
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
36
|
+
[nzSize]="props['size']!"
|
37
|
+
[nzBorderless]="props['borderless']!!"
|
38
|
+
[nzCover]="nzCover"
|
39
|
+
[nzExtra]="nzExtra"
|
40
|
+
[nzHoverable]="props['hoverable']!!"
|
41
|
+
[nzLoading]="props['loading']!!"
|
42
|
+
[nzTitle]="nzTitle"
|
43
|
+
[nzBordered]="props['bordered']!!"
|
44
|
+
[nzType]="props['type'] ?? null"
|
45
|
+
>
|
46
|
+
<ng-container #fieldComponent></ng-container>
|
47
|
+
</nz-card>
|
48
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i2.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
49
|
+
}
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperCard, decorators: [{
|
51
|
+
type: Component,
|
52
|
+
args: [{
|
53
|
+
selector: 'formly-wrapper-card',
|
54
|
+
template: `
|
55
|
+
<nz-card
|
56
|
+
[nzActions]="nzActions"
|
57
|
+
[formlyAttributes]="field"
|
58
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
59
|
+
[nzSize]="props['size']!"
|
60
|
+
[nzBorderless]="props['borderless']!!"
|
61
|
+
[nzCover]="nzCover"
|
62
|
+
[nzExtra]="nzExtra"
|
63
|
+
[nzHoverable]="props['hoverable']!!"
|
64
|
+
[nzLoading]="props['loading']!!"
|
65
|
+
[nzTitle]="nzTitle"
|
66
|
+
[nzBordered]="props['bordered']!!"
|
67
|
+
[nzType]="props['type'] ?? null"
|
68
|
+
>
|
69
|
+
<ng-container #fieldComponent></ng-container>
|
70
|
+
</nz-card>
|
71
|
+
`,
|
72
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
73
|
+
}]
|
74
|
+
}], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
|
75
|
+
type: Optional
|
76
|
+
}] }]; } });
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC53cmFwcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jYXJkLXdyYXBwZXIvc3JjL2NhcmQud3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFRLFFBQVEsRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDaEQsT0FBTyxFQUNMLGtCQUFrQixFQUNsQixjQUFjLEVBQ2QsbUJBQW1CLEVBQ3BCLE1BQU0sOEJBQThCLENBQUM7Ozs7O0FBOEJ0QyxNQUFNLE9BQU8saUJBQWtCLFNBQVEsWUFBbUQ7SUFPeEYsWUFBK0IsY0FBa0M7UUFDL0QsS0FBSyxFQUFFLENBQUM7UUFEcUIsbUJBQWMsR0FBZCxjQUFjLENBQW9CO1FBTnhELG1CQUFjLEdBQUc7WUFDeEIsS0FBSyxFQUFFO2dCQUNMLFFBQVEsRUFBRSxJQUFJO2FBQ2Y7U0FDRixDQUFDO0lBSUYsQ0FBQztJQUVELElBQUksT0FBTztRQUNULE9BQU8sY0FBYyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLGNBQWMsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUNsRSxDQUFDO0lBQ0QsSUFBSSxPQUFPO1FBQ1QsT0FBTyxjQUFjLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxJQUFJLENBQUMsY0FBYyxFQUFFLE9BQU8s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RGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2hcbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5V3JhcHBlckNhcmQgZXh0ZW5kcyBGaWVsZFdyYXBwZXI8TnpGb3JtbHlGaWVsZENvbmZpZzxDYXJkV3JhcHBlclByb3BzPj4ge1xuICBvdmVycmlkZSBkZWZhdWx0T3B0aW9ucyA9IHtcbiAgICBwcm9wczoge1xuICAgICAgYm9yZGVyZWQ6IHRydWVcbiAgICB9XG4gIH07XG5cbiAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgcHVibGljIGZpZWxkVGVtcGxhdGVzOiBGb3JtbHlCb3hUZW1wbGF0ZXMpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgZ2V0IG56VGl0bGUoKSB7XG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICd0aXRsZScpO1xuICB9XG4gIGdldCBuekNvdmVyKCkge1xuICAgIHJldHVybiByZXNvbHZlVHBsTmFtZSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAnY292ZXInKTtcbiAgfVxuICBnZXQgbnpFeHRyYSgpIHtcbiAgICByZXR1cm4gcmVzb2x2ZVRwbE5hbWUodGhpcy5wcm9wcywgdGhpcy5maWVsZFRlbXBsYXRlcywgJ2V4dHJhJyk7XG4gIH1cbiAgZ2V0IG56QWN0aW9ucygpIHtcbiAgICByZXR1cm4gcmVzb2x2ZVRwbE5hbWVBcnJheSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAnYWN0aW9ucycpIHx8IFtdO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLWNhcmQtd3JhcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2FyZC13cmFwcGVyL3NyYy9uZ3gtZm9ybWx5LXpvcnJvLWFudGQtY2FyZC13cmFwcGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export { FormlyNzCardWrapperModule } from './card-wrapper.module';
|
2
|
+
export { FormlyWrapperCard } from './card.wrapper';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2FyZC13cmFwcGVyL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxpQkFBaUIsRUFBMkIsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZvcm1seU56Q2FyZFdyYXBwZXJNb2R1bGUgfSBmcm9tICcuL2NhcmQtd3JhcHBlci5tb2R1bGUnO1xuZXhwb3J0IHsgRm9ybWx5V3JhcHBlckNhcmQsIEZvcm1seUNhcmRXcmFwcGVyQ29uZmlnIH0gZnJvbSAnLi9jYXJkLndyYXBwZXInO1xuZXhwb3J0IHsgQ2FyZFdyYXBwZXJQcm9wcyB9IGZyb20gJy4vY2FyZC13cmFwcGVyLnByb3BzJztcbiJdfQ==
|
@@ -65,7 +65,6 @@ export class FormlyFieldCascader extends FieldType {
|
|
65
65
|
(nzClear)="props['onClear'] && props['onClear'](field)"
|
66
66
|
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
67
67
|
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
68
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
69
68
|
></nz-cascader>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
70
69
|
}
|
71
70
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCascader, decorators: [{
|
@@ -104,9 +103,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
104
103
|
(nzClear)="props['onClear'] && props['onClear'](field)"
|
105
104
|
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
106
105
|
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
107
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
108
106
|
></nz-cascader>`,
|
109
107
|
changeDetection: ChangeDetectionStrategy.OnPush
|
110
108
|
}]
|
111
109
|
}] });
|
112
|
-
//# sourceMappingURL=data:application/json;base64,
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzY2FkZXIudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2FzY2FkZXIvc3JjL2Nhc2NhZGVyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsdUJBQXVCLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDOUYsT0FBTyxFQUFFLFNBQVMsRUFBbUIsTUFBTSxrQkFBa0IsQ0FBQzs7Ozs7O0FBbU05RCxNQUFNLE9BQU8sbUJBQ1gsU0FBUSxTQUF5QztJQXRDbkQ7O1FBeUNXLG1CQUFjLEdBQUc7WUFDeEIsS0FBSyxFQUFFO2dCQUNMLFdBQVcsRUFBRSxLQUFLO2dCQUNsQixVQUFVLEVBQUUsSUFBSTtnQkFDaEIsUUFBUSxFQUFFLEtBQUs7Z0JBQ2YsY0FBYyxFQUFFLEtBQUs7Z0JBQ3JCLGFBQWEsRUFBRSxPQUFnQjtnQkFDL0IsYUFBYSxF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iAgICBbbnpMYWJlbFByb3BlcnR5XT1cInByb3BzWydsYWJlbFByb3BlcnR5J11cIlxuICAgIFtuekxhYmVsUmVuZGVyXT1cInByb3BzWydsYWJlbFJlbmRlciddID8/IG51bGxcIlxuICAgIFtuekxvYWREYXRhXT1cInByb3BzWydsb2FkRGF0YSddXCJcbiAgICBbbnpNZW51Q2xhc3NOYW1lXT1cInByb3BzWydtZW51Q2xhc3NOYW1lJ11cIlxuICAgIFtuek1lbnVTdHlsZV09XCJwcm9wc1snbWVudVN0eWxlJ10gPz8gbnVsbFwiXG4gICAgW256Tm90Rm91bmRDb250ZW50XT1cInByb3BzWydub3RGb3VuZENvbnRlbnQnXVwiXG4gICAgW256T3B0aW9uUmVuZGVyXT1cInByb3BzWydvcHRpb25SZW5kZXInXSA/PyBudWxsXCJcbiAgICBbbnpPcHRpb25zXT1cInByb3BzWydjYXNjYWRlck9wdGlvbnMnXSA/PyBudWxsXCJcbiAgICBbbnpTaG93QXJyb3ddPVwicHJvcHNbJ3Nob3dBcnJvdyddISFcIlxuICAgIFtuelNob3dJbnB1dF09XCJwcm9wc1snc2hvd0lucHV0J10hIVwiXG4gICAgW256U2hvd1NlYXJjaF09XCJwcm9wc1snc2hvd1NlYXJjaCddISFcIlxuICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxuICAgIFtuelN0YXR1c109XCJwcm9wc1snc3RhdHVzJ10gPz8gJydcIlxuICAgIFtuelN1ZmZpeEljb25dPVwicHJvcHNbJ3N1ZmZpeEljb24nXSFcIlxuICAgIFtuelZhbHVlUHJvcGVydHldPVwicHJvcHNbJ3ZhbHVlUHJvcGVydHknXSFcIlxuICAgIChuekNsZWFyKT1cInByb3BzWydvbkNsZWFyJ10gJiYgcHJvcHNbJ29uQ2xlYXInXShmaWVsZClcIlxuICAgIChuelZpc2libGVDaGFuZ2UpPVwicHJvcHNbJ3Zpc2libGVDaGFuZ2UnXSAmJiBwcm9wc1sndmlzaWJsZUNoYW5nZSddKG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ZiAoIW9wdGlvbnMgfHwgb3B0aW9ucy5sZW5ndGggPT09IDApIHtcbiAgICAgIHRoaXMucHJvcHNbJ2Nhc2NhZGVyT3B0aW9ucyddID0gdGhpcy5wcm9wcy5vcHRpb25zIGFzIE56U2FmZUFueTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -33,7 +33,7 @@ export class FormlyFieldCheckbox extends FieldType {
|
|
33
33
|
[(ngModel)]="props.options"
|
34
34
|
[formControl]="formControl"
|
35
35
|
[formlyAttributes]="field"
|
36
|
-
(ngModelChange)="props['modelChange']
|
36
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
37
37
|
></nz-checkbox-group>
|
38
38
|
</ng-template>
|
39
39
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i3.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
@@ -59,11 +59,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
59
59
|
[(ngModel)]="props.options"
|
60
60
|
[formControl]="formControl"
|
61
61
|
[formlyAttributes]="field"
|
62
|
-
(ngModelChange)="props['modelChange']
|
62
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
63
63
|
></nz-checkbox-group>
|
64
64
|
</ng-template>
|
65
65
|
`,
|
66
66
|
changeDetection: ChangeDetectionStrategy.OnPush
|
67
67
|
}]
|
68
68
|
}] });
|
69
|
-
//# sourceMappingURL=data:application/json;base64,
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2hlY2tib3gvc3JjL2NoZWNrYm94LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLGtCQUFrQixDQUFDOzs7Ozs7QUFzRDlELE1BQU0sT0FBTyxtQkFBb0IsU0FBUSxTQUF5QztJQXpCbEY7O1FBMEJXLG1CQUFjLEdBQUc7WUFDeEIsS0FBSyxFQUFFO2dCQUNMLGFBQWEsRUFBRSxLQUFLO2dCQUNwQixTQUFTLEVBQUUsSUFBSTthQUNoQjtTQUNGLENBQUM7S0FDSDs4R0FQWSxtQkFBbUI7a0dBQW5CLG1CQUFtQixvRkF2QnBCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9CVDs7MkZBR1UsbUJBQW1CO2tCQXpCL0IsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsdUJBQXVCO29CQUNqQyxRQUFRLEVBQUU7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBb0JUO29CQUNELGVBQWUsRUFBRSx1QkFBdUIsQ0FBQyxNQUFNO2lCQUNoRCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgVHlwZSw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zaFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlGaWVsZENoZWNrYm94IGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZzxDaGVja2JveFByb3BzPj4ge1xuICBvdmVycmlkZSBkZWZhdWx0T3B0aW9ucyA9IHtcbiAgICBwcm9wczoge1xuICAgICAgaW5kZXRlcm1pbmF0ZTogZmFsc2UsXG4gICAgICBoaWRlTGFiZWw6IHRydWVcbiAgICB9XG4gIH07XG59XG4iXX0=
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormlyBoxTemplates } from './formly-box-templates.directive';
|
4
|
+
import { NamedTemplate } from '@pkt/ng.core';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
const COMPONENT = [FormlyBoxTemplates, NamedTemplate];
|
7
|
+
export class FormlyCommonModule {
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
9
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule, FormlyBoxTemplates, NamedTemplate], exports: [FormlyBoxTemplates, NamedTemplate] }); }
|
10
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule] }); }
|
11
|
+
}
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, decorators: [{
|
13
|
+
type: NgModule,
|
14
|
+
args: [{
|
15
|
+
imports: [CommonModule, ...COMPONENT],
|
16
|
+
exports: COMPONENT
|
17
|
+
}]
|
18
|
+
}] });
|
19
|
+
//# sourceMappingURL=data:application/json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cmVjdGl2ZSc7XG5pbXBvcnQgeyBOYW1lZFRlbXBsYXRlIH0gZnJvbSAnQHBrdC9uZy5jb3JlJztcblxuY29uc3QgQ09NUE9ORU5UID0gW0Zvcm1seUJveFRlbXBsYXRlcywgTmFtZWRUZW1wbGF0ZV07XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIC4uLkNPTVBPTkVOVF0sXG4gIGV4cG9ydHM6IENPTVBPTkVOVFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlDb21tb25Nb2R1bGUge31cbiJdfQ==
|
@@ -0,0 +1,106 @@
|
|
1
|
+
import { ContentChildren, Directive, EventEmitter, Input, Output, QueryList, TemplateRef } from '@angular/core';
|
2
|
+
import { NamedTemplate } from '@pkt/ng.core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export class FormlyBoxTemplates {
|
5
|
+
constructor() {
|
6
|
+
this.tplMap = new Map();
|
7
|
+
this.templateChange = new EventEmitter();
|
8
|
+
}
|
9
|
+
get templates() {
|
10
|
+
return this.tplMap;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* 根据模板名称获取TemplateRef
|
14
|
+
* @param templateName 模板名称
|
15
|
+
*/
|
16
|
+
get(templateName) {
|
17
|
+
return this.tplMap.get(templateName);
|
18
|
+
}
|
19
|
+
ngAfterContentInit() {
|
20
|
+
this.update();
|
21
|
+
this.namedTemplate.changes.subscribe(() => {
|
22
|
+
this.update();
|
23
|
+
});
|
24
|
+
}
|
25
|
+
update(emitChange = true) {
|
26
|
+
this.tplMap.clear();
|
27
|
+
this.mergeTemplate(this.tplMap, emitChange);
|
28
|
+
}
|
29
|
+
ngOnChanges(changes) {
|
30
|
+
if (changes.templateList && !changes.templateList.isFirstChange()) {
|
31
|
+
this.update();
|
32
|
+
}
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* 合并参数模板
|
36
|
+
* @param tplMap
|
37
|
+
* @param emitChange
|
38
|
+
*/
|
39
|
+
mergeTemplate(tplMap, emitChange = true) {
|
40
|
+
this.mergeTemplates(tplMap, this.templateList);
|
41
|
+
this.mergeQueryTemplate(tplMap, this.namedTemplate);
|
42
|
+
if (emitChange) {
|
43
|
+
this.templateChange.emit(tplMap);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* 合并content 模板
|
48
|
+
* @param tplMap
|
49
|
+
* @param templateList
|
50
|
+
* @private
|
51
|
+
*/
|
52
|
+
mergeQueryTemplate(tplMap, templateList) {
|
53
|
+
if (templateList) {
|
54
|
+
templateList.forEach(v => {
|
55
|
+
tplMap.set(v.named, v.template);
|
56
|
+
});
|
57
|
+
}
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* 合并模板列表
|
61
|
+
* @param tplMap 模板Map
|
62
|
+
* @param templateList
|
63
|
+
*/
|
64
|
+
mergeTemplates(tplMap, templateList) {
|
65
|
+
if (!templateList) {
|
66
|
+
return;
|
67
|
+
}
|
68
|
+
if (templateList instanceof TemplateRef) {
|
69
|
+
const namedTpl = new NamedTemplate(templateList);
|
70
|
+
namedTpl.resolveName();
|
71
|
+
tplMap.set(namedTpl.named, namedTpl.template);
|
72
|
+
return;
|
73
|
+
}
|
74
|
+
templateList.forEach(v => {
|
75
|
+
if (v instanceof NamedTemplate) {
|
76
|
+
tplMap.set(v.named, v.template);
|
77
|
+
}
|
78
|
+
else {
|
79
|
+
const namedTpl = new NamedTemplate(v);
|
80
|
+
namedTpl.resolveName();
|
81
|
+
tplMap.set(namedTpl.named, namedTpl.template);
|
82
|
+
}
|
83
|
+
});
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyBoxTemplates, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
87
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: FormlyBoxTemplates, isStandalone: true, selector: "[formly-box]", inputs: { templateList: ["formly-box", "templateList"] }, outputs: { templateChange: "templateChange" }, queries: [{ propertyName: "namedTemplate", predicate: NamedTemplate }], exportAs: ["FormlyBox"], usesOnChanges: true, ngImport: i0 }); }
|
88
|
+
}
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyBoxTemplates, decorators: [{
|
90
|
+
type: Directive,
|
91
|
+
args: [{
|
92
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
93
|
+
selector: '[formly-box]',
|
94
|
+
standalone: true,
|
95
|
+
exportAs: 'FormlyBox'
|
96
|
+
}]
|
97
|
+
}], propDecorators: { templateList: [{
|
98
|
+
type: Input,
|
99
|
+
args: ['formly-box']
|
100
|
+
}], templateChange: [{
|
101
|
+
type: Output
|
102
|
+
}], namedTemplate: [{
|
103
|
+
type: ContentChildren,
|
104
|
+
args: [NamedTemplate]
|
105
|
+
}] } });
|
106
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWx5LWJveC10ZW1wbGF0ZXMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jb21tb24vZm9ybWx5LWJveC10ZW1wbGF0ZXMuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxlQUFlLEVBQ2YsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBRUwsTUFBTSxFQUNOLFNBQVMsRUFHVCxXQUFXLEVBQ1osTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGNBQWMsQ0FBQzs7QUFTN0MsTUFBTSxPQUFPLGtCQUFrQjtJQU4vQjtRQU9VLFdBQU0sR0FBRyxJQUFJLEdBQUcsR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1lZFRwbC5yZXNvbHZlTmFtZSgpO1xuICAgICAgdHBsTWFwLnNldChuYW1lZFRwbC5uYW1lZCwgbmFtZWRUcGwudGVtcGxhdGUpO1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRlbXBsYXRlTGlzdC5mb3JFYWNoKHYgPT4ge1xuICAgICAgaWYgKHYgaW5zdGFuY2VvZiBOYW1lZFRlbXBsYXRlKSB7XG4gICAgICAgIHRwbE1hcC5zZXQodi5uYW1lZCwgdi50ZW1wbGF0ZSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjb25zdCBuYW1lZFRwbCA9IG5ldyBOYW1lZFRlbXBsYXRlKHYpO1xuICAgICAgICBuYW1lZFRwbC5yZXNvbHZlTmFtZSgpO1xuICAgICAgICB0cGxNYXAuc2V0KG5hbWVkVHBsLm5hbWVkLCBuYW1lZFRwbC50ZW1wbGF0ZSk7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICByZXR1cm47XG4gIH1cbn1cblxuLyoqXG4gKiDmqKHmnb/liJfooahcbiAqL1xuZXhwb3J0IHR5cGUgVGVtcGxhdGVMaXN0ID1cbiAgfCBRdWVyeUxpc3Q8VGVtcGxhdGVSZWY8TnpTYWZlQW55Pj5cbiAgfCBRdWVyeUxpc3Q8TmFtZWRUZW1wbGF0ZTxOelNhZmVBbnk+PlxuICB8IE5hbWVkVGVtcGxhdGU8TnpTYWZlQW55PltdXG4gIHwgVGVtcGxhdGVSZWY8TnpTYWZlQW55PjtcbiJdfQ==
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* 根据属性名获取模板名称
|
3
|
+
* @param propName 属性名
|
4
|
+
*/
|
5
|
+
export function getTplName(propName) {
|
6
|
+
return `${propName}Name`;
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* 处理属性为模板类型, 根据模板名称处理成模板对象
|
10
|
+
* @param value 数据对象
|
11
|
+
* @param fieldTemplates 模板容器
|
12
|
+
* @param propName 属性名
|
13
|
+
* @param propTemplateName 模板属性名称
|
14
|
+
*/
|
15
|
+
export function resolveTplName(value, fieldTemplates, propName, propTemplateName) {
|
16
|
+
if (value[propName]) {
|
17
|
+
return value[propName];
|
18
|
+
}
|
19
|
+
if (!fieldTemplates) {
|
20
|
+
return undefined;
|
21
|
+
}
|
22
|
+
const tplName = propTemplateName || getTplName(propName);
|
23
|
+
return fieldTemplates.get(value[tplName]);
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* 处理属性为模板类型, 根据模板名称处理成模板对象列表
|
27
|
+
* @param value 数据对象
|
28
|
+
* @param fieldTemplates 模板容器
|
29
|
+
* @param propName 属性名
|
30
|
+
* @param propTemplateName 模板属性名称
|
31
|
+
*/
|
32
|
+
export function resolveTplNameArray(value, fieldTemplates, propName, propTemplateName) {
|
33
|
+
if (value[propName] != null) {
|
34
|
+
return value[propName];
|
35
|
+
}
|
36
|
+
if (!fieldTemplates) {
|
37
|
+
return [];
|
38
|
+
}
|
39
|
+
const tplName = propTemplateName || getTplName(propName);
|
40
|
+
const tplValue = value[tplName];
|
41
|
+
if (Array.isArray(tplValue)) {
|
42
|
+
return tplValue.map(key => fieldTemplates.get(key)).filter(tpl => tpl);
|
43
|
+
}
|
44
|
+
return [];
|
45
|
+
}
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWx5LXV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jb21tb24vZm9ybWx5LXV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBOzs7R0FHRztBQUNILE1BQU0sVUFBVSxVQUFVLENBQUMsUUFBZ0I7SUFDekMsT0FBTyxHQUFHLFFBQVEsTUFBTSxDQUFDO0FBQzNCLENBQUM7QUFFRDs7Ozs7O0dBTUc7QUFDSCxNQUFNLFVBQVUsY0FBYy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pGb3JtbHlGaWVsZENvbmZpZzxUIGV4dGVuZHMgQ29udHJvbE9wdGlvbnMgPSBDb250cm9sT3B0aW9ucz5cbiAgZXh0ZW5kcyBGb3JtbHlGaWVsZENvbmZpZyB7XG4gIC8qKlxuICAgKiDov5nmmK/kuLrmqKHmnb/mianlsZXnmoTlsZ7mgKfvvIzmiYDmnInmqKHmnb/orr/pl67nmoTlsZ7mgKfpg73lupTor6Xku47ov5nph4zorr/pl65cbiAgICovXG4gIHByb3BzPzogVDtcbiAgLyoqXG4gICAqIEBkZXByZWNhdGVkIOS9v+eUqCBgcHJvcHNgIOS7o+abv1xuICAgKi9cbiAgdGVtcGxhdGVPcHRpb25zPzogVDtcbn1cblxuZXhwb3J0IHR5cGUgRm9ybWx5QXR0cmlidXRlRXZlbnQ8VCA9IE56U2FmZUFueT4gPSAoZmllbGQ6IE56Rm9ybWx5RmllbGRDb25maWcsIGV2ZW50PzogVCkgPT4gdm9pZDtcbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLWNvbW1vbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY29tbW9uL25neC1mb3JtbHktem9ycm8tYW50ZC1jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export * from './formly-box-templates.directive';
|
2
|
+
export * from './common.module';
|
3
|
+
export * from './formly-utils';
|
4
|
+
export * from './interface';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY29tbW9uL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Zvcm1seS1ib3gtdGVtcGxhdGVzLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2NvbW1vbi5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9mb3JtbHktdXRpbHMnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2UnO1xuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci5wcm9wcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvZGF0ZXBpY2tlci9zcmMvZGF0ZXBpY2tlci5wcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9j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GF0ZSB8IERhdGVbXSB8IG51bGw+O1xuXG4gIC8qKlxuICAgKiDml6XmnJ/ojIPlm7TpgInmi6nlmajphY3nva5cbiAgICovXG4gIHJhbmdlT3B0aW9ucz86IHtcbiAgICAvKipcbiAgICAgKiBcdOmihOiuvuaXtumXtOiMg+WbtOW/q+aNt+mAieaLqVxuICAgICAqL1xuICAgIHJhbmdlcz86IFByZXNldFJhbmdlcztcblxuICAgIC8qKlxuICAgICAqIOWIhumalOesplxuICAgICAqIEBkZWZhdWx0IH5cbiAgICAgKi9cbiAgICBzZXBhcmF0b3I/OiBzdHJpbmcgfCBUZW1wbGF0ZVJlZjxOelNhZmVBbnk+O1xuXG4gICAgLyoqXG4gICAgICog5b6F6YCJ5pel5pyf5Y+R55Sf5Y+Y5YyW55qE5Zue6LCDXG4gICAgICovXG4gICAgY2FsZW5kYXJDaGFuZ2U/OiBGb3JtbHlBdHRyaWJ1dGVFdmVudDtcblxuICAgIC8qKlxuICAgICAqIOS4jeWPr+mAieaLqeeahOaXtumXtFxuICAgICAqL1xuICAgIGRpc2FibGVkVGltZT86IERpc2FibGVkVGltZUZuO1xuICB9O1xufVxuIl19
|
@@ -193,4 +193,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
193
193
|
changeDetection: ChangeDetectionStrategy.OnPush
|
194
194
|
}]
|
195
195
|
}] });
|
196
|
-
//# sourceMappingURL=data:application/json;base64,
|
196
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9kYXRlcGlja2VyL3NyYy9kYXRlcGlja2VyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFB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AgICBbbmdDbGFzc109XCJwcm9wc1snY2xhc3NOYW1lJ11cIlxuICAgICAgW256UGxhY2VIb2xkZXJdPVwicHJvcHMucGxhY2Vob2xkZXIgPz8gJydcIlxuICAgICAgW256QWxsb3dDbGVhcl09XCJwcm9wc1snYWxsb3dDbGVhciddISFcIlxuICAgICAgW256QXV0b0ZvY3VzXT1cInByb3BzWydhdXRvRm9jdXMnXSEhXCJcbiAgICAgIFtuekJhY2tkcm9wXT1cInByb3BzWydiYWNrZHJvcCddISFcIlxuICAgICAgW256RGVmYXVsdFBpY2tlclZhbHVlXT1cInByb3BzWydkZWZhdWx0UGlja2VyVmFsdWUnXVwiXG4gICAgICBbbnpEaXNhYmxlZERhdGVdPVwicHJvcHNbJ2Rpc2FibGVkRGF0ZSddXCJcbiAgICAgIFtuekRyb3Bkb3duQ2xhc3NOYW1lXT1cInByb3BzWydkcm9wZG93bkNsYXNzTmFtZSddXCJcbiAgICAgIFtuekZvcm1hdF09XCJwcm9wc1snZm9ybWF0J11cIlxuICAgICAgW256SW5wdXRSZWFkT25seV09XCJwcm9wc1snaW5wdXRSZWFkT25seSddISFcIlxuICAgICAgW256TW9kZV09XCJwcm9wc1snbW9kZSddXCJcbiAgICAgIFtuelBvcHVwU3R5bGVdPVwicHJvcHNbJ3BvcHVwU3R5bGUnXVwiXG4gICAgICBbbnpTaXplXT1cInByb3BzWydzaXplJ11cIlxuICAgICAgW256U3RhdHVzXT1cInByb3BzWydzdGF0dXMnXSA/PyAnJ1wiXG4gICAgICBbbnpQbGFjZW1lbnRdPVwicHJvcHNbJ3BsYWNlbWVudCddXCJcbiAgICAgIFtuelJlbmRlckV4dHJhRm9vdGVyXT1cInByb3BzWydyZW5kZXJFeHRyYUZvb3RlciddXCJcbiAgICAgIFtuelN1ZmZpeEljb25dPVwicHJvcHNbJ3N1ZmZpeEljb24nXVwiXG4gICAgICBbbnpCb3JkZXJsZXNzXT1cInByb3BzWydib3JkZXJsZXNzJ11cIlxuICAgICAgW256SW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W5nZS1waWNrZXI+XG5cbiAgICA8bnotZGF0ZS1waWNrZXJcbiAgICAgICpuZ1N3aXRjaERlZmF1bHRcbiAgICAgIFtueklkXT1cImlkXCJcbiAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXG4gICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICBbbmdDbGFzc109XCJwcm9wc1snY2xhc3NOYW1lJ11cIlxuICAgICAgW256UGxhY2VIb2xkZXJdPVwicHJvcHMucGxhY2Vob2xkZXIgPz8gJydcIlxuICAgICAgW256QWxsb3dDbGVhcl09XCJwcm9wc1snYWxsb3dDbGVhciddISFcIlxuICAgICAgW256QXV0b0ZvY3VzXT1cInByb3BzWydhdXRvRm9jdXMnXSEhXCJcbiAgICAgIFtuekJhY2tkcm9wXT1cInByb3BzWydiYWNrZHJvcCddISFcIlxuICAgICAgW256RGVmYXVsdFBpY2tlclZhbHVlXT1cInByb3BzWydkZWZhdWx0UGlja2VyVmFsdWUnXVwiXG4gICAgICBbbnpEaXNhYmxlZERhdGVdPVwicHJvcHNbJ2Rpc2FibGVkRGF0ZSddXCJcbiAgICAgIFtuekRyb3Bkb3duQ2xhc3NOYW1lXT1cInByb3BzWydkcm9wZG93bkNsYXNzTmFtZSddXCJcbiAgICAgIFtuekZvcm1hdF09XCJwcm9wc1snZm9ybWF0J11cIlxuICAgICAgW256SW5wdXRSZWFkT25seV09XCJwcm9wc1snaW5wdXRSZWFkT25seSddISFcIlxuICAgICAgW256TW9kZV09XCJwcm9wc1snbW9kZSddXCJcbiAgICAgIFtuelBvcHVwU3R5bGVdPVwicHJvcHNbJ3BvcHVwU3R5bGUnXSFcIlxuICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXG4gICAgICBbbnpTdGF0dXNdPVwicHJvcHNbJ3N0YXR1cyddIVwiXG4gICAgICBbbnpQbGFjZW1lbnRdPVwicHJvcHNbJ3BsYWNlbWVudCddIVwiXG4gIC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pY2tlciBleHRlbmRzIEZpZWxkVHlwZTxGaWVsZFR5cGVDb25maWc+IHtcbiAgb3ZlcnJpZGUgZGVmYXVsdE9wdGlvbnMgPSB7XG4gICAgcHJvcHM6IHtcbiAgICAgIGFsbG93Q2xlYXI6IHRydWUsXG4gICAgICBiYWNrZHJvcDogZmFsc2UsXG4gICAgICBkZWZhdWx0UGlja2VyVmFsdWU6IG51bGwsXG4gICAgICBpbnB1dFJlYWRPbmx5OiBmYWxzZSxcbiAgICAgIG1vZGU6ICdkYXRlJyBhcyBjb25zdCxcbiAgICAgIHNpemU6ICdkZWZhdWx0JyBhcyBjb25zdCxcbiAgICAgIHN0YXR1czogJycgYXMgY29uc3QsXG4gICAgICBwbGFjZW1lbnQ6ICdib3R0b21MZWZ0JyBhcyBjb25zdCxcbiAgICAgIHBvcHVwU3R5bGU6IHt9LFxuICAgICAgYm9yZGVybGVzczogZmFsc2UsXG4gICAgICBpbmxpbmU6IGZhbHNlLFxuICAgICAgc2hvd1RvZGF5OiB0cnVlLFxuICAgICAgc2hvd05vdzogdHJ1ZSxcbiAgICAgIG56U2hvd1dlZWtOdW1iZXI6IGZhbHNlLFxuICAgICAgcmFuZ2VPcHRpb25zOiB7XG4gICAgICAgIHNlcGFyYXRvcjogJ34nXG4gICAgICB9XG4gICAgfVxuICB9O1xufVxuIl19
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLWV4dGVuc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvZXh0ZW5zaW9uL25neC1mb3JtbHktem9ycm8tYW50ZC1leHRlbnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './value-changes-extension';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvZXh0ZW5zaW9uL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdmFsdWUtY2hhbmdlcy1leHRlbnNpb24nO1xuIl19
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* 自动添加valueChanges函数
|
3
|
+
* @example
|
4
|
+
* fields = [
|
5
|
+
* {
|
6
|
+
* type: 'input',
|
7
|
+
* props: {
|
8
|
+
* valueChanges: (value, field) => {}
|
9
|
+
* }
|
10
|
+
* }
|
11
|
+
* ]
|
12
|
+
*/
|
13
|
+
export const valueChangesExtension = {
|
14
|
+
postPopulate(field) {
|
15
|
+
if (!field.formControl ||
|
16
|
+
!field.props?.['valueChanges'] ||
|
17
|
+
field.props['valueChanges'].observed) {
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
field.props['valueChanges'].observed = true;
|
21
|
+
field.formControl.valueChanges.subscribe(value => field.props['valueChanges'](value, field));
|
22
|
+
}
|
23
|
+
};
|
24
|
+
/**
|
25
|
+
* valueChanges函数配置
|
26
|
+
*/
|
27
|
+
export const valueChangesExtensionOption = {
|
28
|
+
name: 'value-changes',
|
29
|
+
extension: valueChangesExtension
|
30
|
+
};
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUtY2hhbmdlcy1leHRlbnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2V4dGVuc2lvbi92YWx1ZS1jaGFuZ2VzLWV4dGVuc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQTs7Ozs7Ozs7Ozs7R0FXRztBQUNILE1BQU0sQ0FBQyxNQUFNLHFCQUFxQixHQUFvQjtJQUNwRCxZQUFZLENBQUMsS0FBSztRQUNoQixJQUNFLENBQUMsS0FBSyxDQUFDLFdBQVc7WUFDbEIsQ0FBQyxLQUFLLENBQUMsS0FBSyxFQUFFLENBQUMsY0FBYyxDQUFDO1lBQzlCLEtBQUssQ0FBQyxLQUFLLENBQUMsY0FBYyxDQUFDLENBQUMsUUFBUSxFQUNwQztZQUNBLE9BQU87U0FDUjtRQUVELEtBQUssQ0FBQyxLQUFLLENBQUMsY0FBYyxDQUFDLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQztRQUM1QyxLQUFLLENBQUMsV0FBVyxDQUFDLFlBQVksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsS0FBTSxDQUFDLGNBQWMsQ0FBQyxDQUFDLEtBQUssRUFBRSxLQUFLLENBQUMsQ0FBQyxDQUFDO0lBQ2hHLENBQUM7Q0FDRixDQUFDO0FBRUY7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSwyQkFBMkIsR0FBRztJQUN6QyxJQUFJLEVBQUUsZUFBZTtJQUNyQixTQUFTLEVBQUUscUJBQXFCO0NBQ2pDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpb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