ngx-formly-zorro-antd 16.1.2 → 16.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/cascader/cascader.module.d.ts +4 -3
- package/cascader/cascader.type.d.ts +18 -5
- package/esm2022/cascader/cascader.module.mjs +5 -1
- package/esm2022/cascader/cascader.type.mjs +41 -21
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +8 -4
- package/esm2022/radio/radio.type.mjs +1 -3
- package/esm2022/ref-template/ngx-formly-zorro-antd-ref-template.mjs +5 -0
- package/esm2022/ref-template/public_api.mjs +3 -0
- package/esm2022/ref-template/ref-template.module.mjs +44 -0
- package/esm2022/ref-template/ref-template.type.mjs +89 -0
- package/esm2022/space/space.type.mjs +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +44 -21
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +0 -2
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +136 -0
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +7 -3
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +20 -14
- package/ref-template/index.d.ts +5 -0
- package/ref-template/public_api.d.ts +2 -0
- package/ref-template/ref-template.module.d.ts +11 -0
- package/ref-template/ref-template.type.d.ts +79 -0
@@ -3,10 +3,11 @@ import * as i1 from "./cascader.type";
|
|
3
3
|
import * as i2 from "@angular/common";
|
4
4
|
import * as i3 from "@angular/forms";
|
5
5
|
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
-
import * as i5 from "
|
7
|
-
import * as i6 from "
|
6
|
+
import * as i5 from "ngx-formly-zorro-antd/common";
|
7
|
+
import * as i6 from "ng-zorro-antd/cascader";
|
8
|
+
import * as i7 from "@ngx-formly/core";
|
8
9
|
export declare class FormlyNzCascaderModule {
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzCascaderModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCascaderModule, [typeof i1.FormlyFieldCascader], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCascaderModule, [typeof i1.FormlyFieldCascader], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.FormlyCommonModule, typeof i6.NzCascaderModule, typeof i7.FormlyModule], never>;
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzCascaderModule>;
|
12
13
|
}
|
@@ -3,7 +3,8 @@ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
3
3
|
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
4
|
import type { NzCascaderOption, NzShowSearchOptions, NzCascaderExpandTrigger, NzCascaderSize } from 'ng-zorro-antd/cascader';
|
5
5
|
import type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';
|
6
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
6
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
7
|
+
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
interface CascaderProps extends FormlyFieldProps {
|
9
10
|
/**
|
@@ -38,6 +39,7 @@ interface CascaderProps extends FormlyFieldProps {
|
|
38
39
|
* 自定义次级菜单展开图标
|
39
40
|
*/
|
40
41
|
expandIcon?: string | TemplateRef<void>;
|
42
|
+
expandIconName?: string;
|
41
43
|
/**
|
42
44
|
* 次级菜单的展开方式
|
43
45
|
* @default 'click'
|
@@ -52,6 +54,7 @@ interface CascaderProps extends FormlyFieldProps {
|
|
52
54
|
* 选择后展示的渲染模板
|
53
55
|
*/
|
54
56
|
labelRender?: TemplateRef<NzSafeAny> | null;
|
57
|
+
labelRenderName?: string;
|
55
58
|
/**
|
56
59
|
* 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。
|
57
60
|
*/
|
@@ -68,6 +71,7 @@ interface CascaderProps extends FormlyFieldProps {
|
|
68
71
|
* 当下拉列表为空时显示的内容
|
69
72
|
*/
|
70
73
|
notFoundContent?: string | TemplateRef<void>;
|
74
|
+
notFoundContentName?: string;
|
71
75
|
/**
|
72
76
|
* 选项的渲染模板
|
73
77
|
*/
|
@@ -75,6 +79,7 @@ interface CascaderProps extends FormlyFieldProps {
|
|
75
79
|
$implicit: NzCascaderOption;
|
76
80
|
index: number;
|
77
81
|
}> | null;
|
82
|
+
optionRenderName?: string;
|
78
83
|
/**
|
79
84
|
* 是否显示箭头
|
80
85
|
* @default true
|
@@ -103,6 +108,7 @@ interface CascaderProps extends FormlyFieldProps {
|
|
103
108
|
* 自定义的选择框后缀图标
|
104
109
|
*/
|
105
110
|
suffixIcon?: string | TemplateRef<void>;
|
111
|
+
suffixIconName?: string;
|
106
112
|
/**
|
107
113
|
* 选项的实际值的属性名
|
108
114
|
* @default 'value'
|
@@ -115,20 +121,21 @@ interface CascaderProps extends FormlyFieldProps {
|
|
115
121
|
/**
|
116
122
|
* 清除值时触发
|
117
123
|
*/
|
118
|
-
onClear?:
|
124
|
+
onClear?: FormlyAttributeEvent;
|
119
125
|
/**
|
120
126
|
* 菜单浮层的显示/隐藏
|
121
127
|
*/
|
122
|
-
visibleChange?:
|
128
|
+
visibleChange?: FormlyAttributeEvent<boolean>;
|
123
129
|
/**
|
124
130
|
* 值发生变化时触发
|
125
131
|
*/
|
126
|
-
selectionChange?:
|
132
|
+
selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;
|
127
133
|
}
|
128
134
|
export interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {
|
129
135
|
type: 'cascader' | Type<FormlyFieldCascader>;
|
130
136
|
}
|
131
137
|
export declare class FormlyFieldCascader extends FieldType<FieldTypeConfig<CascaderProps>> implements OnInit {
|
138
|
+
fieldTemplates: FormlyBoxTemplates;
|
132
139
|
defaultOptions: {
|
133
140
|
props: {
|
134
141
|
placeholder: string;
|
@@ -146,8 +153,14 @@ export declare class FormlyFieldCascader extends FieldType<FieldTypeConfig<Casca
|
|
146
153
|
cascaderOptions: never[];
|
147
154
|
};
|
148
155
|
};
|
156
|
+
constructor(fieldTemplates: FormlyBoxTemplates);
|
157
|
+
get nzNotFoundContent(): TemplateRef<any> | undefined;
|
158
|
+
get nzExpandIcon(): TemplateRef<any> | undefined;
|
159
|
+
get nzLabelRender(): TemplateRef<any> | undefined;
|
160
|
+
get nzOptionRender(): TemplateRef<any> | undefined;
|
161
|
+
get nzSuffixIcon(): TemplateRef<any> | undefined;
|
149
162
|
ngOnInit(): void;
|
150
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCascader,
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCascader, [{ optional: true; }]>;
|
151
164
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCascader, "formly-field-cascader", never, {}, {}, never, never, false, never>;
|
152
165
|
}
|
153
166
|
export {};
|
@@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common';
|
|
3
3
|
import { FormlyModule } from '@ngx-formly/core';
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
5
5
|
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
6
|
+
import { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';
|
6
7
|
import { NzCascaderModule } from 'ng-zorro-antd/cascader';
|
7
8
|
import { FormlyFieldCascader } from './cascader.type';
|
8
9
|
import * as i0 from "@angular/core";
|
@@ -12,10 +13,12 @@ export class FormlyNzCascaderModule {
|
|
12
13
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
|
13
14
|
ReactiveFormsModule,
|
14
15
|
FormlyNzFormFieldModule,
|
16
|
+
FormlyCommonModule,
|
15
17
|
NzCascaderModule, i1.FormlyModule] }); }
|
16
18
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
|
17
19
|
ReactiveFormsModule,
|
18
20
|
FormlyNzFormFieldModule,
|
21
|
+
FormlyCommonModule,
|
19
22
|
NzCascaderModule,
|
20
23
|
FormlyModule.forChild({
|
21
24
|
types: [
|
@@ -35,6 +38,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
35
38
|
CommonModule,
|
36
39
|
ReactiveFormsModule,
|
37
40
|
FormlyNzFormFieldModule,
|
41
|
+
FormlyCommonModule,
|
38
42
|
NzCascaderModule,
|
39
43
|
FormlyModule.forChild({
|
40
44
|
types: [
|
@@ -48,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
48
52
|
]
|
49
53
|
}]
|
50
54
|
}] });
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzY2FkZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jYXNjYWRlci9zcmMvY2FzY2FkZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEV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N0aXZlRm9ybXNNb2R1bGUsXG4gICAgRm9ybWx5TnpGb3JtRmllbGRNb2R1bGUsXG4gICAgRm9ybWx5Q29tbW9uTW9kdWxlLFxuICAgIE56Q2FzY2FkZXJNb2R1bGUsXG5cbiAgICBGb3JtbHlNb2R1bGUuZm9yQ2hpbGQoe1xuICAgICAgdHlwZXM6IFtcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICdjYXNjYWRlcicsXG4gICAgICAgICAgY29tcG9uZW50OiBGb3JtbHlGaWVsZENhc2NhZGVyLFxuICAgICAgICAgIHdyYXBwZXJzOiBbJ2Zvcm0tZmllbGQnXVxuICAgICAgICB9XG4gICAgICBdXG4gICAgfSlcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlOekNhc2NhZGVyTW9kdWxlIHt9XG4iXX0=
|
@@ -1,13 +1,16 @@
|
|
1
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
1
|
+
import { Component, Optional, ChangeDetectionStrategy } from '@angular/core';
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import * as i0 from "@angular/core";
|
4
|
-
import * as i1 from "
|
5
|
-
import * as i2 from "@angular/
|
6
|
-
import * as i3 from "
|
7
|
-
import * as i4 from "
|
5
|
+
import * as i1 from "ngx-formly-zorro-antd/common";
|
6
|
+
import * as i2 from "@angular/common";
|
7
|
+
import * as i3 from "@angular/forms";
|
8
|
+
import * as i4 from "ng-zorro-antd/cascader";
|
9
|
+
import * as i5 from "@ngx-formly/core";
|
8
10
|
export class FormlyFieldCascader extends FieldType {
|
9
|
-
constructor() {
|
10
|
-
super(
|
11
|
+
constructor(fieldTemplates) {
|
12
|
+
super();
|
13
|
+
this.fieldTemplates = fieldTemplates;
|
11
14
|
this.defaultOptions = {
|
12
15
|
props: {
|
13
16
|
placeholder: '请选择',
|
@@ -26,13 +29,28 @@ export class FormlyFieldCascader extends FieldType {
|
|
26
29
|
}
|
27
30
|
};
|
28
31
|
}
|
32
|
+
get nzNotFoundContent() {
|
33
|
+
return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');
|
34
|
+
}
|
35
|
+
get nzExpandIcon() {
|
36
|
+
return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');
|
37
|
+
}
|
38
|
+
get nzLabelRender() {
|
39
|
+
return resolveTplName(this.props, this.fieldTemplates, 'labelRender');
|
40
|
+
}
|
41
|
+
get nzOptionRender() {
|
42
|
+
return resolveTplName(this.props, this.fieldTemplates, 'optionRender');
|
43
|
+
}
|
44
|
+
get nzSuffixIcon() {
|
45
|
+
return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');
|
46
|
+
}
|
29
47
|
ngOnInit() {
|
30
48
|
const options = this.props['cascaderOptions'];
|
31
49
|
if (!options || options.length === 0) {
|
32
50
|
this.props['cascaderOptions'] = this.props.options;
|
33
51
|
}
|
34
52
|
}
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCascader, deps:
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCascader, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
36
54
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
|
37
55
|
#cascader
|
38
56
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
@@ -45,27 +63,27 @@ export class FormlyFieldCascader extends FieldType {
|
|
45
63
|
[nzChangeOn]="props['changeOn']"
|
46
64
|
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
47
65
|
[nzColumnClassName]="props['columnClassName']"
|
48
|
-
[nzExpandIcon]="
|
66
|
+
[nzExpandIcon]="nzExpandIcon!"
|
49
67
|
[nzExpandTrigger]="props['expandTrigger']!"
|
50
68
|
[nzLabelProperty]="props['labelProperty']"
|
51
|
-
[nzLabelRender]="
|
69
|
+
[nzLabelRender]="nzLabelRender ?? null"
|
52
70
|
[nzLoadData]="props['loadData']"
|
53
71
|
[nzMenuClassName]="props['menuClassName']"
|
54
72
|
[nzMenuStyle]="props['menuStyle'] ?? null"
|
55
|
-
[nzNotFoundContent]="
|
56
|
-
[nzOptionRender]="
|
73
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
74
|
+
[nzOptionRender]="nzOptionRender ?? null"
|
57
75
|
[nzOptions]="props['cascaderOptions'] ?? null"
|
58
76
|
[nzShowArrow]="props['showArrow']!!"
|
59
77
|
[nzShowInput]="props['showInput']!!"
|
60
78
|
[nzShowSearch]="props['showSearch']!!"
|
61
79
|
[nzSize]="props['size']!"
|
62
80
|
[nzStatus]="props['status'] ?? ''"
|
63
|
-
[nzSuffixIcon]="
|
81
|
+
[nzSuffixIcon]="nzSuffixIcon!"
|
64
82
|
[nzValueProperty]="props['valueProperty']!"
|
65
83
|
(nzClear)="props['onClear'] && props['onClear'](field)"
|
66
84
|
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
67
85
|
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
68
|
-
></nz-cascader>`, isInline: true, dependencies: [{ kind: "directive", type:
|
86
|
+
></nz-cascader>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.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: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
69
87
|
}
|
70
88
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCascader, decorators: [{
|
71
89
|
type: Component,
|
@@ -83,22 +101,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
83
101
|
[nzChangeOn]="props['changeOn']"
|
84
102
|
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
85
103
|
[nzColumnClassName]="props['columnClassName']"
|
86
|
-
[nzExpandIcon]="
|
104
|
+
[nzExpandIcon]="nzExpandIcon!"
|
87
105
|
[nzExpandTrigger]="props['expandTrigger']!"
|
88
106
|
[nzLabelProperty]="props['labelProperty']"
|
89
|
-
[nzLabelRender]="
|
107
|
+
[nzLabelRender]="nzLabelRender ?? null"
|
90
108
|
[nzLoadData]="props['loadData']"
|
91
109
|
[nzMenuClassName]="props['menuClassName']"
|
92
110
|
[nzMenuStyle]="props['menuStyle'] ?? null"
|
93
|
-
[nzNotFoundContent]="
|
94
|
-
[nzOptionRender]="
|
111
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
112
|
+
[nzOptionRender]="nzOptionRender ?? null"
|
95
113
|
[nzOptions]="props['cascaderOptions'] ?? null"
|
96
114
|
[nzShowArrow]="props['showArrow']!!"
|
97
115
|
[nzShowInput]="props['showInput']!!"
|
98
116
|
[nzShowSearch]="props['showSearch']!!"
|
99
117
|
[nzSize]="props['size']!"
|
100
118
|
[nzStatus]="props['status'] ?? ''"
|
101
|
-
[nzSuffixIcon]="
|
119
|
+
[nzSuffixIcon]="nzSuffixIcon!"
|
102
120
|
[nzValueProperty]="props['valueProperty']!"
|
103
121
|
(nzClear)="props['onClear'] && props['onClear'](field)"
|
104
122
|
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
@@ -106,5 +124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
106
124
|
></nz-cascader>`,
|
107
125
|
changeDetection: ChangeDetectionStrategy.OnPush
|
108
126
|
}]
|
109
|
-
}]
|
110
|
-
|
127
|
+
}], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
|
128
|
+
type: Optional
|
129
|
+
}] }]; } });
|
130
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzY2FkZXIudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2FzY2FkZXIvc3JjL2Nhc2NhZGVyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFFVCxRQUFRLEVBRVIsdUJBQXVCLEVBRXhCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxTQUFTLEVBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFXOUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDhCQUE4QixDQUFDOzs7Ozs7O0FBOExsRixNQUFNLE9BQU8sbUJBQ1gsU0FBU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nMgfHwgb3B0aW9ucy5sZW5ndGggPT09IDApIHtcbiAgICAgIHRoaXMucHJvcHNbJ2Nhc2NhZGVyT3B0aW9ucyddID0gdGhpcy5wcm9wcy5vcHRpb25zIGFzIE56U2FmZUFueTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -23,6 +23,7 @@ import { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';
|
|
23
23
|
import { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';
|
24
24
|
import { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';
|
25
25
|
import { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';
|
26
|
+
import { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';
|
26
27
|
import * as i0 from "@angular/core";
|
27
28
|
export class FormlyNgAntdModule {
|
28
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNgAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
@@ -49,7 +50,8 @@ export class FormlyNgAntdModule {
|
|
49
50
|
FormlyNzCardWrapperModule,
|
50
51
|
FormlyNzButtonModule,
|
51
52
|
FormlyNzGridModule,
|
52
|
-
FormlyNzSpaceModule
|
53
|
+
FormlyNzSpaceModule,
|
54
|
+
FormlyRefTemplateModule] }); }
|
53
55
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyNzFormFieldModule,
|
54
56
|
FormlyCommonModule,
|
55
57
|
FormlyNzInputModule,
|
@@ -73,7 +75,8 @@ export class FormlyNgAntdModule {
|
|
73
75
|
FormlyNzCardWrapperModule,
|
74
76
|
FormlyNzButtonModule,
|
75
77
|
FormlyNzGridModule,
|
76
|
-
FormlyNzSpaceModule
|
78
|
+
FormlyNzSpaceModule,
|
79
|
+
FormlyRefTemplateModule] }); }
|
77
80
|
}
|
78
81
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNgAntdModule, decorators: [{
|
79
82
|
type: NgModule,
|
@@ -102,8 +105,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
102
105
|
FormlyNzCardWrapperModule,
|
103
106
|
FormlyNzButtonModule,
|
104
107
|
FormlyNzGridModule,
|
105
|
-
FormlyNzSpaceModule
|
108
|
+
FormlyNzSpaceModule,
|
109
|
+
FormlyRefTemplateModule
|
106
110
|
]
|
107
111
|
}]
|
108
112
|
}] });
|
109
|
-
//# sourceMappingURL=data:application/json;base64,
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWktbmctem9ycm8tYW50ZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3NyYy9saWIvdWktbmctem9ycm8tYW50ZC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUMzRSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUNsRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNsRSxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUMvRSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN4R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vZHVsZSxcbiAgICBGb3JtbHlOeklucHV0TW9kdWxlLFxuICAgIEZvcm1seU56SW5wdXROdW1iZXJNb2R1bGUsXG4gICAgRm9ybWx5TnpJbnB1dEdyb3VwTW9kdWxlLFxuICAgIEZvcm1seU56VGV4dGFyZWFNb2R1bGUsXG4gICAgRm9ybWx5TnpSYWRpb01vZHVsZSxcbiAgICBGb3JtbHlOekNoZWNrYm94TW9kdWxlLFxuICAgIEZvcm1seU56U2VsZWN0TW9kdWxlLFxuICAgIEZvcm1seU56U3dpdGNoTW9kdWxlLFxuICAgIEZvcm1seU56Q2FzY2FkZXJNb2R1bGUsXG4gICAgRm9ybWx5TnpEYXRlcGlja2VyTW9kdWxlLFxuICAgIEZvcm1seU56UmF0ZU1vZHVsZSxcbiAgICBGb3JtbHlOelNsaWRlck1vZHVsZSxcbiAgICBGb3JtbHlOelRpbWVwaWNrZXJNb2R1bGUsXG4gICAgRm9ybWx5TnpUcmFuc2Zlck1vZHVsZSxcbiAgICBGb3JtbHlOelRyZWVTZWxlY3RNb2R1bGUsXG4gICAgRm9ybWx5TnpVcGxvYWRNb2R1bGUsXG4gICAgRm9ybWx5TnpUYWJzTW9kdWxlLFxuICAgIEZvcm1seU56Q2FyZE1vZHVsZSxcbiAgICBGb3JtbHlOekNhcmRXcmFwcGVyTW9kdWxlLFxuICAgIEZvcm1seU56QnV0dG9uTW9kdWxlLFxuICAgIEZvcm1seU56R3JpZE1vZHVsZSxcbiAgICBGb3JtbHlOelNwYWNlTW9kdWxlLFxuICAgIEZvcm1seVJlZlRlbXBsYXRlTW9kdWxlXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5TmdBbnRkTW9kdWxlIHt9XG4iXX0=
|
@@ -24,7 +24,6 @@ export class FormlyFieldRadio extends FieldType {
|
|
24
24
|
[nzName]="field.name ?? null"
|
25
25
|
[nzSize]="props['size']!"
|
26
26
|
[nzButtonStyle]="props['buttonStyle']!"
|
27
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
28
27
|
>
|
29
28
|
<ng-container *ngIf="props.type !== 'button'; else button">
|
30
29
|
<label
|
@@ -63,7 +62,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
63
62
|
[nzName]="field.name ?? null"
|
64
63
|
[nzSize]="props['size']!"
|
65
64
|
[nzButtonStyle]="props['buttonStyle']!"
|
66
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
67
65
|
>
|
68
66
|
<ng-container *ngIf="props.type !== 'button'; else button">
|
69
67
|
<label
|
@@ -93,4 +91,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
93
91
|
changeDetection: ChangeDetectionStrategy.OnPush
|
94
92
|
}]
|
95
93
|
}] });
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8udHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvcmFkaW8vc3JjL3JhZGlvLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLGtCQUFrQixDQUFDOzs7Ozs7O0FBb0U5RCxNQUFNLE9BQU8sZ0JBQWlCLFNBQVEsU0FBc0M7SUFyQzVFOztRQXNDVyxtQkFBYyxHQUFHO1lBQ3hCLEtBQUssRUFBRTtnQkFDTCxJQUFJLEVBQUUsU0FBa0I7Z0JBQ3hCLFdBQVcsRUFBRSxTQUFrQjthQUNoQztTQUNGLENBQUM7S0FDSDs4R0FQWSxnQkFBZ0I7a0dBQWhCLGdCQUFnQix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XBlICE9PSAnYnV0dG9uJzsgZWxzZSBidXR0b25cIj5cbiAgICAgICAgPGxhYmVsXG4gICAgICAgICAgKm5nRm9yPVwibGV0IG9wdGlvbiBvZiBwcm9wcy5vcHRpb25zIHwgZm9ybWx5U2VsZWN0T3B0aW9uczogZmllbGQgfCBhc3luYzsgbGV0IGkgPSBpbmRleFwiXG4gICAgICAgICAgW2lkXT1cImlkICsgJ18nICsgaVwiXG4gICAgICAgICAgW256RGlzYWJsZWRdPVwib3B0aW9uLmRpc2FibGVkID09PSB0cnVlXCJcbiAgICAgICAgICBbbnpWYWx1ZV09XCJvcHRpb24udmFsdWVcIlxuICAgICAgICAgIG56LXJhZGlvXG4gICAgICAgID5cbiAgICAgICAgICB7eyBvcHRpb24ubGFiZWwgfX1cbiAgICAgICAgPC9sYWJlbD5cbiAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICA8bmctdGVtcGxhdGUgI2J1dHRvbj5cbiAgICAgICAgPGxhYmVsXG4gICAgICAgICAgKm5nRm9yPVwibGV0IG9wdGlvbiBvZiBwcm9wcy5vcHRpb25zIHwgZm9ybWx5U2VsZWN0T3B0aW9uczogZmllbGQgfCBhc3luYzsgbGV0IGkgPSBpbmRleFwiXG4gICAgICAgICAgW2lkXT1cImlkICsgJ18nICsgaVwiXG4gICAgICAgICAgW256RGlzYWJsZWRdPVwib3B0aW9uLmRpc2FibGVkID09PSB0cnVlXCJcbiAgICAgICAgICBbbnpWYWx1ZV09XCJvcHRpb24udmFsdWVcIlxuICAgICAgICAgIG56LXJhZGlvLWJ1dHRvblxuICAgICAgICA+XG4gICAgICAgICAge3sgb3B0aW9uLmxhYmVsIH19XG4gICAgICAgIDwvbGFiZWw+XG4gICAgICA8L25nLXRlbXBsYXRlPlxuICAgIDwvbnotcmFkaW8tZ3JvdXA+XG4gIGAsXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seUZpZWxkUmFkaW8gZXh0ZW5kcyBGaWVsZFR5cGU8RmllbGRUeXBlQ29uZmlnPFJhZGlvUHJvcHM+PiB7XG4gIG92ZXJyaWRlIGRlZmF1bHRPcHRpb25zID0ge1xuICAgIHByb3BzOiB7XG4gICAgICBzaXplOiAnZGVmYXVsdCcgYXMgY29uc3QsXG4gICAgICBidXR0b25TdHlsZTogJ291dGxpbmUnIGFzIGNvbnN0XG4gICAgfVxuICB9O1xufVxuIl19
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLXJlZi10ZW1wbGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvcmVmLXRlbXBsYXRlL3NyYy9uZ3gtZm9ybWx5LXpvcnJvLWFudGQtcmVmLXRlbXBsYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export { FormlyRefTemplateModule } from './ref-template.module';
|
2
|
+
export { FormlyFieldRefTemplate } from './ref-template.type';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvcmVmLXRlbXBsYXRlL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxzQkFBc0IsRUFBZ0MsTUFBTSxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZvcm1seVJlZlRlbXBsYXRlTW9kdWxlIH0gZnJvbSAnLi9yZWYtdGVtcGxhdGUubW9kdWxlJztcbmV4cG9ydCB7IEZvcm1seUZpZWxkUmVmVGVtcGxhdGUsIEZvcm1seVJlZlRlbXBsYXRlRmllbGRDb25maWcgfSBmcm9tICcuL3JlZi10ZW1wbGF0ZS50eXBlJztcbiJdfQ==
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
4
|
+
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
5
|
+
import { TrustedHtmlPipe } from '@pkt/ng.core';
|
6
|
+
import { FormlyFieldRefTemplate } from './ref-template.type';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
import * as i1 from "@ngx-formly/core";
|
9
|
+
export class FormlyRefTemplateModule {
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, declarations: [FormlyFieldRefTemplate], imports: [CommonModule,
|
12
|
+
NzOutletModule,
|
13
|
+
TrustedHtmlPipe, i1.FormlyModule] }); }
|
14
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, imports: [CommonModule,
|
15
|
+
NzOutletModule,
|
16
|
+
FormlyModule.forChild({
|
17
|
+
types: [
|
18
|
+
{
|
19
|
+
name: 'ref-template',
|
20
|
+
component: FormlyFieldRefTemplate
|
21
|
+
}
|
22
|
+
]
|
23
|
+
})] }); }
|
24
|
+
}
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, decorators: [{
|
26
|
+
type: NgModule,
|
27
|
+
args: [{
|
28
|
+
declarations: [FormlyFieldRefTemplate],
|
29
|
+
imports: [
|
30
|
+
CommonModule,
|
31
|
+
NzOutletModule,
|
32
|
+
TrustedHtmlPipe,
|
33
|
+
FormlyModule.forChild({
|
34
|
+
types: [
|
35
|
+
{
|
36
|
+
name: 'ref-template',
|
37
|
+
component: FormlyFieldRefTemplate
|
38
|
+
}
|
39
|
+
]
|
40
|
+
})
|
41
|
+
]
|
42
|
+
}]
|
43
|
+
}] });
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmLXRlbXBsYXRlLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvcmVmLXRlbXBsYXRlL3NyYy9yZWYtdGVtcGxhdGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsY0FBYyxFQ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91dGxldE1vZHVsZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvY29yZS9vdXRsZXQnO1xuXG5pbXBvcnQgeyBUcnVzdGVkSHRtbFBpcGUgfSBmcm9tICdAcGt0L25nLmNvcmUnO1xuaW1wb3J0IHsgRm9ybWx5RmllbGRSZWZUZW1wbGF0ZSB9IGZyb20gJy4vcmVmLXRlbXBsYXRlLnR5cGUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtGb3JtbHlGaWVsZFJlZlRlbXBsYXRlXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBOek91dGxldE1vZHVsZSxcbiAgICBUcnVzdGVkSHRtbFBpcGUsXG4gICAgRm9ybWx5TW9kdWxlLmZvckNoaWxkKHtcbiAgICAgIHR5cGVzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBuYW1lOiAncmVmLXRlbXBsYXRlJyxcbiAgICAgICAgICBjb21wb25lbnQ6IEZvcm1seUZpZWxkUmVmVGVtcGxhdGVcbiAgICAgICAgfVxuICAgICAgXVxuICAgIH0pXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5UmVmVGVtcGxhdGVNb2R1bGUge31cbiJdfQ==
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { Component, Optional, ChangeDetectionStrategy } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import { FormlyBoxTemplates, resolveTplName } 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/core/outlet";
|
7
|
+
import * as i3 from "@pkt/ng.core";
|
8
|
+
/**
|
9
|
+
* 引用模板,支持HTML,TemplateRef对象,或者NamedTemplate
|
10
|
+
* @example
|
11
|
+
*
|
12
|
+
* 用法1: 使用NamedTemplate(推荐)
|
13
|
+
*
|
14
|
+
* html
|
15
|
+
* ```html
|
16
|
+
* <formly-form formly-box>
|
17
|
+
* <ng-template named="test"></ng-template>
|
18
|
+
* </formly-form>
|
19
|
+
* ```
|
20
|
+
*
|
21
|
+
* 配置
|
22
|
+
* ```js
|
23
|
+
* {
|
24
|
+
* type: 'ref-template',
|
25
|
+
* props: {
|
26
|
+
* refName: 'test'
|
27
|
+
* }
|
28
|
+
* }
|
29
|
+
* ```
|
30
|
+
*
|
31
|
+
* 用法2:TemplateRef对象
|
32
|
+
* ```html
|
33
|
+
* <ng-template #test2></ng-template>
|
34
|
+
* ```
|
35
|
+
*
|
36
|
+
* 配置
|
37
|
+
* @viewChild('test2') test2: TemplateRef<{}>;
|
38
|
+
*
|
39
|
+
* ```js
|
40
|
+
* {
|
41
|
+
* type: 'ref-template',
|
42
|
+
* props: {
|
43
|
+
* ref: this.test2
|
44
|
+
* }
|
45
|
+
* }
|
46
|
+
* ```
|
47
|
+
*
|
48
|
+
* 用法3: 使用html
|
49
|
+
*
|
50
|
+
* 配置
|
51
|
+
* ```js
|
52
|
+
* {
|
53
|
+
* type: 'ref-template',
|
54
|
+
* props: {
|
55
|
+
* ref: '<div>test text</div>'
|
56
|
+
* }
|
57
|
+
* }
|
58
|
+
* ```
|
59
|
+
*/
|
60
|
+
export class FormlyFieldRefTemplate extends FieldType {
|
61
|
+
constructor(fieldTemplates) {
|
62
|
+
super();
|
63
|
+
this.fieldTemplates = fieldTemplates;
|
64
|
+
}
|
65
|
+
get ref() {
|
66
|
+
return resolveTplName(this.props, this.fieldTemplates, 'ref');
|
67
|
+
}
|
68
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRefTemplate, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
69
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldRefTemplate, selector: "formly-ref-template", usesInheritance: true, ngImport: i0, template: `
|
70
|
+
<ng-container *nzStringTemplateOutlet="ref; context: { $implicit: field, props: props }">
|
71
|
+
<div [innerHTML]="$any(ref) | trustedHtml"></div>
|
72
|
+
</ng-container>
|
73
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "pipe", type: i3.TrustedHtmlPipe, name: "trustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
74
|
+
}
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRefTemplate, decorators: [{
|
76
|
+
type: Component,
|
77
|
+
args: [{
|
78
|
+
selector: 'formly-ref-template',
|
79
|
+
template: `
|
80
|
+
<ng-container *nzStringTemplateOutlet="ref; context: { $implicit: field, props: props }">
|
81
|
+
<div [innerHTML]="$any(ref) | trustedHtml"></div>
|
82
|
+
</ng-container>
|
83
|
+
`,
|
84
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
85
|
+
}]
|
86
|
+
}], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
|
87
|
+
type: Optional
|
88
|
+
}] }]; } });
|
89
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmLXRlbXBsYXRlLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3JlZi10ZW1wbGF0ZS9zcmMvcmVmLXRlbXBsYXRlLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBZSxRQUFRLEVBQVEsdUJBQXVCLEVBQUUsTUFBTSxlQUFlLENBQUM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3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlGaWVsZFJlZlRlbXBsYXRlIGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZzxSZWZUZW1wbGF0ZVByb3BzPj4ge1xuICBjb25zdHJ1Y3RvcihAT3B0aW9uYWwoKSBwdWJsaWMgZmllbGRUZW1wbGF0ZXM6IEZvcm1seUJveFRlbXBsYXRlcykge1xuICAgIHN1cGVyKCk7XG4gIH1cblxuICBnZXQgcmVmKCkge1xuICAgIHJldHVybiByZXNvbHZlVHBsTmFtZSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAncmVmJyk7XG4gIH1cbn1cbiJdfQ==
|
@@ -60,4 +60,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
60
60
|
}], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
|
61
61
|
type: Optional
|
62
62
|
}] }]; } });
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhY2UudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc3BhY2Uvc3JjL3NwYWNlLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBcUIsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hHLE9BQU8sRUFBRSxTQUFTLEVBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFFOUQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLGNBQWMsRUFBRSxNQUFNLDhCQUE4QixDQUFDOzs7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