ng-zorro-antd-extension 18.1.3 → 18.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/configurable-query/controls/abstract.control.d.ts +2 -1
  2. package/dynamic-form/config/dynamic-form-config.d.ts +18 -0
  3. package/dynamic-form/controls/abstract.control.d.ts +11 -0
  4. package/dynamic-form/controls/date-picker.control.d.ts +6 -0
  5. package/dynamic-form/controls/input.control.d.ts +6 -0
  6. package/dynamic-form/controls/range-picker.control.d.ts +6 -0
  7. package/dynamic-form/controls/select.control.d.ts +6 -0
  8. package/dynamic-form/controls/template.control.d.ts +6 -0
  9. package/dynamic-form/dynamic-form-item/dynamic-form-item.component.d.ts +12 -0
  10. package/dynamic-form/dynamic-form.component.d.ts +5 -0
  11. package/dynamic-form/dynamic-form.module.d.ts +23 -0
  12. package/dynamic-form/public-api.d.ts +3 -1
  13. package/dynamic-form/wrapper/control/abstract-control-wrapper.d.ts +12 -0
  14. package/dynamic-form/wrapper/control/built-in-control-wrapper.d.ts +7 -0
  15. package/dynamic-form/wrapper/item/abstract-item-wrapper.d.ts +14 -0
  16. package/dynamic-form/wrapper/item/built-in-item-wrapper.d.ts +6 -0
  17. package/dynamic-form/wrapper/label/abstract-label-wrapper.d.ts +5 -0
  18. package/dynamic-form/wrapper/label/built-in-label-wrapper.d.ts +6 -0
  19. package/esm2022/configurable-query/configurable-query-item/configurable-query-item.component.mjs +4 -3
  20. package/esm2022/configurable-query/controls/abstract.control.mjs +4 -1
  21. package/esm2022/configurable-query/controls/date-picker.control.mjs +6 -5
  22. package/esm2022/configurable-query/controls/input.control.mjs +6 -5
  23. package/esm2022/configurable-query/controls/range-picker.control.mjs +6 -5
  24. package/esm2022/configurable-query/controls/select.control.mjs +6 -5
  25. package/esm2022/configurable-query/controls/template.control.mjs +6 -5
  26. package/esm2022/dynamic-form/config/dynamic-form-config.mjs +47 -0
  27. package/esm2022/dynamic-form/controls/abstract.control.mjs +17 -0
  28. package/esm2022/dynamic-form/controls/date-picker.control.mjs +20 -0
  29. package/esm2022/dynamic-form/controls/input.control.mjs +15 -0
  30. package/esm2022/dynamic-form/controls/range-picker.control.mjs +15 -0
  31. package/esm2022/dynamic-form/controls/select.control.mjs +49 -0
  32. package/esm2022/dynamic-form/controls/template.control.mjs +30 -0
  33. package/esm2022/dynamic-form/dynamic-form-item/dynamic-form-item.component.mjs +31 -0
  34. package/esm2022/dynamic-form/dynamic-form.component.mjs +45 -0
  35. package/esm2022/dynamic-form/dynamic-form.module.mjs +72 -0
  36. package/esm2022/dynamic-form/public-api.mjs +4 -2
  37. package/esm2022/dynamic-form/wrapper/control/abstract-control-wrapper.mjs +30 -0
  38. package/esm2022/dynamic-form/wrapper/control/built-in-control-wrapper.mjs +32 -0
  39. package/esm2022/dynamic-form/wrapper/item/abstract-item-wrapper.mjs +44 -0
  40. package/esm2022/dynamic-form/wrapper/item/built-in-item-wrapper.mjs +27 -0
  41. package/esm2022/dynamic-form/wrapper/label/abstract-label-wrapper.mjs +10 -0
  42. package/esm2022/dynamic-form/wrapper/label/built-in-label-wrapper.mjs +17 -0
  43. package/esm2022/print/nzx-print-v.component.mjs +21 -10
  44. package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +26 -17
  45. package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs.map +1 -1
  46. package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs +417 -8
  47. package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs.map +1 -1
  48. package/fesm2022/ng-zorro-antd-extension-print.mjs +19 -9
  49. package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
  50. package/package.json +1 -1
  51. package/print/nzx-print-v.component.d.ts +3 -1
  52. package/dynamic-form/nzx-dynamic-form.module.d.ts +0 -9
  53. package/esm2022/dynamic-form/nzx-dynamic-form.module.mjs +0 -23
