ng-zorro-antd-extension 18.1.2 → 18.1.4
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.
- package/configurable-query/configurable-query.component.d.ts +12 -8
- package/configurable-query/configurable-query.module.d.ts +5 -3
- package/configurable-query/controls/abstract.control.d.ts +2 -1
- package/configurable-query/query-config.service.d.ts +3 -0
- package/dynamic-form/config/dynamic-form-config.d.ts +18 -0
- package/dynamic-form/controls/abstract.control.d.ts +11 -0
- package/dynamic-form/controls/date-picker.control.d.ts +6 -0
- package/dynamic-form/controls/input.control.d.ts +6 -0
- package/dynamic-form/controls/range-picker.control.d.ts +6 -0
- package/dynamic-form/controls/select.control.d.ts +6 -0
- package/dynamic-form/controls/template.control.d.ts +6 -0
- package/dynamic-form/dynamic-form-item/dynamic-form-item.component.d.ts +12 -0
- package/dynamic-form/dynamic-form.component.d.ts +5 -0
- package/dynamic-form/dynamic-form.module.d.ts +23 -0
- package/dynamic-form/index.d.ts +5 -0
- package/dynamic-form/package.json +3 -0
- package/dynamic-form/public-api.d.ts +7 -0
- package/dynamic-form/wrapper/control/abstract-control-wrapper.d.ts +12 -0
- package/dynamic-form/wrapper/control/built-in-control-wrapper.d.ts +7 -0
- package/dynamic-form/wrapper/item/abstract-item-wrapper.d.ts +14 -0
- package/dynamic-form/wrapper/item/built-in-item-wrapper.d.ts +6 -0
- package/dynamic-form/wrapper/label/abstract-label-wrapper.d.ts +5 -0
- package/dynamic-form/wrapper/label/built-in-label-wrapper.d.ts +6 -0
- package/esm2022/configurable-query/configurable-query-item/configurable-query-item.component.mjs +4 -3
- package/esm2022/configurable-query/configurable-query.component.mjs +18 -12
- package/esm2022/configurable-query/configurable-query.module.mjs +9 -1
- package/esm2022/configurable-query/controls/abstract.control.mjs +4 -1
- package/esm2022/configurable-query/controls/date-picker.control.mjs +6 -5
- package/esm2022/configurable-query/controls/input.control.mjs +6 -5
- package/esm2022/configurable-query/controls/range-picker.control.mjs +6 -5
- package/esm2022/configurable-query/controls/select.control.mjs +6 -5
- package/esm2022/configurable-query/controls/template.control.mjs +6 -5
- package/esm2022/configurable-query/query-config.service.mjs +4 -1
- package/esm2022/dynamic-form/config/dynamic-form-config.mjs +47 -0
- package/esm2022/dynamic-form/controls/abstract.control.mjs +17 -0
- package/esm2022/dynamic-form/controls/date-picker.control.mjs +20 -0
- package/esm2022/dynamic-form/controls/input.control.mjs +15 -0
- package/esm2022/dynamic-form/controls/range-picker.control.mjs +15 -0
- package/esm2022/dynamic-form/controls/select.control.mjs +49 -0
- package/esm2022/dynamic-form/controls/template.control.mjs +30 -0
- package/esm2022/dynamic-form/dynamic-form-item/dynamic-form-item.component.mjs +31 -0
- package/esm2022/dynamic-form/dynamic-form.component.mjs +45 -0
- package/esm2022/dynamic-form/dynamic-form.module.mjs +72 -0
- package/esm2022/dynamic-form/ng-zorro-antd-extension-dynamic-form.mjs +5 -0
- package/esm2022/dynamic-form/public-api.mjs +8 -0
- package/esm2022/dynamic-form/wrapper/control/abstract-control-wrapper.mjs +30 -0
- package/esm2022/dynamic-form/wrapper/control/built-in-control-wrapper.mjs +32 -0
- package/esm2022/dynamic-form/wrapper/item/abstract-item-wrapper.mjs +44 -0
- package/esm2022/dynamic-form/wrapper/item/built-in-item-wrapper.mjs +27 -0
- package/esm2022/dynamic-form/wrapper/label/abstract-label-wrapper.mjs +10 -0
- package/esm2022/dynamic-form/wrapper/label/built-in-label-wrapper.mjs +17 -0
- package/esm2022/print/nzx-print-content.directive.mjs +2 -2
- package/esm2022/print/nzx-print.module.mjs +1 -1
- package/esm2022/util/lib/getElementByTag.mjs +15 -8
- package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +53 -27
- package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs +444 -0
- package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs.map +1 -0
- package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-util.mjs +13 -7
- package/fesm2022/ng-zorro-antd-extension-util.mjs.map +1 -1
- package/package.json +18 -12
- package/print/nzx-print-content.directive.d.ts +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { NzxDFAbstractItemWrapper } from './abstract-item-wrapper';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "ng-zorro-antd/grid";
|
|
5
|
+
import * as i2 from "ng-zorro-antd/form";
|
|
6
|
+
export class NzxDFBuiltInItemWrapperComponent extends NzxDFAbstractItemWrapper {
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInItemWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8
|
+
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: `
|
|
9
|
+
<nz-form-item>
|
|
10
|
+
<ng-template #dfLabelWrapperTpl></ng-template>
|
|
11
|
+
<ng-template #dfControlWrapperTpl></ng-template>
|
|
12
|
+
</nz-form-item>
|
|
13
|
+
`, 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: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }] }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInItemWrapperComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: 'nzx-built-in-item-wrapper',
|
|
19
|
+
template: `
|
|
20
|
+
<nz-form-item>
|
|
21
|
+
<ng-template #dfLabelWrapperTpl></ng-template>
|
|
22
|
+
<ng-template #dfControlWrapperTpl></ng-template>
|
|
23
|
+
</nz-form-item>
|
|
24
|
+
`,
|
|
25
|
+
}]
|
|
26
|
+
}] });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbHQtaW4taXRlbS13cmFwcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vY29tcG9uZW50cy9keW5hbWljLWZvcm0vd3JhcHBlci9pdGVtL2J1aWx0LWluLWl0ZW0td3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDOzs7O0FBV25FLE1BQU0sT0FBTyxnQ0FBaUMsU0FBUSx3QkFBd0I7K0dBQWpFLGdDQUFnQzttR0FBaEMsZ0NBQWdDLHdGQVBqQzs7Ozs7R0FLVDs7NEZBRVUsZ0NBQWdDO2tCQVQ1QyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSwyQkFBMkI7b0JBQ3JDLFFBQVEsRUFBRTs7Ozs7R0FLVDtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTnp4REZBYnN0cmFjdEl0ZW1XcmFwcGVyIH0gZnJvbSAnLi9hYnN0cmFjdC1pdGVtLXdyYXBwZXInO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICduengtYnVpbHQtaW4taXRlbS13cmFwcGVyJyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8bnotZm9ybS1pdGVtPlxuICAgICAgPG5nLXRlbXBsYXRlICNkZkxhYmVsV3JhcHBlclRwbD48L25nLXRlbXBsYXRlPlxuICAgICAgPG5nLXRlbXBsYXRlICNkZkNvbnRyb2xXcmFwcGVyVHBsPjwvbmctdGVtcGxhdGU+XG4gICAgPC9uei1mb3JtLWl0ZW0+XG4gIGAsXG59KVxuZXhwb3J0IGNsYXNzIE56eERGQnVpbHRJbkl0ZW1XcmFwcGVyQ29tcG9uZW50IGV4dGVuZHMgTnp4REZBYnN0cmFjdEl0ZW1XcmFwcGVyIHt9XG4iXX0=
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class NzxDFAbstractLabelWrapper {
|
|
4
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractLabelWrapper, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: NzxDFAbstractLabelWrapper, ngImport: i0 }); }
|
|
6
|
+
}
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFAbstractLabelWrapper, decorators: [{
|
|
8
|
+
type: Directive
|
|
9
|
+
}] });
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtbGFiZWwtd3JhcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvZHluYW1pYy1mb3JtL3dyYXBwZXIvbGFiZWwvYWJzdHJhY3QtbGFiZWwtd3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUcxQyxNQUFNLE9BQU8seUJBQXlCOytHQUF6Qix5QkFBeUI7bUdBQXpCLHlCQUF5Qjs7NEZBQXpCLHlCQUF5QjtrQkFEckMsU0FBUyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ARGlyZWN0aXZlKClcbmV4cG9ydCBjbGFzcyBOenhERkFic3RyYWN0TGFiZWxXcmFwcGVyIHt9XG4iXX0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { NzxDFAbstractLabelWrapper } from './abstract-label-wrapper';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "ng-zorro-antd/grid";
|
|
5
|
+
import * as i2 from "ng-zorro-antd/form";
|
|
6
|
+
export class NzxDFBuiltInLabelWrapperComponent extends NzxDFAbstractLabelWrapper {
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInLabelWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8
|
+
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: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }] }); }
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDFBuiltInLabelWrapperComponent, decorators: [{
|
|
11
|
+
type: Component,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'nzx-built-in-label-wrapper',
|
|
14
|
+
template: ` <nz-form-label>我是label</nz-form-label> `,
|
|
15
|
+
}]
|
|
16
|
+
}] });
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbHQtaW4tbGFiZWwtd3JhcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvZHluYW1pYy1mb3JtL3dyYXBwZXIvbGFiZWwvYnVpbHQtaW4tbGFiZWwtd3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDOzs7O0FBTXJFLE1BQU0sT0FBTyxpQ0FBa0MsU0FBUSx5QkFBeUI7K0dBQW5FLGlDQUFpQzttR0FBakMsaUNBQWlDLHlGQUZsQywwQ0FBMEM7OzRGQUV6QyxpQ0FBaUM7a0JBSjdDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLDRCQUE0QjtvQkFDdEMsUUFBUSxFQUFFLDBDQUEwQztpQkFDckQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE56eERGQWJzdHJhY3RMYWJlbFdyYXBwZXIgfSBmcm9tICcuL2Fic3RyYWN0LWxhYmVsLXdyYXBwZXInO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICduengtYnVpbHQtaW4tbGFiZWwtd3JhcHBlcicsXG4gIHRlbXBsYXRlOiBgIDxuei1mb3JtLWxhYmVsPuaIkeaYr2xhYmVsPC9uei1mb3JtLWxhYmVsPiBgLFxufSlcbmV4cG9ydCBjbGFzcyBOenhERkJ1aWx0SW5MYWJlbFdyYXBwZXJDb21wb25lbnQgZXh0ZW5kcyBOenhERkFic3RyYWN0TGFiZWxXcmFwcGVyIHt9XG4iXX0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Directive, Input } from
|
|
1
|
+
import { Directive, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class NzxPrintContentDirective {
|
|
4
4
|
constructor(elementRef) {
|
|
@@ -19,4 +19,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
19
19
|
}], customStyle: [{
|
|
20
20
|
type: Input
|
|
21
21
|
}] } });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnp4LXByaW50LWNvbnRlbnQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9wcmludC9uengtcHJpbnQtY29udGVudC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBSzdELE1BQU0sT0FBTyx3QkFBd0I7SUFHbkMsWUFBbUIsVUFBc0I7UUFBdEIsZUFBVSxHQUFWLFVBQVUsQ0FBWTtRQUZoQyxrQkFBYSxHQUFzQixFQUFFLENBQUM7UUFDdEMsZ0JBQVcsR0FBRyxFQUFFLENBQUM7SUFDa0IsQ0FBQzsrR0FIbEMsd0JBQXdCO21HQUF4Qix3QkFBd0I7OzRGQUF4Qix3QkFBd0I7a0JBSHBDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLG1CQUFtQjtpQkFDOUI7K0VBRVUsYUFBYTtzQkFBckIsS0FBSztnQkFDRyxXQUFXO3NCQUFuQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGlyZWN0aXZlLCBFbGVtZW50UmVmLCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdbbnp4UHJpbnRDb250ZW50XScsXG59KVxuZXhwb3J0IGNsYXNzIE56eFByaW50Q29udGVudERpcmVjdGl2ZSB7XG4gIEBJbnB1dCgpIGlkZW50aWZpZXJTdHI6IHN0cmluZyB8IHN0cmluZ1tdID0gJyc7XG4gIEBJbnB1dCgpIGN1c3RvbVN0eWxlID0gJyc7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBlbGVtZW50UmVmOiBFbGVtZW50UmVmKSB7fVxufVxuIl19
|
|
@@ -36,4 +36,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
36
36
|
],
|
|
37
37
|
}]
|
|
38
38
|
}] });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnp4LXByaW50Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvbXBvbmVudHMvcHJpbnQvbnp4LXByaW50Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQU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GNsYXNzIE56eFByaW50TW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isString } from './isString';
|
|
1
2
|
/**
|
|
2
3
|
* 获取当前document下所有指定标签
|
|
3
4
|
* @param tagName 标签名
|
|
@@ -11,7 +12,7 @@ export function getElementByTag(tagName, identifier) {
|
|
|
11
12
|
if (Array.isArray(identifier)) {
|
|
12
13
|
identifiers = [...identifier];
|
|
13
14
|
}
|
|
14
|
-
else {
|
|
15
|
+
else if (isString(identifier)) {
|
|
15
16
|
identifiers = [identifier];
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -19,13 +20,19 @@ export function getElementByTag(tagName, identifier) {
|
|
|
19
20
|
const elements = document.getElementsByTagName(tagName);
|
|
20
21
|
const length = elements.length;
|
|
21
22
|
for (let index = 0; index < length; index++) {
|
|
22
|
-
identifiers.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
if (identifiers.length) {
|
|
24
|
+
identifiers.forEach((s) => {
|
|
25
|
+
if (elements[index].outerHTML.includes(s)) {
|
|
26
|
+
const formateStr = elements[index].outerHTML.replace(/\/\*[\s\S]*?\*\//g, '');
|
|
27
|
+
html.push(formateStr);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
const formateStr = elements[index].outerHTML.replace(/\/\*[\s\S]*?\*\//g, '');
|
|
33
|
+
html.push(formateStr);
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
return html.join('\r\n');
|
|
30
37
|
}
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0RWxlbWVudEJ5VGFnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vY29tcG9uZW50cy91dGlsL2xpYi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5qb2luKCdcXHJcXG4nKTtcbn1cbiJdfQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, Component, InjectionToken, Injectable, Optional, Inject, ViewContainerRef, ViewChild, EventEmitter,
|
|
2
|
+
import { Directive, Input, Component, ChangeDetectionStrategy, InjectionToken, Injectable, Optional, Inject, ViewContainerRef, ViewChild, EventEmitter, Output, ContentChildren, NgModule } from '@angular/core';
|
|
3
3
|
import { updateControlStatus } from 'ng-zorro-antd-extension/util';
|
|
4
4
|
import { BehaviorSubject, Subject, takeUntil, fromEvent } from 'rxjs';
|
|
5
5
|
import * as i1$1 from 'ng-zorro-antd/i18n';
|
|
@@ -16,7 +16,11 @@ import * as i6 from 'ng-zorro-antd/button';
|
|
|
16
16
|
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
17
17
|
import * as i7 from 'ng-zorro-antd/core/transition-patch';
|
|
18
18
|
import * as i8 from 'ng-zorro-antd/core/wave';
|
|
19
|
-
import * as i9 from 'ng-zorro-antd/
|
|
19
|
+
import * as i9 from 'ng-zorro-antd/card';
|
|
20
|
+
import { NzCardModule } from 'ng-zorro-antd/card';
|
|
21
|
+
import * as i10 from 'ng-zorro-antd/space';
|
|
22
|
+
import { NzSpaceModule } from 'ng-zorro-antd/space';
|
|
23
|
+
import * as i11 from 'ng-zorro-antd/icon';
|
|
20
24
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
21
25
|
import * as i3 from 'ng-zorro-antd/date-picker';
|
|
22
26
|
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
|
|
@@ -45,6 +49,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
45
49
|
* 用来动态添加control type类型控件,类型控件需要继承此控件
|
|
46
50
|
*/
|
|
47
51
|
class NzxAbstractControl {
|
|
52
|
+
get formControl() {
|
|
53
|
+
return this.form.get(this.control.controlName);
|
|
54
|
+
}
|
|
48
55
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAbstractControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
49
56
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: NzxAbstractControl, inputs: { form: "form", control: "control" }, ngImport: i0 }); }
|
|
50
57
|
}
|
|
@@ -62,12 +69,12 @@ class NzxDatePickerControlComponent extends NzxAbstractControl {
|
|
|
62
69
|
<ng-container [formGroup]="form">
|
|
63
70
|
<nz-date-picker
|
|
64
71
|
[ngStyle]="{ width: '100%' }"
|
|
65
|
-
[
|
|
72
|
+
[formControl]="formControl"
|
|
66
73
|
[nzPlaceHolder]="control.placeholder!"
|
|
67
74
|
>
|
|
68
75
|
</nz-date-picker>
|
|
69
76
|
</ng-container>
|
|
70
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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.
|
|
77
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
71
78
|
}
|
|
72
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxDatePickerControlComponent, decorators: [{
|
|
73
80
|
type: Component,
|
|
@@ -77,12 +84,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
77
84
|
<ng-container [formGroup]="form">
|
|
78
85
|
<nz-date-picker
|
|
79
86
|
[ngStyle]="{ width: '100%' }"
|
|
80
|
-
[
|
|
87
|
+
[formControl]="formControl"
|
|
81
88
|
[nzPlaceHolder]="control.placeholder!"
|
|
82
89
|
>
|
|
83
90
|
</nz-date-picker>
|
|
84
91
|
</ng-container>
|
|
85
92
|
`,
|
|
93
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
86
94
|
}]
|
|
87
95
|
}] });
|
|
88
96
|
|
|
@@ -91,13 +99,13 @@ class NzxInputControlComponent extends NzxAbstractControl {
|
|
|
91
99
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxInputControlComponent, selector: "nzx-input-control", usesInheritance: true, ngImport: i0, template: `
|
|
92
100
|
<ng-container [formGroup]="form">
|
|
93
101
|
<input
|
|
102
|
+
[formControl]="formControl"
|
|
94
103
|
nz-input
|
|
95
104
|
type="text"
|
|
96
105
|
[placeholder]="control.placeholder"
|
|
97
|
-
[formControlName]="control.controlName!"
|
|
98
106
|
/>
|
|
99
107
|
</ng-container>
|
|
100
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.
|
|
108
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
101
109
|
}
|
|
102
110
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxInputControlComponent, decorators: [{
|
|
103
111
|
type: Component,
|
|
@@ -106,13 +114,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
106
114
|
template: `
|
|
107
115
|
<ng-container [formGroup]="form">
|
|
108
116
|
<input
|
|
117
|
+
[formControl]="formControl"
|
|
109
118
|
nz-input
|
|
110
119
|
type="text"
|
|
111
120
|
[placeholder]="control.placeholder"
|
|
112
|
-
[formControlName]="control.controlName!"
|
|
113
121
|
/>
|
|
114
122
|
</ng-container>
|
|
115
123
|
`,
|
|
124
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
116
125
|
}]
|
|
117
126
|
}] });
|
|
118
127
|
|
|
@@ -121,12 +130,12 @@ class NzxRangePickerControlComponent extends NzxAbstractControl {
|
|
|
121
130
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxRangePickerControlComponent, selector: "nzx-range-picker-control", usesInheritance: true, ngImport: i0, template: `
|
|
122
131
|
<ng-container [formGroup]="form">
|
|
123
132
|
<nz-range-picker
|
|
133
|
+
[formControl]="formControl"
|
|
124
134
|
[ngStyle]="{ width: '100%' }"
|
|
125
|
-
[formControlName]="control.controlName!"
|
|
126
135
|
>
|
|
127
136
|
</nz-range-picker>
|
|
128
137
|
</ng-container>
|
|
129
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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.
|
|
138
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.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: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
130
139
|
}
|
|
131
140
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxRangePickerControlComponent, decorators: [{
|
|
132
141
|
type: Component,
|
|
@@ -135,12 +144,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
135
144
|
template: `
|
|
136
145
|
<ng-container [formGroup]="form">
|
|
137
146
|
<nz-range-picker
|
|
147
|
+
[formControl]="formControl"
|
|
138
148
|
[ngStyle]="{ width: '100%' }"
|
|
139
|
-
[formControlName]="control.controlName!"
|
|
140
149
|
>
|
|
141
150
|
</nz-range-picker>
|
|
142
151
|
</ng-container>
|
|
143
152
|
`,
|
|
153
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
144
154
|
}]
|
|
145
155
|
}] });
|
|
146
156
|
|
|
@@ -149,7 +159,7 @@ class NzxSelectControlComponent extends NzxAbstractControl {
|
|
|
149
159
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxSelectControlComponent, selector: "nzx-select-control", usesInheritance: true, ngImport: i0, template: `
|
|
150
160
|
<ng-container [formGroup]="form">
|
|
151
161
|
<nz-select
|
|
152
|
-
[
|
|
162
|
+
[formControl]="formControl"
|
|
153
163
|
[nzShowSearch]="control.nzxShowSearch ?? true"
|
|
154
164
|
[nzAllowClear]="control.nzxAllowClear ?? true"
|
|
155
165
|
[nzPlaceHolder]="control.placeholder!"
|
|
@@ -162,7 +172,7 @@ class NzxSelectControlComponent extends NzxAbstractControl {
|
|
|
162
172
|
</nz-option>
|
|
163
173
|
</nz-select>
|
|
164
174
|
</ng-container>
|
|
165
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.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.
|
|
175
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
166
176
|
}
|
|
167
177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxSelectControlComponent, decorators: [{
|
|
168
178
|
type: Component,
|
|
@@ -171,7 +181,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
171
181
|
template: `
|
|
172
182
|
<ng-container [formGroup]="form">
|
|
173
183
|
<nz-select
|
|
174
|
-
[
|
|
184
|
+
[formControl]="formControl"
|
|
175
185
|
[nzShowSearch]="control.nzxShowSearch ?? true"
|
|
176
186
|
[nzAllowClear]="control.nzxAllowClear ?? true"
|
|
177
187
|
[nzPlaceHolder]="control.placeholder!"
|
|
@@ -185,6 +195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
185
195
|
</nz-select>
|
|
186
196
|
</ng-container>
|
|
187
197
|
`,
|
|
198
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
188
199
|
}]
|
|
189
200
|
}] });
|
|
190
201
|
|
|
@@ -194,11 +205,11 @@ class NzxTemplateControlComponent extends NzxAbstractControl {
|
|
|
194
205
|
<ng-container
|
|
195
206
|
*ngTemplateOutlet="
|
|
196
207
|
control.templateRef!;
|
|
197
|
-
context: { $implicit:
|
|
208
|
+
context: { $implicit: formControl, formGroup: form }
|
|
198
209
|
"
|
|
199
210
|
>
|
|
200
211
|
</ng-container>
|
|
201
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
212
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
202
213
|
}
|
|
203
214
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxTemplateControlComponent, decorators: [{
|
|
204
215
|
type: Component,
|
|
@@ -208,11 +219,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
208
219
|
<ng-container
|
|
209
220
|
*ngTemplateOutlet="
|
|
210
221
|
control.templateRef!;
|
|
211
|
-
context: { $implicit:
|
|
222
|
+
context: { $implicit: formControl, formGroup: form }
|
|
212
223
|
"
|
|
213
224
|
>
|
|
214
225
|
</ng-container>
|
|
215
226
|
`,
|
|
227
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
216
228
|
}]
|
|
217
229
|
}] });
|
|
218
230
|
|
|
@@ -240,6 +252,7 @@ class NzxQueryConfigService {
|
|
|
240
252
|
}
|
|
241
253
|
}
|
|
242
254
|
}
|
|
255
|
+
/** 添加controlType 类型控件 */
|
|
243
256
|
addControlType(controlType) {
|
|
244
257
|
const find = this.controlTypePoll.some((i) => i.key === controlType.key);
|
|
245
258
|
if (find) {
|
|
@@ -247,6 +260,7 @@ class NzxQueryConfigService {
|
|
|
247
260
|
}
|
|
248
261
|
this.controlTypePoll.push(controlType);
|
|
249
262
|
}
|
|
263
|
+
/** 删除controlType 类型控件 */
|
|
250
264
|
removeControlType(key) {
|
|
251
265
|
const find = this.controlTypePoll.some((i) => i.key === key);
|
|
252
266
|
if (find) {
|
|
@@ -256,6 +270,7 @@ class NzxQueryConfigService {
|
|
|
256
270
|
throw `ControlType:: ${key} not exists !`;
|
|
257
271
|
}
|
|
258
272
|
}
|
|
273
|
+
/** 刷新 */
|
|
259
274
|
refreshControlType() {
|
|
260
275
|
this.controlTypes$.next(this.controlTypePoll);
|
|
261
276
|
}
|
|
@@ -318,7 +333,7 @@ class NzxConfigurableQueryItemComponent {
|
|
|
318
333
|
<ng-template #controlTemp></ng-template>
|
|
319
334
|
</nz-form-control>
|
|
320
335
|
</nz-form-item>
|
|
321
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }] }); }
|
|
336
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
322
337
|
}
|
|
323
338
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxConfigurableQueryItemComponent, decorators: [{
|
|
324
339
|
type: Component,
|
|
@@ -340,6 +355,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
340
355
|
</nz-form-control>
|
|
341
356
|
</nz-form-item>
|
|
342
357
|
`,
|
|
358
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
343
359
|
}]
|
|
344
360
|
}], ctorParameters: () => [{ type: NzxQueryConfigService }], propDecorators: { form: [{
|
|
345
361
|
type: Input
|
|
@@ -355,13 +371,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
355
371
|
* 支持模板自定义,在使用模板自定义时,要注意controlType应该设置为Template并且确保controlName与指令上的nzxControl应该相同
|
|
356
372
|
*/
|
|
357
373
|
class NzxConfigurableQueryComponent {
|
|
358
|
-
/**
|
|
374
|
+
/** 组件最终的查询参数 */
|
|
359
375
|
get queryParams() {
|
|
360
376
|
return this._queryParams;
|
|
361
377
|
}
|
|
362
378
|
set queryParams(value) {
|
|
363
379
|
this._queryParams = value;
|
|
364
380
|
}
|
|
381
|
+
/** 判断当前组件是否展示展开折叠按钮 */
|
|
365
382
|
get nzxCollapse() {
|
|
366
383
|
return this.controls.some((i) => i.hasOwnProperty('collapse'));
|
|
367
384
|
}
|
|
@@ -369,19 +386,21 @@ class NzxConfigurableQueryComponent {
|
|
|
369
386
|
this.i18n = i18n;
|
|
370
387
|
this.fb = fb;
|
|
371
388
|
this.cd = cd;
|
|
372
|
-
/**
|
|
389
|
+
/**
|
|
390
|
+
* 配置项用来生成查询表单
|
|
391
|
+
*/
|
|
373
392
|
this.controls = [];
|
|
374
|
-
/**
|
|
393
|
+
/** 查询表单排列方式默认start */
|
|
375
394
|
this.nzxJustify = 'start';
|
|
376
|
-
/**
|
|
395
|
+
/** 查询项间隔默认为8 */
|
|
377
396
|
this.nzxGutter = 8;
|
|
378
|
-
/**
|
|
397
|
+
/** 一行展示多少查询项默认展示3个 */
|
|
379
398
|
this.lineNumber = 3;
|
|
380
399
|
/** 操作按钮所占栅格数,24则换行 */
|
|
381
400
|
this.nzxBtnSpan = null;
|
|
382
|
-
/**
|
|
401
|
+
/** 初始化时,是否主动触发查询 */
|
|
383
402
|
this.initQuery = false;
|
|
384
|
-
/** 缺省
|
|
403
|
+
/** 缺省 固定参数会固定携带在抛出事件中 */
|
|
385
404
|
this.fixedParams = {};
|
|
386
405
|
/** 查询时会触发抛出查询参数 */
|
|
387
406
|
this.queryChange = new EventEmitter();
|
|
@@ -549,6 +568,7 @@ class NzxConfigurableQueryComponent {
|
|
|
549
568
|
this.destroy$.next();
|
|
550
569
|
this.destroy$.complete();
|
|
551
570
|
}
|
|
571
|
+
/** 计算展开收起icon、文案 */
|
|
552
572
|
calculateText() {
|
|
553
573
|
if (this.controls.some((i) => i.collapse === true)) {
|
|
554
574
|
this.collapseIcon = 'down';
|
|
@@ -607,11 +627,11 @@ class NzxConfigurableQueryComponent {
|
|
|
607
627
|
}
|
|
608
628
|
}
|
|
609
629
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxConfigurableQueryComponent, deps: [{ token: i1$1.NzI18nService }, { token: i2.FormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
610
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxConfigurableQueryComponent, selector: "nzx-configurable-query", inputs: { controls: "controls", nzxJustify: "nzxJustify", nzxGutter: "nzxGutter", lineNumber: "lineNumber", nzxBtnSpan: "nzxBtnSpan", initQuery: "initQuery", fixedParams: "fixedParams" }, outputs: { queryChange: "queryChange", resetChange: "resetChange" }, queries: [{ propertyName: "controlTemplateList", predicate: NzxControlDirective, descendants: true }], viewQueries: [{ propertyName: "queyFormEl", first: true, predicate: ["queyForm"], descendants: true }], exportAs: ["NzxConfigurableQuery"], usesOnChanges: true, ngImport: i0, template: "<form #queyForm class=\"nzx-query-container\" nz-form [formGroup]=\"queryForm\">\n
|
|
630
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxConfigurableQueryComponent, selector: "nzx-configurable-query", inputs: { controls: "controls", nzxJustify: "nzxJustify", nzxGutter: "nzxGutter", lineNumber: "lineNumber", nzxBtnSpan: "nzxBtnSpan", initQuery: "initQuery", fixedParams: "fixedParams" }, outputs: { queryChange: "queryChange", resetChange: "resetChange" }, queries: [{ propertyName: "controlTemplateList", predicate: NzxControlDirective, descendants: true }], viewQueries: [{ propertyName: "queyFormEl", first: true, predicate: ["queyForm"], descendants: true }], exportAs: ["NzxConfigurableQuery"], usesOnChanges: true, ngImport: i0, template: "<nz-card>\n <form #queyForm class=\"nzx-query-container\" nz-form [formGroup]=\"queryForm\">\n <div nz-row [nzGutter]=\"nzxGutter\" [nzJustify]=\"nzxJustify\">\n <ng-container *ngFor=\"let config of controls; let i = index\">\n <div\n *ngIf=\"!config.hidden\"\n nz-col\n [nzSpan]=\"config.nzxSpan || 24 / lineNumber\"\n [hidden]=\"config.collapse\"\n [nzOrder]=\"i\"\n >\n <nzx-configurable-query-item\n *ngIf=\"config.controlName\"\n [form]=\"queryForm\"\n [control]=\"config\"\n ></nzx-configurable-query-item>\n </div>\n </ng-container>\n\n <div\n class=\"nzx-query-btn\"\n nz-col\n [nzOrder]=\"controls.length\"\n [nzSpan]=\"nzxBtnSpan || 24 / lineNumber\"\n >\n <div nz-row nzJustify=\"end\" nzAlign=\"middle\">\n <nz-space>\n <button\n *nzSpaceItem\n nz-button\n nzType=\"primary\"\n type=\"button\"\n title=\"Enter\"\n (click)=\"search()\"\n >\n {{ locale['query'] }}\n </button>\n <button\n *nzSpaceItem\n nz-button\n type=\"button\"\n title=\"ctrl+r\"\n (click)=\"reset()\"\n >\n {{ locale['reset'] }}\n </button>\n <ng-container *nzSpaceItem>\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngIf=\"nzxCollapse\">\n <a\n *nzSpaceItem\n nz-button\n nzType=\"link\"\n (click)=\"toggleCollapse()\"\n >\n {{ collapseText }}\n <i nz-icon [nzType]=\"collapseIcon\"></i>\n </a>\n </ng-container>\n </nz-space>\n </div>\n </div>\n </div>\n </form>\n</nz-card>\n", styles: [".nzx-query-container [nz-form-label]{overflow:visible}.nzx-query-container .nzx-query-btn{flex-grow:2;max-width:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "component", type: i9.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "component", type: i10.NzSpaceComponent, selector: "nz-space, [nz-space]", inputs: ["nzDirection", "nzAlign", "nzSplit", "nzWrap", "nzSize"], exportAs: ["NzSpace"] }, { kind: "directive", type: i10.NzSpaceItemDirective, selector: "[nzSpaceItem]" }, { kind: "directive", type: i11.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: NzxConfigurableQueryItemComponent, selector: "nzx-configurable-query-item", inputs: ["form", "control"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
611
631
|
}
|
|
612
632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxConfigurableQueryComponent, decorators: [{
|
|
613
633
|
type: Component,
|
|
614
|
-
args: [{ selector: 'nzx-configurable-query', changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'NzxConfigurableQuery', template: "<form #queyForm class=\"nzx-query-container\" nz-form [formGroup]=\"queryForm\">\n
|
|
634
|
+
args: [{ selector: 'nzx-configurable-query', changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'NzxConfigurableQuery', template: "<nz-card>\n <form #queyForm class=\"nzx-query-container\" nz-form [formGroup]=\"queryForm\">\n <div nz-row [nzGutter]=\"nzxGutter\" [nzJustify]=\"nzxJustify\">\n <ng-container *ngFor=\"let config of controls; let i = index\">\n <div\n *ngIf=\"!config.hidden\"\n nz-col\n [nzSpan]=\"config.nzxSpan || 24 / lineNumber\"\n [hidden]=\"config.collapse\"\n [nzOrder]=\"i\"\n >\n <nzx-configurable-query-item\n *ngIf=\"config.controlName\"\n [form]=\"queryForm\"\n [control]=\"config\"\n ></nzx-configurable-query-item>\n </div>\n </ng-container>\n\n <div\n class=\"nzx-query-btn\"\n nz-col\n [nzOrder]=\"controls.length\"\n [nzSpan]=\"nzxBtnSpan || 24 / lineNumber\"\n >\n <div nz-row nzJustify=\"end\" nzAlign=\"middle\">\n <nz-space>\n <button\n *nzSpaceItem\n nz-button\n nzType=\"primary\"\n type=\"button\"\n title=\"Enter\"\n (click)=\"search()\"\n >\n {{ locale['query'] }}\n </button>\n <button\n *nzSpaceItem\n nz-button\n type=\"button\"\n title=\"ctrl+r\"\n (click)=\"reset()\"\n >\n {{ locale['reset'] }}\n </button>\n <ng-container *nzSpaceItem>\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngIf=\"nzxCollapse\">\n <a\n *nzSpaceItem\n nz-button\n nzType=\"link\"\n (click)=\"toggleCollapse()\"\n >\n {{ collapseText }}\n <i nz-icon [nzType]=\"collapseIcon\"></i>\n </a>\n </ng-container>\n </nz-space>\n </div>\n </div>\n </div>\n </form>\n</nz-card>\n", styles: [".nzx-query-container [nz-form-label]{overflow:visible}.nzx-query-container .nzx-query-btn{flex-grow:2;max-width:none}\n"] }]
|
|
615
635
|
}], ctorParameters: () => [{ type: i1$1.NzI18nService }, { type: i2.FormBuilder }, { type: i0.ChangeDetectorRef }], propDecorators: { controls: [{
|
|
616
636
|
type: Input
|
|
617
637
|
}], nzxJustify: [{
|
|
@@ -678,6 +698,8 @@ class NzxConfigurableQueryModule {
|
|
|
678
698
|
NzButtonModule,
|
|
679
699
|
NzSelectModule,
|
|
680
700
|
NzDatePickerModule,
|
|
701
|
+
NzCardModule,
|
|
702
|
+
NzSpaceModule,
|
|
681
703
|
NzIconModule,
|
|
682
704
|
NzI18nModule], exports: [NzxControlDirective, NzxConfigurableQueryComponent] }); }
|
|
683
705
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxConfigurableQueryModule, imports: [CommonModule,
|
|
@@ -688,6 +710,8 @@ class NzxConfigurableQueryModule {
|
|
|
688
710
|
NzButtonModule,
|
|
689
711
|
NzSelectModule,
|
|
690
712
|
NzDatePickerModule,
|
|
713
|
+
NzCardModule,
|
|
714
|
+
NzSpaceModule,
|
|
691
715
|
NzIconModule,
|
|
692
716
|
NzI18nModule] }); }
|
|
693
717
|
}
|
|
@@ -713,6 +737,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
713
737
|
NzButtonModule,
|
|
714
738
|
NzSelectModule,
|
|
715
739
|
NzDatePickerModule,
|
|
740
|
+
NzCardModule,
|
|
741
|
+
NzSpaceModule,
|
|
716
742
|
NzIconModule,
|
|
717
743
|
NzI18nModule,
|
|
718
744
|
],
|