ng-zorro-antd-extension 17.1.0 → 17.3.0
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/README.md +7 -6
- package/configurable-query/configurable-query.component.d.ts +14 -16
- package/configurable-query/type.d.ts +2 -2
- package/esm2022/configurable-query/configurable-query.component.mjs +65 -45
- package/esm2022/configurable-query/type.mjs +1 -1
- package/esm2022/print/nzx-print-content.directive.mjs +22 -0
- package/esm2022/print/nzx-print-v.component.mjs +301 -0
- package/esm2022/print/nzx-print.component.mjs +36 -26
- package/esm2022/print/nzx-print.directive.mjs +11 -7
- package/esm2022/print/nzx-print.module.mjs +20 -6
- package/esm2022/print/public-api.mjs +3 -1
- package/esm2022/table-select/page-table-select/page-table-select.component.mjs +3 -3
- package/esm2022/table-select/table-select/table-select.component.mjs +3 -3
- package/esm2022/util/lib/getElementByTag.mjs +31 -0
- package/esm2022/util/public-api.mjs +2 -1
- package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +63 -43
- package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-print.mjs +371 -36
- package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-table-select.mjs +4 -4
- package/fesm2022/ng-zorro-antd-extension-table-select.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-util.mjs +32 -1
- package/fesm2022/ng-zorro-antd-extension-util.mjs.map +1 -1
- package/package.json +2 -1
- package/pipes/safe-url.pipe.d.ts +1 -1
- package/print/nzx-print-content.directive.d.ts +10 -0
- package/print/nzx-print-v.component.d.ts +45 -0
- package/print/nzx-print.component.d.ts +7 -7
- package/print/nzx-print.directive.d.ts +2 -1
- package/print/nzx-print.module.d.ts +7 -3
- package/print/public-api.d.ts +2 -0
- package/public-api.d.ts +1 -1
- package/timer-button/timer-button.directive.d.ts +1 -1
- package/util/lib/getElementByTag.d.ts +8 -0
- package/util/public-api.d.ts +1 -0
- package/esm2022/print/util.mjs +0 -9
- package/print/util.d.ts +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CoreViewer } from '@vivliostyle/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Vivliostyle 打印
|
|
6
|
+
*/
|
|
7
|
+
export declare class NzxPrintVComponent implements OnDestroy, AfterViewInit {
|
|
8
|
+
private cd;
|
|
9
|
+
printTitle: string;
|
|
10
|
+
/**
|
|
11
|
+
* a4 794px1123px
|
|
12
|
+
*/
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
enablePreview: boolean;
|
|
16
|
+
pixelRatio: number;
|
|
17
|
+
pageRenderComplete: EventEmitter<boolean>;
|
|
18
|
+
viewer: CoreViewer | undefined;
|
|
19
|
+
pageTotal: number;
|
|
20
|
+
private vivViewRef;
|
|
21
|
+
private _printElQueryList;
|
|
22
|
+
private _title;
|
|
23
|
+
private iframeEl;
|
|
24
|
+
private _isRenderComplete;
|
|
25
|
+
constructor(cd: ChangeDetectorRef);
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
onPageIndexChange(num: number): void;
|
|
29
|
+
print(): void;
|
|
30
|
+
refresh(): void;
|
|
31
|
+
private createIframeWrapper;
|
|
32
|
+
private createVivViewer;
|
|
33
|
+
private handleError;
|
|
34
|
+
private handleReadyStateChange;
|
|
35
|
+
private handleHyperlink;
|
|
36
|
+
private handleLoaded;
|
|
37
|
+
private handleNavigation;
|
|
38
|
+
private createListener;
|
|
39
|
+
private removeListeners;
|
|
40
|
+
private getStyles;
|
|
41
|
+
private getVivTemplates;
|
|
42
|
+
private clearView;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxPrintVComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NzxPrintVComponent, "nzx-print-v", never, { "printTitle": { "alias": "printTitle"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "enablePreview": { "alias": "enablePreview"; "required": false; }; "pixelRatio": { "alias": "pixelRatio"; "required": false; }; }, { "pageRenderComplete": "pageRenderComplete"; }, ["_printElQueryList"], ["[nzxPrintHeader]"], false, never>;
|
|
45
|
+
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { Platform } from '@angular/cdk/platform';
|
|
2
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NzxPrintContentDirective {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NzxPrintContentDirective, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxPrintContentDirective, "[nzxPrintContent]", never, {}, {}, never, never, false, never>;
|
|
7
|
-
}
|
|
8
4
|
/**
|
|
9
5
|
* 使用Paged.js打印
|
|
10
6
|
*/
|
|
11
|
-
export declare class NzxPrintComponent implements AfterViewInit {
|
|
7
|
+
export declare class NzxPrintComponent implements OnInit, AfterViewInit {
|
|
12
8
|
private platform;
|
|
13
9
|
private document;
|
|
14
10
|
printTitle: string;
|
|
@@ -18,17 +14,21 @@ export declare class NzxPrintComponent implements AfterViewInit {
|
|
|
18
14
|
width: number;
|
|
19
15
|
height: number;
|
|
20
16
|
enablePreview: boolean;
|
|
17
|
+
identifierStr: string | string[];
|
|
18
|
+
pagedCDN: string;
|
|
19
|
+
private containerRef;
|
|
21
20
|
private _printEl;
|
|
22
21
|
private iframeEl;
|
|
23
22
|
private _title;
|
|
24
23
|
private afterPrint;
|
|
25
24
|
private beforePrint;
|
|
26
25
|
constructor(platform: Platform, document: Document);
|
|
26
|
+
ngOnInit(): void;
|
|
27
27
|
ngAfterViewInit(): void;
|
|
28
28
|
print(): void;
|
|
29
29
|
refresh(): void;
|
|
30
30
|
private render;
|
|
31
31
|
private getTemplateStr;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<NzxPrintComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NzxPrintComponent, "nzx-print", never, { "printTitle": { "alias": "printTitle"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "enablePreview": { "alias": "enablePreview"; "required": false; }; }, {}, ["_printEl"], ["[nzxPrintHeader]"], false, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NzxPrintComponent, "nzx-print", never, { "printTitle": { "alias": "printTitle"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "enablePreview": { "alias": "enablePreview"; "required": false; }; "identifierStr": { "alias": "identifierStr"; "required": false; }; "pagedCDN": { "alias": "pagedCDN"; "required": false; }; }, {}, ["_printEl"], ["[nzxPrintHeader]"], false, never>;
|
|
34
34
|
}
|
|
@@ -6,11 +6,12 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class NzxPrintDirective implements OnInit, AfterViewInit {
|
|
7
7
|
printEl: HTMLElement | string | undefined;
|
|
8
8
|
printTitle: string | undefined;
|
|
9
|
+
identifierStr: string | string[];
|
|
9
10
|
private _printEl;
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
ngAfterViewInit(): void;
|
|
12
13
|
private print;
|
|
13
14
|
private getElement;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NzxPrintDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxPrintDirective, "button[nzxPrint]", never, { "printEl": { "alias": "printEl"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxPrintDirective, "button[nzxPrint]", never, { "printEl": { "alias": "printEl"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "identifierStr": { "alias": "identifierStr"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./nzx-print.component";
|
|
3
|
-
import * as i2 from "./nzx-print.
|
|
4
|
-
import * as i3 from "
|
|
3
|
+
import * as i2 from "./nzx-print-v.component";
|
|
4
|
+
import * as i3 from "./nzx-print.directive";
|
|
5
|
+
import * as i4 from "./nzx-print-content.directive";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "ng-zorro-antd/grid";
|
|
8
|
+
import * as i7 from "ng-zorro-antd/pagination";
|
|
5
9
|
export declare class NzxPrintModule {
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NzxPrintModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxPrintModule, [typeof i1.NzxPrintComponent, typeof
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxPrintModule, [typeof i1.NzxPrintComponent, typeof i2.NzxPrintVComponent, typeof i3.NzxPrintDirective, typeof i4.NzxPrintContentDirective], [typeof i5.CommonModule, typeof i6.NzGridModule, typeof i7.NzPaginationModule], [typeof i1.NzxPrintComponent, typeof i2.NzxPrintVComponent, typeof i4.NzxPrintContentDirective, typeof i3.NzxPrintDirective]>;
|
|
8
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NzxPrintModule>;
|
|
9
13
|
}
|
package/print/public-api.d.ts
CHANGED
|
@@ -3,5 +3,7 @@
|
|
|
3
3
|
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
|
|
4
4
|
*/
|
|
5
5
|
export * from './nzx-print.component';
|
|
6
|
+
export * from './nzx-print-v.component';
|
|
6
7
|
export * from './nzx-print.directive';
|
|
7
8
|
export * from './nzx-print.module';
|
|
9
|
+
export * from './nzx-print-content.directive';
|
package/public-api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
|
@@ -7,7 +7,7 @@ export declare class NzxTimerButtonDirective implements AfterViewInit, OnDestroy
|
|
|
7
7
|
duration: number;
|
|
8
8
|
isCompleted: EventEmitter<boolean>;
|
|
9
9
|
remainingTime: EventEmitter<number>;
|
|
10
|
-
get _disabled(): true
|
|
10
|
+
get _disabled(): true;
|
|
11
11
|
private destroy$;
|
|
12
12
|
private disabled;
|
|
13
13
|
readonly _nzModuleName: NzxConfigKey;
|
package/util/public-api.d.ts
CHANGED
package/esm2022/print/util.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function getElementTag(tag) {
|
|
2
|
-
const html = [];
|
|
3
|
-
const elements = document.getElementsByTagName(tag);
|
|
4
|
-
for (let index = 0; index < elements.length; index++) {
|
|
5
|
-
html.push(elements[index].outerHTML);
|
|
6
|
-
}
|
|
7
|
-
return html.join('\r\n');
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvbXBvbmVudHMvcHJpbnQvdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsYUFBYSxDQUFDLEdBQWdDO0lBQzVELE1BQU0sSUFBSSxHQUFhLEVBQUUsQ0FBQztJQUMxQixNQUFNLFFBQVEsR0FBRyxRQUFRLENBQUMsb0JBQW9CLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDcEQsS0FBSyxJQUFJLEtBQUssR0FBRyxDQUFDLEVBQUUsS0FBSyxHQUFHLFFBQVEsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLEVBQUU7UUFDcEQsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUM7S0FDdEM7SUFDRCxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDM0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBnZXRFbGVtZW50VGFnKHRhZzoga2V5b2YgSFRNTEVsZW1lbnRUYWdOYW1lTWFwKTogc3RyaW5nIHtcbiAgY29uc3QgaHRtbDogc3RyaW5nW10gPSBbXTtcbiAgY29uc3QgZWxlbWVudHMgPSBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSh0YWcpO1xuICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgZWxlbWVudHMubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgaHRtbC5wdXNoKGVsZW1lbnRzW2luZGV4XS5vdXRlckhUTUwpO1xuICB9XG4gIHJldHVybiBodG1sLmpvaW4oJ1xcclxcbicpO1xufVxuIl19
|
package/print/util.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getElementTag(tag: keyof HTMLElementTagNameMap): string;
|