@alfalab/core-components-table 2.2.5 → 2.2.7
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/component.js +12 -14
- package/components/index.js +13 -15
- package/components/pagination/Component.js +8 -15
- package/components/pagination/index.css +8 -8
- package/components/pagination/index.js +4 -6
- package/components/pagination/select-field/index.css +4 -4
- package/components/pagination/select-field/index.js +4 -11
- package/components/table/Component.js +6 -13
- package/components/table/index.css +7 -7
- package/components/table/index.js +3 -5
- package/components/table/utils.js +4 -10
- package/components/table-context/index.js +1 -7
- package/components/tbody/Component.js +3 -10
- package/components/tbody/index.css +2 -2
- package/components/tbody/index.js +2 -4
- package/components/tcell/Component.js +3 -10
- package/components/tcell/index.css +6 -6
- package/components/tcell/index.js +2 -4
- package/components/texpandable-row/Component.js +5 -12
- package/components/texpandable-row/index.css +5 -5
- package/components/texpandable-row/index.js +2 -4
- package/components/thead/Component.js +4 -11
- package/components/thead/index.css +6 -6
- package/components/thead/index.js +2 -4
- package/components/thead-cell/Component.js +3 -10
- package/components/thead-cell/index.css +8 -8
- package/components/thead-cell/index.js +2 -4
- package/components/trow/Component.js +4 -11
- package/components/trow/index.css +8 -8
- package/components/trow/index.js +2 -4
- package/components/tsortable-head-cell/Component.js +6 -13
- package/components/tsortable-head-cell/index.css +9 -9
- package/components/tsortable-head-cell/index.js +3 -5
- package/components/tsortable-head-cell/sort-icon-asc.js +3 -9
- package/components/tsortable-head-cell/sort-icon-desc.js +3 -9
- package/components/tsortable-head-cell/sort-icon-unset.js +3 -9
- package/cssm/component.js +13 -15
- package/cssm/components/index.js +13 -15
- package/cssm/components/pagination/Component.js +8 -16
- package/cssm/components/pagination/index.js +4 -6
- package/cssm/components/pagination/select-field/index.js +3 -11
- package/cssm/components/table/Component.js +10 -18
- package/cssm/components/table/index.js +4 -6
- package/cssm/components/table/utils.js +5 -11
- package/cssm/components/table-context/index.js +1 -7
- package/cssm/components/tbody/Component.js +2 -10
- package/cssm/components/tbody/index.js +2 -4
- package/cssm/components/tcell/Component.js +2 -10
- package/cssm/components/tcell/index.js +2 -4
- package/cssm/components/texpandable-row/Component.js +7 -15
- package/cssm/components/texpandable-row/index.js +3 -5
- package/cssm/components/thead/Component.js +3 -11
- package/cssm/components/thead/index.js +2 -4
- package/cssm/components/thead-cell/Component.js +3 -11
- package/cssm/components/thead-cell/index.js +2 -4
- package/cssm/components/trow/Component.js +6 -14
- package/cssm/components/trow/index.js +2 -4
- package/cssm/components/tsortable-head-cell/Component.js +7 -15
- package/cssm/components/tsortable-head-cell/index.js +3 -5
- package/cssm/components/tsortable-head-cell/sort-icon-asc.js +3 -9
- package/cssm/components/tsortable-head-cell/sort-icon-desc.js +3 -9
- package/cssm/components/tsortable-head-cell/sort-icon-unset.js +3 -9
- package/cssm/index.js +13 -15
- package/cssm/{tslib.es6-9682e485.d.ts → tslib.es6-bbd6cd2a.d.ts} +0 -0
- package/cssm/{tslib.es6-9682e485.js → tslib.es6-bbd6cd2a.js} +0 -0
- package/cssm/utils.js +1 -7
- package/esm/component.js +12 -12
- package/esm/components/index.js +12 -12
- package/esm/components/pagination/Component.js +5 -5
- package/esm/components/pagination/index.css +8 -8
- package/esm/components/pagination/index.js +4 -4
- package/esm/components/pagination/select-field/index.css +4 -4
- package/esm/components/pagination/select-field/index.js +2 -2
- package/esm/components/table/Component.js +3 -3
- package/esm/components/table/index.css +7 -7
- package/esm/components/table/index.js +3 -3
- package/esm/components/table/utils.js +2 -2
- package/esm/components/tbody/Component.js +2 -2
- package/esm/components/tbody/index.css +2 -2
- package/esm/components/tbody/index.js +2 -2
- package/esm/components/tcell/Component.js +2 -2
- package/esm/components/tcell/index.css +6 -6
- package/esm/components/tcell/index.js +2 -2
- package/esm/components/texpandable-row/Component.js +2 -2
- package/esm/components/texpandable-row/index.css +5 -5
- package/esm/components/texpandable-row/index.js +2 -2
- package/esm/components/thead/Component.js +2 -2
- package/esm/components/thead/index.css +6 -6
- package/esm/components/thead/index.js +2 -2
- package/esm/components/thead-cell/Component.js +2 -2
- package/esm/components/thead-cell/index.css +8 -8
- package/esm/components/thead-cell/index.js +2 -2
- package/esm/components/trow/Component.js +2 -2
- package/esm/components/trow/index.css +8 -8
- package/esm/components/trow/index.js +2 -2
- package/esm/components/tsortable-head-cell/Component.js +3 -3
- package/esm/components/tsortable-head-cell/index.css +9 -9
- package/esm/components/tsortable-head-cell/index.js +3 -3
- package/esm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/esm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/esm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/esm/index.js +7 -7
- package/esm/{tslib.es6-eb63d7de.d.ts → tslib.es6-c7b61e8d.d.ts} +0 -0
- package/esm/{tslib.es6-eb63d7de.js → tslib.es6-c7b61e8d.js} +0 -0
- package/index.js +7 -9
- package/modern/component.js +11 -11
- package/modern/components/index.js +11 -11
- package/modern/components/pagination/Component.js +3 -3
- package/modern/components/pagination/index.css +8 -8
- package/modern/components/pagination/index.js +3 -3
- package/modern/components/pagination/select-field/index.css +4 -4
- package/modern/components/pagination/select-field/index.js +1 -1
- package/modern/components/table/Component.js +2 -2
- package/modern/components/table/index.css +7 -7
- package/modern/components/table/index.js +2 -2
- package/modern/components/table/utils.js +1 -1
- package/modern/components/tbody/Component.js +1 -1
- package/modern/components/tbody/index.css +2 -2
- package/modern/components/tbody/index.js +1 -1
- package/modern/components/tcell/Component.js +1 -1
- package/modern/components/tcell/index.css +6 -6
- package/modern/components/tcell/index.js +1 -1
- package/modern/components/texpandable-row/Component.js +1 -1
- package/modern/components/texpandable-row/index.css +5 -5
- package/modern/components/texpandable-row/index.js +1 -1
- package/modern/components/thead/Component.js +1 -1
- package/modern/components/thead/index.css +6 -6
- package/modern/components/thead/index.js +1 -1
- package/modern/components/thead-cell/Component.js +1 -1
- package/modern/components/thead-cell/index.css +8 -8
- package/modern/components/thead-cell/index.js +1 -1
- package/modern/components/trow/Component.js +1 -1
- package/modern/components/trow/index.css +8 -8
- package/modern/components/trow/index.js +1 -1
- package/modern/components/tsortable-head-cell/Component.js +2 -2
- package/modern/components/tsortable-head-cell/index.css +9 -9
- package/modern/components/tsortable-head-cell/index.js +2 -2
- package/modern/index.js +6 -6
- package/package.json +2 -2
- package/{tslib.es6-04e02981.d.ts → tslib.es6-73285132.d.ts} +0 -0
- package/{tslib.es6-04e02981.js → tslib.es6-73285132.js} +0 -0
- package/utils.js +1 -7
package/cssm/index.js
CHANGED
|
@@ -1,40 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./tslib.es6-
|
|
3
|
+
var component = require('./component.js');
|
|
4
|
+
require('./components/table/Component.js');
|
|
5
|
+
require('./tslib.es6-bbd6cd2a.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('./components/table-context/index.js');
|
|
9
|
+
require('./components/table/utils.js');
|
|
9
10
|
require('./utils.js');
|
|
10
|
-
require('./components/thead/index.module.css');
|
|
11
11
|
require('./components/thead/Component.js');
|
|
12
|
-
require('./components/
|
|
12
|
+
require('./components/thead/index.module.css');
|
|
13
13
|
require('./components/table/index.module.css');
|
|
14
|
-
require('./components/
|
|
14
|
+
require('./components/pagination/Component.js');
|
|
15
15
|
require('@alfalab/core-components-pagination/cssm');
|
|
16
16
|
require('@alfalab/core-components-select/cssm');
|
|
17
|
+
require('./components/pagination/select-field/index.js');
|
|
17
18
|
require('@alfalab/core-components-button/cssm');
|
|
18
19
|
require('./components/pagination/select-field/index.module.css');
|
|
19
|
-
require('./components/pagination/select-field/index.js');
|
|
20
20
|
require('./components/pagination/index.module.css');
|
|
21
|
-
require('./components/pagination/Component.js');
|
|
22
|
-
require('./components/thead-cell/index.module.css');
|
|
23
21
|
require('./components/thead-cell/Component.js');
|
|
22
|
+
require('./components/thead-cell/index.module.css');
|
|
23
|
+
require('./components/tsortable-head-cell/Component.js');
|
|
24
24
|
require('./components/tsortable-head-cell/sort-icon-asc.js');
|
|
25
25
|
require('./components/tsortable-head-cell/sort-icon-desc.js');
|
|
26
26
|
require('./components/tsortable-head-cell/sort-icon-unset.js');
|
|
27
27
|
require('./components/tsortable-head-cell/index.module.css');
|
|
28
|
-
require('./components/tsortable-head-cell/Component.js');
|
|
29
|
-
require('./components/tbody/index.module.css');
|
|
30
28
|
require('./components/tbody/Component.js');
|
|
31
|
-
require('./components/
|
|
29
|
+
require('./components/tbody/index.module.css');
|
|
32
30
|
require('./components/tcell/Component.js');
|
|
33
|
-
require('./components/
|
|
31
|
+
require('./components/tcell/index.module.css');
|
|
34
32
|
require('./components/trow/Component.js');
|
|
35
|
-
require('./components/
|
|
33
|
+
require('./components/trow/index.module.css');
|
|
36
34
|
require('./components/texpandable-row/Component.js');
|
|
37
|
-
|
|
35
|
+
require('./components/texpandable-row/index.module.css');
|
|
38
36
|
|
|
39
37
|
|
|
40
38
|
|
|
File without changes
|
|
File without changes
|
package/cssm/utils.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
|
|
11
5
|
function isChildInstanceOf(child, Component) {
|
|
12
6
|
// мы не можем полагаться на child.type === Component, см. https://github.com/gaearon/react-hot-loader/issues/304
|
|
13
|
-
return child.type ===
|
|
7
|
+
return child.type === React.createElement(Component).type;
|
|
14
8
|
}
|
|
15
9
|
|
|
16
10
|
exports.isChildInstanceOf = isChildInstanceOf;
|
package/esm/component.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import { Table as Table$1 } from './components/table/Component.js';
|
|
2
|
+
import { Pagination } from './components/pagination/Component.js';
|
|
3
|
+
import { THead } from './components/thead/Component.js';
|
|
4
|
+
import { THeadCell } from './components/thead-cell/Component.js';
|
|
5
|
+
import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
|
|
6
|
+
import { TBody } from './components/tbody/Component.js';
|
|
7
|
+
import { TCell } from './components/tcell/Component.js';
|
|
8
|
+
import { TRow } from './components/trow/Component.js';
|
|
9
|
+
import { TExpandableRow } from './components/texpandable-row/Component.js';
|
|
10
|
+
import './tslib.es6-c7b61e8d.js';
|
|
2
11
|
import 'react';
|
|
3
12
|
import 'classnames';
|
|
4
13
|
import './components/table-context/index.js';
|
|
5
|
-
import './utils.js';
|
|
6
|
-
import { THead } from './components/thead/Component.js';
|
|
7
14
|
import './components/table/utils.js';
|
|
8
|
-
import
|
|
15
|
+
import './utils.js';
|
|
9
16
|
import '@alfalab/core-components-pagination/esm';
|
|
10
17
|
import '@alfalab/core-components-select/esm';
|
|
11
|
-
import '@alfalab/core-components-button/esm';
|
|
12
18
|
import './components/pagination/select-field/index.js';
|
|
13
|
-
import
|
|
14
|
-
import { THeadCell } from './components/thead-cell/Component.js';
|
|
19
|
+
import '@alfalab/core-components-button/esm';
|
|
15
20
|
import './components/tsortable-head-cell/sort-icon-asc.js';
|
|
16
21
|
import './components/tsortable-head-cell/sort-icon-desc.js';
|
|
17
22
|
import './components/tsortable-head-cell/sort-icon-unset.js';
|
|
18
|
-
import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
|
|
19
|
-
import { TBody } from './components/tbody/Component.js';
|
|
20
|
-
import { TCell } from './components/tcell/Component.js';
|
|
21
|
-
import { TRow } from './components/trow/Component.js';
|
|
22
|
-
import { TExpandableRow } from './components/texpandable-row/Component.js';
|
|
23
23
|
|
|
24
24
|
var Table = Object.assign(Table$1, {
|
|
25
25
|
TBody: TBody,
|
package/esm/components/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
export { Table } from './table/Component.js';
|
|
2
|
+
export { Pagination } from './pagination/Component.js';
|
|
3
|
+
export { THead } from './thead/Component.js';
|
|
4
|
+
export { THeadCell } from './thead-cell/Component.js';
|
|
5
|
+
export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
|
|
6
|
+
export { TBody } from './tbody/Component.js';
|
|
7
|
+
export { TCell } from './tcell/Component.js';
|
|
8
|
+
export { TRow } from './trow/Component.js';
|
|
9
|
+
export { TExpandableRow } from './texpandable-row/Component.js';
|
|
10
|
+
import '../tslib.es6-c7b61e8d.js';
|
|
2
11
|
import 'react';
|
|
3
12
|
import 'classnames';
|
|
4
13
|
import './table-context/index.js';
|
|
5
|
-
import '../utils.js';
|
|
6
|
-
export { THead } from './thead/Component.js';
|
|
7
14
|
import './table/utils.js';
|
|
8
|
-
|
|
15
|
+
import '../utils.js';
|
|
9
16
|
import '@alfalab/core-components-pagination/esm';
|
|
10
17
|
import '@alfalab/core-components-select/esm';
|
|
11
|
-
import '@alfalab/core-components-button/esm';
|
|
12
18
|
import './pagination/select-field/index.js';
|
|
13
|
-
|
|
14
|
-
export { THeadCell } from './thead-cell/Component.js';
|
|
19
|
+
import '@alfalab/core-components-button/esm';
|
|
15
20
|
import './tsortable-head-cell/sort-icon-asc.js';
|
|
16
21
|
import './tsortable-head-cell/sort-icon-desc.js';
|
|
17
22
|
import './tsortable-head-cell/sort-icon-unset.js';
|
|
18
|
-
export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
|
|
19
|
-
export { TBody } from './tbody/Component.js';
|
|
20
|
-
export { TCell } from './tcell/Component.js';
|
|
21
|
-
export { TRow } from './trow/Component.js';
|
|
22
|
-
export { TExpandableRow } from './texpandable-row/Component.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React, { useContext, useMemo, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import { TableContext } from '../table-context/index.js';
|
|
5
4
|
import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/esm';
|
|
6
5
|
import { Select } from '@alfalab/core-components-select/esm';
|
|
7
|
-
import '
|
|
6
|
+
import { TableContext } from '../table-context/index.js';
|
|
8
7
|
import { CustomSelectField } from './select-field/index.js';
|
|
8
|
+
import '@alfalab/core-components-button/esm';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"table__component_1efgn","pagesWrapper":"table__pagesWrapper_1efgn","tag":"table__tag_1efgn","tagActive":"table__tagActive_1efgn","menu":"table__menu_1efgn","option":"table__option_1efgn"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var Pagination = function (_a) {
|
|
@@ -18,7 +18,7 @@ var Pagination = function (_a) {
|
|
|
18
18
|
.sort(function (a, b) { return a - b; })
|
|
19
19
|
.map(function (value) { return ({
|
|
20
20
|
key: value.toString(),
|
|
21
|
-
content: "\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u043E "
|
|
21
|
+
content: "\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u043E ".concat(value),
|
|
22
22
|
}); });
|
|
23
23
|
}, [perPage, possiblePerPage]);
|
|
24
24
|
var handlePerPageChange = useCallback(function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: jfotx */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--gap-xl: 24px;
|
|
18
18
|
--gap-2xl: 32px;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.table__component_1efgn {
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: space-between;
|
|
23
23
|
align-items: flex-start;
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
border-top: 1px solid var(--color-light-border-primary);
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.table__pagesWrapper_1efgn {
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__tag_1efgn.table__tag_1efgn {
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
margin-right: var(--gap-xs);
|
|
35
35
|
padding: 0 var(--gap-xs);
|
|
36
36
|
min-width: 32px
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__tag_1efgn.table__tag_1efgn:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__tag_1efgn.table__tag_1efgn.table__tagActive_1efgn {
|
|
42
42
|
cursor: default;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__menu_1efgn {
|
|
45
45
|
margin: var(--gap-2xs) 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__option_1efgn {
|
|
48
48
|
min-width: 208px;
|
|
49
49
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { Pagination } from './Component.js';
|
|
2
|
+
import '../../tslib.es6-c7b61e8d.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
|
-
import '../table-context/index.js';
|
|
5
5
|
import '@alfalab/core-components-pagination/esm';
|
|
6
6
|
import '@alfalab/core-components-select/esm';
|
|
7
|
-
import '
|
|
7
|
+
import '../table-context/index.js';
|
|
8
8
|
import './select-field/index.js';
|
|
9
|
-
|
|
9
|
+
import '@alfalab/core-components-button/esm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xo5re */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
4
4
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__field_gdcns svg {
|
|
14
14
|
width: 18px;
|
|
15
15
|
height: 18px;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
.table__open_gdcns,
|
|
18
|
+
.table__open_gdcns:hover {
|
|
19
19
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
20
20
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Button } from '@alfalab/core-components-button/esm';
|
|
5
5
|
|
|
6
|
-
var styles = {"field":"
|
|
6
|
+
var styles = {"field":"table__field_gdcns","open":"table__open_gdcns"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var CustomSelectField = function (_a) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React, { forwardRef, useRef, useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
|
+
import { findAllHeadCellsProps } from './utils.js';
|
|
5
6
|
import '../../utils.js';
|
|
6
7
|
import '../thead/Component.js';
|
|
7
|
-
import { findAllHeadCellsProps } from './utils.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"table__component_mrr8v","wrapper":"table__wrapper_mrr8v","stickyHeader":"table__stickyHeader_mrr8v","hasPagination":"table__hasPagination_mrr8v","table":"table__table_mrr8v"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var Table = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fpcah */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -18,29 +18,29 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_mrr8v {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__wrapper_mrr8v {
|
|
25
25
|
padding: 0 var(--gap-m) var(--gap-m);
|
|
26
26
|
background: var(--color-light-bg-primary);
|
|
27
27
|
box-shadow: var(--shadow-xs-hard);
|
|
28
28
|
border-radius: var(--border-radius-m);
|
|
29
29
|
overflow: auto;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.table__stickyHeader_mrr8v {
|
|
32
32
|
max-height: 100%;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.table__hasPagination_mrr8v {
|
|
35
35
|
padding-bottom: 0;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.table__table_mrr8v {
|
|
38
38
|
width: 100%;
|
|
39
39
|
border-collapse: collapse;
|
|
40
40
|
box-sizing: border-box
|
|
41
41
|
|
|
42
42
|
/* TODO: Хак для выравнивания чекбокса */
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__table_mrr8v td:first-child label > *[class^='box'], .table__table_mrr8v th:first-child label > *[class^='box'] {
|
|
45
45
|
margin-top: 0;
|
|
46
46
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export { Table } from './Component.js';
|
|
2
|
+
import '../../tslib.es6-c7b61e8d.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '../table-context/index.js';
|
|
6
|
+
import './utils.js';
|
|
5
7
|
import '../../utils.js';
|
|
6
8
|
import '../thead/Component.js';
|
|
7
|
-
import './utils.js';
|
|
8
|
-
export { Table } from './Component.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../../tslib.es6-eb63d7de.js';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import 'classnames';
|
|
4
2
|
import { isChildInstanceOf } from '../../utils.js';
|
|
5
3
|
import { THead } from '../thead/Component.js';
|
|
4
|
+
import '../../tslib.es6-c7b61e8d.js';
|
|
5
|
+
import 'classnames';
|
|
6
6
|
|
|
7
7
|
function findAllHeadCellsProps(children) {
|
|
8
8
|
var result = [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_8o6tk"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TBody = function (_a) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"component":"
|
|
6
|
+
var styles = {"component":"table__component_et29k","compactHorizontal":"table__compactHorizontal_et29k","compact":"table__compact_et29k"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: efbnp */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--gap-m: 16px;
|
|
18
18
|
--gap-xl: 24px;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.table__component_et29k {
|
|
21
21
|
font-size: 14px;
|
|
22
22
|
line-height: 20px;
|
|
23
23
|
font-weight: 400;
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
vertical-align: top;
|
|
30
30
|
box-sizing: border-box
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__component_et29k:first-child {
|
|
33
33
|
padding-left: var(--gap-m);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.table__component_et29k:last-child {
|
|
36
36
|
padding-right: var(--gap-m);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__compactHorizontal_et29k {
|
|
39
39
|
padding-left: 6px;
|
|
40
40
|
padding-right: 6px;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.table__compact_et29k {
|
|
43
43
|
padding-top: var(--gap-xs);
|
|
44
44
|
padding-bottom: var(--gap-xs);
|
|
45
45
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TRow } from '../trow/Component.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"row":"
|
|
6
|
+
var styles = {"row":"table__row_mrz8c","selected":"table__selected_mrz8c","expanded":"table__expanded_mrz8c","expandable":"table__expandable_mrz8c"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TExpandableRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: w97rf */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.table__row_mrz8c {
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__selected_mrz8c.table__expanded_mrz8c {
|
|
14
14
|
background-color: inherit;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.table__expanded_mrz8c:hover {
|
|
17
17
|
background-color: inherit;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.table__expandable_mrz8c td {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding-top: 0;
|
|
22
22
|
padding-bottom: 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_6t5yu","row":"table__row_6t5yu"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var THead = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wsrqa */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-quaternary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--gap-xs: 8px;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.table__component_6t5yu {
|
|
17
17
|
position: relative;
|
|
18
18
|
width: 100%;
|
|
19
19
|
box-sizing: border-box
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_6t5yu th:not(:last-child):not(:empty):after {
|
|
22
22
|
transition: opacity 0.2s;
|
|
23
23
|
position: absolute;
|
|
24
24
|
content: '';
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
bottom: var(--gap-xs);
|
|
31
31
|
background-color: var(--color-light-graphic-quaternary);
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.table__component_6t5yu th:after {
|
|
34
34
|
opacity: 0;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__component_6t5yu:hover th:after {
|
|
37
37
|
opacity: 1;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.table__row_6t5yu {
|
|
40
40
|
height: 72px;
|
|
41
41
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c7b61e8d.js';
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"component":"
|
|
6
|
+
var styles = {"component":"table__component_1hrvb","sortable":"table__sortable_1hrvb","sorted":"table__sorted_1hrvb","stickyHeader":"table__stickyHeader_1hrvb","compactHorizontal":"table__compactHorizontal_1hrvb"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var THeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r4ivk */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--gap-m: 16px;
|
|
19
19
|
--gap-2xl: 32px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_1hrvb {
|
|
22
22
|
font-size: 12px;
|
|
23
23
|
line-height: 16px;
|
|
24
24
|
font-weight: 500;
|
|
@@ -35,26 +35,26 @@
|
|
|
35
35
|
vertical-align: top;
|
|
36
36
|
box-sizing: border-box
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__component_1hrvb:first-child {
|
|
39
39
|
padding-left: var(--gap-m);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__component_1hrvb:last-child {
|
|
42
42
|
padding-right: var(--gap-m);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__sortable_1hrvb {
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__sorted_1hrvb {
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.table__stickyHeader_1hrvb {
|
|
51
51
|
top: 0;
|
|
52
52
|
position: sticky;
|
|
53
53
|
box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
|
|
54
54
|
border: none;
|
|
55
55
|
z-index: 1;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.table__compactHorizontal_1hrvb {
|
|
58
58
|
padding-left: 6px;
|
|
59
59
|
padding-right: 6px;
|
|
60
60
|
}
|