es-grid-template 0.0.13 → 0.1.1
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/CHANGELOG.md +6 -6
- package/README.md +1 -1
- package/es/grid-component/ColumnsChoose.d.ts +3 -4
- package/es/grid-component/ColumnsChoose.js +3 -7
- package/es/grid-component/Command.d.ts +8 -0
- package/es/grid-component/Command.js +80 -0
- package/es/grid-component/EditableCell.js +56 -87
- package/es/grid-component/InternalTable.d.ts +1 -0
- package/es/grid-component/InternalTable.js +36 -19
- package/es/grid-component/TableGrid.d.ts +2 -1
- package/es/grid-component/TableGrid.js +63 -18
- package/es/grid-component/index.d.ts +2 -0
- package/es/{table-grid → grid-component}/styles.scss +204 -195
- package/es/grid-component/table/Grid.js +85 -0
- package/{lib/grid-component/rc-table → es/grid-component/table}/GridEdit.d.ts +4 -0
- package/es/grid-component/{rc-table → table}/GridEdit.js +98 -15
- package/es/grid-component/type.d.ts +26 -11
- package/es/grid-component/useContext.d.ts +10 -7
- package/es/grid-component/useContext.js +3 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -2
- package/lib/grid-component/ColumnsChoose.d.ts +3 -4
- package/lib/grid-component/ColumnsChoose.js +3 -7
- package/lib/grid-component/Command.d.ts +8 -0
- package/lib/grid-component/Command.js +88 -0
- package/lib/grid-component/EditableCell.js +56 -87
- package/lib/grid-component/InternalTable.d.ts +1 -0
- package/lib/grid-component/InternalTable.js +35 -18
- package/lib/grid-component/TableGrid.d.ts +2 -1
- package/lib/grid-component/TableGrid.js +62 -17
- package/lib/grid-component/index.d.ts +2 -0
- package/lib/{table-grid → grid-component}/styles.scss +204 -195
- package/lib/grid-component/{rc-table → table}/Grid.js +42 -56
- package/{es/grid-component/rc-table → lib/grid-component/table}/GridEdit.d.ts +4 -0
- package/lib/grid-component/{rc-table → table}/GridEdit.js +98 -15
- package/lib/grid-component/type.d.ts +26 -11
- package/lib/grid-component/useContext.d.ts +10 -7
- package/lib/grid-component/useContext.js +2 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -1
- package/package.json +113 -86
- package/es/grid-component/rc-table/Grid.js +0 -99
- /package/es/{grid-component/Message → Message}/Message.d.ts +0 -0
- /package/es/{grid-component/Message → Message}/Message.js +0 -0
- /package/es/{grid-component/Message → Message}/index.d.ts +0 -0
- /package/es/{grid-component/Message → Message}/index.js +0 -0
- /package/es/grid-component/{rc-table → table}/Grid.d.ts +0 -0
- /package/lib/{grid-component/Message → Message}/Message.d.ts +0 -0
- /package/lib/{grid-component/Message → Message}/Message.js +0 -0
- /package/lib/{grid-component/Message → Message}/index.d.ts +0 -0
- /package/lib/{grid-component/Message → Message}/index.js +0 -0
- /package/lib/grid-component/{rc-table → table}/Grid.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import React, { Fragment, useLayoutEffect,
|
|
2
|
+
import React, { Fragment, useLayoutEffect, useRef } from 'react';
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
4
|
import { numericFormatter } from "react-numeric-component";
|
|
5
5
|
import { Table, Toolbar } from "rc-master-ui";
|
|
@@ -15,6 +15,9 @@ import { flatColumns } from "./hooks/useColumns";
|
|
|
15
15
|
import Pagination from "rc-master-ui/es/pagination";
|
|
16
16
|
import ComponentSpinner from "./LoadingSpinner";
|
|
17
17
|
import { ColumnsChoose } from "./ColumnsChoose";
|
|
18
|
+
// import {useMergedState} from "rc-util";
|
|
19
|
+
// import useMergedState from 'rc-util/lib/hooks/useMergedState';
|
|
20
|
+
|
|
18
21
|
const convertFilters = filters => {
|
|
19
22
|
const result = [];
|
|
20
23
|
filters.forEach(({
|
|
@@ -63,7 +66,6 @@ const convertFilters = filters => {
|
|
|
63
66
|
const useStyle = createStyles(({
|
|
64
67
|
css
|
|
65
68
|
}) => {
|
|
66
|
-
// const { antCls } = token
|
|
67
69
|
const antCls = 'ui-rc';
|
|
68
70
|
return {
|
|
69
71
|
customTable: css`
|
|
@@ -82,6 +84,8 @@ const useStyle = createStyles(({
|
|
|
82
84
|
});
|
|
83
85
|
// type OnChange = NonNullable<TableProps<any>['onChange']>;
|
|
84
86
|
|
|
87
|
+
// const EMPTY_LIST: React.Key[] = [];
|
|
88
|
+
|
|
85
89
|
const TableGrid = props => {
|
|
86
90
|
const {
|
|
87
91
|
columns,
|
|
@@ -109,20 +113,31 @@ const TableGrid = props => {
|
|
|
109
113
|
onFilterClick,
|
|
110
114
|
dataSourceFilter: propDataSourceFilter,
|
|
111
115
|
loading,
|
|
112
|
-
|
|
113
|
-
// dataSourceFilter,
|
|
116
|
+
triggerChangeColumns,
|
|
114
117
|
...rest
|
|
115
118
|
} = props;
|
|
116
119
|
const {
|
|
117
120
|
styles
|
|
118
121
|
} = useStyle();
|
|
122
|
+
const {
|
|
123
|
+
mode,
|
|
124
|
+
type,
|
|
125
|
+
checkboxOnly,
|
|
126
|
+
hideSelectAll,
|
|
127
|
+
columnWidth,
|
|
128
|
+
selectedRowKeys
|
|
129
|
+
// defaultSelectedRowKeys
|
|
130
|
+
} = selectionSettings || {};
|
|
119
131
|
const clickRef = useRef(null);
|
|
120
132
|
const menuRef = useRef(null);
|
|
121
133
|
const viewportWidth = window.innerWidth;
|
|
122
134
|
const viewportHeight = window.innerHeight;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
135
|
+
|
|
136
|
+
// const defaultSelected = useMemo(() => {
|
|
137
|
+
// return defaultSelectedRowKeys ?? []
|
|
138
|
+
//
|
|
139
|
+
// }, [defaultSelectedRowKeys])
|
|
140
|
+
|
|
126
141
|
const [menuVisible, setMenuVisible] = React.useState(false);
|
|
127
142
|
const [selectedRowData, setSelectedRowData] = React.useState(null);
|
|
128
143
|
const [position, setPosition] = React.useState({
|
|
@@ -131,7 +146,25 @@ const TableGrid = props => {
|
|
|
131
146
|
viewportWidth,
|
|
132
147
|
viewportHeight
|
|
133
148
|
});
|
|
134
|
-
|
|
149
|
+
|
|
150
|
+
// const [selectedRowKeys, setSelectedRowKeys] = useState<React.Key[]>(defaultSelected);
|
|
151
|
+
|
|
152
|
+
// ========================= Keys =========================
|
|
153
|
+
// const [mergedSelectedKeys, setMergedSelectedKeys] = useMergedState(
|
|
154
|
+
// selectedRowKeys || defaultSelectedRowKeys || EMPTY_LIST,
|
|
155
|
+
// {
|
|
156
|
+
// value: selectedRowKeys,
|
|
157
|
+
// },
|
|
158
|
+
// );
|
|
159
|
+
|
|
160
|
+
// Reset if rowSelection reset
|
|
161
|
+
|
|
162
|
+
// React.useEffect(() => {
|
|
163
|
+
// if (!selectionSettings) {
|
|
164
|
+
// setMergedSelectedKeys(EMPTY_LIST);
|
|
165
|
+
// }
|
|
166
|
+
// }, [!!selectionSettings]);
|
|
167
|
+
|
|
135
168
|
const contextMenuItems = React.useMemo(() => {
|
|
136
169
|
if (typeof contextMenuHidden === "function" && propContextMenuItems && selectedRowData) {
|
|
137
170
|
const hiddenItems = contextMenuHidden({
|
|
@@ -199,7 +232,17 @@ const TableGrid = props => {
|
|
|
199
232
|
});
|
|
200
233
|
}
|
|
201
234
|
};
|
|
202
|
-
const handleRowClick = () => {
|
|
235
|
+
const handleRowClick = () => () => {
|
|
236
|
+
// console.log(data)
|
|
237
|
+
// console.log(index)
|
|
238
|
+
|
|
239
|
+
// const key = getRowKey(record, index);
|
|
240
|
+
|
|
241
|
+
// console.log('key', key)
|
|
242
|
+
|
|
243
|
+
if (checkboxOnly !== true) {
|
|
244
|
+
if (type === 'single') {}
|
|
245
|
+
}
|
|
203
246
|
if (clickRef.current) return;
|
|
204
247
|
|
|
205
248
|
// @ts-ignore
|
|
@@ -221,7 +264,7 @@ const TableGrid = props => {
|
|
|
221
264
|
};
|
|
222
265
|
const onSelectChange = (keys, selectedRows, info, selectedRow) => {
|
|
223
266
|
if (info.type === 'all') {
|
|
224
|
-
//
|
|
267
|
+
// setMergedSelectedKeys(keys)
|
|
225
268
|
rowSelected?.({
|
|
226
269
|
selected: selectedRows,
|
|
227
270
|
type: 'rowSelected',
|
|
@@ -229,7 +272,7 @@ const TableGrid = props => {
|
|
|
229
272
|
});
|
|
230
273
|
} else {
|
|
231
274
|
if (selectionSettings?.type === 'multiple') {
|
|
232
|
-
//
|
|
275
|
+
// setMergedSelectedKeys(keys)
|
|
233
276
|
rowSelected?.({
|
|
234
277
|
selected: selectedRows,
|
|
235
278
|
type: 'rowSelected',
|
|
@@ -237,7 +280,7 @@ const TableGrid = props => {
|
|
|
237
280
|
});
|
|
238
281
|
} else {
|
|
239
282
|
// @ts-ignore
|
|
240
|
-
|
|
283
|
+
setMergedSelectedKeys([selectedRow[rowKey]]);
|
|
241
284
|
rowSelected?.({
|
|
242
285
|
selected: [selectedRow],
|
|
243
286
|
type: 'rowSelected',
|
|
@@ -293,19 +336,21 @@ const TableGrid = props => {
|
|
|
293
336
|
onRow: (data, index) => {
|
|
294
337
|
return {
|
|
295
338
|
onDoubleClick: handleRowDoubleClick(data, index),
|
|
296
|
-
onClick: handleRowClick,
|
|
339
|
+
// onClick: handleRowClick,
|
|
340
|
+
onClick: handleRowClick(),
|
|
297
341
|
onContextMenu: onContextMenu(data)
|
|
298
342
|
};
|
|
299
343
|
},
|
|
300
344
|
rowSelection: {
|
|
301
|
-
|
|
302
|
-
|
|
345
|
+
...selectionSettings,
|
|
346
|
+
type: selectionSettings?.mode === 'checkbox' || type === 'multiple' ? 'checkbox' : "radio",
|
|
347
|
+
columnWidth: !mode ? 0.0000001 : columnWidth ?? 50,
|
|
303
348
|
onChange: onSelectChange,
|
|
304
|
-
selectedRowKeys:
|
|
349
|
+
selectedRowKeys: mode === 'checkbox' && type === 'single' ? selectedRowKeys : undefined,
|
|
305
350
|
defaultSelectedRowKeys: selectionSettings?.defaultSelectedRowKeys,
|
|
306
351
|
preserveSelectedRowKeys: true,
|
|
307
352
|
...rowSelection,
|
|
308
|
-
hideSelectAll: !
|
|
353
|
+
hideSelectAll: !type || type === 'single' || selectionSettings?.mode === 'radio' ? true : hideSelectAll ?? type !== 'multiple'
|
|
309
354
|
},
|
|
310
355
|
onScroll: () => {
|
|
311
356
|
setMenuVisible(false);
|
|
@@ -360,7 +405,7 @@ const TableGrid = props => {
|
|
|
360
405
|
}
|
|
361
406
|
}), showColumnChoose && /*#__PURE__*/React.createElement(ColumnsChoose, {
|
|
362
407
|
columns: columns,
|
|
363
|
-
|
|
408
|
+
triggerChangeColumns: triggerChangeColumns
|
|
364
409
|
}), /*#__PURE__*/React.createElement("div", null)));
|
|
365
410
|
}
|
|
366
411
|
}, rest)), pagination && pagination.onChange && /*#__PURE__*/React.createElement(Pagination
|
|
@@ -5,12 +5,13 @@ $rowHoverBg: #FBDED6 !default;
|
|
|
5
5
|
$rowSelectedBg: #FEF2EF !default;
|
|
6
6
|
//$tableBorderColor: red !default;
|
|
7
7
|
$tableBorderColor: #e0e0e0 !default;
|
|
8
|
+
//$tableBorderColor: #f0f0f0 !default;
|
|
8
9
|
$border-radius: 6px !default;
|
|
9
10
|
$body-color: #ffffff !default;
|
|
10
11
|
$cell-selected-bg: #E6EFFD !default;
|
|
11
12
|
$cell-index-selected-bg: #0550C5 !default;
|
|
12
13
|
$cell-index-focus-bg: #CEDBEF !default;
|
|
13
|
-
|
|
14
|
+
$rowSelectedHoverBg: 'ui-rc' !default;
|
|
14
15
|
|
|
15
16
|
.react-hot-toast {
|
|
16
17
|
font-size: 1rem;
|
|
@@ -46,60 +47,187 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
// -------------- Table -------------
|
|
50
|
+
|
|
49
51
|
.#{$prefix}-table-wrapper {
|
|
50
|
-
|
|
52
|
+
|
|
53
|
+
.#{$prefix}-table-tbody-virtual {
|
|
51
54
|
.#{$prefix}-table-cell {
|
|
52
|
-
|
|
53
|
-
padding: 0 !important;
|
|
54
|
-
overflow: hidden !important;
|
|
55
|
-
border-inline-end: 0 !important;
|
|
56
|
-
//flex: 0 0 0 !important;
|
|
57
|
-
//width: 0 !important;
|
|
58
|
-
}
|
|
55
|
+
border-bottom: 1px solid $tableBorderColor;
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
|
|
59
|
+
.#{$prefix}-table-bordered {
|
|
60
|
+
|
|
61
|
+
.#{$prefix}-table-tbody-virtual {
|
|
62
|
+
.#{$prefix}-table-cell {
|
|
63
|
+
border-inline-end: 1px solid $tableBorderColor;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
62
68
|
|
|
63
69
|
.#{$prefix}-table-tbody {
|
|
64
70
|
.#{$prefix}-table-row {
|
|
65
71
|
&.#{$prefix}-table-row-selected {
|
|
66
|
-
|
|
72
|
+
> .#{$prefix}-table-cell {
|
|
67
73
|
background: #FEF2EF;
|
|
68
74
|
}
|
|
69
75
|
}
|
|
70
|
-
|
|
76
|
+
|
|
77
|
+
> .#{$prefix}-table-cell {
|
|
71
78
|
&.#{$prefix}-table-cell-row-hover {
|
|
72
79
|
background: #FBDED6;
|
|
73
80
|
}
|
|
81
|
+
|
|
82
|
+
&.ui-rc-cell-command {
|
|
83
|
+
padding: 3px 8px;
|
|
84
|
+
|
|
85
|
+
.ui-rc-cell-command__content {
|
|
86
|
+
display: flex;
|
|
87
|
+
gap: 5px;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.#{$prefix}-table-thead {
|
|
98
|
+
|
|
99
|
+
> tr {
|
|
100
|
+
> th,
|
|
101
|
+
> td {
|
|
102
|
+
border-bottom: 1px solid $tableBorderColor;
|
|
74
103
|
}
|
|
75
104
|
}
|
|
76
105
|
|
|
106
|
+
.ui-rc-table-cell {
|
|
107
|
+
&.ui-rc-table-cell-fix-left-last {
|
|
108
|
+
.ui-rc-table-cell-content {
|
|
109
|
+
//overflow: visible;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
77
113
|
}
|
|
78
114
|
|
|
79
|
-
.#{$prefix}-table-
|
|
115
|
+
.#{$prefix}-table-summary {
|
|
80
116
|
.#{$prefix}-table-cell {
|
|
117
|
+
background-color: #fafafa;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
> tr > td {
|
|
81
121
|
border-bottom: 1px solid $tableBorderColor;
|
|
82
122
|
}
|
|
83
123
|
}
|
|
84
124
|
|
|
85
|
-
.#{$prefix}-table-bordered {
|
|
125
|
+
.#{$prefix}-table-bordered .#{$prefix}-table-tbody-virtual .#{$prefix}-table-cell.#{$prefix}-table-cell-fix-right-first:before {
|
|
126
|
+
border-inline-start: 1px solid $tableBorderColor;
|
|
127
|
+
}
|
|
86
128
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
129
|
+
.#{$prefix}-table {
|
|
130
|
+
|
|
131
|
+
&.#{$prefix}-table-bordered {
|
|
132
|
+
> .#{$prefix}-table-container {
|
|
133
|
+
border-inline-start: 1px solid $tableBorderColor;
|
|
134
|
+
border-top: 1px solid $tableBorderColor;
|
|
135
|
+
|
|
136
|
+
> .#{$prefix}-table-content,
|
|
137
|
+
> .#{$prefix}-table-header,
|
|
138
|
+
> .#{$prefix}-table-body,
|
|
139
|
+
> .#{$prefix}-table-summary {
|
|
140
|
+
> table {
|
|
141
|
+
> thead {
|
|
142
|
+
> tr:not(:last-child) {
|
|
143
|
+
> th {
|
|
144
|
+
border-bottom: 1px solid #eb4619;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
> .#{$prefix}-table-content,
|
|
153
|
+
> .#{$prefix}-table-header,
|
|
154
|
+
> .#{$prefix}-table-body,
|
|
155
|
+
> .#{$prefix}-table-summary {
|
|
156
|
+
> table {
|
|
157
|
+
> thead,
|
|
158
|
+
> tbody,
|
|
159
|
+
> tfoot {
|
|
160
|
+
> tr {
|
|
161
|
+
> th,
|
|
162
|
+
> td {
|
|
163
|
+
border-inline-end: 1px solid $tableBorderColor;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
> .#{$prefix}-table-title {
|
|
173
|
+
border: 1px solid $tableBorderColor;
|
|
174
|
+
border-bottom: 0;
|
|
90
175
|
}
|
|
91
176
|
}
|
|
92
177
|
|
|
178
|
+
&.#{$prefix}-table-ping-right:not(.#{$prefix}-table-has-fix-right) .#{$prefix}-table-container::after {
|
|
179
|
+
box-shadow: inset -10px 0 8px -8px rgba(5, 5, 5, 0.2);
|
|
180
|
+
}
|
|
181
|
+
|
|
93
182
|
}
|
|
94
183
|
|
|
95
|
-
|
|
184
|
+
.#{$prefix}-table-ping-left {
|
|
185
|
+
.#{$prefix}-table-cell-fix-left-first::after,
|
|
186
|
+
.#{$prefix}-table-cell-fix-left-last::after {
|
|
187
|
+
box-shadow: inset 10px 0 8px -8px rgba(5, 5, 5, 0.1);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.#{$prefix}-table-ping-right {
|
|
192
|
+
.#{$prefix}-table-cell-fix-right-first::after,
|
|
193
|
+
.#{$prefix}-table-cell-fix-right-last::after {
|
|
194
|
+
box-shadow: inset -10px 0 8px -8px rgba(5, 5, 5, 0.1);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
.#{$prefix}-table.#{$prefix}-table-bordered {
|
|
200
|
+
> .#{$prefix}-table-container {
|
|
201
|
+
> .#{$prefix}-table-header > table > thead > tr,
|
|
202
|
+
> .#{$prefix}-table-summary > table > tfoot > tr {
|
|
203
|
+
> .#{$prefix}-table-cell-fix-right-first::before {
|
|
204
|
+
border-inline-start: 1px solid red;
|
|
205
|
+
content: "";
|
|
206
|
+
position: absolute;
|
|
207
|
+
inset-block: 0;
|
|
208
|
+
inset-inline-start: -1px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// -------------- Table edit-------------
|
|
218
|
+
|
|
219
|
+
.#{$prefix}-table-wrapper {
|
|
96
220
|
|
|
97
221
|
&.grid-editable {
|
|
98
222
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
223
|
+
//.#{$prefix}-table.#{$prefix}-table-small .#{$prefix}-table-cell,
|
|
224
|
+
//.#{$prefix}-table.#{$prefix}-table-small .cell-editable,
|
|
225
|
+
//.#{$prefix}-table.#{$prefix}-table-small .#{$prefix}-table-tbody>tr>th,
|
|
226
|
+
//.#{$prefix}-table.#{$prefix}-table-small .#{$prefix}-table-tbody>tr>td {
|
|
227
|
+
// padding: 0;
|
|
228
|
+
//}
|
|
229
|
+
|
|
230
|
+
.#{$prefix}-table.#{$prefix}-table-small .rc-ui-cell-editable{
|
|
103
231
|
padding: 0;
|
|
104
232
|
}
|
|
105
233
|
|
|
@@ -198,163 +326,19 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
198
326
|
|
|
199
327
|
}
|
|
200
328
|
|
|
201
|
-
// ---------------- grid-editable---------------
|
|
202
|
-
|
|
203
|
-
.#{$prefix}-table {
|
|
204
|
-
|
|
205
|
-
&.#{$prefix}-table-ping-right:not(.#{$prefix}-table-has-fix-right) .#{$prefix}-table-container::after {
|
|
206
|
-
box-shadow: inset -10px 0 8px -8px rgba(5, 5, 5, 0.2);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&.#{$prefix}-table-bordered {
|
|
210
|
-
> .#{$prefix}-table-container {
|
|
211
|
-
border-inline-start: 1px solid $tableBorderColor;
|
|
212
|
-
//border-inline-end: 1px solid $tableBorderColor;
|
|
213
|
-
border-top: 1px solid $tableBorderColor;
|
|
214
|
-
|
|
215
|
-
> .#{$prefix}-table-content,
|
|
216
|
-
> .#{$prefix}-table-header,
|
|
217
|
-
> .#{$prefix}-table-body,
|
|
218
|
-
> .#{$prefix}-table-summary {
|
|
219
|
-
> table {
|
|
220
|
-
> thead {
|
|
221
|
-
> tr:not(:last-child) {
|
|
222
|
-
> th {
|
|
223
|
-
border-bottom: 1px solid $tableBorderColor;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
> .#{$prefix}-table-content,
|
|
234
|
-
> .#{$prefix}-table-header,
|
|
235
|
-
> .#{$prefix}-table-body,
|
|
236
|
-
> .#{$prefix}-table-summary {
|
|
237
|
-
> table {
|
|
238
|
-
> thead,
|
|
239
|
-
> tbody,
|
|
240
|
-
> tfoot {
|
|
241
|
-
> tr {
|
|
242
|
-
> th,
|
|
243
|
-
> td {
|
|
244
|
-
border-inline-end: 1px solid $tableBorderColor;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
>.#{$prefix}-table-title {
|
|
254
|
-
border: 1px solid $tableBorderColor;
|
|
255
|
-
border-bottom: 0;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
.#{$prefix}-select-single .#{$prefix}-select-selector {
|
|
261
|
-
border-radius: 0;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
.#{$prefix}-table-thead >tr>th,
|
|
267
|
-
.#{$prefix}-table-thead >tr>td {
|
|
268
|
-
background-color: #ffffff;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.#{$prefix}-table-thead {
|
|
272
|
-
|
|
273
|
-
> tr {
|
|
274
|
-
> th,
|
|
275
|
-
> td {
|
|
276
|
-
border-bottom: 1px solid $tableBorderColor;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
.ui-rc-table-cell {
|
|
280
|
-
&.ui-rc-table-cell-fix-left-last {
|
|
281
|
-
.ui-rc-table-cell-content {
|
|
282
|
-
overflow: visible;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.#{$prefix}-table-summary {
|
|
289
|
-
.#{$prefix}-table-cell {
|
|
290
|
-
background-color: #fafafa;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
> tr > td {
|
|
294
|
-
border-bottom: 1px solid $tableBorderColor;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.#{$prefix}-table-bordered .#{$prefix}-table-tbody-virtual .#{$prefix}-table-cell.#{$prefix}-table-cell-fix-right-first:before {
|
|
299
|
-
border-inline-start: 1px solid $tableBorderColor;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.#{$prefix}-table.#{$prefix}-table-bordered {
|
|
303
|
-
> .#{$prefix}-table-container {
|
|
304
|
-
> .#{$prefix}-table-header > table > thead > tr,
|
|
305
|
-
> .#{$prefix}-table-summary > table > tfoot > tr {
|
|
306
|
-
> .#{$prefix}-table-cell-fix-right-first::before {
|
|
307
|
-
border-inline-start: 1px solid $tableBorderColor;
|
|
308
|
-
content: "";
|
|
309
|
-
position: absolute;
|
|
310
|
-
inset-block: 0;
|
|
311
|
-
inset-inline-start: -1px;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
.#{$prefix}-table.#{$prefix}-table-bordered {
|
|
319
|
-
> .#{$prefix}-table-container {
|
|
320
|
-
> .#{$prefix}-table-header > table > thead > tr,
|
|
321
|
-
> .#{$prefix}-table-summary > table > tfoot > tr {
|
|
322
|
-
> .#{$prefix}-table-cell-fix-right-first::after {
|
|
323
|
-
border-inline-end: 0;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.#{$prefix}-table-ping-left {
|
|
330
|
-
.#{$prefix}-table-cell-fix-left-first::after,
|
|
331
|
-
.#{$prefix}-table-cell-fix-left-last::after {
|
|
332
|
-
box-shadow: inset 10px 0 8px -8px rgba(5, 5, 5, 0.2);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.#{$prefix}-table-ping-right {
|
|
337
|
-
.#{$prefix}-table-cell-fix-right-first::after,
|
|
338
|
-
.#{$prefix}-table-cell-fix-right-last::after {
|
|
339
|
-
box-shadow: inset -10px 0 8px -8px rgba(5, 5, 5, 0.2);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.#{$prefix}-spin-nested-loading >div>.#{$prefix}-spin {
|
|
344
|
-
max-height: 100%;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
329
|
}
|
|
330
|
+
// ---------------- Table edit end---------------
|
|
331
|
+
|
|
349
332
|
|
|
350
333
|
// -------------- Checkbox ----------
|
|
351
334
|
|
|
352
335
|
.#{$prefix}-checkbox-indeterminate {
|
|
353
336
|
&:hover {
|
|
354
337
|
.#{$prefix}-checkbox-inner {
|
|
355
|
-
border-color: $primary !important
|
|
338
|
+
border-color: $primary !important;;
|
|
356
339
|
}
|
|
357
340
|
}
|
|
341
|
+
|
|
358
342
|
.#{$prefix}-checkbox-inner {
|
|
359
343
|
&:after {
|
|
360
344
|
background-color: $primary;
|
|
@@ -370,6 +354,7 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
370
354
|
border-color: $primary;
|
|
371
355
|
}
|
|
372
356
|
}
|
|
357
|
+
|
|
373
358
|
.#{$prefix}-checkbox-inner {
|
|
374
359
|
background-color: $primary;
|
|
375
360
|
border-color: $primary;
|
|
@@ -387,6 +372,7 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
387
372
|
.#{$prefix}-checkbox-inner {
|
|
388
373
|
border-color: $primary;
|
|
389
374
|
}
|
|
375
|
+
|
|
390
376
|
.#{$prefix}-checkbox-checked:not(.#{$prefix}-checkbox-disabled) {
|
|
391
377
|
.#{$prefix}-checkbox-inner {
|
|
392
378
|
background-color: $primary;
|
|
@@ -462,6 +448,7 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
462
448
|
bottom: 0;
|
|
463
449
|
left: 0;
|
|
464
450
|
}
|
|
451
|
+
|
|
465
452
|
&::after {
|
|
466
453
|
content: "";
|
|
467
454
|
position: absolute;
|
|
@@ -471,19 +458,25 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
471
458
|
visibility: visible;
|
|
472
459
|
right: 0;
|
|
473
460
|
}
|
|
461
|
+
|
|
474
462
|
border-bottom: 1px solid $tableBorderColor;
|
|
463
|
+
|
|
475
464
|
.#{$prefix}-pagination-item-active {
|
|
476
465
|
border-color: $primary;
|
|
466
|
+
|
|
477
467
|
&:hover {
|
|
478
468
|
border-color: $primary;
|
|
469
|
+
|
|
479
470
|
a {
|
|
480
471
|
color: $primary;
|
|
481
472
|
}
|
|
482
473
|
}
|
|
474
|
+
|
|
483
475
|
a {
|
|
484
476
|
color: $primary;
|
|
485
477
|
}
|
|
486
478
|
}
|
|
479
|
+
|
|
487
480
|
.#{$prefix}-pagination-jump-prev, .#{$prefix}-pagination-jump-next {
|
|
488
481
|
.#{$prefix}-pagination-item-container {
|
|
489
482
|
.#{$prefix}-pagination-item-link-icon {
|
|
@@ -493,27 +486,25 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
493
486
|
}
|
|
494
487
|
}
|
|
495
488
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
margin-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}
|
|
516
|
-
|
|
489
|
+
//.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr>td >.#{$prefix}-table-expanded-row-fixed {
|
|
490
|
+
// border-inline-end: 1px solid $tableBorderColor;
|
|
491
|
+
//}
|
|
492
|
+
//
|
|
493
|
+
//.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr>td >.#{$prefix}-table-expanded-row-fixed::after {
|
|
494
|
+
// //border-inline-end: 1px solid $tableBorderColor;
|
|
495
|
+
// border-inline-end: 0 solid $tableBorderColor;
|
|
496
|
+
//}
|
|
497
|
+
//
|
|
498
|
+
//
|
|
499
|
+
//.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered.#{$prefix}-table-small >.#{$prefix}-table-container >.#{$prefix}-table-body >table>tbody>tr>td >.#{$prefix}-table-expanded-row-fixed {
|
|
500
|
+
// margin-top: 0;
|
|
501
|
+
// margin-bottom: 0;
|
|
502
|
+
// border-inline-end: 1px solid $tableBorderColor;
|
|
503
|
+
//}
|
|
504
|
+
//
|
|
505
|
+
//.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered.#{$prefix}-table-small >.#{$prefix}-table-container >.#{$prefix}-table-body >table>tbody>tr>td >.#{$prefix}-table-expanded-row-fixed::after {
|
|
506
|
+
// border-inline-end: 0 solid $tableBorderColor;
|
|
507
|
+
//}
|
|
517
508
|
|
|
518
509
|
|
|
519
510
|
.#{$prefix}-table-wrapper {
|
|
@@ -542,10 +533,28 @@ $cell-index-focus-bg: #CEDBEF !default;
|
|
|
542
533
|
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-title,
|
|
543
534
|
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-footer,
|
|
544
535
|
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-cell,
|
|
545
|
-
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-thead>tr>th,
|
|
546
|
-
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-tbody>tr>th,
|
|
547
|
-
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-tbody>tr>td,
|
|
548
|
-
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small tfoot>tr>th,
|
|
549
|
-
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small tfoot>tr>td {
|
|
536
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-thead > tr > th,
|
|
537
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-tbody > tr > th,
|
|
538
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small .ui-rc-table-tbody > tr > td,
|
|
539
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small tfoot > tr > th,
|
|
540
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-small tfoot > tr > td {
|
|
550
541
|
padding: 5px 8px;
|
|
551
542
|
}
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
//ui-rc-table-ping-right
|
|
546
|
+
|
|
547
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-content >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
548
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-header >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
549
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-body >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
550
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-summary >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
551
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-content >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
552
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-header >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
553
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-body >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
554
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-summary >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
555
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-content >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
556
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-header >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
557
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-body >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after,
|
|
558
|
+
.ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-summary >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after {
|
|
559
|
+
border-inline-end: 1px solid $tableBorderColor;
|
|
560
|
+
}
|