@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
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opentinyvue/vue-grid",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.21.0",
|
|
5
|
+
"description": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"main": "./lib/index.js",
|
|
9
|
+
"module": "./lib/index.js",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@opentinyvue/vue-common": "~2.21.0",
|
|
12
|
+
"@opentinyvue/vue-directive": "~2.21.0",
|
|
13
|
+
"@opentinyvue/vue-dropdown": "~2.21.0",
|
|
14
|
+
"@opentinyvue/vue-dropdown-item": "~2.21.0",
|
|
15
|
+
"@opentinyvue/vue-dropdown-menu": "~2.21.0",
|
|
16
|
+
"@opentinyvue/vue-exception": "~2.21.0",
|
|
17
|
+
"@opentinyvue/vue-icon": "~2.21.0",
|
|
18
|
+
"@opentinyvue/vue-loading": "~2.21.0",
|
|
19
|
+
"@opentinyvue/vue-locale": "~2.21.0",
|
|
20
|
+
"@opentinyvue/vue-modal": "~2.21.0",
|
|
21
|
+
"@opentinyvue/vue-pager": "~2.21.0",
|
|
22
|
+
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
23
|
+
"@opentinyvue/vue-tag": "~2.21.0",
|
|
24
|
+
"@opentinyvue/vue-theme": "~3.21.0",
|
|
25
|
+
"@opentinyvue/vue-tooltip": "~2.21.0"
|
|
26
|
+
},
|
|
27
|
+
"types": "index.d.ts",
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "pnpm -w build:ui $npm_package_name",
|
|
30
|
+
"//postversion": "pnpm build"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import { Interceptor } from '@opentinyvue/vue-renderless/grid/core';
|
|
13
|
+
import Renderer from './src/renderer';
|
|
14
|
+
declare const Buttons: {
|
|
15
|
+
mixin(map: any): any;
|
|
16
|
+
get(type: any): any;
|
|
17
|
+
add(type: any, callback: any): any;
|
|
18
|
+
delete(type: any): any;
|
|
19
|
+
};
|
|
20
|
+
declare const Menus: {
|
|
21
|
+
mixin(map: any): any;
|
|
22
|
+
get(type: any): any;
|
|
23
|
+
add(type: any, callback: any): any;
|
|
24
|
+
delete(type: any): any;
|
|
25
|
+
};
|
|
26
|
+
export declare const Grid: {
|
|
27
|
+
use(Plugin: any, options: any): any;
|
|
28
|
+
setup: (options?: {}) => void;
|
|
29
|
+
interceptor: {
|
|
30
|
+
mixin(map: any): any;
|
|
31
|
+
get(type: any): any;
|
|
32
|
+
add(type: any, callback: any): any;
|
|
33
|
+
delete(type: any, callback: any): any;
|
|
34
|
+
};
|
|
35
|
+
renderer: {};
|
|
36
|
+
buttons: {
|
|
37
|
+
mixin(map: any): any;
|
|
38
|
+
get(type: any): any;
|
|
39
|
+
add(type: any, callback: any): any;
|
|
40
|
+
delete(type: any): any;
|
|
41
|
+
};
|
|
42
|
+
menus: {
|
|
43
|
+
mixin(map: any): any;
|
|
44
|
+
get(type: any): any;
|
|
45
|
+
add(type: any, callback: any): any;
|
|
46
|
+
delete(type: any): any;
|
|
47
|
+
};
|
|
48
|
+
_tooltip: boolean;
|
|
49
|
+
};
|
|
50
|
+
export { Menus, Buttons, Interceptor, Renderer };
|
|
51
|
+
export default Grid;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import Body from './src/body';
|
|
26
|
+
export default Body;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
declare const _default: any;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import CellDefault from './src/cell';
|
|
13
|
+
export declare const Cell: {
|
|
14
|
+
createColumn($table: any, colProps: any): any;
|
|
15
|
+
renderHeader(h: any, params: any, type?: string | undefined): any[];
|
|
16
|
+
renderCell(h: any, params: any): any;
|
|
17
|
+
renderTreeCell(h: any, params: any): any[];
|
|
18
|
+
renderTreeIcon(h: any, params: any): any[];
|
|
19
|
+
renderIndexHeader(h: any, params: any): any;
|
|
20
|
+
renderTreeIndexCell(h: any, params: any): any[];
|
|
21
|
+
renderIndexCell(h: any, params: any): any;
|
|
22
|
+
renderRadioHeader(h: any, params: any): any;
|
|
23
|
+
renderRadioCell(h: any, params: any): any;
|
|
24
|
+
renderTreeRadioCell(h: any, params: any): any[];
|
|
25
|
+
renderSelectionHeader(h: any, params: any): any;
|
|
26
|
+
renderSelectionCell(h: any, params: any): any;
|
|
27
|
+
renderTreeSelectionCell(h: any, params: any): any[];
|
|
28
|
+
renderSelectionCellByProp(h: any, params: any): any;
|
|
29
|
+
renderTreeSelectionCellByProp(h: any, params: any): any[];
|
|
30
|
+
renderExpandCell(h: any, params: any): any[] | null;
|
|
31
|
+
renderExpandData(h: any, params: any): any;
|
|
32
|
+
renderSortAndFilterHeader(h: any, params: any): any[];
|
|
33
|
+
renderSortHeader(h: any, params: any): any[];
|
|
34
|
+
renderSortIcon(h: any, params: any, cls?: string): any[];
|
|
35
|
+
renderFilterHeader(h: any, params: any): any[];
|
|
36
|
+
renderFilterIcon(h: any, params: any, cls?: string): any[];
|
|
37
|
+
renderEditHeader(h: any, params: any): any[];
|
|
38
|
+
renderTreeRowEdit(h: any, params: any): any[];
|
|
39
|
+
renderRowEdit(h: any, params: any): any;
|
|
40
|
+
renderTreeCellEdit(h: any, params: any): any[];
|
|
41
|
+
renderCellEdit(h: any, params: any): any;
|
|
42
|
+
runRenderer(h: any, params: any, _vm: any, isEdit: any): any;
|
|
43
|
+
getSuffixCls(params: any): string[];
|
|
44
|
+
renderOperationCell(h: any, params: any): any;
|
|
45
|
+
};
|
|
46
|
+
export default CellDefault;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const runRender: (render: any, ...params: any[]) => any;
|
|
2
|
+
export declare const Cell: {
|
|
3
|
+
createColumn($table: any, colProps: any): any;
|
|
4
|
+
renderHeader(h: any, params: any, type?: string): any[];
|
|
5
|
+
renderCell(h: any, params: any): any;
|
|
6
|
+
renderTreeCell(h: any, params: any): any[];
|
|
7
|
+
renderTreeIcon(h: any, params: any): any[];
|
|
8
|
+
renderIndexHeader(h: any, params: any): any;
|
|
9
|
+
renderTreeIndexCell(h: any, params: any): any[];
|
|
10
|
+
renderIndexCell(h: any, params: any): any;
|
|
11
|
+
renderRadioHeader(h: any, params: any): any;
|
|
12
|
+
renderRadioCell(h: any, params: any): any;
|
|
13
|
+
renderTreeRadioCell(h: any, params: any): any[];
|
|
14
|
+
renderSelectionHeader(h: any, params: any): any;
|
|
15
|
+
renderSelectionCell(h: any, params: any): any;
|
|
16
|
+
renderTreeSelectionCell(h: any, params: any): any[];
|
|
17
|
+
renderSelectionCellByProp(h: any, params: any): any;
|
|
18
|
+
renderTreeSelectionCellByProp(h: any, params: any): any[];
|
|
19
|
+
renderExpandCell(h: any, params: any): any[] | null;
|
|
20
|
+
renderExpandData(h: any, params: any): any;
|
|
21
|
+
renderSortAndFilterHeader(h: any, params: any): any[];
|
|
22
|
+
renderSortHeader(h: any, params: any): any[];
|
|
23
|
+
renderSortIcon(h: any, params: any, cls?: string): any[];
|
|
24
|
+
renderFilterHeader(h: any, params: any): any[];
|
|
25
|
+
renderFilterIcon(h: any, params: any, cls?: string): any[];
|
|
26
|
+
renderEditHeader(h: any, params: any): any[];
|
|
27
|
+
renderTreeRowEdit(h: any, params: any): any[];
|
|
28
|
+
renderRowEdit(h: any, params: any): any;
|
|
29
|
+
renderTreeCellEdit(h: any, params: any): any[];
|
|
30
|
+
renderCellEdit(h: any, params: any): any;
|
|
31
|
+
runRenderer(h: any, params: any, _vm: any, isEdit: any): any;
|
|
32
|
+
getSuffixCls(params: any): string[];
|
|
33
|
+
renderOperationCell(h: any, params: any): any;
|
|
34
|
+
};
|
|
35
|
+
export default Cell;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
handleSelectionDefChecked(): void;
|
|
3
|
+
setSelection(rows: any, value: any): any;
|
|
4
|
+
handleSelectRow({ row }: {
|
|
5
|
+
row: any;
|
|
6
|
+
}, value: any): void;
|
|
7
|
+
handleToggleCheckRowEvent(params: any, event: any): void;
|
|
8
|
+
triggerCheckRowEvent(event: any, params: any, value: any): void;
|
|
9
|
+
toggleRowSelection(row: any): any;
|
|
10
|
+
setAllSelection(value: any): void;
|
|
11
|
+
checkSelectionStatus(): void;
|
|
12
|
+
reserveCheckSelection(): void;
|
|
13
|
+
triggerCheckAllEvent(event: any, value: any): void;
|
|
14
|
+
toggleAllSelection(): any;
|
|
15
|
+
clearSelection(): any;
|
|
16
|
+
initMultipleHistory(): void;
|
|
17
|
+
showSelectToolbar(): any;
|
|
18
|
+
toggleSelectToolbarVisible(): any;
|
|
19
|
+
handleSelectionHeader(): void;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare function hasCheckFieldNoStrictly({ afterFullData, checkMethod, checkStrictly, property, selection, treeConfig, value }: {
|
|
2
|
+
afterFullData: any;
|
|
3
|
+
checkMethod: any;
|
|
4
|
+
checkStrictly: any;
|
|
5
|
+
property: any;
|
|
6
|
+
selection: any;
|
|
7
|
+
treeConfig: any;
|
|
8
|
+
value: any;
|
|
9
|
+
}): void;
|
|
10
|
+
export declare function hasNoCheckFieldNoStrictly({ afterFullData, checkMethod, checkStrictly, property, selection, treeConfig, value }: {
|
|
11
|
+
afterFullData: any;
|
|
12
|
+
checkMethod: any;
|
|
13
|
+
checkStrictly: any;
|
|
14
|
+
property: any;
|
|
15
|
+
selection: any;
|
|
16
|
+
treeConfig: any;
|
|
17
|
+
value: any;
|
|
18
|
+
}): never[];
|
|
19
|
+
export declare function setSelectionNoStrictly({ _vm, checkStrictly, reserve, selectRows, selection, value, afterFullData }: {
|
|
20
|
+
_vm: any;
|
|
21
|
+
checkStrictly: any;
|
|
22
|
+
reserve: any;
|
|
23
|
+
selectRows: any;
|
|
24
|
+
selection: any;
|
|
25
|
+
value: any;
|
|
26
|
+
afterFullData: any;
|
|
27
|
+
}): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
import Column from './src/column';
|
|
13
|
+
export default Column;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
renderColumnAnchor(params: any, _vm: any): any;
|
|
3
|
+
buildColumnAnchor({ property, label, anchors, activeAnchor }: {
|
|
4
|
+
property: any;
|
|
5
|
+
label: any;
|
|
6
|
+
anchors: any;
|
|
7
|
+
activeAnchor: any;
|
|
8
|
+
}): void;
|
|
9
|
+
buildColumnAnchorParams(): void;
|
|
10
|
+
anchorAction({ field, anchors, _vm }: {
|
|
11
|
+
field: any;
|
|
12
|
+
anchors: any;
|
|
13
|
+
_vm: any;
|
|
14
|
+
}): void;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
package/src/config.d.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
declare const GlobalConfig: {
|
|
2
|
+
validConfig: {
|
|
3
|
+
message: string;
|
|
4
|
+
icon: any;
|
|
5
|
+
};
|
|
6
|
+
sortConfig: {
|
|
7
|
+
multipleColumnSort: boolean;
|
|
8
|
+
};
|
|
9
|
+
stripe: boolean;
|
|
10
|
+
stripeSaas: boolean;
|
|
11
|
+
borderSaas: boolean;
|
|
12
|
+
borderVertical: boolean;
|
|
13
|
+
highlightHoverRow: boolean;
|
|
14
|
+
resizable: boolean;
|
|
15
|
+
operationColumnResizable: boolean;
|
|
16
|
+
fit: boolean;
|
|
17
|
+
showHeader: boolean;
|
|
18
|
+
defaultTreeIndent: number;
|
|
19
|
+
defaultTreeSpacing: number;
|
|
20
|
+
rowId: string;
|
|
21
|
+
version: number;
|
|
22
|
+
optimization: {
|
|
23
|
+
animat: boolean;
|
|
24
|
+
delayHover: number;
|
|
25
|
+
scrollX: {
|
|
26
|
+
gt: number;
|
|
27
|
+
};
|
|
28
|
+
scrollY: {
|
|
29
|
+
gt: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
icon: {
|
|
33
|
+
sortAsc: any;
|
|
34
|
+
sortDesc: any;
|
|
35
|
+
sortDefault: any;
|
|
36
|
+
required: string;
|
|
37
|
+
filter: any;
|
|
38
|
+
edit: any;
|
|
39
|
+
tree: string;
|
|
40
|
+
refresh: any;
|
|
41
|
+
minscreen: any;
|
|
42
|
+
fullscreen: any;
|
|
43
|
+
custom: any;
|
|
44
|
+
jumpPrev: string;
|
|
45
|
+
jumpNext: string;
|
|
46
|
+
prevPage: string;
|
|
47
|
+
nextPage: string;
|
|
48
|
+
zoomIn: string;
|
|
49
|
+
zoomOut: string;
|
|
50
|
+
modalClose: string;
|
|
51
|
+
modalInfo: string;
|
|
52
|
+
modalSuccess: string;
|
|
53
|
+
modalWarning: string;
|
|
54
|
+
modalError: string;
|
|
55
|
+
modalQuestion: string;
|
|
56
|
+
modalLoading: string;
|
|
57
|
+
caretBottom: string;
|
|
58
|
+
dropdownBottom: string;
|
|
59
|
+
btnLoading: string;
|
|
60
|
+
};
|
|
61
|
+
grid: {};
|
|
62
|
+
menu: {};
|
|
63
|
+
tooltip: {
|
|
64
|
+
trigger: string;
|
|
65
|
+
theme: string;
|
|
66
|
+
};
|
|
67
|
+
pager: {};
|
|
68
|
+
toolbar: {
|
|
69
|
+
resizable: {
|
|
70
|
+
storage: boolean;
|
|
71
|
+
};
|
|
72
|
+
buttons: never[];
|
|
73
|
+
};
|
|
74
|
+
modal: {
|
|
75
|
+
zIndex: number;
|
|
76
|
+
minWidth: number;
|
|
77
|
+
minHeight: number;
|
|
78
|
+
lockView: boolean;
|
|
79
|
+
mask: boolean;
|
|
80
|
+
duration: number;
|
|
81
|
+
marginSize: number;
|
|
82
|
+
animat: boolean;
|
|
83
|
+
};
|
|
84
|
+
i18n: (key: any) => any;
|
|
85
|
+
constant: {
|
|
86
|
+
insertedField: string;
|
|
87
|
+
deletedField: string;
|
|
88
|
+
asyncPrefix: string;
|
|
89
|
+
};
|
|
90
|
+
TINY_TABLE_CUSTOM_COLUMN_WIDTH: string;
|
|
91
|
+
TINY_TABLE_CUSTOM_SETTING: string;
|
|
92
|
+
viewConfig: {
|
|
93
|
+
DEFAULT: string;
|
|
94
|
+
MF: string;
|
|
95
|
+
CARD: string;
|
|
96
|
+
LIST: string;
|
|
97
|
+
GANTT: string;
|
|
98
|
+
CUSTOM: string;
|
|
99
|
+
MF_SHOW_LIST: string;
|
|
100
|
+
MF_SHOW_CARD: string;
|
|
101
|
+
toolbar: {
|
|
102
|
+
default: string;
|
|
103
|
+
mf: string;
|
|
104
|
+
card: string;
|
|
105
|
+
};
|
|
106
|
+
pager: {
|
|
107
|
+
default: string;
|
|
108
|
+
mf: string;
|
|
109
|
+
card: string;
|
|
110
|
+
};
|
|
111
|
+
columnAnchor: {
|
|
112
|
+
default: string;
|
|
113
|
+
mf: string;
|
|
114
|
+
card: string;
|
|
115
|
+
};
|
|
116
|
+
hiddenColumn: {
|
|
117
|
+
default: string;
|
|
118
|
+
mf: string;
|
|
119
|
+
card: string;
|
|
120
|
+
};
|
|
121
|
+
tableHeader: {
|
|
122
|
+
default: string;
|
|
123
|
+
mf: string;
|
|
124
|
+
card: string;
|
|
125
|
+
};
|
|
126
|
+
emptyData: {
|
|
127
|
+
default: string;
|
|
128
|
+
mf: string;
|
|
129
|
+
card: string;
|
|
130
|
+
};
|
|
131
|
+
tableBody: {
|
|
132
|
+
default: string;
|
|
133
|
+
mf: string;
|
|
134
|
+
card: string;
|
|
135
|
+
};
|
|
136
|
+
tableFooter: {
|
|
137
|
+
default: string;
|
|
138
|
+
mf: string;
|
|
139
|
+
card: string;
|
|
140
|
+
};
|
|
141
|
+
fixedColumn: {
|
|
142
|
+
default: string;
|
|
143
|
+
mf: string;
|
|
144
|
+
card: string;
|
|
145
|
+
};
|
|
146
|
+
borderLine: {
|
|
147
|
+
default: string;
|
|
148
|
+
mf: string;
|
|
149
|
+
card: string;
|
|
150
|
+
};
|
|
151
|
+
resizeBar: {
|
|
152
|
+
default: string;
|
|
153
|
+
mf: string;
|
|
154
|
+
card: string;
|
|
155
|
+
};
|
|
156
|
+
gridLoading: {
|
|
157
|
+
default: string;
|
|
158
|
+
mf: string;
|
|
159
|
+
card: string;
|
|
160
|
+
};
|
|
161
|
+
tableWrapper: {
|
|
162
|
+
default: string;
|
|
163
|
+
mf: string;
|
|
164
|
+
card: string;
|
|
165
|
+
};
|
|
166
|
+
selectToolbar: {
|
|
167
|
+
default: string;
|
|
168
|
+
mf: string;
|
|
169
|
+
card: string;
|
|
170
|
+
};
|
|
171
|
+
mfTable: {
|
|
172
|
+
default: string;
|
|
173
|
+
mf: string;
|
|
174
|
+
card: string;
|
|
175
|
+
};
|
|
176
|
+
footerBorder: {
|
|
177
|
+
default: string;
|
|
178
|
+
mf: string;
|
|
179
|
+
card: string;
|
|
180
|
+
};
|
|
181
|
+
operButton: {
|
|
182
|
+
default: string;
|
|
183
|
+
mf: string;
|
|
184
|
+
card: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
themes: {
|
|
188
|
+
TINY: string;
|
|
189
|
+
SAAS: string;
|
|
190
|
+
};
|
|
191
|
+
columnLevelKey: string;
|
|
192
|
+
defaultColumnName: string;
|
|
193
|
+
};
|
|
194
|
+
export default GlobalConfig;
|
|
195
|
+
export declare const prefix = "tiny-grid";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const createHandlerOnEnd: ({ _vm, refresh }: {
|
|
2
|
+
_vm: any;
|
|
3
|
+
refresh: any;
|
|
4
|
+
}) => (event: any) => any;
|
|
5
|
+
export declare const getSortColumns: (columns: any) => never[];
|
|
6
|
+
export declare const onEndEvent: ({ event, _this }: {
|
|
7
|
+
event: any;
|
|
8
|
+
_this: any;
|
|
9
|
+
}) => any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare function removeFromTableSourceData({ _vm, rows, tableSourceData }: {
|
|
2
|
+
_vm: any;
|
|
3
|
+
rows: any;
|
|
4
|
+
tableSourceData: any;
|
|
5
|
+
}): void;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
_insert(records: any): any;
|
|
8
|
+
_insertAt(records: any, row: any): any;
|
|
9
|
+
/**
|
|
10
|
+
* 删除指定行数据
|
|
11
|
+
* 如果传 row 则删除一行
|
|
12
|
+
* 如果传 rows 则删除多行
|
|
13
|
+
*/
|
|
14
|
+
_remove(rows: any): any;
|
|
15
|
+
/**
|
|
16
|
+
* 删除选中数据
|
|
17
|
+
*/
|
|
18
|
+
_removeSelecteds(): any;
|
|
19
|
+
_revert(...args: any[]): any;
|
|
20
|
+
/**
|
|
21
|
+
* 对数据进行还原
|
|
22
|
+
* 如果不传任何参数,则还原整个表格;
|
|
23
|
+
* 如果传row则还原一行;
|
|
24
|
+
* 如果传rows则还原多行;
|
|
25
|
+
* 如果还额外传了field则还原指定单元格。
|
|
26
|
+
*/
|
|
27
|
+
_revertData(rows: any, field: any): any;
|
|
28
|
+
/**
|
|
29
|
+
* 获取表格操作数据集
|
|
30
|
+
*/
|
|
31
|
+
_getRecordset(): {};
|
|
32
|
+
/**
|
|
33
|
+
* 获取删除数据列表
|
|
34
|
+
*/
|
|
35
|
+
_getRemoveRecords(): any;
|
|
36
|
+
/**
|
|
37
|
+
* 获取新增数据列表
|
|
38
|
+
*/
|
|
39
|
+
_getInsertRecords(): any;
|
|
40
|
+
/**
|
|
41
|
+
* 获取更新数据列表
|
|
42
|
+
* 只精准匹配row的更改。如果是树表格,子节点更改状态不会影响父节点的更新状态
|
|
43
|
+
*/
|
|
44
|
+
_getUpdateRecords(): any;
|
|
45
|
+
/**
|
|
46
|
+
* 处理激活编辑
|
|
47
|
+
*/
|
|
48
|
+
handleActived(params: any, event: any): Promise<any>;
|
|
49
|
+
_getColumnModel(row: any, column: any): void;
|
|
50
|
+
_setColumnModel(row: any, column: any): void;
|
|
51
|
+
_getActiveRow(): any;
|
|
52
|
+
/**
|
|
53
|
+
* 清除已激活的编辑
|
|
54
|
+
*/
|
|
55
|
+
_clearActived(event: any): any;
|
|
56
|
+
_hasActiveRow(row: any): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 处理聚焦
|
|
59
|
+
*/
|
|
60
|
+
handleFocus(params: any): void;
|
|
61
|
+
/**
|
|
62
|
+
* 激活单元格编辑
|
|
63
|
+
*/
|
|
64
|
+
_setActiveCell: (row: any, field: any) => any;
|
|
65
|
+
/**
|
|
66
|
+
* 激活行编辑
|
|
67
|
+
*/
|
|
68
|
+
_setActiveRow(row: any): any;
|
|
69
|
+
/**
|
|
70
|
+
* 只对trigger为dblclick有效,选中单元格
|
|
71
|
+
*/
|
|
72
|
+
_setSelectCell(row: any, field: any): any;
|
|
73
|
+
updateSelectedCls(clear: any): void;
|
|
74
|
+
/**
|
|
75
|
+
* 处理选中源
|
|
76
|
+
*/
|
|
77
|
+
handleSelected(params: any, event: any): any;
|
|
78
|
+
};
|
|
79
|
+
export default _default;
|