@yibozhang/pro-table 16.1.11 → 16.1.13
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/pro-table.component.mjs +36 -25
- package/esm2022/lib/utils/column-width-measure.mjs +54 -0
- package/fesm2022/yibozhang-pro-table.mjs +34 -23
- package/fesm2022/yibozhang-pro-table.mjs.map +1 -1
- package/lib/pro-table.component.d.ts +6 -5
- package/lib/utils/column-width-measure.d.ts +13 -0
- package/package.json +1 -1
|
@@ -33,7 +33,6 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
33
33
|
multipleSort: boolean;
|
|
34
34
|
showCheckbox: boolean;
|
|
35
35
|
rowDisabled: (data: any) => boolean;
|
|
36
|
-
rerenderOnResize: boolean;
|
|
37
36
|
autoTriggerRequest: boolean;
|
|
38
37
|
customTableRender?: TemplateRef<any>;
|
|
39
38
|
onRowClick: EventEmitter<any>;
|
|
@@ -49,6 +48,10 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
49
48
|
private _sortPriority;
|
|
50
49
|
private _autoCompleteDebounceMap;
|
|
51
50
|
_columns: ProTableColumn[];
|
|
51
|
+
get _computedScroll(): {
|
|
52
|
+
x?: string | number;
|
|
53
|
+
y?: string | number;
|
|
54
|
+
} | null;
|
|
52
55
|
_searchParams: any;
|
|
53
56
|
_searchFiledColumns: ProTableColumn[];
|
|
54
57
|
_pageInfo: ProTablePageInfo;
|
|
@@ -59,10 +62,7 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
59
62
|
_indeterminate: boolean;
|
|
60
63
|
_serverColumns: ProTableColumn[];
|
|
61
64
|
_autoCompleteDataSources: Record<string, any[]>;
|
|
62
|
-
_showTable: boolean;
|
|
63
65
|
_columnsReady: boolean;
|
|
64
|
-
private resizeDebounce;
|
|
65
|
-
onWindowResize(): void;
|
|
66
66
|
constructor(columnRemote: ProTableRemoteColumnService | null);
|
|
67
67
|
private fetchRemoteColumns;
|
|
68
68
|
private persistRemoteColumns;
|
|
@@ -70,6 +70,7 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
70
70
|
ngAfterContentInit(): void;
|
|
71
71
|
private queryDynamicColumns;
|
|
72
72
|
private formateInnerColumns;
|
|
73
|
+
private parseColumnWidth;
|
|
73
74
|
private autoRegisterTemplates;
|
|
74
75
|
private findTemplateIndex;
|
|
75
76
|
private setSearchFormDefaultProp;
|
|
@@ -125,5 +126,5 @@ export declare class ProTableComponent implements OnInit, AfterContentInit {
|
|
|
125
126
|
getLabelTemplate(name: string | undefined): TemplateRef<any> | null;
|
|
126
127
|
getFormItemClassName(column: ProTableColumn): string;
|
|
127
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProTableComponent, [{ optional: true; }]>;
|
|
128
|
-
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; }; "formItemWidth": { "alias": "formItemWidth"; "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; }; "
|
|
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; }; "formItemWidth": { "alias": "formItemWidth"; "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"; }, ["actionBarTpl", "imgActionBarTpl", "allTemplates"], never, false, never>;
|
|
129
130
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const PRO_TABLE_CHECKBOX_COL_WIDTH = 50;
|
|
2
|
+
export declare function parseWidthToPx(width: string | number): number;
|
|
3
|
+
export declare function measureTableColumnWidths(options: {
|
|
4
|
+
tableRoot: HTMLElement;
|
|
5
|
+
columns: {
|
|
6
|
+
prop: string;
|
|
7
|
+
width?: string;
|
|
8
|
+
}[];
|
|
9
|
+
showCheckbox: boolean;
|
|
10
|
+
}): {
|
|
11
|
+
measured: Record<string, string>;
|
|
12
|
+
totalPx: number;
|
|
13
|
+
};
|