@opentinyvue/vue-grid 2.21.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/LICENSE +22 -0
- package/index.d.ts +8 -0
- package/lib/index.js +16799 -0
- package/package.json +32 -0
- package/src/adapter/index.d.ts +51 -0
- package/src/adapter/src/renderer.d.ts +5 -0
- package/src/adapter/src/setup.d.ts +2 -0
- package/src/body/index.d.ts +26 -0
- package/src/body/src/body.d.ts +26 -0
- package/src/cell/index.d.ts +46 -0
- package/src/cell/src/cell.d.ts +35 -0
- package/src/checkbox/index.d.ts +5 -0
- package/src/checkbox/src/handleSelectRow.d.ts +6 -0
- package/src/checkbox/src/methods.d.ts +21 -0
- package/src/checkbox/src/setAllSelection.d.ts +27 -0
- package/src/column/index.d.ts +13 -0
- package/src/column/src/column.d.ts +2 -0
- package/src/column-anchor/index.d.ts +5 -0
- package/src/column-anchor/src/methods.d.ts +16 -0
- package/src/composable/index.d.ts +2 -0
- package/src/composable/useDrag/dnd.d.ts +3 -0
- package/src/composable/useDrag/index.d.ts +5 -0
- package/src/composable/useRowGroup.d.ts +6 -0
- package/src/config.d.ts +195 -0
- package/src/dragger/index.d.ts +5 -0
- package/src/dragger/src/methods.d.ts +5 -0
- package/src/dragger/src/rowDrop.d.ts +9 -0
- package/src/edit/index.d.ts +4 -0
- package/src/edit/src/methods.d.ts +79 -0
- package/src/edit/src/utils/handleActived.d.ts +39 -0
- package/src/export/index.d.ts +4 -0
- package/src/fetch-data/index.d.ts +5 -0
- package/src/fetch-data/src/methods.d.ts +18 -0
- package/src/filter/index.d.ts +2 -0
- package/src/filter/src/handleLocalFilter.d.ts +38 -0
- package/src/filter/src/methods.d.ts +17 -0
- package/src/filter/src/panel.d.ts +26 -0
- package/src/footer/index.d.ts +26 -0
- package/src/footer/src/footer.d.ts +26 -0
- package/src/grid/grid.d.ts +26 -0
- package/src/header/index.d.ts +26 -0
- package/src/header/src/header.d.ts +26 -0
- package/src/index.d.ts +13 -0
- package/src/keyboard/index.d.ts +4 -0
- package/src/keyboard/src/methods.d.ts +33 -0
- package/src/keyboard/src/utils/moveTabSelected.d.ts +13 -0
- package/src/keyboard/src/utils/triggerCellMousedownEvent.d.ts +20 -0
- package/src/keyboard/src/utils/triggerHeaderCellMousedownEvent.d.ts +8 -0
- package/src/loading/index.d.ts +2 -0
- package/src/loading/src/loading.d.ts +13 -0
- package/src/menu/index.d.ts +2 -0
- package/src/menu/src/children.d.ts +2 -0
- package/src/menu/src/methods.d.ts +19 -0
- package/src/menu/src/panel.d.ts +2 -0
- package/src/mobile-first/column-content.vue.d.ts +2 -0
- package/src/mobile-first/column-layout.vue.d.ts +2 -0
- package/src/mobile-first/column-link.vue.d.ts +2 -0
- package/src/mobile-first/column-type.vue.d.ts +2 -0
- package/src/mobile-first/custom-view.vue.d.ts +2 -0
- package/src/mobile-first/gantt-view.vue.d.ts +2 -0
- package/src/mobile-first/index.vue.d.ts +2 -0
- package/src/mobile-first/list-view.vue.d.ts +2 -0
- package/src/mobile-first/table-row.vue.d.ts +2 -0
- package/src/mobile-first/type.d.ts +46 -0
- package/src/mobile-first/utils.d.ts +4 -0
- package/src/pager/index.d.ts +5 -0
- package/src/pager/src/methods.d.ts +17 -0
- package/src/radio/index.d.ts +2 -0
- package/src/radio/src/radio.d.ts +2 -0
- package/src/resize/index.d.ts +4 -0
- package/src/resize/src/methods.d.ts +5 -0
- package/src/sort/index.d.ts +5 -0
- package/src/sort/src/methods.d.ts +2 -0
- package/src/table/index.d.ts +13 -0
- package/src/table/src/events.d.ts +47 -0
- package/src/table/src/funcs.d.ts +5 -0
- package/src/table/src/methods.d.ts +178 -0
- package/src/table/src/strategy.d.ts +34 -0
- package/src/table/src/table.d.ts +2 -0
- package/src/table/src/utils/autoCellWidth.d.ts +39 -0
- package/src/table/src/utils/computeScrollLoad.d.ts +16 -0
- package/src/table/src/utils/handleFixedColumn.d.ts +6 -0
- package/src/table/src/utils/handleGlobalKeydownEvent.d.ts +1 -0
- package/src/table/src/utils/handleGlobalMousedownEvent.d.ts +56 -0
- package/src/table/src/utils/handleOtherKeyDown.d.ts +25 -0
- package/src/table/src/utils/handleResolveColumn.d.ts +28 -0
- package/src/table/src/utils/refreshColumn.d.ts +46 -0
- package/src/table/src/utils/triggerCellClickEvent.d.ts +74 -0
- package/src/table/src/utils/updateStyle.d.ts +5 -0
- package/src/toolbar/index.d.ts +5 -0
- package/src/toolbar/src/methods.d.ts +43 -0
- package/src/tools/formatter.d.ts +36 -0
- package/src/tools/index.d.ts +4 -0
- package/src/tools/logger.d.ts +2 -0
- package/src/tooltip/index.d.ts +5 -0
- package/src/tooltip/src/handleTooltip.d.ts +16 -0
- package/src/tooltip/src/methods.d.ts +11 -0
- package/src/tree/index.d.ts +5 -0
- package/src/tree/src/methods.d.ts +12 -0
- package/src/types/index.type.d.ts +4 -0
- package/src/validator/index.d.ts +4 -0
- package/src/validator/src/methods.d.ts +42 -0
- package/src/validator/src/utils/beginValidate.d.ts +22 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare function handleGlobalMousedownEvent(event: any): void;
|
|
2
|
+
export declare function handleGlobalMousedownCaptureEvent(event: any): void;
|
|
3
|
+
export declare function handleGlobalBlurEvent(): void;
|
|
4
|
+
export declare function handleGlobalMousewheelEvent(event: any): void;
|
|
5
|
+
export declare function handleEscKeyDown({ event, actived, mouseConfig }: {
|
|
6
|
+
event: any;
|
|
7
|
+
actived: any;
|
|
8
|
+
mouseConfig: any;
|
|
9
|
+
}): void;
|
|
10
|
+
export declare function handleEnterKeyDown({ event, selected, actived }: {
|
|
11
|
+
event: any;
|
|
12
|
+
selected: any;
|
|
13
|
+
actived: any;
|
|
14
|
+
}): void;
|
|
15
|
+
export declare function handleCtxMenu({ event }: {
|
|
16
|
+
event: any;
|
|
17
|
+
}): void;
|
|
18
|
+
export declare function handleArrowKeyDown({ event, selected }: {
|
|
19
|
+
event: any;
|
|
20
|
+
selected: any;
|
|
21
|
+
}): void;
|
|
22
|
+
export declare function handleDelKeyDown({ event, selected }: {
|
|
23
|
+
event: any;
|
|
24
|
+
selected: any;
|
|
25
|
+
}): void;
|
|
26
|
+
export declare function handleSpaceKeyDown({ event, selected }: {
|
|
27
|
+
event: any;
|
|
28
|
+
selected: any;
|
|
29
|
+
}): void;
|
|
30
|
+
export declare function handleTabKeyDown({ event, selected, actived }: {
|
|
31
|
+
event: any;
|
|
32
|
+
selected: any;
|
|
33
|
+
actived: any;
|
|
34
|
+
}): void;
|
|
35
|
+
export declare function handleCopyKeyDown({ event }: {
|
|
36
|
+
event: any;
|
|
37
|
+
}): void;
|
|
38
|
+
export declare function handleF2KeyDown({ event, selected }: {
|
|
39
|
+
event: any;
|
|
40
|
+
selected: any;
|
|
41
|
+
}): void;
|
|
42
|
+
export declare function handleOtherKeyDown({ event, selected }: {
|
|
43
|
+
event: any;
|
|
44
|
+
selected: any;
|
|
45
|
+
}): void;
|
|
46
|
+
export declare function handleGlobalKeydownEvent(event: any): void;
|
|
47
|
+
export declare function handleGlobalResizeEvent(): void;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { handleGlobalMousedownEvent, handleGlobalBlurEvent, handleGlobalMousewheelEvent, handleArrowKeyDown, handleCopyKeyDown, handleCtxMenu, handleDelKeyDown, handleEnterKeyDown, handleEscKeyDown, handleF2KeyDown, handleOtherKeyDown, handleSpaceKeyDown, handleTabKeyDown, handleGlobalKeydownEvent, handleGlobalResizeEvent, handleGlobalMousedownCaptureEvent } from './events';
|
|
2
|
+
declare const Methods: {
|
|
3
|
+
getParentElem(): any;
|
|
4
|
+
updateParentHeight(): void;
|
|
5
|
+
getParentHeight(): any;
|
|
6
|
+
clearAll(silent: any): any;
|
|
7
|
+
refreshData(data: any): any;
|
|
8
|
+
refreshStyle(): any;
|
|
9
|
+
updateData(): any;
|
|
10
|
+
handleTableData(force: any): any;
|
|
11
|
+
loadTableData(datas: any, notRefresh: any): any;
|
|
12
|
+
reloadData(datas: any): any;
|
|
13
|
+
loadData(datas: any): Promise<unknown>;
|
|
14
|
+
reloadRow(row: any, record: any, field: any): any;
|
|
15
|
+
reloadColumn(columns: any): any;
|
|
16
|
+
loadColumn(columns: any): Promise<any>;
|
|
17
|
+
updateCache(source: any): void;
|
|
18
|
+
cacheColumnMap(): void;
|
|
19
|
+
getRowNode(tr: any): any;
|
|
20
|
+
getColumnNode(cell: any): any;
|
|
21
|
+
getRowIndex(row: any): any;
|
|
22
|
+
getColumnIndex(column: any): any;
|
|
23
|
+
hasIndexColumn(column: any): any;
|
|
24
|
+
defineField(row: any, copy: any): any;
|
|
25
|
+
isTemporaryRow(row: any): any;
|
|
26
|
+
createData(records: any, copy: any): Promise<unknown>;
|
|
27
|
+
createRow(records: any): Promise<unknown>;
|
|
28
|
+
clearData(rows: any, field: any): any;
|
|
29
|
+
hasRowInsert(row: any): number;
|
|
30
|
+
compareRow(row: any, originalRow: any, field: any): any;
|
|
31
|
+
hasRowChange(row: any, field: any): any;
|
|
32
|
+
getColumns(columnIndex: any): any;
|
|
33
|
+
getColumnById(colid: any): any;
|
|
34
|
+
getColumnByField(field: any): any;
|
|
35
|
+
getTableColumn(): {
|
|
36
|
+
fullColumn: any;
|
|
37
|
+
visibleColumn: any;
|
|
38
|
+
tableColumn: any;
|
|
39
|
+
collectColumn: any;
|
|
40
|
+
};
|
|
41
|
+
getData(rowIndex: any): any;
|
|
42
|
+
getSelectRecords(notCopy: any): any;
|
|
43
|
+
updateAfterFullData(): any;
|
|
44
|
+
getRowById(rowid: any): any;
|
|
45
|
+
getTableData(): {
|
|
46
|
+
visibleData: any;
|
|
47
|
+
footerData: any;
|
|
48
|
+
tableData: any;
|
|
49
|
+
fullData: any;
|
|
50
|
+
};
|
|
51
|
+
handleDefault(): void;
|
|
52
|
+
mergeCustomColumn(customColumns: any, sort: any, colWidth: any): void;
|
|
53
|
+
resetAll(): void;
|
|
54
|
+
hideColumn(tableColumn: any): any;
|
|
55
|
+
showColumn(tableColumn: any): any;
|
|
56
|
+
resetCustoms(): any;
|
|
57
|
+
handleVisibleColumn(tableColumn: any, visible: any): any;
|
|
58
|
+
reloadCustoms(customColumns: any, sort: any, colWidth: any): any;
|
|
59
|
+
watchColumn(value: any): void;
|
|
60
|
+
refreshColumn(): any;
|
|
61
|
+
analyColumnWidth(): void;
|
|
62
|
+
/**
|
|
63
|
+
* 计算单元格列宽,动态分配可用剩余空间
|
|
64
|
+
* 支持(width=?、width=?px、width=?%、min-width=?、min-width=?px、min-width=?%)
|
|
65
|
+
*/
|
|
66
|
+
recalculate(): any;
|
|
67
|
+
autoCellWidth(headerEl: any, bodyEl: any, footerEl: any): void;
|
|
68
|
+
syncHeaderHeight(): void;
|
|
69
|
+
resetResizable(): any;
|
|
70
|
+
updateStyle(): any;
|
|
71
|
+
preventEvent(event: any, type: any, args: any, next: any, end: any): void;
|
|
72
|
+
blurOutside({ row, args, column }: {
|
|
73
|
+
row: any;
|
|
74
|
+
args: any;
|
|
75
|
+
column: any;
|
|
76
|
+
}, event: any): boolean | undefined;
|
|
77
|
+
handleGlobalMousedownEvent: typeof handleGlobalMousedownEvent;
|
|
78
|
+
handleGlobalBlurEvent: typeof handleGlobalBlurEvent;
|
|
79
|
+
handleGlobalMousewheelEvent: typeof handleGlobalMousewheelEvent;
|
|
80
|
+
handleEscKeyDown: typeof handleEscKeyDown;
|
|
81
|
+
handleEnterKeyDown: typeof handleEnterKeyDown;
|
|
82
|
+
handleCtxMenu: typeof handleCtxMenu;
|
|
83
|
+
handleArrowKeyDown: typeof handleArrowKeyDown;
|
|
84
|
+
handleDelKeyDown: typeof handleDelKeyDown;
|
|
85
|
+
handleSpaceKeyDown: typeof handleSpaceKeyDown;
|
|
86
|
+
handleTabKeyDown: typeof handleTabKeyDown;
|
|
87
|
+
handleCopyKeyDown: typeof handleCopyKeyDown;
|
|
88
|
+
handleF2KeyDown: typeof handleF2KeyDown;
|
|
89
|
+
handleOtherKeyDown: typeof handleOtherKeyDown;
|
|
90
|
+
handleGlobalKeydownEvent: typeof handleGlobalKeydownEvent;
|
|
91
|
+
handleGlobalResizeEvent: typeof handleGlobalResizeEvent;
|
|
92
|
+
handleGlobalMousedownCaptureEvent: typeof handleGlobalMousedownCaptureEvent;
|
|
93
|
+
handleRadioDefChecked(): void;
|
|
94
|
+
triggerRadioRowEvent(event: any, params: any): void;
|
|
95
|
+
triggerCurrentRowEvent(event: any, params: any): void;
|
|
96
|
+
setCurrentRow(row: any): any;
|
|
97
|
+
setRadioRow(row: any): any;
|
|
98
|
+
clearCurrentRow(): any;
|
|
99
|
+
clearRadioRow(): any;
|
|
100
|
+
getCurrentRow(): any;
|
|
101
|
+
getRadioRow(): any;
|
|
102
|
+
triggerHeaderCellClickEvent(event: any, params: any): any;
|
|
103
|
+
setCurrentColumn(column: any): any;
|
|
104
|
+
clearCurrentColumn(): any;
|
|
105
|
+
handleChangeCell(event: any, params: any): void;
|
|
106
|
+
triggerCellClickEvent(event: any, params: any): void;
|
|
107
|
+
triggerCellDBLClickEvent(event: any, params: any): void;
|
|
108
|
+
triggerSortEvent(event: any, column: any, order: any): void;
|
|
109
|
+
sort(field: any, order: any): any;
|
|
110
|
+
clearSort(): any;
|
|
111
|
+
toggleGroupExpansion(row: any): void;
|
|
112
|
+
triggerRowExpandEvent(event: any, { row }: {
|
|
113
|
+
row: any;
|
|
114
|
+
}): any;
|
|
115
|
+
toggleRowExpansion(row: any): any;
|
|
116
|
+
handleDefaultRowExpand(): void;
|
|
117
|
+
setAllRowExpansion(expanded: any): any;
|
|
118
|
+
setRowExpansion(rows: any, expanded: any): any;
|
|
119
|
+
hasRowExpand(row: any): number;
|
|
120
|
+
clearRowExpand(): any;
|
|
121
|
+
getVirtualScroller(): {
|
|
122
|
+
scrollX: any;
|
|
123
|
+
scrollY: any;
|
|
124
|
+
scrollLeft: any;
|
|
125
|
+
scrollTop: any;
|
|
126
|
+
};
|
|
127
|
+
triggerScrollXEvent(event: any): void;
|
|
128
|
+
debounceScrollX(event: any): void;
|
|
129
|
+
loadScrollXData(): void;
|
|
130
|
+
triggerScrollYEvent(event: any): void;
|
|
131
|
+
debounceScrollLoad(event: any): void;
|
|
132
|
+
loadScrollYData(event: any): void;
|
|
133
|
+
getRowHeight(): any;
|
|
134
|
+
computeScrollLoad(): any;
|
|
135
|
+
updateScrollXData(): void;
|
|
136
|
+
updateScrollXSpace(): void;
|
|
137
|
+
debounceRaf(handlerKey: any, callback: any): void;
|
|
138
|
+
updateScrollYData(): void;
|
|
139
|
+
updateScrollYSpace(): void;
|
|
140
|
+
updateScrollLoadBar(event: any): void;
|
|
141
|
+
scrollTo(scrollLeft: any, scrollTop: any): any;
|
|
142
|
+
scrollToRow(row: any, column: any, isDelay: any, move: any): any;
|
|
143
|
+
scrollToTreeRow(row: any): any;
|
|
144
|
+
scrollToColumn(column: any, isDelay: any, move: any): any;
|
|
145
|
+
resetScrollTop(): void;
|
|
146
|
+
clearScroll(): any;
|
|
147
|
+
updateFooter(): any;
|
|
148
|
+
updateStatus(scope: any, cellValue: any, renderOpts: any): any;
|
|
149
|
+
updateScrollStatus(): void;
|
|
150
|
+
getAsyncColumnUniqueKey(property: any, row: any): string;
|
|
151
|
+
getAsyncColumnName(property: any): string;
|
|
152
|
+
collectAsyncColumn(tableData: any): never[];
|
|
153
|
+
handleAsyncColumn(tableData: any): void;
|
|
154
|
+
handleResolveColumn(tableData: any, fetchColumns: any): void;
|
|
155
|
+
connect({ toolbar }: {
|
|
156
|
+
toolbar: any;
|
|
157
|
+
}): void;
|
|
158
|
+
getEventTargetNode: (event: any, container: any, queryCls: any) => {
|
|
159
|
+
flag: boolean;
|
|
160
|
+
container: any;
|
|
161
|
+
targetElem: any;
|
|
162
|
+
} | {
|
|
163
|
+
flag: boolean;
|
|
164
|
+
container?: undefined;
|
|
165
|
+
targetElem?: undefined;
|
|
166
|
+
};
|
|
167
|
+
handleVisibilityChange(visible: any, entry: any): void;
|
|
168
|
+
updateTableBodyHeight(): void;
|
|
169
|
+
toggleColumnOrder(column: any): "asc" | "desc" | null;
|
|
170
|
+
watchDataForVue3(): void;
|
|
171
|
+
getVm(name: any): any;
|
|
172
|
+
assembleColumns(): void;
|
|
173
|
+
isValidCustomColumn(columnName: any): any;
|
|
174
|
+
computeCollectKey(): string;
|
|
175
|
+
getAllSelection(): any;
|
|
176
|
+
attemptRestoreScoll(options: any): any;
|
|
177
|
+
};
|
|
178
|
+
export default Methods;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const getRowUniqueId: () => string;
|
|
2
|
+
declare const setTableRowKey: ($table: any) => any;
|
|
3
|
+
declare const getTableRowKey: ($table: any) => any;
|
|
4
|
+
declare const getTableCellKey: ({ $table, column, row }: {
|
|
5
|
+
$table: any;
|
|
6
|
+
column: any;
|
|
7
|
+
row: any;
|
|
8
|
+
}) => string;
|
|
9
|
+
declare const setTreeScrollYCache: (_vm: any) => void;
|
|
10
|
+
declare const sliceFullData: (_vm: any) => any;
|
|
11
|
+
declare const getTotalRows: (_vm: any) => any;
|
|
12
|
+
declare const getTreeChildrenKey: ({ scrollYLoad, treeConfig }: {
|
|
13
|
+
scrollYLoad: any;
|
|
14
|
+
treeConfig: any;
|
|
15
|
+
}) => any;
|
|
16
|
+
declare const getTreeShowKey: ({ scrollYLoad, treeConfig }: {
|
|
17
|
+
scrollYLoad: any;
|
|
18
|
+
treeConfig: any;
|
|
19
|
+
}) => string | undefined;
|
|
20
|
+
declare const sliceVisibleColumn: (tableVm: any) => {
|
|
21
|
+
tableColumn: any;
|
|
22
|
+
lastStartIndex: any;
|
|
23
|
+
visibleColumnChanged: any;
|
|
24
|
+
sliced: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare const clearOnTableUnmount: ($table: any) => void;
|
|
27
|
+
declare const setSliceColumnTree: (_vm: any) => any;
|
|
28
|
+
/** 判断是否是虚拟行 */
|
|
29
|
+
declare const isVirtualRow: (row: any) => any;
|
|
30
|
+
/** 普通表分组场景,在全量数据筛选排序之后,进行分组处理生成虚拟行 */
|
|
31
|
+
declare const buildRowGroupFullData: (fullData: any, _vm: any) => void;
|
|
32
|
+
/** 普通表分组场景,分组行点击处理 */
|
|
33
|
+
declare const handleRowGroupFold: (row: any, _vm: any) => void;
|
|
34
|
+
export { clearOnTableUnmount, getRowUniqueId, getTableCellKey, getTableRowKey, getTotalRows, getTreeChildrenKey, getTreeShowKey, setTreeScrollYCache, setTableRowKey, sliceFullData, sliceVisibleColumn, setSliceColumnTree, buildRowGroupFullData, handleRowGroupFold, isVirtualRow };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2019 Xu Liangzhan
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare const calcTableWidth: ({ bodyWidth, columnStore, fit, minCellWidth, remainWidth }: {
|
|
26
|
+
bodyWidth: any;
|
|
27
|
+
columnStore: any;
|
|
28
|
+
fit: any;
|
|
29
|
+
minCellWidth: any;
|
|
30
|
+
remainWidth: any;
|
|
31
|
+
}) => number;
|
|
32
|
+
export declare const calcFixedStickyPosition: ({ headerEl, bodyEl, columnStore, scrollbarWidth, columnChart, isGroup }: {
|
|
33
|
+
headerEl: any;
|
|
34
|
+
bodyEl: any;
|
|
35
|
+
columnStore: any;
|
|
36
|
+
scrollbarWidth: any;
|
|
37
|
+
columnChart: any;
|
|
38
|
+
isGroup: any;
|
|
39
|
+
}) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function computeScrollYLoad({ _vm, scrollLoad, scrollY, scrollYLoad, scrollYStore, tableBodyElem }: {
|
|
2
|
+
_vm: any;
|
|
3
|
+
scrollLoad: any;
|
|
4
|
+
scrollY: any;
|
|
5
|
+
scrollYLoad: any;
|
|
6
|
+
scrollYStore: any;
|
|
7
|
+
tableBodyElem: any;
|
|
8
|
+
}): void;
|
|
9
|
+
export declare function computeScrollXLoad({ _vm, scrollX, scrollXLoad, scrollXStore, tableBodyElem, visibleColumn }: {
|
|
10
|
+
_vm: any;
|
|
11
|
+
scrollX: any;
|
|
12
|
+
scrollXLoad: any;
|
|
13
|
+
scrollXStore: any;
|
|
14
|
+
tableBodyElem: any;
|
|
15
|
+
visibleColumn: any;
|
|
16
|
+
}): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function onGlobalKeydown(event: any, _vm: any): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2019 Xu Liangzhan
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function handleGlobalMousedownOnFilterWrapper({ $el, _vm, event, filterStore, filterWrapper }: {
|
|
26
|
+
$el: any;
|
|
27
|
+
_vm: any;
|
|
28
|
+
event: any;
|
|
29
|
+
filterStore: any;
|
|
30
|
+
filterWrapper: any;
|
|
31
|
+
}): void;
|
|
32
|
+
export declare function handleGlobalMousedownOnCtxMenu({ _vm, ctxMenuStore, event }: {
|
|
33
|
+
_vm: any;
|
|
34
|
+
ctxMenuStore: any;
|
|
35
|
+
event: any;
|
|
36
|
+
}): void;
|
|
37
|
+
export declare function handleGlobalBlurOutside({ _vm, actived, event }: {
|
|
38
|
+
_vm: any;
|
|
39
|
+
actived: any;
|
|
40
|
+
event: any;
|
|
41
|
+
}): boolean;
|
|
42
|
+
export declare function handleGlobalIsClear({ $el, _vm, actived, editConfig, event, isClear, isReadonlyCol }: {
|
|
43
|
+
$el: any;
|
|
44
|
+
_vm: any;
|
|
45
|
+
actived: any;
|
|
46
|
+
editConfig: any;
|
|
47
|
+
event: any;
|
|
48
|
+
isClear: any;
|
|
49
|
+
isReadonlyCol: any;
|
|
50
|
+
}): any;
|
|
51
|
+
export declare function handleGlobalClearActived({ $el, _vm, event, isClear }: {
|
|
52
|
+
$el: any;
|
|
53
|
+
_vm: any;
|
|
54
|
+
event: any;
|
|
55
|
+
isClear: any;
|
|
56
|
+
}): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2019 Xu Liangzhan
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function checkOtherKey(keyCode: any): boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare function mapFetchColumnPromise({ _vm, fetchColumns, tableColumn }: {
|
|
2
|
+
_vm: any;
|
|
3
|
+
fetchColumns: any;
|
|
4
|
+
tableColumn: any;
|
|
5
|
+
}): any;
|
|
6
|
+
export declare function preprocessDataObjectFormat({ columnCount, columnValues, columnValuesMap, fields }: {
|
|
7
|
+
columnCount: any;
|
|
8
|
+
columnValues: any;
|
|
9
|
+
columnValuesMap: any;
|
|
10
|
+
fields: any;
|
|
11
|
+
}): void;
|
|
12
|
+
export declare function preventDupRender({ asyncColumnName, cellTexts, cellValuesCount, columnData, columnValuesMap, isRender, property, renderCount, row, splitConfig }: {
|
|
13
|
+
asyncColumnName: any;
|
|
14
|
+
cellTexts: any;
|
|
15
|
+
cellValuesCount: any;
|
|
16
|
+
columnData: any;
|
|
17
|
+
columnValuesMap: any;
|
|
18
|
+
isRender: any;
|
|
19
|
+
property: any;
|
|
20
|
+
renderCount: any;
|
|
21
|
+
row: any;
|
|
22
|
+
splitConfig: any;
|
|
23
|
+
}): any;
|
|
24
|
+
export declare function handleResolveColumnComplete({ _vm, columnData, complete }: {
|
|
25
|
+
_vm: any;
|
|
26
|
+
columnData: any;
|
|
27
|
+
complete: any;
|
|
28
|
+
}): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare function onGroupHeader({ _vm, isGroup, headerProps }: {
|
|
2
|
+
_vm: any;
|
|
3
|
+
isGroup: any;
|
|
4
|
+
headerProps: any;
|
|
5
|
+
}): void;
|
|
6
|
+
export declare function reassignNotFixed({ centerList, column }: {
|
|
7
|
+
centerList: any;
|
|
8
|
+
column: any;
|
|
9
|
+
}): void;
|
|
10
|
+
export declare function reassignFixedRight({ column, columnIndex, isColspan, rightEndIndex, rightList }: {
|
|
11
|
+
column: any;
|
|
12
|
+
columnIndex: any;
|
|
13
|
+
isColspan: any;
|
|
14
|
+
rightEndIndex: any;
|
|
15
|
+
rightList: any;
|
|
16
|
+
}): {
|
|
17
|
+
isColspan: any;
|
|
18
|
+
rightEndIndex: any;
|
|
19
|
+
};
|
|
20
|
+
export declare function reassignFixedLeft({ column, columnIndex, isColspan, leftList, leftStartIndex, letIndex }: {
|
|
21
|
+
column: any;
|
|
22
|
+
columnIndex: any;
|
|
23
|
+
isColspan: any;
|
|
24
|
+
leftList: any;
|
|
25
|
+
leftStartIndex: any;
|
|
26
|
+
letIndex: any;
|
|
27
|
+
}): {
|
|
28
|
+
leftStartIndex: any;
|
|
29
|
+
letIndex: any;
|
|
30
|
+
isColspan: any;
|
|
31
|
+
};
|
|
32
|
+
export declare function showGroupFixedError({ isColspan, isGroup, leftStartIndex, rightEndIndex, visibleColumn }: {
|
|
33
|
+
isColspan: any;
|
|
34
|
+
isGroup: any;
|
|
35
|
+
leftStartIndex: any;
|
|
36
|
+
rightEndIndex: any;
|
|
37
|
+
visibleColumn: any;
|
|
38
|
+
}): void;
|
|
39
|
+
export declare function onScrollXLoad({ _vm, scrollX, scrollXLoad, scrollXStore, tableColumn, visibleColumn }: {
|
|
40
|
+
_vm: any;
|
|
41
|
+
scrollX: any;
|
|
42
|
+
scrollXLoad: any;
|
|
43
|
+
scrollXStore: any;
|
|
44
|
+
tableColumn: any;
|
|
45
|
+
visibleColumn: any;
|
|
46
|
+
}): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2019 Xu Liangzhan
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function isTargetRadioOrCheckbox(event: any, column: any, colType: any, targetType: any): any;
|
|
26
|
+
export declare function onClickExpandColumn({ $el, _vm, column, event, expandConfig, params }: {
|
|
27
|
+
$el: any;
|
|
28
|
+
_vm: any;
|
|
29
|
+
column: any;
|
|
30
|
+
event: any;
|
|
31
|
+
expandConfig: any;
|
|
32
|
+
params: any;
|
|
33
|
+
}): void;
|
|
34
|
+
export declare function onClickTreeNodeColumn({ _vm, column, event, params, treeConfig }: {
|
|
35
|
+
_vm: any;
|
|
36
|
+
column: any;
|
|
37
|
+
event: any;
|
|
38
|
+
params: any;
|
|
39
|
+
treeConfig: any;
|
|
40
|
+
}): void;
|
|
41
|
+
export declare function onHighlightCurrentRow({ $el, _vm, event, highlightCurrentRow, params, radioConfig }: {
|
|
42
|
+
$el: any;
|
|
43
|
+
_vm: any;
|
|
44
|
+
event: any;
|
|
45
|
+
highlightCurrentRow: any;
|
|
46
|
+
params: any;
|
|
47
|
+
radioConfig: any;
|
|
48
|
+
}): void;
|
|
49
|
+
export declare function onClickRadioColumn({ $el, _vm, column, event, params, radioConfig }: {
|
|
50
|
+
$el: any;
|
|
51
|
+
_vm: any;
|
|
52
|
+
column: any;
|
|
53
|
+
event: any;
|
|
54
|
+
params: any;
|
|
55
|
+
radioConfig: any;
|
|
56
|
+
}): void;
|
|
57
|
+
export declare function onClickSelectColumn({ _vm, column, event, params, selectConfig }: {
|
|
58
|
+
_vm: any;
|
|
59
|
+
column: any;
|
|
60
|
+
event: any;
|
|
61
|
+
params: any;
|
|
62
|
+
selectConfig: any;
|
|
63
|
+
}): void;
|
|
64
|
+
export declare function onClickCellSelect({ _vm, actived, cell, column, editConfig, event, mouseConfig, params, row }: {
|
|
65
|
+
_vm: any;
|
|
66
|
+
actived: any;
|
|
67
|
+
cell: any;
|
|
68
|
+
column: any;
|
|
69
|
+
editConfig: any;
|
|
70
|
+
event: any;
|
|
71
|
+
mouseConfig: any;
|
|
72
|
+
params: any;
|
|
73
|
+
row: any;
|
|
74
|
+
}): void;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare function setBodyRecords({ body, insertRecords, pendingRecords }: {
|
|
2
|
+
body: any;
|
|
3
|
+
insertRecords: any;
|
|
4
|
+
pendingRecords: any;
|
|
5
|
+
}): void;
|
|
6
|
+
export declare function doRemoveOrShowMsg({ _vm, canInvoke, code, isMsg, pendingRecords, resolve, valid }: {
|
|
7
|
+
_vm: any;
|
|
8
|
+
canInvoke: any;
|
|
9
|
+
code: any;
|
|
10
|
+
isMsg: any;
|
|
11
|
+
pendingRecords: any;
|
|
12
|
+
resolve: any;
|
|
13
|
+
valid: any;
|
|
14
|
+
}): void;
|
|
15
|
+
export declare function invokeSaveDataApi({ _vm, args, body, code, removeRecords, resolve, saveData, updateRecords, valid }: {
|
|
16
|
+
_vm: any;
|
|
17
|
+
args: any;
|
|
18
|
+
body: any;
|
|
19
|
+
code: any;
|
|
20
|
+
removeRecords: any;
|
|
21
|
+
resolve: any;
|
|
22
|
+
saveData: any;
|
|
23
|
+
updateRecords: any;
|
|
24
|
+
valid: any;
|
|
25
|
+
}): boolean;
|
|
26
|
+
declare const _default: {
|
|
27
|
+
getRenderedToolbar({ $slots, _vm, loading, tableLoading, toolbar }: {
|
|
28
|
+
$slots: any;
|
|
29
|
+
_vm: any;
|
|
30
|
+
loading: any;
|
|
31
|
+
tableLoading: any;
|
|
32
|
+
toolbar: any;
|
|
33
|
+
}): null;
|
|
34
|
+
handleSave(code: any, args: any): Promise<unknown> | undefined;
|
|
35
|
+
handleDelete(code: any, args: any): void;
|
|
36
|
+
handleFullScreen([show]: [any]): void;
|
|
37
|
+
commitProxy(code: any, ...args: any[]): any;
|
|
38
|
+
handleDeleteRow(code: any, i18nKey: any, callback: any): void;
|
|
39
|
+
getPendingRecords(): any;
|
|
40
|
+
triggerToolbarBtnEvent(button: any, event: any): void;
|
|
41
|
+
triggerPendingEvent(code: any): void;
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
declare const _default: {
|
|
13
|
+
money(value: any): any;
|
|
14
|
+
enum(value: any): any;
|
|
15
|
+
select(cellValue: any): any;
|
|
16
|
+
number(value: any): any;
|
|
17
|
+
integer(value: any): any;
|
|
18
|
+
filesize(value: any): any;
|
|
19
|
+
date(value: any): any;
|
|
20
|
+
dateTime(value: any): any;
|
|
21
|
+
longDateTime(value: any): any;
|
|
22
|
+
time(value: any): any;
|
|
23
|
+
longTime(value: any): any;
|
|
24
|
+
yearMonth(value: any): any;
|
|
25
|
+
ellipsis(value: any): (h: any) => any;
|
|
26
|
+
/**
|
|
27
|
+
* rate 渲染器的计算规则:
|
|
28
|
+
* 如果配置了 max,就按照 value / max 计算样式百分比,按照 value / 1 计算显示百分比;
|
|
29
|
+
* 如果未配置 max,就按照 value / total 计算样式百分比和显示百分比;
|
|
30
|
+
* @param {Number} value
|
|
31
|
+
* @returns Function
|
|
32
|
+
*/
|
|
33
|
+
rate(value: any): any;
|
|
34
|
+
boole(value: any): any;
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|