@yibozhang/pro-table 16.1.21 → 16.2.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/esm2022/lib/page-container/page-container.component.mjs +6 -3
- package/esm2022/lib/pro-table.component.mjs +30 -7
- package/esm2022/lib/table-search-bar/table-search-bar.component.mjs +6 -12
- package/fesm2022/yibozhang-pro-table.mjs +40 -20
- package/fesm2022/yibozhang-pro-table.mjs.map +1 -1
- package/lib/page-container/page-container.component.d.ts +2 -1
- package/lib/pro-table.component.d.ts +9 -2
- package/lib/table-search-bar/table-search-bar.component.d.ts +2 -4
- package/package.json +1 -1
|
@@ -9,10 +9,11 @@ export declare class PageContainerComponent implements OnInit {
|
|
|
9
9
|
headerStyle: {
|
|
10
10
|
[key: string]: string | number;
|
|
11
11
|
};
|
|
12
|
+
customContentTpl: TemplateRef<any>;
|
|
12
13
|
headerTpl: TemplateRef<any>;
|
|
13
14
|
bodyTpl: TemplateRef<any>;
|
|
14
15
|
constructor();
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageContainerComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageContainerComponent, "app-page-container", never, { "title": { "alias": "title"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; }; "headerStyle": { "alias": "headerStyle"; "required": false; }; }, {}, ["headerTpl", "bodyTpl"], never, false, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageContainerComponent, "app-page-container", never, { "title": { "alias": "title"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; }; "headerStyle": { "alias": "headerStyle"; "required": false; }; }, {}, ["customContentTpl", "headerTpl", "bodyTpl"], never, false, never>;
|
|
18
19
|
}
|
|
@@ -7,6 +7,9 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
7
7
|
showSearchBtn: boolean;
|
|
8
8
|
showClearBtn: boolean;
|
|
9
9
|
title: string | null;
|
|
10
|
+
bodyStyle: {
|
|
11
|
+
[key: string]: string | number;
|
|
12
|
+
};
|
|
10
13
|
tableName: string;
|
|
11
14
|
multiRow: boolean;
|
|
12
15
|
columns: ProTableColumn[];
|
|
@@ -16,7 +19,10 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
16
19
|
clearBtnText: string;
|
|
17
20
|
labelWidth: string;
|
|
18
21
|
labelAlign: string;
|
|
19
|
-
|
|
22
|
+
private _searchColCount;
|
|
23
|
+
set searchColCount(value: number | null | undefined);
|
|
24
|
+
get searchColCount(): number;
|
|
25
|
+
get tableSearchColCount(): number | null;
|
|
20
26
|
dataSource: any[];
|
|
21
27
|
bordered: boolean;
|
|
22
28
|
outerBordered: boolean;
|
|
@@ -39,6 +45,7 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
39
45
|
onRowDbClick: EventEmitter<any>;
|
|
40
46
|
onValuesChange: EventEmitter<ProTableValuesChange>;
|
|
41
47
|
onResetFormBeforeReload: EventEmitter<any>;
|
|
48
|
+
customContentTpl: TemplateRef<any>;
|
|
42
49
|
actionBarTpl: TemplateRef<any>;
|
|
43
50
|
imgActionBarTpl: TemplateRef<any>;
|
|
44
51
|
allTemplates: QueryList<TemplateRef<any>>;
|
|
@@ -126,5 +133,5 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
126
133
|
getLabelTemplate(name: string | undefined): TemplateRef<any> | null;
|
|
127
134
|
getFormItemClassName(column: ProTableColumn): string;
|
|
128
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProTableComponent, [{ optional: true; }]>;
|
|
129
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProTableComponent, "app-pro-table", never, { "showSearchBtn": { "alias": "showSearchBtn"; "required": false; }; "showClearBtn": { "alias": "showClearBtn"; "required": false; }; "title": { "alias": "title"; "required": false; }; "tableName": { "alias": "tableName"; "required": false; }; "multiRow": { "alias": "multiRow"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "showActionBar": { "alias": "showActionBar"; "required": false; }; "confirmBtnText": { "alias": "confirmBtnText"; "required": false; }; "clearBtnText": { "alias": "clearBtnText"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "labelAlign": { "alias": "labelAlign"; "required": false; }; "
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProTableComponent, "app-pro-table", never, { "showSearchBtn": { "alias": "showSearchBtn"; "required": false; }; "showClearBtn": { "alias": "showClearBtn"; "required": false; }; "title": { "alias": "title"; "required": false; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; }; "tableName": { "alias": "tableName"; "required": false; }; "multiRow": { "alias": "multiRow"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "showActionBar": { "alias": "showActionBar"; "required": false; }; "confirmBtnText": { "alias": "confirmBtnText"; "required": false; }; "clearBtnText": { "alias": "clearBtnText"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "labelAlign": { "alias": "labelAlign"; "required": false; }; "searchColCount": { "alias": "searchColCount"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "outerBordered": { "alias": "outerBordered"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "frontPagination": { "alias": "frontPagination"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "request": { "alias": "request"; "required": false; }; "summaryData": { "alias": "summaryData"; "required": false; }; "sortMode": { "alias": "sortMode"; "required": false; }; "showColumnSetting": { "alias": "showColumnSetting"; "required": false; }; "multipleSort": { "alias": "multipleSort"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "rowDisabled": { "alias": "rowDisabled"; "required": false; }; "autoTriggerRequest": { "alias": "autoTriggerRequest"; "required": false; }; "customTableRender": { "alias": "customTableRender"; "required": false; }; }, { "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onValuesChange": "onValuesChange"; "onResetFormBeforeReload": "onResetFormBeforeReload"; }, ["customContentTpl", "actionBarTpl", "imgActionBarTpl", "allTemplates"], never, false, never>;
|
|
130
137
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, OnInit, TemplateRef } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TableSearchBarComponent implements OnInit, AfterViewInit {
|
|
4
|
-
leftColSpan: number;
|
|
5
|
-
rightColSpan: number;
|
|
6
4
|
labelWidth: string;
|
|
7
5
|
labelAlign: string;
|
|
8
|
-
|
|
6
|
+
searchColCount: number | null;
|
|
9
7
|
leftContentTpl: TemplateRef<any>;
|
|
10
8
|
actionTextBtnTpl: TemplateRef<any>;
|
|
11
9
|
actionImgBtnTpl: TemplateRef<any>;
|
|
@@ -13,5 +11,5 @@ export declare class TableSearchBarComponent implements OnInit, AfterViewInit {
|
|
|
13
11
|
ngOnInit(): void;
|
|
14
12
|
ngAfterViewInit(): void;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableSearchBarComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableSearchBarComponent, "app-table-search-bar", never, { "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSearchBarComponent, "app-table-search-bar", never, { "labelWidth": { "alias": "labelWidth"; "required": false; }; "labelAlign": { "alias": "labelAlign"; "required": false; }; "searchColCount": { "alias": "searchColCount"; "required": false; }; }, {}, ["leftContentTpl", "actionTextBtnTpl", "actionImgBtnTpl"], never, false, never>;
|
|
17
15
|
}
|