@@ -1,6 +1,380 @@
1
- import { CommonModule } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { NgModule } from '@angular/core';
2
+ import { ViewContainerRef, Directive, ViewChild, Component, HostBinding, Input, Injectable, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i1 from 'ng-zorro-antd/grid';
4
+ import * as i3 from 'ng-zorro-antd/form';
5
+ import { NzFormModule } from 'ng-zorro-antd/form';
6
+ import * as i1$1 from 'ng-zorro-antd/input';
7
+ import { NzInputModule } from 'ng-zorro-antd/input';
8
+ import * as i1$2 from '@angular/common';
9
+ import { CommonModule } from '@angular/common';
10
+ import * as i1$3 from 'ng-zorro-antd/date-picker';
11
+ import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
12
+ import * as i2 from '@angular/forms';
13
+ import { ReactiveFormsModule } from '@angular/forms';
14
+ import * as i3$1 from 'ng-zorro-antd/select';
15
+ import { NzSelectModule } from 'ng-zorro-antd/select';
16
+
17
+ class NzxDFAbstractItemWrapper {
18
+ constructor(nzxDFConfig) {
19
+ this.nzxDFConfig = nzxDFConfig;
20
+ }
21
+ ngOnInit() {
22
+ this.renderLabel();
23
+ this.renderControl();
24
+ }
25
+ renderLabel() {
26
+ this.labelWrapperTemplateView.clear();
27
+ const labelWrapperComponent = this.nzxDFConfig.getLabelWrapper('builtin-label');
28
+ if (labelWrapperComponent) {
29
+ const componentRef = this.labelWrapperTemplateView.createComponent(labelWrapperComponent);
30
+ }
31
+ else {
32
+ throw `label:: is invalidate`;
33
+ }
34
+ }
35
+ renderControl() {
36
+ this.controlWrapperTemplateView.clear();
37
+ const controlWrapperComponent = this.nzxDFConfig.getControlWrapper('builtin-control');
38
+ if (controlWrapperComponent) {
39
+ const componentRef = this.controlWrapperTemplateView.createComponent(controlWrapperComponent);
40
+ }
41
+ else {
42
+ throw `label:: is invalidate`;
43
+ }
44
+ }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractItemWrapper, deps: [{ token: NzxDFConfigService }], target: i0.ɵɵFactoryTarget.Directive }); }
46
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFAbstractItemWrapper, viewQueries: [{ propertyName: "labelWrapperTemplateView", first: true, predicate: ["dfLabelWrapperTpl"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "controlWrapperTemplateView", first: true, predicate: ["dfControlWrapperTpl"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0 }); }
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractItemWrapper, decorators: [{
49
+ type: Directive
50
+ }], ctorParameters: () => [{ type: NzxDFConfigService }], propDecorators: { labelWrapperTemplateView: [{
51
+ type: ViewChild,
52
+ args: ['dfLabelWrapperTpl', { static: true, read: ViewContainerRef }]
53
+ }], controlWrapperTemplateView: [{
54
+ type: ViewChild,
55
+ args: ['dfControlWrapperTpl', { static: true, read: ViewContainerRef }]
56
+ }] } });
57
+
58
+ class NzxDFBuiltInItemWrapperComponent extends NzxDFAbstractItemWrapper {
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInItemWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
60
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFBuiltInItemWrapperComponent, selector: "nzx-built-in-item-wrapper", usesInheritance: true, ngImport: i0, template: `
61
+ <nz-form-item>
62
+ <ng-template #dfLabelWrapperTpl></ng-template>
63
+ <ng-template #dfControlWrapperTpl></ng-template>
64
+ </nz-form-item>
65
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }] }); }
66
+ }
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInItemWrapperComponent, decorators: [{
68
+ type: Component,
69
+ args: [{
70
+ selector: 'nzx-built-in-item-wrapper',
71
+ template: `
72
+ <nz-form-item>
73
+ <ng-template #dfLabelWrapperTpl></ng-template>
74
+ <ng-template #dfControlWrapperTpl></ng-template>
75
+ </nz-form-item>
76
+ `,
77
+ }]
78
+ }] });
79
+
80
+ class NzxDFAbstractLabelWrapper {
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractLabelWrapper, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
82
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFAbstractLabelWrapper, ngImport: i0 }); }
83
+ }
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractLabelWrapper, decorators: [{
85
+ type: Directive
86
+ }] });
87
+
88
+ class NzxDFBuiltInLabelWrapperComponent extends NzxDFAbstractLabelWrapper {
89
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInLabelWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFBuiltInLabelWrapperComponent, selector: "nzx-built-in-label-wrapper", usesInheritance: true, ngImport: i0, template: ` <nz-form-label>我是label</nz-form-label> `, isInline: true, dependencies: [{ kind: "directive", type: i1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }] }); }
91
+ }
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInLabelWrapperComponent, decorators: [{
93
+ type: Component,
94
+ args: [{
95
+ selector: 'nzx-built-in-label-wrapper',
96
+ template: ` <nz-form-label>我是label</nz-form-label> `,
97
+ }]
98
+ }] });
99
+
100
+ class NzxDFAbstractControlWrapper {
101
+ constructor(nzxDFConfig) {
102
+ this.nzxDFConfig = nzxDFConfig;
103
+ }
104
+ ngOnInit() {
105
+ this.renderControl();
106
+ }
107
+ renderControl() {
108
+ this.controlTemplateView.clear();
109
+ const controlComponent = this.nzxDFConfig.getControl('input');
110
+ if (controlComponent) {
111
+ const componentRef = this.controlTemplateView.createComponent(controlComponent);
112
+ }
113
+ else {
114
+ throw `label:: is invalidate`;
115
+ }
116
+ }
117
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractControlWrapper, deps: [{ token: NzxDFConfigService }], target: i0.ɵɵFactoryTarget.Directive }); }
118
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFAbstractControlWrapper, viewQueries: [{ propertyName: "controlTemplateView", first: true, predicate: ["dfControlTpl"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0 }); }
119
+ }
120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractControlWrapper, decorators: [{
121
+ type: Directive
122
+ }], ctorParameters: () => [{ type: NzxDFConfigService }], propDecorators: { controlTemplateView: [{
123
+ type: ViewChild,
124
+ args: ['dfControlTpl', { static: true, read: ViewContainerRef }]
125
+ }] } });
126
+
127
+ class NzxDFBuiltInControlWrapperComponent extends NzxDFAbstractControlWrapper {
128
+ constructor() {
129
+ super(...arguments);
130
+ this.controlWrapper = true;
131
+ }
132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInControlWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
133
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFBuiltInControlWrapperComponent, selector: "nzx-built-in-control-wrapper", host: { properties: { "class.ant-form-item-control": "this.controlWrapper" } }, usesInheritance: true, ngImport: i0, template: `
134
+ <nz-form-control>
135
+ <ng-template #dfControlTpl></ng-template>
136
+ </nz-form-control>
137
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }] }); }
138
+ }
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInControlWrapperComponent, decorators: [{
140
+ type: Component,
141
+ args: [{
142
+ selector: 'nzx-built-in-control-wrapper',
143
+ template: `
144
+ <nz-form-control>
145
+ <ng-template #dfControlTpl></ng-template>
146
+ </nz-form-control>
147
+ `,
148
+ }]
149
+ }], propDecorators: { controlWrapper: [{
150
+ type: HostBinding,
151
+ args: ['class.ant-form-item-control']
152
+ }] } });
153
+
154
+ /**
155
+ * 用来动态添加control type类型控件,类型控件需要继承此控件
156
+ */
157
+ class NzxDFAbstractControl {
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
159
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFAbstractControl, inputs: { form: "form", control: "control" }, ngImport: i0 }); }
160
+ }
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractControl, decorators: [{
162
+ type: Directive
163
+ }], propDecorators: { form: [{
164
+ type: Input
165
+ }], control: [{
166
+ type: Input
167
+ }] } });
168
+
169
+ class NzxDFInputControlComponent extends NzxDFAbstractControl {
170
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFInputControlComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
171
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFInputControlComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ` <input nz-input type="text" /> `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }] }); }
172
+ }
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFInputControlComponent, decorators: [{
174
+ type: Component,
175
+ args: [{
176
+ template: ` <input nz-input type="text" /> `,
177
+ }]
178
+ }] });
179
+
180
+ class NzxDFDatePickerControlComponent extends NzxDFAbstractControl {
181
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFDatePickerControlComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
182
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFDatePickerControlComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
183
+ <nz-date-picker [ngStyle]="{ width: '100%' }"> </nz-date-picker>
184
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1$2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i1$3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }] }); }
185
+ }
186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFDatePickerControlComponent, decorators: [{
187
+ type: Component,
188
+ args: [{
189
+ template: `
190
+ <nz-date-picker [ngStyle]="{ width: '100%' }"> </nz-date-picker>
191
+ `,
192
+ }]
193
+ }] });
194
+
195
+ class NzxDFRangePickerControlComponent extends NzxDFAbstractControl {
196
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFRangePickerControlComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
197
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFRangePickerControlComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ` <nz-range-picker> </nz-range-picker> `, isInline: true, dependencies: [{ kind: "component", type: i1$3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i1$3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }] }); }
198
+ }
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFRangePickerControlComponent, decorators: [{
200
+ type: Component,
201
+ args: [{
202
+ template: ` <nz-range-picker> </nz-range-picker> `,
203
+ }]
204
+ }] });
205
+
206
+ class NzxDFSelectControlComponent extends NzxDFAbstractControl {
207
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFSelectControlComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
208
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFSelectControlComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
209
+ <ng-container [formGroup]="form">
210
+ <nz-select
211
+ [formControlName]="control.controlName!"
212
+ [nzShowSearch]="control.nzxShowSearch ?? true"
213
+ [nzAllowClear]="control.nzxAllowClear ?? true"
214
+ [nzPlaceHolder]="control.placeholder!"
215
+ >
216
+ <nz-option
217
+ *ngFor="let item of control.menuList"
218
+ [nzValue]="item.value"
219
+ [nzLabel]="item.label"
220
+ >
221
+ </nz-option>
222
+ </nz-select>
223
+ </ng-container>
224
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }] }); }
225
+ }
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFSelectControlComponent, decorators: [{
227
+ type: Component,
228
+ args: [{
229
+ template: `
230
+ <ng-container [formGroup]="form">
231
+ <nz-select
232
+ [formControlName]="control.controlName!"
233
+ [nzShowSearch]="control.nzxShowSearch ?? true"
234
+ [nzAllowClear]="control.nzxAllowClear ?? true"
235
+ [nzPlaceHolder]="control.placeholder!"
236
+ >
237
+ <nz-option
238
+ *ngFor="let item of control.menuList"
239
+ [nzValue]="item.value"
240
+ [nzLabel]="item.label"
241
+ >
242
+ </nz-option>
243
+ </nz-select>
244
+ </ng-container>
245
+ `,
246
+ }]
247
+ }] });
248
+
249
+ class NzxDFTemplateControlComponent extends NzxDFAbstractControl {
250
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFTemplateControlComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
251
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFTemplateControlComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
252
+ <ng-container
253
+ *ngTemplateOutlet="
254
+ control.templateRef!;
255
+ context: { $implicit: form.get(control.controlName!), formGroup: form }
256
+ "
257
+ >
258
+ </ng-container>
259
+ `, isInline: true }); }
260
+ }
261
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFTemplateControlComponent, decorators: [{
262
+ type: Component,
263
+ args: [{
264
+ template: `
265
+ <ng-container
266
+ *ngTemplateOutlet="
267
+ control.templateRef!;
268
+ context: { $implicit: form.get(control.controlName!), formGroup: form }
269
+ "
270
+ >
271
+ </ng-container>
272
+ `,
273
+ }]
274
+ }] });
275
+
276
+ class NzxDFConfigService {
277
+ constructor() {
278
+ this.itemWrapperMap = new Map([
279
+ ['builtin-item', NzxDFBuiltInItemWrapperComponent],
280
+ ]);
281
+ this.labelWrapperMap = new Map([
282
+ ['builtin-label', NzxDFBuiltInLabelWrapperComponent],
283
+ ]);
284
+ this.controlWrapperMap = new Map([['builtin-control', NzxDFBuiltInControlWrapperComponent]]);
285
+ this.controlMap = new Map([
286
+ ['input', NzxDFInputControlComponent],
287
+ ['datePicker', NzxDFDatePickerControlComponent],
288
+ ['rangePicker', NzxDFRangePickerControlComponent],
289
+ ['select', NzxDFSelectControlComponent],
290
+ ['template', NzxDFTemplateControlComponent],
291
+ ]);
292
+ }
293
+ getItemWrapper(key) {
294
+ return this.itemWrapperMap.get(key);
295
+ }
296
+ getLabelWrapper(key) {
297
+ return this.labelWrapperMap.get(key);
298
+ }
299
+ getControlWrapper(key) {
300
+ return this.controlWrapperMap.get(key);
301
+ }
302
+ getControl(key) {
303
+ return this.controlMap.get(key);
304
+ }
305
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
306
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFConfigService, providedIn: 'root' }); }
307
+ }
308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFConfigService, decorators: [{
309
+ type: Injectable,
310
+ args: [{ providedIn: 'root' }]
311
+ }], ctorParameters: () => [] });
312
+
313
+ class DynamicFormItemComponent {
314
+ constructor(nzxDFConfig) {
315
+ this.nzxDFConfig = nzxDFConfig;
316
+ }
317
+ ngOnInit() {
318
+ this.renderItem();
319
+ }
320
+ renderItem() {
321
+ this.itemTemplateView.clear();
322
+ const labelComponent = this.nzxDFConfig.getItemWrapper('builtin-item');
323
+ if (labelComponent) {
324
+ const componentRef = this.itemTemplateView.createComponent(labelComponent);
325
+ }
326
+ else {
327
+ throw `item:: is invalidate`;
328
+ }
329
+ }
330
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DynamicFormItemComponent, deps: [{ token: NzxDFConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
331
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DynamicFormItemComponent, selector: "nzx-dynamic-form-item", viewQueries: [{ propertyName: "itemTemplateView", first: true, predicate: ["dfItemTpl"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: ` <ng-template #dfItemTpl></ng-template> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
332
+ }
333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DynamicFormItemComponent, decorators: [{
334
+ type: Component,
335
+ args: [{ selector: 'nzx-dynamic-form-item', template: ` <ng-template #dfItemTpl></ng-template> `, changeDetection: ChangeDetectionStrategy.OnPush }]
336
+ }], ctorParameters: () => [{ type: NzxDFConfigService }], propDecorators: { itemTemplateView: [{
337
+ type: ViewChild,
338
+ args: ['dfItemTpl', { static: true, read: ViewContainerRef }]
339
+ }] } });
340
+
341
+ class NzxDynamicFormComponent {
342
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
343
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxDynamicFormComponent, selector: "nzx-dynamic-form", ngImport: i0, template: `
344
+ <form nz-form [nzLayout]="'vertical'">
345
+ <nz-form-item>
346
+ <nz-form-label>我是label</nz-form-label>
347
+ <nz-form-control>
348
+ <input nz-input />
349
+ </nz-form-control>
350
+ </nz-form-item>
351
+
352
+ <nzx-dynamic-form-item></nzx-dynamic-form-item>
353
+ <nzx-dynamic-form-item></nzx-dynamic-form-item>
354
+ <nzx-dynamic-form-item></nzx-dynamic-form-item>
355
+ </form>
356
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: i1$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: DynamicFormItemComponent, selector: "nzx-dynamic-form-item" }] }); }
357
+ }
358
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormComponent, decorators: [{
359
+ type: Component,
360
+ args: [{
361
+ selector: 'nzx-dynamic-form',
362
+ template: `
363
+ <form nz-form [nzLayout]="'vertical'">
364
+ <nz-form-item>
365
+ <nz-form-label>我是label</nz-form-label>
366
+ <nz-form-control>
367
+ <input nz-input />
368
+ </nz-form-control>
369
+ </nz-form-item>
370
+
371
+ <nzx-dynamic-form-item></nzx-dynamic-form-item>
372
+ <nzx-dynamic-form-item></nzx-dynamic-form-item>
373
+ <nzx-dynamic-form-item></nzx-dynamic-form-item>
374
+ </form>
375
+ `,
376
+ }]
377
+ }] });
4
378
 
5
379
  class NzxDynamicFormModule {
6
380
  static forRoot() {
@@ -10,15 +384,50 @@ class NzxDynamicFormModule {
10
384
  };
11
385
  }
12
386
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
13
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormModule, imports: [CommonModule] }); }
14
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormModule, imports: [CommonModule] }); }
387
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormModule, declarations: [NzxDynamicFormComponent,
388
+ DynamicFormItemComponent,
389
+ NzxDFBuiltInItemWrapperComponent,
390
+ NzxDFBuiltInLabelWrapperComponent,
391
+ NzxDFBuiltInControlWrapperComponent,
392
+ NzxDFDatePickerControlComponent,
393
+ NzxDFInputControlComponent,
394
+ NzxDFRangePickerControlComponent,
395
+ NzxDFSelectControlComponent], imports: [CommonModule,
396
+ ReactiveFormsModule,
397
+ NzFormModule,
398
+ NzInputModule,
399
+ NzSelectModule,
400
+ NzDatePickerModule], exports: [NzxDynamicFormComponent] }); }
401
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormModule, imports: [CommonModule,
402
+ ReactiveFormsModule,
403
+ NzFormModule,
404
+ NzInputModule,
405
+ NzSelectModule,
406
+ NzDatePickerModule] }); }
15
407
  }
16
408
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDynamicFormModule, decorators: [{
17
409
  type: NgModule,
18
410
  args: [{
19
- imports: [CommonModule],
20
- declarations: [],
21
- exports: [],
411
+ imports: [
412
+ CommonModule,
413
+ ReactiveFormsModule,
414
+ NzFormModule,
415
+ NzInputModule,
416
+ NzSelectModule,
417
+ NzDatePickerModule,
418
+ ],
419
+ declarations: [
420
+ NzxDynamicFormComponent,
421
+ DynamicFormItemComponent,
422
+ NzxDFBuiltInItemWrapperComponent,
423
+ NzxDFBuiltInLabelWrapperComponent,
424
+ NzxDFBuiltInControlWrapperComponent,
425
+ NzxDFDatePickerControlComponent,
426
+ NzxDFInputControlComponent,
427
+ NzxDFRangePickerControlComponent,
428
+ NzxDFSelectControlComponent,
429
+ ],
430
+ exports: [NzxDynamicFormComponent],
22
431
  }]
23
432
  }] });
24
433
 
@@ -31,5 +440,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
31
440
  * Generated bundle index. Do not edit.
32
441
  */
33
442
 
34
- export { NzxDynamicFormModule };
443
+ export { NzxDFConfigService, NzxDynamicFormComponent, NzxDynamicFormModule };
35
444
  //# sourceMappingURL=ng-zorro-antd-extension-dynamic-form.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-zorro-antd-extension-dynamic-form.mjs","sources":["../../../components/dynamic-form/nzx-dynamic-form.module.ts","../../../components/dynamic-form/public-api.ts","../../../components/dynamic-form/ng-zorro-antd-extension-dynamic-form.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ModuleWithProviders, NgModule } from '@angular/core';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [],\n exports: [],\n})\nexport class NzxDynamicFormModule {\n static forRoot(): ModuleWithProviders<NzxDynamicFormModule> {\n return {\n ngModule: NzxDynamicFormModule,\n providers: [],\n };\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nexport * from './nzx-dynamic-form.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAQa,oBAAoB,CAAA;AAC/B,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,oBAAoB;AAC9B,YAAA,SAAS,EAAE,EAAE;SACd,CAAC;KACH;+GANU,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAJrB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;AAIX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAJrB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAIX,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA,CAAA;;;ACPD;;;AAGG;;ACHH;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-zorro-antd-extension-dynamic-form.mjs","sources":["../../../components/dynamic-form/wrapper/item/abstract-item-wrapper.ts","../../../components/dynamic-form/wrapper/item/built-in-item-wrapper.ts","../../../components/dynamic-form/wrapper/label/abstract-label-wrapper.ts","../../../components/dynamic-form/wrapper/label/built-in-label-wrapper.ts","../../../components/dynamic-form/wrapper/control/abstract-control-wrapper.ts","../../../components/dynamic-form/wrapper/control/built-in-control-wrapper.ts","../../../components/dynamic-form/controls/abstract.control.ts","../../../components/dynamic-form/controls/input.control.ts","../../../components/dynamic-form/controls/date-picker.control.ts","../../../components/dynamic-form/controls/range-picker.control.ts","../../../components/dynamic-form/controls/select.control.ts","../../../components/dynamic-form/controls/template.control.ts","../../../components/dynamic-form/config/dynamic-form-config.ts","../../../components/dynamic-form/dynamic-form-item/dynamic-form-item.component.ts","../../../components/dynamic-form/dynamic-form.component.ts","../../../components/dynamic-form/dynamic-form.module.ts","../../../components/dynamic-form/public-api.ts","../../../components/dynamic-form/ng-zorro-antd-extension-dynamic-form.ts"],"sourcesContent":["import { Directive, OnInit, ViewChild, ViewContainerRef } from '@angular/core';\nimport { NzxDFConfigService } from '../../config/dynamic-form-config';\n\n@Directive()\nexport class NzxDFAbstractItemWrapper implements OnInit {\n @ViewChild('dfLabelWrapperTpl', { static: true, read: ViewContainerRef })\n private labelWrapperTemplateView!: ViewContainerRef;\n @ViewChild('dfControlWrapperTpl', { static: true, read: ViewContainerRef })\n private controlWrapperTemplateView!: ViewContainerRef;\n\n constructor(private nzxDFConfig: NzxDFConfigService) {}\n\n ngOnInit(): void {\n this.renderLabel();\n this.renderControl();\n }\n\n private renderLabel() {\n this.labelWrapperTemplateView.clear();\n const labelWrapperComponent =\n this.nzxDFConfig.getLabelWrapper('builtin-label');\n if (labelWrapperComponent) {\n const componentRef = this.labelWrapperTemplateView.createComponent(\n labelWrapperComponent\n );\n } else {\n throw `label:: is invalidate`;\n }\n }\n private renderControl() {\n this.controlWrapperTemplateView.clear();\n const controlWrapperComponent =\n this.nzxDFConfig.getControlWrapper('builtin-control');\n if (controlWrapperComponent) {\n const componentRef = this.controlWrapperTemplateView.createComponent(\n controlWrapperComponent\n );\n } else {\n throw `label:: is invalidate`;\n }\n }\n}\n","import { Component } from '@angular/core';\nimport { NzxDFAbstractItemWrapper } from './abstract-item-wrapper';\n\n@Component({\n selector: 'nzx-built-in-item-wrapper',\n template: `\n <nz-form-item>\n <ng-template #dfLabelWrapperTpl></ng-template>\n <ng-template #dfControlWrapperTpl></ng-template>\n </nz-form-item>\n `,\n})\nexport class NzxDFBuiltInItemWrapperComponent extends NzxDFAbstractItemWrapper {}\n","import { Directive } from '@angular/core';\n\n@Directive()\nexport class NzxDFAbstractLabelWrapper {}\n","import { Component } from '@angular/core';\nimport { NzxDFAbstractLabelWrapper } from './abstract-label-wrapper';\n\n@Component({\n selector: 'nzx-built-in-label-wrapper',\n template: ` <nz-form-label>我是label</nz-form-label> `,\n})\nexport class NzxDFBuiltInLabelWrapperComponent extends NzxDFAbstractLabelWrapper {}\n","import { Directive, OnInit, ViewChild, ViewContainerRef } from '@angular/core';\nimport { NzxDFConfigService } from '../../config/dynamic-form-config';\n\n@Directive()\nexport class NzxDFAbstractControlWrapper implements OnInit {\n @ViewChild('dfControlTpl', { static: true, read: ViewContainerRef })\n private controlTemplateView!: ViewContainerRef;\n\n constructor(private nzxDFConfig: NzxDFConfigService) {}\n\n ngOnInit(): void {\n this.renderControl();\n }\n\n private renderControl() {\n this.controlTemplateView.clear();\n const controlComponent = this.nzxDFConfig.getControl('input');\n if (controlComponent) {\n const componentRef =\n this.controlTemplateView.createComponent(controlComponent);\n } else {\n throw `label:: is invalidate`;\n }\n }\n}\n","import { Component, HostBinding } from '@angular/core';\nimport { NzxDFAbstractControlWrapper } from './abstract-control-wrapper';\n\n@Component({\n selector: 'nzx-built-in-control-wrapper',\n template: `\n <nz-form-control>\n <ng-template #dfControlTpl></ng-template>\n </nz-form-control>\n `,\n})\nexport class NzxDFBuiltInControlWrapperComponent extends NzxDFAbstractControlWrapper {\n @HostBinding('class.ant-form-item-control') controlWrapper = true;\n}\n","import { Directive, Input } from '@angular/core';\nimport { FormGroup } from '@angular/forms';\n\n/**\n * 用来动态添加control type类型控件,类型控件需要继承此控件\n */\n@Directive()\nexport class NzxDFAbstractControl {\n @Input() form!: FormGroup<any>;\n @Input() control!: any;\n}\n","import { Component } from '@angular/core';\nimport { NzxDFAbstractControl } from './abstract.control';\n\n@Component({\n template: ` <input nz-input type=\"text\" /> `,\n})\nexport class NzxDFInputControlComponent extends NzxDFAbstractControl {}\n","import { Component } from '@angular/core';\nimport { NzxDFAbstractControl } from './abstract.control';\n\n@Component({\n template: `\n <nz-date-picker [ngStyle]=\"{ width: '100%' }\"> </nz-date-picker>\n `,\n})\nexport class NzxDFDatePickerControlComponent extends NzxDFAbstractControl {}\n","import { Component } from '@angular/core';\nimport { NzxDFAbstractControl } from './abstract.control';\n\n@Component({\n template: ` <nz-range-picker> </nz-range-picker> `,\n})\nexport class NzxDFRangePickerControlComponent extends NzxDFAbstractControl {}\n","import { Component } from '@angular/core';\nimport { NzxDFAbstractControl } from './abstract.control';\n\n@Component({\n template: `\n <ng-container [formGroup]=\"form\">\n <nz-select\n [formControlName]=\"control.controlName!\"\n [nzShowSearch]=\"control.nzxShowSearch ?? true\"\n [nzAllowClear]=\"control.nzxAllowClear ?? true\"\n [nzPlaceHolder]=\"control.placeholder!\"\n >\n <nz-option\n *ngFor=\"let item of control.menuList\"\n [nzValue]=\"item.value\"\n [nzLabel]=\"item.label\"\n >\n </nz-option>\n </nz-select>\n </ng-container>\n `,\n})\nexport class NzxDFSelectControlComponent extends NzxDFAbstractControl {}\n","import { Component } from '@angular/core';\nimport { NzxDFAbstractControl } from './abstract.control';\n\n@Component({\n template: `\n <ng-container\n *ngTemplateOutlet=\"\n control.templateRef!;\n context: { $implicit: form.get(control.controlName!), formGroup: form }\n \"\n >\n </ng-container>\n `,\n})\nexport class NzxDFTemplateControlComponent extends NzxDFAbstractControl {}\n","import { Injectable } from '@angular/core';\n\nimport { NzxDFBuiltInItemWrapperComponent } from '../wrapper/item/built-in-item-wrapper';\nimport { NzxDFBuiltInLabelWrapperComponent } from '../wrapper/label/built-in-label-wrapper';\nimport { NzxDFBuiltInControlWrapperComponent } from '../wrapper/control/built-in-control-wrapper';\nimport { NzxDFAbstractItemWrapper } from '../wrapper/item/abstract-item-wrapper';\nimport { NzxDFAbstractLabelWrapper } from '../wrapper/label/abstract-label-wrapper';\nimport { NzxDFAbstractControlWrapper } from '../wrapper/control/abstract-control-wrapper';\n\nimport { NzxDFAbstractControl } from '../controls/abstract.control';\nimport { NzxDFInputControlComponent } from '../controls/input.control';\nimport { NzxDFDatePickerControlComponent } from '../controls/date-picker.control';\nimport { NzxDFRangePickerControlComponent } from '../controls/range-picker.control';\nimport { NzxDFSelectControlComponent } from '../controls/select.control';\nimport { NzxDFTemplateControlComponent } from '../controls/template.control';\n\n@Injectable({ providedIn: 'root' })\nexport class NzxDFConfigService {\n private itemWrapperMap = new Map<string, typeof NzxDFAbstractItemWrapper>([\n ['builtin-item', NzxDFBuiltInItemWrapperComponent],\n ]);\n\n private labelWrapperMap = new Map<string, typeof NzxDFAbstractLabelWrapper>([\n ['builtin-label', NzxDFBuiltInLabelWrapperComponent],\n ]);\n\n private controlWrapperMap = new Map<\n string,\n typeof NzxDFAbstractControlWrapper\n >([['builtin-control', NzxDFBuiltInControlWrapperComponent]]);\n\n private controlMap = new Map<string, typeof NzxDFAbstractControl>([\n ['input', NzxDFInputControlComponent],\n ['datePicker', NzxDFDatePickerControlComponent],\n ['rangePicker', NzxDFRangePickerControlComponent],\n ['select', NzxDFSelectControlComponent],\n ['template', NzxDFTemplateControlComponent],\n ]);\n constructor() {}\n\n getItemWrapper(key: string) {\n return this.itemWrapperMap.get(key);\n }\n getLabelWrapper(key: string) {\n return this.labelWrapperMap.get(key);\n }\n getControlWrapper(key: string) {\n return this.controlWrapperMap.get(key);\n }\n\n getControl(key: string) {\n return this.controlMap.get(key);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n OnInit,\n ViewChild,\n ViewContainerRef,\n} from '@angular/core';\nimport { NzxDFConfigService } from '../config/dynamic-form-config';\n\n\n@Component({\n selector: 'nzx-dynamic-form-item',\n template: ` <ng-template #dfItemTpl></ng-template> `,\n styles: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DynamicFormItemComponent implements OnInit {\n @ViewChild('dfItemTpl', { static: true, read: ViewContainerRef })\n private itemTemplateView!: ViewContainerRef;\n\n constructor(private nzxDFConfig: NzxDFConfigService) {}\n\n ngOnInit(): void {\n this.renderItem();\n }\n\n private renderItem() {\n this.itemTemplateView.clear();\n const labelComponent = this.nzxDFConfig.getItemWrapper('builtin-item');\n if (labelComponent) {\n const componentRef =\n this.itemTemplateView.createComponent(labelComponent);\n } else {\n throw `item:: is invalidate`;\n }\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'nzx-dynamic-form',\n template: `\n <form nz-form [nzLayout]=\"'vertical'\">\n <nz-form-item>\n <nz-form-label>我是label</nz-form-label>\n <nz-form-control>\n <input nz-input />\n </nz-form-control>\n </nz-form-item>\n\n <nzx-dynamic-form-item></nzx-dynamic-form-item>\n <nzx-dynamic-form-item></nzx-dynamic-form-item>\n <nzx-dynamic-form-item></nzx-dynamic-form-item>\n </form>\n `,\n})\nexport class NzxDynamicFormComponent {}\n","import { CommonModule } from '@angular/common';\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\n\nimport { NzxDFBuiltInControlWrapperComponent } from './wrapper/control/built-in-control-wrapper';\nimport { NzxDFBuiltInItemWrapperComponent } from './wrapper/item/built-in-item-wrapper';\nimport { NzxDFBuiltInLabelWrapperComponent } from './wrapper/label/built-in-label-wrapper';\n\nimport { NzxDFDatePickerControlComponent } from './controls/date-picker.control';\nimport { NzxDFInputControlComponent } from './controls/input.control';\nimport { NzxDFRangePickerControlComponent } from './controls/range-picker.control';\nimport { NzxDFSelectControlComponent } from './controls/select.control';\n\nimport { DynamicFormItemComponent } from './dynamic-form-item/dynamic-form-item.component';\nimport { NzxDynamicFormComponent } from './dynamic-form.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n NzFormModule,\n NzInputModule,\n NzSelectModule,\n NzDatePickerModule,\n ],\n declarations: [\n NzxDynamicFormComponent,\n DynamicFormItemComponent,\n\n NzxDFBuiltInItemWrapperComponent,\n NzxDFBuiltInLabelWrapperComponent,\n NzxDFBuiltInControlWrapperComponent,\n\n NzxDFDatePickerControlComponent,\n NzxDFInputControlComponent,\n NzxDFRangePickerControlComponent,\n NzxDFSelectControlComponent,\n ],\n exports: [NzxDynamicFormComponent],\n})\nexport class NzxDynamicFormModule {\n static forRoot(): ModuleWithProviders<NzxDynamicFormModule> {\n return {\n ngModule: NzxDynamicFormModule,\n providers: [],\n };\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nexport * from './config/dynamic-form-config';\nexport * from './dynamic-form.component';\nexport * from './dynamic-form.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NzxDFConfigService","i2","i1","i3","i4","i5.DynamicFormItemComponent"],"mappings":";;;;;;;;;;;;;;;;MAIa,wBAAwB,CAAA;AAMnC,IAAA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,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAvB7B,YAAY;YACZ,mBAAmB;YAEnB,YAAY;YACZ,aAAa;YACb,cAAc;YACd,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAiBT,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAzBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBAEnB,YAAY;wBACZ,aAAa;wBACb,cAAc;wBACd,kBAAkB;AACnB,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACZ,uBAAuB;wBACvB,wBAAwB;wBAExB,gCAAgC;wBAChC,iCAAiC;wBACjC,mCAAmC;wBAEnC,+BAA+B;wBAC/B,0BAA0B;wBAC1B,gCAAgC;wBAChC,2BAA2B;AAC5B,qBAAA;oBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACnC,iBAAA,CAAA;;;AC7CD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
- import * as i1$1 from '@angular/common';
1
+ import * as i2 from '@angular/common';
2
2
  import { DOCUMENT, CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Directive, Input, ElementRef, Component, Inject, ViewChild, ContentChild, EventEmitter, Output, ContentChildren, HostListener, NgModule } from '@angular/core';
5
5
  import { getElementByTag } from 'ng-zorro-antd-extension/util';
6
6
  import * as i1 from '@angular/cdk/platform';
7
7
  import { Navigation, CoreViewer, PageViewMode } from '@vivliostyle/core';
8
- import * as i2 from 'ng-zorro-antd/grid';
8
+ import * as i3 from 'ng-zorro-antd/grid';
9
9
  import { NzGridModule } from 'ng-zorro-antd/grid';
10
- import * as i3 from 'ng-zorro-antd/pagination';
10
+ import * as i4 from 'ng-zorro-antd/pagination';
11
11
  import { NzPaginationModule } from 'ng-zorro-antd/pagination';
12
12
 
13
13
  class NzxPrintContentDirective {
@@ -218,7 +218,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
218
218
  * Vivliostyle 打印
219
219
  */
220
220
  class NzxPrintVComponent {
221
- constructor(cd) {
221
+ constructor(platform, cd) {
222
+ this.platform = platform;
222
223
  this.cd = cd;
223
224
  this.printTitle = 'pdf';
224
225
  /**
@@ -303,6 +304,15 @@ class NzxPrintVComponent {
303
304
  createIframeWrapper() {
304
305
  if (this.vivViewRef) {
305
306
  this.clearView();
307
+ if (!this.enablePreview) {
308
+ this.vivViewRef.nativeElement.style.visibility = 'hidden';
309
+ if (this.platform.FIREFOX) {
310
+ this.vivViewRef.nativeElement.setAttribute('style', 'width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0');
311
+ }
312
+ else {
313
+ this.vivViewRef.nativeElement.setAttribute('style', 'visibility: hidden; height: 0; width: 0; position: absolute; border: 0');
314
+ }
315
+ }
306
316
  this.iframeEl = document.createElement('iframe');
307
317
  this.iframeEl.height = this.height + '';
308
318
  this.iframeEl.width = this.width + '';
@@ -445,13 +455,13 @@ class NzxPrintVComponent {
445
455
  this.viewer = undefined;
446
456
  this._isRenderComplete = false;
447
457
  }
448
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxPrintVComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
458
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxPrintVComponent, deps: [{ token: i1.Platform }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
449
459
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxPrintVComponent, selector: "nzx-print-v", inputs: { printTitle: "printTitle", width: "width", height: "height", enablePreview: "enablePreview", pixelRatio: "pixelRatio" }, outputs: { pageRenderComplete: "pageRenderComplete" }, queries: [{ propertyName: "_printElQueryList", predicate: NzxPrintContentDirective }], viewQueries: [{ propertyName: "vivViewRef", first: true, predicate: ["vivView"], descendants: true }], ngImport: i0, template: `
450
460
  <ng-content select="[nzxPrintHeader]"></ng-content>
451
461
 
452
462
  <div #vivView [ngStyle]="{ margin: '10px 0' }"></div>
453
463
 
454
- <div nz-row nzJustify="end">
464
+ <div nz-row nzJustify="end" *ngIf="enablePreview">
455
465
  <ng-template #totalTemplate let-total>共 {{ total }} 页</ng-template>
456
466
  <nz-pagination
457
467
  [nzPageIndex]="1"
@@ -463,7 +473,7 @@ class NzxPrintVComponent {
463
473
  (nzPageIndexChange)="onPageIndexChange($event)"
464
474
  ></nz-pagination>
465
475
  </div>
466
- `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }] }); }
476
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }] }); }
467
477
  }
468
478
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxPrintVComponent, decorators: [{
469
479
  type: Component,
@@ -474,7 +484,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
474
484
 
475
485
  <div #vivView [ngStyle]="{ margin: '10px 0' }"></div>
476
486
 
477
- <div nz-row nzJustify="end">
487
+ <div nz-row nzJustify="end" *ngIf="enablePreview">
478
488
  <ng-template #totalTemplate let-total>共 {{ total }} 页</ng-template>
479
489
  <nz-pagination
480
490
  [nzPageIndex]="1"
@@ -488,7 +498,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
488
498
  </div>
489
499
  `,
490
500
  }]
491
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { printTitle: [{
501
+ }], ctorParameters: () => [{ type: i1.Platform }, { type: i0.ChangeDetectorRef }], propDecorators: { printTitle: [{
492
502
  type: Input
493
503
  }], width: [{
494
504
  type: Input