@yibozhang/pro-table 16.1.20 → 16.1.22
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/esm2022/lib/page-container/page-container.component.mjs +9 -3
- package/esm2022/lib/pro-table.component.mjs +19 -5
- package/fesm2022/yibozhang-pro-table.mjs +26 -6
- package/fesm2022/yibozhang-pro-table.mjs.map +1 -1
- package/lib/page-container/page-container.component.d.ts +5 -1
- package/lib/pro-table.component.d.ts +5 -1
- package/package.json +1 -1
|
@@ -7,20 +7,26 @@ export class PageContainerComponent {
|
|
|
7
7
|
this.title = "";
|
|
8
8
|
this.showHeader = true;
|
|
9
9
|
this.bodyStyle = {};
|
|
10
|
+
this.headerStyle = {};
|
|
10
11
|
}
|
|
11
12
|
ngOnInit() { }
|
|
12
13
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PageContainerComponent, selector: "app-page-container", inputs: { title: "title", showHeader: "showHeader", bodyStyle: "bodyStyle" }, queries: [{ propertyName: "headerTpl", first: true, predicate: ["header"], descendants: true }, { propertyName: "bodyTpl", first: true, predicate: ["body"], descendants: true }], ngImport: i0, template: "<nz-card\r\n [nzBorderless]=\"true\"\r\n [nzBodyStyle]=\"{ padding: '8px', width: '100%' }\"\r\n>\r\n <div class=\"page-container-title\" *ngIf=\"title\">{{ title }}</div>\r\n <div class=\"page-container-header\" *ngIf=\"showHeader\">\r\n <ng-container *ngTemplateOutlet=\"headerTpl\"></ng-container>\r\n </div>\r\n <div class=\"page-container-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-container *ngTemplateOutlet=\"bodyTpl\"></ng-container>\r\n </div>\r\n</nz-card>\r\n", styles: [".page-container-title{padding-left:8px;font-size:16px;color:#1d1d1d;margin-bottom:8px}.page-container-title:before{content:\"\";display:inline-block;width:2px;height:16px;position:relative;left:-8px;top:3px;background-color:#096dd9}.page-container-header{box-sizing:border-box;padding:12px 24px;background:#f4f4f5}.page-container-body{box-sizing:border-box;padding:
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PageContainerComponent, selector: "app-page-container", inputs: { title: "title", showHeader: "showHeader", bodyStyle: "bodyStyle", headerStyle: "headerStyle" }, queries: [{ propertyName: "customContentTpl", first: true, predicate: ["customContent"], descendants: true }, { propertyName: "headerTpl", first: true, predicate: ["header"], descendants: true }, { propertyName: "bodyTpl", first: true, predicate: ["body"], descendants: true }], ngImport: i0, template: "<nz-card\r\n [nzBorderless]=\"true\"\r\n [nzBodyStyle]=\"{ padding: '8px', width: '100%' }\"\r\n>\r\n <div class=\"page-container-title\" *ngIf=\"title\">{{ title }}</div>\r\n <div class=\"page-container-custom-content\" *ngIf=\"customContentTpl\">\r\n <ng-container *ngTemplateOutlet=\"customContentTpl\"></ng-container>\r\n </div>\r\n <div class=\"page-container-header\" *ngIf=\"showHeader\" [ngStyle]=\"headerStyle\">\r\n <ng-container *ngTemplateOutlet=\"headerTpl\"></ng-container>\r\n </div>\r\n <div class=\"page-container-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-container *ngTemplateOutlet=\"bodyTpl\"></ng-container>\r\n </div>\r\n</nz-card>\r\n", styles: [".page-container-title{padding-left:8px;font-size:16px;color:#1d1d1d;margin-bottom:8px}.page-container-title:before{content:\"\";display:inline-block;width:2px;height:16px;position:relative;left:-8px;top:3px;background-color:#096dd9}.page-container-custom-content{box-sizing:border-box;padding:0 0 8px}.page-container-header{box-sizing:border-box;padding:12px 24px;background:#f4f4f5}.page-container-body{box-sizing:border-box;padding:8px 0 0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }] }); }
|
|
14
15
|
}
|
|
15
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageContainerComponent, decorators: [{
|
|
16
17
|
type: Component,
|
|
17
|
-
args: [{ selector: "app-page-container", template: "<nz-card\r\n [nzBorderless]=\"true\"\r\n [nzBodyStyle]=\"{ padding: '8px', width: '100%' }\"\r\n>\r\n <div class=\"page-container-title\" *ngIf=\"title\">{{ title }}</div>\r\n <div class=\"page-container-header\" *ngIf=\"showHeader\">\r\n <ng-container *ngTemplateOutlet=\"headerTpl\"></ng-container>\r\n </div>\r\n <div class=\"page-container-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-container *ngTemplateOutlet=\"bodyTpl\"></ng-container>\r\n </div>\r\n</nz-card>\r\n", styles: [".page-container-title{padding-left:8px;font-size:16px;color:#1d1d1d;margin-bottom:8px}.page-container-title:before{content:\"\";display:inline-block;width:2px;height:16px;position:relative;left:-8px;top:3px;background-color:#096dd9}.page-container-header{box-sizing:border-box;padding:12px 24px;background:#f4f4f5}.page-container-body{box-sizing:border-box;padding:
|
|
18
|
+
args: [{ selector: "app-page-container", template: "<nz-card\r\n [nzBorderless]=\"true\"\r\n [nzBodyStyle]=\"{ padding: '8px', width: '100%' }\"\r\n>\r\n <div class=\"page-container-title\" *ngIf=\"title\">{{ title }}</div>\r\n <div class=\"page-container-custom-content\" *ngIf=\"customContentTpl\">\r\n <ng-container *ngTemplateOutlet=\"customContentTpl\"></ng-container>\r\n </div>\r\n <div class=\"page-container-header\" *ngIf=\"showHeader\" [ngStyle]=\"headerStyle\">\r\n <ng-container *ngTemplateOutlet=\"headerTpl\"></ng-container>\r\n </div>\r\n <div class=\"page-container-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-container *ngTemplateOutlet=\"bodyTpl\"></ng-container>\r\n </div>\r\n</nz-card>\r\n", styles: [".page-container-title{padding-left:8px;font-size:16px;color:#1d1d1d;margin-bottom:8px}.page-container-title:before{content:\"\";display:inline-block;width:2px;height:16px;position:relative;left:-8px;top:3px;background-color:#096dd9}.page-container-custom-content{box-sizing:border-box;padding:0 0 8px}.page-container-header{box-sizing:border-box;padding:12px 24px;background:#f4f4f5}.page-container-body{box-sizing:border-box;padding:8px 0 0}\n"] }]
|
|
18
19
|
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
19
20
|
type: Input
|
|
20
21
|
}], showHeader: [{
|
|
21
22
|
type: Input
|
|
22
23
|
}], bodyStyle: [{
|
|
23
24
|
type: Input
|
|
25
|
+
}], headerStyle: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], customContentTpl: [{
|
|
28
|
+
type: ContentChild,
|
|
29
|
+
args: ["customContent"]
|
|
24
30
|
}], headerTpl: [{
|
|
25
31
|
type: ContentChild,
|
|
26
32
|
args: ["header"]
|
|
@@ -28,4 +34,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
28
34
|
type: ContentChild,
|
|
29
35
|
args: ["body"]
|
|
30
36
|
}] } });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvLXRhYmxlL3NyYy9saWIvcGFnZS1jb250YWluZXIvcGFnZS1jb250YWluZ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