es-grid-template 1.2.1 → 1.2.3
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/assets/index.css +36 -17
- package/assets/index.scss +1064 -1006
- package/es/grid-component/GridStyle.js +1 -1
- package/es/grid-component/InternalTable.d.ts +1 -0
- package/es/grid-component/InternalTable.js +2 -1
- package/es/grid-component/TableGrid.js +6 -15
- package/es/grid-component/hooks/content/HeaderContent.js +6 -7
- package/es/grid-component/hooks/useColumns.js +10 -2
- package/es/grid-component/hooks/utils.d.ts +2 -22
- package/es/grid-component/hooks/utils.js +2 -410
- package/es/grid-component/styles.scss +63 -5
- package/es/grid-component/table/Grid.js +17 -1
- package/es/grid-component/table/GridEdit.js +384 -159
- package/es/grid-component/type.d.ts +2 -1
- package/lib/grid-component/GridStyle.js +1 -1
- package/lib/grid-component/InternalTable.d.ts +1 -0
- package/lib/grid-component/InternalTable.js +2 -1
- package/lib/grid-component/TableGrid.js +7 -15
- package/lib/grid-component/hooks/content/HeaderContent.js +6 -7
- package/lib/grid-component/hooks/useColumns.js +10 -2
- package/lib/grid-component/hooks/utils.d.ts +2 -22
- package/lib/grid-component/hooks/utils.js +3 -419
- package/lib/grid-component/styles.scss +63 -5
- package/lib/grid-component/table/Grid.js +17 -1
- package/lib/grid-component/table/GridEdit.js +383 -158
- package/lib/grid-component/type.d.ts +2 -1
- package/package.json +2 -2
|
@@ -36,6 +36,13 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
36
36
|
margin: 0;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.ui-rc-table {
|
|
40
|
+
//font-family: $fontFamily;
|
|
41
|
+
color: #000000de;
|
|
42
|
+
//font-weight: 500;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
39
46
|
|
|
40
47
|
&.table-none-column-select {
|
|
41
48
|
.#{$prefix}-table-cell {
|
|
@@ -52,6 +59,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
52
59
|
.#{$prefix}-table {
|
|
53
60
|
line-height: 20px;
|
|
54
61
|
.#{$prefix}-table-cell {
|
|
62
|
+
min-height: 35px;
|
|
55
63
|
|
|
56
64
|
.#{$prefix}-table-filter-column {
|
|
57
65
|
.#{$prefix}-dropdown-trigger.#{$prefix}-table-filter-trigger {
|
|
@@ -178,12 +186,14 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
.#{$prefix}-table-thead {
|
|
189
|
+
//font-weight: 400;
|
|
181
190
|
|
|
182
191
|
> tr {
|
|
183
192
|
> th,
|
|
184
193
|
> td {
|
|
185
194
|
border-bottom: 1px solid $tableBorderColor;
|
|
186
|
-
background: #fff;
|
|
195
|
+
//background: #fff;
|
|
196
|
+
font-weight: 500;
|
|
187
197
|
}
|
|
188
198
|
}
|
|
189
199
|
|
|
@@ -326,6 +336,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
326
336
|
overflow: unset;
|
|
327
337
|
|
|
328
338
|
display: flex;
|
|
339
|
+
//--------
|
|
329
340
|
padding: 0;
|
|
330
341
|
|
|
331
342
|
.#{$prefix}-table-row-expand-icon {
|
|
@@ -342,14 +353,26 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
342
353
|
border-bottom: 1px solid $border-selected-color;
|
|
343
354
|
}
|
|
344
355
|
|
|
356
|
+
&.cell-paste-border-bottom {
|
|
357
|
+
border-bottom: 1px dashed #949494;
|
|
358
|
+
}
|
|
359
|
+
|
|
345
360
|
&.cell-border-left {
|
|
346
361
|
border-inline-end: 1px solid $border-selected-color;
|
|
347
362
|
}
|
|
348
363
|
|
|
364
|
+
&.cell-paste-border-left {
|
|
365
|
+
border-inline-end: 1px dashed #949494;
|
|
366
|
+
}
|
|
367
|
+
|
|
349
368
|
&.cell-border-right {
|
|
350
369
|
border-inline-end: 1px solid $border-selected-color;
|
|
351
370
|
}
|
|
352
371
|
|
|
372
|
+
&.cell-paste-border-right {
|
|
373
|
+
border-inline-end: 1px dashed #949494;
|
|
374
|
+
}
|
|
375
|
+
|
|
353
376
|
&.#{$prefix}-table-cell-fix-left {
|
|
354
377
|
&:has(.ui-rc_cell-content.selected) {
|
|
355
378
|
}
|
|
@@ -383,11 +406,23 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
383
406
|
}
|
|
384
407
|
}
|
|
385
408
|
|
|
409
|
+
|
|
410
|
+
&.next-cell-paste-border-left {
|
|
411
|
+
&::before {
|
|
412
|
+
border-inline-start: 1px dashed #949494;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
386
416
|
&.fixed-cell-border-left {
|
|
387
417
|
&::before {
|
|
388
418
|
border-inline-start: 1px solid $border-selected-color;
|
|
389
419
|
}
|
|
390
420
|
}
|
|
421
|
+
&.fixed-cell-paste-border-left {
|
|
422
|
+
&::before {
|
|
423
|
+
border-inline-start: 1px dashed #949494;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
391
426
|
|
|
392
427
|
}
|
|
393
428
|
|
|
@@ -493,14 +528,16 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
493
528
|
.#{$prefix}-table.#{$prefix}-table-small {
|
|
494
529
|
.#{$prefix}-table-selection-column{
|
|
495
530
|
//padding: 8px 8px;
|
|
531
|
+
padding: 6px 8px;
|
|
496
532
|
}
|
|
497
533
|
}
|
|
498
534
|
|
|
499
535
|
.ui-rc_cell-content {
|
|
500
536
|
//position: relative;
|
|
501
537
|
user-select: none;
|
|
502
|
-
padding: 8px 8px;
|
|
503
|
-
|
|
538
|
+
//padding: 8px 8px;
|
|
539
|
+
padding: 7px 8px;
|
|
540
|
+
//min-height: 23px;
|
|
504
541
|
overflow: hidden;
|
|
505
542
|
|
|
506
543
|
.ui-rc_content {
|
|
@@ -520,6 +557,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
520
557
|
cursor: crosshair;
|
|
521
558
|
right: 0;
|
|
522
559
|
bottom: 0;
|
|
560
|
+
//background: red;
|
|
523
561
|
|
|
524
562
|
.dot-point {
|
|
525
563
|
position: absolute;
|
|
@@ -627,7 +665,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
627
665
|
}
|
|
628
666
|
|
|
629
667
|
&.cell-editing {
|
|
630
|
-
padding: 0 !important;
|
|
668
|
+
//padding: 0 !important;
|
|
631
669
|
&:focus-visible {
|
|
632
670
|
outline: none;
|
|
633
671
|
}
|
|
@@ -965,7 +1003,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
965
1003
|
tfoot > tr > th,
|
|
966
1004
|
tfoot > tr > td {
|
|
967
1005
|
//padding: 8px 8px;
|
|
968
|
-
font-size: 13px;
|
|
1006
|
+
//font-size: 13px;
|
|
969
1007
|
}
|
|
970
1008
|
}
|
|
971
1009
|
}
|
|
@@ -1004,3 +1042,23 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
1004
1042
|
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after {
|
|
1005
1043
|
border-inline-end: 1px solid $tableBorderColor;
|
|
1006
1044
|
}
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
// toolbar
|
|
1048
|
+
|
|
1049
|
+
.ui-rc-toolbar-bottom {
|
|
1050
|
+
.be-toolbar-item {
|
|
1051
|
+
.toolbar-dropdown-button {
|
|
1052
|
+
.ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-first-item {
|
|
1053
|
+
border-color: #28c76f;
|
|
1054
|
+
}
|
|
1055
|
+
.ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-last-item {
|
|
1056
|
+
border-color: #28c76f;
|
|
1057
|
+
.ant-btn-icon {
|
|
1058
|
+
color: #28c76f;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
@@ -4,6 +4,9 @@ import { GridStyle } from "../GridStyle";
|
|
|
4
4
|
import TableGrid from "../TableGrid";
|
|
5
5
|
// import type {ColumnsTable} from "../type";
|
|
6
6
|
|
|
7
|
+
import { ConfigProvider } from "rc-master-ui";
|
|
8
|
+
// import {ConfigProvider} from "antd";
|
|
9
|
+
|
|
7
10
|
const Grid = props => {
|
|
8
11
|
const {
|
|
9
12
|
height,
|
|
@@ -15,9 +18,22 @@ const Grid = props => {
|
|
|
15
18
|
style: {
|
|
16
19
|
position: 'relative'
|
|
17
20
|
}
|
|
21
|
+
}, /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
22
|
+
theme: {
|
|
23
|
+
components: {
|
|
24
|
+
Table: {
|
|
25
|
+
rowHoverBg: '#eb461912',
|
|
26
|
+
rowSelectedBg: '#eb4619',
|
|
27
|
+
rowSelectedHoverBg: '#eb4619',
|
|
28
|
+
cellFontSize: 12,
|
|
29
|
+
cellFontSizeSM: 13,
|
|
30
|
+
headerBg: '#ffffff'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
18
34
|
}, /*#__PURE__*/React.createElement(TableGrid, _extends({}, rest, {
|
|
19
35
|
// style={{...style, minHeight: height}}
|
|
20
36
|
rowHoverable: rowHoverable ?? true
|
|
21
|
-
}))));
|
|
37
|
+
})))));
|
|
22
38
|
};
|
|
23
39
|
export default Grid;
|