@alfalab/core-components-table 2.2.6 → 2.2.8
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 +11 -13
- 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 +7 -9
- package/components/table/Component.js +9 -11
- package/components/table/index.css +7 -7
- package/components/table/index.js +3 -5
- package/components/table/utils.js +6 -8
- package/components/table-context/index.js +3 -5
- package/components/tbody/Component.js +6 -8
- package/components/tbody/index.css +2 -2
- package/components/tbody/index.js +2 -4
- package/components/tcell/Component.js +6 -8
- package/components/tcell/index.css +6 -6
- package/components/tcell/index.js +2 -4
- package/components/texpandable-row/Component.js +8 -10
- package/components/texpandable-row/index.css +5 -5
- package/components/texpandable-row/index.js +2 -4
- package/components/thead/Component.js +7 -9
- package/components/thead/index.css +6 -6
- package/components/thead/index.js +2 -4
- package/components/thead-cell/Component.js +6 -8
- package/components/thead-cell/index.css +8 -8
- package/components/thead-cell/index.js +2 -4
- package/components/trow/Component.js +7 -9
- package/components/trow/index.css +8 -8
- package/components/trow/index.js +2 -4
- package/components/tsortable-head-cell/Component.js +9 -11
- 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 +5 -7
- package/components/tsortable-head-cell/sort-icon-desc.js +5 -7
- package/components/tsortable-head-cell/sort-icon-unset.js +5 -7
- package/cssm/component.js +13 -15
- package/cssm/components/index.js +13 -15
- package/cssm/components/pagination/Component.js +12 -14
- package/cssm/components/pagination/index.js +4 -6
- package/cssm/components/pagination/select-field/index.js +7 -9
- package/cssm/components/table/Component.js +14 -16
- package/cssm/components/table/index.js +4 -6
- package/cssm/components/table/utils.js +7 -9
- package/cssm/components/table-context/index.js +3 -5
- package/cssm/components/tbody/Component.js +6 -8
- package/cssm/components/tbody/index.js +2 -4
- package/cssm/components/tcell/Component.js +6 -8
- package/cssm/components/tcell/index.js +2 -4
- package/cssm/components/texpandable-row/Component.js +11 -13
- package/cssm/components/texpandable-row/index.js +3 -5
- package/cssm/components/thead/Component.js +7 -9
- package/cssm/components/thead/index.js +2 -4
- package/cssm/components/thead-cell/Component.js +7 -9
- package/cssm/components/thead-cell/index.js +2 -4
- package/cssm/components/trow/Component.js +10 -12
- package/cssm/components/trow/index.js +2 -4
- package/cssm/components/tsortable-head-cell/Component.js +11 -13
- package/cssm/components/tsortable-head-cell/index.js +3 -5
- package/cssm/components/tsortable-head-cell/sort-icon-asc.js +5 -7
- package/cssm/components/tsortable-head-cell/sort-icon-desc.js +5 -7
- package/cssm/components/tsortable-head-cell/sort-icon-unset.js +5 -7
- 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 +3 -5
- 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-b31083a0.d.ts → tslib.es6-cb60cfea.d.ts} +0 -0
- package/esm/{tslib.es6-b31083a0.js → tslib.es6-cb60cfea.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 +4 -4
- package/{tslib.es6-b7aac270.d.ts → tslib.es6-318f9fb1.d.ts} +0 -0
- package/{tslib.es6-b7aac270.js → tslib.es6-318f9fb1.js} +0 -0
- package/utils.js +3 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: amv0x */
|
|
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_1xg2u {
|
|
17
17
|
position: relative;
|
|
18
18
|
width: 100%;
|
|
19
19
|
box-sizing: border-box
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_1xg2u 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_1xg2u th:after {
|
|
34
34
|
opacity: 0;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__component_1xg2u:hover th:after {
|
|
37
37
|
opacity: 1;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.table__row_1xg2u {
|
|
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-cb60cfea.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_ifwuz","sortable":"table__sortable_ifwuz","sorted":"table__sorted_ifwuz","stickyHeader":"table__stickyHeader_ifwuz","compactHorizontal":"table__compactHorizontal_ifwuz"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var THeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 147xi */
|
|
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_ifwuz {
|
|
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_ifwuz:first-child {
|
|
39
39
|
padding-left: var(--gap-m);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__component_ifwuz:last-child {
|
|
42
42
|
padding-right: var(--gap-m);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__sortable_ifwuz {
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__sorted_ifwuz {
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.table__stickyHeader_ifwuz {
|
|
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_ifwuz {
|
|
58
58
|
padding-left: 6px;
|
|
59
59
|
padding-right: 6px;
|
|
60
60
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-cb60cfea.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_1m0xp","withoutBorder":"table__withoutBorder_1m0xp","clickable":"table__clickable_1m0xp","selected":"table__selected_1m0xp"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 174ct */
|
|
2
2
|
:root {
|
|
3
3
|
--color-static-graphic-solitude: #e8f2fe;
|
|
4
4
|
}
|
|
@@ -14,28 +14,28 @@
|
|
|
14
14
|
|
|
15
15
|
/* Hard up */
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.table__component_1m0xp {
|
|
18
18
|
padding-top: 1px;
|
|
19
19
|
width: 100%;
|
|
20
20
|
transition: background-color 0.2s;
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
background: var(--color-light-bg-primary)
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__component_1m0xp:first-child td {
|
|
25
25
|
border-top: 0;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.table__withoutBorder_1m0xp td {
|
|
28
28
|
border: none;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.table__clickable_1m0xp {
|
|
31
31
|
cursor: pointer
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.table__clickable_1m0xp:hover {
|
|
34
34
|
background-color: var(--color-light-bg-secondary);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__selected_1m0xp {
|
|
37
37
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.table__selected_1m0xp:hover {
|
|
40
40
|
background-color: var(--color-static-graphic-solitude);
|
|
41
41
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-cb60cfea.js';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import '../table-context/index.js';
|
|
5
4
|
import { THeadCell } from '../thead-cell/Component.js';
|
|
6
5
|
import { SortIconAsc } from './sort-icon-asc.js';
|
|
7
6
|
import { SortIconDesc } from './sort-icon-desc.js';
|
|
8
7
|
import { SortIconUnset } from './sort-icon-unset.js';
|
|
8
|
+
import '../table-context/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"table__component_1wo21","content":"table__content_1wo21","icon":"table__icon_1wo21","reverse":"table__reverse_1wo21","sorted":"table__sorted_1wo21"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var TSortableHeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5rtvl */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-link: #007aff;
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.table__component_1wo21 {
|
|
19
19
|
position: relative;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__content_1wo21 {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.table__icon_1wo21 {
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
margin-left: var(--gap-xs);
|
|
28
28
|
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
transition: color 0.2s ease;
|
|
36
36
|
flex-shrink: 0
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__icon_1wo21:hover {
|
|
39
39
|
color: var(--color-light-graphic-primary);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__reverse_1wo21 {
|
|
42
42
|
flex-direction: row-reverse
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__reverse_1wo21 .table__icon_1wo21 {
|
|
45
45
|
margin-left: 0;
|
|
46
46
|
margin-right: var(--gap-xs);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.table__sorted_1wo21 {
|
|
49
49
|
color: var(--color-light-graphic-link)
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.table__sorted_1wo21:hover {
|
|
52
52
|
color: var(--color-light-graphic-link);
|
|
53
53
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { TSortableHeadCell } from './Component.js';
|
|
2
|
+
import '../../tslib.es6-cb60cfea.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
|
-
import '../table-context/index.js';
|
|
5
5
|
import '../thead-cell/Component.js';
|
|
6
|
+
import '../table-context/index.js';
|
|
6
7
|
import './sort-icon-asc.js';
|
|
7
8
|
import './sort-icon-desc.js';
|
|
8
9
|
import './sort-icon-unset.js';
|
|
9
|
-
export { TSortableHeadCell } from './Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-cb60cfea.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var SortIconAsc = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-cb60cfea.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var SortIconDesc = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-cb60cfea.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var SortIconUnset = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
package/esm/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
export { Table } from './component.js';
|
|
2
|
+
import './components/table/Component.js';
|
|
3
|
+
import './tslib.es6-cb60cfea.js';
|
|
2
4
|
import 'react';
|
|
3
5
|
import 'classnames';
|
|
4
6
|
import './components/table-context/index.js';
|
|
7
|
+
import './components/table/utils.js';
|
|
5
8
|
import './utils.js';
|
|
6
9
|
import './components/thead/Component.js';
|
|
7
|
-
import './components/
|
|
8
|
-
import './components/table/Component.js';
|
|
10
|
+
import './components/pagination/Component.js';
|
|
9
11
|
import '@alfalab/core-components-pagination/esm';
|
|
10
12
|
import '@alfalab/core-components-select/esm';
|
|
11
|
-
import '@alfalab/core-components-button/esm';
|
|
12
13
|
import './components/pagination/select-field/index.js';
|
|
13
|
-
import '
|
|
14
|
+
import '@alfalab/core-components-button/esm';
|
|
14
15
|
import './components/thead-cell/Component.js';
|
|
16
|
+
import './components/tsortable-head-cell/Component.js';
|
|
15
17
|
import './components/tsortable-head-cell/sort-icon-asc.js';
|
|
16
18
|
import './components/tsortable-head-cell/sort-icon-desc.js';
|
|
17
19
|
import './components/tsortable-head-cell/sort-icon-unset.js';
|
|
18
|
-
import './components/tsortable-head-cell/Component.js';
|
|
19
20
|
import './components/tbody/Component.js';
|
|
20
21
|
import './components/tcell/Component.js';
|
|
21
22
|
import './components/trow/Component.js';
|
|
22
23
|
import './components/texpandable-row/Component.js';
|
|
23
|
-
export { Table } from './component.js';
|
|
File without changes
|
|
File without changes
|
package/index.js
CHANGED
|
@@ -1,30 +1,28 @@
|
|
|
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-318f9fb1.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
11
|
require('./components/thead/Component.js');
|
|
11
|
-
require('./components/
|
|
12
|
-
require('./components/table/Component.js');
|
|
12
|
+
require('./components/pagination/Component.js');
|
|
13
13
|
require('@alfalab/core-components-pagination');
|
|
14
14
|
require('@alfalab/core-components-select');
|
|
15
|
-
require('@alfalab/core-components-button');
|
|
16
15
|
require('./components/pagination/select-field/index.js');
|
|
17
|
-
require('
|
|
16
|
+
require('@alfalab/core-components-button');
|
|
18
17
|
require('./components/thead-cell/Component.js');
|
|
18
|
+
require('./components/tsortable-head-cell/Component.js');
|
|
19
19
|
require('./components/tsortable-head-cell/sort-icon-asc.js');
|
|
20
20
|
require('./components/tsortable-head-cell/sort-icon-desc.js');
|
|
21
21
|
require('./components/tsortable-head-cell/sort-icon-unset.js');
|
|
22
|
-
require('./components/tsortable-head-cell/Component.js');
|
|
23
22
|
require('./components/tbody/Component.js');
|
|
24
23
|
require('./components/tcell/Component.js');
|
|
25
24
|
require('./components/trow/Component.js');
|
|
26
25
|
require('./components/texpandable-row/Component.js');
|
|
27
|
-
var component = require('./component.js');
|
|
28
26
|
|
|
29
27
|
|
|
30
28
|
|
package/modern/component.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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';
|
|
1
10
|
import 'react';
|
|
2
11
|
import 'classnames';
|
|
3
12
|
import './components/table-context/index.js';
|
|
4
|
-
import './utils.js';
|
|
5
|
-
import { THead } from './components/thead/Component.js';
|
|
6
13
|
import './components/table/utils.js';
|
|
7
|
-
import
|
|
14
|
+
import './utils.js';
|
|
8
15
|
import '@alfalab/core-components-pagination/modern';
|
|
9
16
|
import '@alfalab/core-components-select/modern';
|
|
10
|
-
import '@alfalab/core-components-button/modern';
|
|
11
17
|
import './components/pagination/select-field/index.js';
|
|
12
|
-
import
|
|
13
|
-
import { THeadCell } from './components/thead-cell/Component.js';
|
|
18
|
+
import '@alfalab/core-components-button/modern';
|
|
14
19
|
import './components/tsortable-head-cell/sort-icon-asc.js';
|
|
15
20
|
import './components/tsortable-head-cell/sort-icon-desc.js';
|
|
16
21
|
import './components/tsortable-head-cell/sort-icon-unset.js';
|
|
17
|
-
import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
|
|
18
|
-
import { TBody } from './components/tbody/Component.js';
|
|
19
|
-
import { TCell } from './components/tcell/Component.js';
|
|
20
|
-
import { TRow } from './components/trow/Component.js';
|
|
21
|
-
import { TExpandableRow } from './components/texpandable-row/Component.js';
|
|
22
22
|
|
|
23
23
|
const Table = Object.assign(Table$1, {
|
|
24
24
|
TBody,
|
|
@@ -1,21 +1,21 @@
|
|
|
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';
|
|
1
10
|
import 'react';
|
|
2
11
|
import 'classnames';
|
|
3
12
|
import './table-context/index.js';
|
|
4
|
-
import '../utils.js';
|
|
5
|
-
export { THead } from './thead/Component.js';
|
|
6
13
|
import './table/utils.js';
|
|
7
|
-
|
|
14
|
+
import '../utils.js';
|
|
8
15
|
import '@alfalab/core-components-pagination/modern';
|
|
9
16
|
import '@alfalab/core-components-select/modern';
|
|
10
|
-
import '@alfalab/core-components-button/modern';
|
|
11
17
|
import './pagination/select-field/index.js';
|
|
12
|
-
|
|
13
|
-
export { THeadCell } from './thead-cell/Component.js';
|
|
18
|
+
import '@alfalab/core-components-button/modern';
|
|
14
19
|
import './tsortable-head-cell/sort-icon-asc.js';
|
|
15
20
|
import './tsortable-head-cell/sort-icon-desc.js';
|
|
16
21
|
import './tsortable-head-cell/sort-icon-unset.js';
|
|
17
|
-
export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
|
|
18
|
-
export { TBody } from './tbody/Component.js';
|
|
19
|
-
export { TCell } from './tcell/Component.js';
|
|
20
|
-
export { TRow } from './trow/Component.js';
|
|
21
|
-
export { TExpandableRow } from './texpandable-row/Component.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useContext, useMemo, useCallback } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { TableContext } from '../table-context/index.js';
|
|
4
3
|
import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/modern';
|
|
5
4
|
import { Select } from '@alfalab/core-components-select/modern';
|
|
6
|
-
import '
|
|
5
|
+
import { TableContext } from '../table-context/index.js';
|
|
7
6
|
import { CustomSelectField } from './select-field/index.js';
|
|
7
|
+
import '@alfalab/core-components-button/modern';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const styles = {"component":"table__component_j7gcc","pagesWrapper":"table__pagesWrapper_j7gcc","tag":"table__tag_j7gcc","tagActive":"table__tagActive_j7gcc","menu":"table__menu_j7gcc","option":"table__option_j7gcc"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageChange = () => null, pagesCount, onPageChange = () => null, className, dataTestId, ...restPaginationProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1imze */
|
|
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_j7gcc {
|
|
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_j7gcc {
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__tag_j7gcc.table__tag_j7gcc {
|
|
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_j7gcc.table__tag_j7gcc:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__tag_j7gcc.table__tag_j7gcc.table__tagActive_j7gcc {
|
|
42
42
|
cursor: default;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__menu_j7gcc {
|
|
45
45
|
margin: var(--gap-2xs) 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__option_j7gcc {
|
|
48
48
|
min-width: 208px;
|
|
49
49
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export { Pagination } from './Component.js';
|
|
1
2
|
import 'react';
|
|
2
3
|
import 'classnames';
|
|
3
|
-
import '../table-context/index.js';
|
|
4
4
|
import '@alfalab/core-components-pagination/modern';
|
|
5
5
|
import '@alfalab/core-components-select/modern';
|
|
6
|
-
import '
|
|
6
|
+
import '../table-context/index.js';
|
|
7
7
|
import './select-field/index.js';
|
|
8
|
-
|
|
8
|
+
import '@alfalab/core-components-button/modern';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wvgc */
|
|
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_y6dji svg {
|
|
14
14
|
width: 18px;
|
|
15
15
|
height: 18px;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
.table__open_y6dji,
|
|
18
|
+
.table__open_y6dji:hover {
|
|
19
19
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
20
20
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const styles = {"field":"table__field_y6dji","open":"table__open_y6dji"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useMemo } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TableContext } from '../table-context/index.js';
|
|
4
|
+
import { findAllHeadCellsProps } from './utils.js';
|
|
4
5
|
import '../../utils.js';
|
|
5
6
|
import '../thead/Component.js';
|
|
6
|
-
import { findAllHeadCellsProps } from './utils.js';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const styles = {"component":"table__component_tnsjw","wrapper":"table__wrapper_tnsjw","stickyHeader":"table__stickyHeader_tnsjw","hasPagination":"table__hasPagination_tnsjw","table":"table__table_tnsjw"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const Table = forwardRef(({ className, children, compactView = false, compactHorizontal = false, wrapper = true, pagination, dataTestId, stickyHeader = false, ...restProps }, ref) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1skjn */
|
|
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_tnsjw {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__wrapper_tnsjw {
|
|
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_tnsjw {
|
|
32
32
|
max-height: 100%;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.table__hasPagination_tnsjw {
|
|
35
35
|
padding-bottom: 0;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.table__table_tnsjw {
|
|
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_tnsjw td:first-child label > *[class^='box'], .table__table_tnsjw th:first-child label > *[class^='box'] {
|
|
45
45
|
margin-top: 0;
|
|
46
46
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { Table } from './Component.js';
|
|
1
2
|
import 'react';
|
|
2
3
|
import 'classnames';
|
|
3
4
|
import '../table-context/index.js';
|
|
5
|
+
import './utils.js';
|
|
4
6
|
import '../../utils.js';
|
|
5
7
|
import '../thead/Component.js';
|
|
6
|
-
import './utils.js';
|
|
7
|
-
export { Table } from './Component.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const styles = {"component":"table__component_1h3hx"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const TBody = ({ className, children, dataTestId, ...restProps }) => (React.createElement("tbody", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps }, children));
|