aio-table 5.1.0 → 5.2.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.
Files changed (3) hide show
  1. package/index.css +28 -24
  2. package/index.js +9 -3
  3. package/package.json +1 -1
package/index.css CHANGED
@@ -19,6 +19,7 @@
19
19
  display: flex;
20
20
  width:100%;
21
21
  flex:1;
22
+ overflow:hidden;
22
23
  }
23
24
  .aio-table-unit{
24
25
  display: grid;
@@ -35,30 +36,7 @@
35
36
  overflow-x:scroll;
36
37
  }
37
38
 
38
- /* custom scrollbar */
39
- .aio-table-unit::-webkit-scrollbar {
40
- width: 10px !important;
41
- height:10px !important;
42
- }
43
- #aio-table-first-split::-webkit-scrollbar {
44
- width: 0px !important;
45
- height: 10px !important;
46
- }
47
-
48
- .aio-table-unit::-webkit-scrollbar-track {
49
- background-color: transparent;
50
- }
51
-
52
- .aio-table-unit::-webkit-scrollbar-thumb {
53
- background-color: #cdd4e0;
54
- border-radius: 20px;
55
- border: 3px solid transparent;
56
- background-clip: content-box;
57
- }
58
-
59
- .aio-table-unit::-webkit-scrollbar-thumb:hover {
60
- background-color: #868e9e;
61
- }
39
+
62
40
  .aio-table-title{
63
41
  display:flex;
64
42
  align-items: center;
@@ -264,6 +242,9 @@ select.aio-table-paging-button{
264
242
  .aio-table-cell.aio-table-relative-filter{
265
243
  opacity:.4;
266
244
  }
245
+ .aio-table-cell.striped[data-evenodd = even]{
246
+ background:#f5f5f5
247
+ }
267
248
  .aio-table-filter-popup{
268
249
  background:#e3e6ea;
269
250
  padding:6px;
@@ -497,3 +478,26 @@ display:none;
497
478
  display: none !important;
498
479
  }
499
480
  }
481
+ /* custom scrollbar */
482
+ .aio-table-unit::-webkit-scrollbar {
483
+ width: 10px !important;
484
+ height:10px !important;
485
+ }
486
+ #aio-table-first-split::-webkit-scrollbar {
487
+ width: 0px !important;
488
+ }
489
+
490
+ .aio-table-unit::-webkit-scrollbar-track {
491
+ background-color: transparent;
492
+ }
493
+
494
+ .aio-table-unit::-webkit-scrollbar-thumb {
495
+ background-color: #cdd4e0;
496
+ border-radius: 20px;
497
+ border: 3px solid transparent;
498
+ background-clip: content-box;
499
+ }
500
+
501
+ .aio-table-unit::-webkit-scrollbar-thumb:hover {
502
+ background-color: #868e9e;
503
+ }
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }
4
4
 
5
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
5
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
6
6
 
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
@@ -49,9 +49,9 @@ function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Con
49
49
 
50
50
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
51
51
 
52
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
52
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
53
53
 
54
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
54
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
55
55
 
56
56
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
57
 
@@ -2252,8 +2252,13 @@ var AIOTableCell = /*#__PURE__*/function (_Component4) {
2252
2252
  }, {
2253
2253
  key: "getClassName",
2254
2254
  value: function getClassName(row, column) {
2255
+ var striped = this.context.striped;
2255
2256
  var className = 'aio-table-cell';
2256
2257
 
2258
+ if (striped) {
2259
+ className += ' striped';
2260
+ }
2261
+
2257
2262
  if (column.template) {
2258
2263
  className += ' aio-table-cell-template';
2259
2264
  }
@@ -2667,6 +2672,7 @@ var AIOTableCell = /*#__PURE__*/function (_Component4) {
2667
2672
  ref: this.dom,
2668
2673
  cellid: cellId,
2669
2674
  title: typeof content === 'string' ? content : '',
2675
+ "data-evenodd": row._index % 2 === 0 ? 'even' : 'odd',
2670
2676
  rowindex: row._renderIndex,
2671
2677
  colindex: column._renderIndex,
2672
2678
  childindex: row._childIndex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aio-table",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "all in one table. tree mode , simple mode , tree mode, gantt mode , groupby mode, freeze mode.",
5
5
  "main": "index.js",
6
6
  "scripts": {