es-grid-template 1.2.1 → 1.2.2

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 {
@@ -178,12 +185,14 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
178
185
  }
179
186
 
180
187
  .#{$prefix}-table-thead {
188
+ //font-weight: 400;
181
189
 
182
190
  > tr {
183
191
  > th,
184
192
  > td {
185
193
  border-bottom: 1px solid $tableBorderColor;
186
- background: #fff;
194
+ //background: #fff;
195
+ font-weight: 500;
187
196
  }
188
197
  }
189
198
 
@@ -326,6 +335,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
326
335
  overflow: unset;
327
336
 
328
337
  display: flex;
338
+ //--------
329
339
  padding: 0;
330
340
 
331
341
  .#{$prefix}-table-row-expand-icon {
@@ -342,14 +352,26 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
342
352
  border-bottom: 1px solid $border-selected-color;
343
353
  }
344
354
 
355
+ &.cell-paste-border-bottom {
356
+ border-bottom: 1px dashed #949494;
357
+ }
358
+
345
359
  &.cell-border-left {
346
360
  border-inline-end: 1px solid $border-selected-color;
347
361
  }
348
362
 
363
+ &.cell-paste-border-left {
364
+ border-inline-end: 1px dashed #949494;
365
+ }
366
+
349
367
  &.cell-border-right {
350
368
  border-inline-end: 1px solid $border-selected-color;
351
369
  }
352
370
 
371
+ &.cell-paste-border-right {
372
+ border-inline-end: 1px dashed #949494;
373
+ }
374
+
353
375
  &.#{$prefix}-table-cell-fix-left {
354
376
  &:has(.ui-rc_cell-content.selected) {
355
377
  }
@@ -383,11 +405,23 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
383
405
  }
384
406
  }
385
407
 
408
+
409
+ &.next-cell-paste-border-left {
410
+ &::before {
411
+ border-inline-start: 1px dashed #949494;
412
+ }
413
+ }
414
+
386
415
  &.fixed-cell-border-left {
387
416
  &::before {
388
417
  border-inline-start: 1px solid $border-selected-color;
389
418
  }
390
419
  }
420
+ &.fixed-cell-paste-border-left {
421
+ &::before {
422
+ border-inline-start: 1px dashed #949494;
423
+ }
424
+ }
391
425
 
392
426
  }
393
427
 
@@ -493,14 +527,16 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
493
527
  .#{$prefix}-table.#{$prefix}-table-small {
494
528
  .#{$prefix}-table-selection-column{
495
529
  //padding: 8px 8px;
530
+ padding: 6px 8px;
496
531
  }
497
532
  }
498
533
 
499
534
  .ui-rc_cell-content {
500
535
  //position: relative;
501
536
  user-select: none;
502
- padding: 8px 8px;
503
- min-height: 23px;
537
+ //padding: 8px 8px;
538
+ padding: 7px 8px;
539
+ //min-height: 23px;
504
540
  overflow: hidden;
505
541
 
506
542
  .ui-rc_content {
@@ -520,6 +556,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
520
556
  cursor: crosshair;
521
557
  right: 0;
522
558
  bottom: 0;
559
+ //background: red;
523
560
 
524
561
  .dot-point {
525
562
  position: absolute;
@@ -627,7 +664,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
627
664
  }
628
665
 
629
666
  &.cell-editing {
630
- padding: 0 !important;
667
+ //padding: 0 !important;
631
668
  &:focus-visible {
632
669
  outline: none;
633
670
  }
@@ -965,7 +1002,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
965
1002
  tfoot > tr > th,
966
1003
  tfoot > tr > td {
967
1004
  //padding: 8px 8px;
968
- font-size: 13px;
1005
+ //font-size: 13px;
969
1006
  }
970
1007
  }
971
1008
  }
@@ -1004,3 +1041,23 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
1004
1041
  .#{$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
1042
  border-inline-end: 1px solid $tableBorderColor;
1006
1043
  }
1044
+
1045
+
1046
+ // toolbar
1047
+
1048
+ .ui-rc-toolbar-bottom {
1049
+ .be-toolbar-item {
1050
+ .toolbar-dropdown-button {
1051
+ .ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-first-item {
1052
+ border-color: #28c76f;
1053
+ }
1054
+ .ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-last-item {
1055
+ border-color: #28c76f;
1056
+ .ant-btn-icon {
1057
+ color: #28c76f;
1058
+ }
1059
+ }
1060
+ }
1061
+
1062
+ }
1063
+ }
@@ -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;