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.
@@ -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
- min-height: 23px;
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
+ }
@@ -9,10 +9,13 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _GridStyle = require("../GridStyle");
11
11
  var _TableGrid = _interopRequireDefault(require("../TableGrid"));
12
+ var _rcMasterUi = require("rc-master-ui");
12
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
14
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
15
  // import type {ColumnsTable} from "../type";
15
16
 
17
+ // import {ConfigProvider} from "antd";
18
+
16
19
  const Grid = props => {
17
20
  const {
18
21
  height,
@@ -24,9 +27,22 @@ const Grid = props => {
24
27
  style: {
25
28
  position: 'relative'
26
29
  }
30
+ }, /*#__PURE__*/_react.default.createElement(_rcMasterUi.ConfigProvider, {
31
+ theme: {
32
+ components: {
33
+ Table: {
34
+ rowHoverBg: '#eb461912',
35
+ rowSelectedBg: '#eb4619',
36
+ rowSelectedHoverBg: '#eb4619',
37
+ cellFontSize: 12,
38
+ cellFontSizeSM: 13,
39
+ headerBg: '#ffffff'
40
+ }
41
+ }
42
+ }
27
43
  }, /*#__PURE__*/_react.default.createElement(_TableGrid.default, (0, _extends2.default)({}, rest, {
28
44
  // style={{...style, minHeight: height}}
29
45
  rowHoverable: rowHoverable ?? true
30
- }))));
46
+ })))));
31
47
  };
32
48
  var _default = exports.default = Grid;