@alfalab/core-components-table 2.2.17 → 2.2.18
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 +1 -1
- package/components/index.js +1 -1
- package/components/pagination/Component.js +4 -4
- package/components/pagination/index.css +8 -8
- package/components/pagination/index.js +1 -1
- package/components/pagination/select-field/index.css +4 -4
- package/components/pagination/select-field/index.js +4 -4
- package/components/table/Component.js +4 -4
- package/components/table/index.css +7 -7
- package/components/table/index.js +1 -1
- package/components/table/utils.js +1 -1
- package/components/tbody/Component.js +4 -4
- package/components/tbody/index.css +2 -2
- package/components/tbody/index.js +1 -1
- package/components/tcell/Component.js +4 -4
- package/components/tcell/index.css +6 -6
- package/components/tcell/index.js +1 -1
- package/components/texpandable-row/Component.js +4 -4
- package/components/texpandable-row/index.css +5 -5
- package/components/texpandable-row/index.js +1 -1
- package/components/thead/Component.js +4 -4
- package/components/thead/index.css +6 -6
- package/components/thead/index.js +1 -1
- package/components/thead-cell/Component.js +5 -5
- package/components/thead-cell/index.css +8 -8
- package/components/thead-cell/index.js +1 -1
- package/components/trow/Component.js +4 -4
- package/components/trow/index.css +8 -8
- package/components/trow/index.js +1 -1
- package/components/tsortable-head-cell/Component.js +4 -4
- package/components/tsortable-head-cell/index.css +9 -9
- package/components/tsortable-head-cell/index.js +1 -1
- package/components/tsortable-head-cell/sort-icon-asc.js +2 -2
- package/components/tsortable-head-cell/sort-icon-desc.js +2 -2
- package/components/tsortable-head-cell/sort-icon-unset.js +2 -2
- package/cssm/component.js +1 -1
- package/cssm/components/index.js +1 -1
- package/cssm/components/pagination/Component.js +3 -3
- package/cssm/components/pagination/index.js +1 -1
- package/cssm/components/pagination/select-field/index.js +3 -3
- package/cssm/components/table/Component.js +3 -3
- package/cssm/components/table/index.js +1 -1
- package/cssm/components/table/utils.js +1 -1
- package/cssm/components/tbody/Component.js +3 -3
- package/cssm/components/tbody/index.js +1 -1
- package/cssm/components/tcell/Component.js +3 -3
- package/cssm/components/tcell/index.js +1 -1
- package/cssm/components/texpandable-row/Component.js +3 -3
- package/cssm/components/texpandable-row/index.js +1 -1
- package/cssm/components/thead/Component.js +3 -3
- package/cssm/components/thead/index.js +1 -1
- package/cssm/components/thead-cell/Component.js +4 -4
- package/cssm/components/thead-cell/index.js +1 -1
- package/cssm/components/trow/Component.js +3 -3
- package/cssm/components/trow/index.js +1 -1
- package/cssm/components/tsortable-head-cell/Component.js +3 -3
- package/cssm/components/tsortable-head-cell/index.js +1 -1
- package/cssm/components/tsortable-head-cell/sort-icon-asc.js +2 -2
- package/cssm/components/tsortable-head-cell/sort-icon-desc.js +2 -2
- package/cssm/components/tsortable-head-cell/sort-icon-unset.js +2 -2
- package/cssm/index.js +1 -1
- package/esm/component.js +1 -1
- package/esm/components/index.js +1 -1
- package/esm/components/pagination/Component.js +2 -2
- package/esm/components/pagination/index.css +8 -8
- package/esm/components/pagination/index.js +1 -1
- 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 +2 -2
- package/esm/components/table/index.css +7 -7
- package/esm/components/table/index.js +1 -1
- package/esm/components/table/utils.js +1 -1
- package/esm/components/tbody/Component.js +2 -2
- package/esm/components/tbody/index.css +2 -2
- package/esm/components/tbody/index.js +1 -1
- package/esm/components/tcell/Component.js +2 -2
- package/esm/components/tcell/index.css +6 -6
- package/esm/components/tcell/index.js +1 -1
- 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 +1 -1
- package/esm/components/thead/Component.js +2 -2
- package/esm/components/thead/index.css +6 -6
- package/esm/components/thead/index.js +1 -1
- 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 +1 -1
- package/esm/components/trow/Component.js +2 -2
- package/esm/components/trow/index.css +8 -8
- package/esm/components/trow/index.js +1 -1
- package/esm/components/tsortable-head-cell/Component.js +2 -2
- package/esm/components/tsortable-head-cell/index.css +9 -9
- package/esm/components/tsortable-head-cell/index.js +1 -1
- 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 +1 -1
- package/index.js +1 -1
- package/modern/components/pagination/Component.js +1 -1
- package/modern/components/pagination/index.css +8 -8
- 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 +1 -1
- package/modern/components/table/index.css +7 -7
- package/modern/components/tbody/Component.js +1 -1
- package/modern/components/tbody/index.css +2 -2
- package/modern/components/tcell/Component.js +1 -1
- package/modern/components/tcell/index.css +6 -6
- package/modern/components/texpandable-row/Component.js +1 -1
- package/modern/components/texpandable-row/index.css +5 -5
- package/modern/components/thead/Component.js +1 -1
- package/modern/components/thead/index.css +6 -6
- package/modern/components/thead-cell/Component.js +1 -1
- package/modern/components/thead-cell/index.css +8 -8
- package/modern/components/trow/Component.js +1 -1
- package/modern/components/trow/index.css +8 -8
- package/modern/components/tsortable-head-cell/Component.js +1 -1
- package/modern/components/tsortable-head-cell/index.css +9 -9
- package/package.json +6 -5
- package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
- package/cssm/tslib.es6-bbd6cd2a.js +0 -42
- package/esm/tslib.es6-0643a13a.d.ts +0 -36
- package/esm/tslib.es6-0643a13a.js +0 -40
- package/tslib.es6-3d93368e.d.ts +0 -36
- package/tslib.es6-3d93368e.js +0 -42
package/cssm/index.js
CHANGED
package/esm/component.js
CHANGED
|
@@ -7,7 +7,7 @@ import { TBody } from './components/tbody/Component.js';
|
|
|
7
7
|
import { TCell } from './components/tcell/Component.js';
|
|
8
8
|
import { TRow } from './components/trow/Component.js';
|
|
9
9
|
import { TExpandableRow } from './components/texpandable-row/Component.js';
|
|
10
|
-
import '
|
|
10
|
+
import 'tslib';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'classnames';
|
|
13
13
|
import './components/table-context/index.js';
|
package/esm/components/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { TBody } from './tbody/Component.js';
|
|
|
7
7
|
export { TCell } from './tcell/Component.js';
|
|
8
8
|
export { TRow } from './trow/Component.js';
|
|
9
9
|
export { TExpandableRow } from './texpandable-row/Component.js';
|
|
10
|
-
import '
|
|
10
|
+
import 'tslib';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'classnames';
|
|
13
13
|
import './table-context/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { useContext, useMemo, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/esm';
|
|
@@ -7,7 +7,7 @@ import { TableContext } from '../table-context/index.js';
|
|
|
7
7
|
import { CustomSelectField } from './select-field/index.js';
|
|
8
8
|
import '@alfalab/core-components-button/esm';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"table__component_k1okl","pagesWrapper":"table__pagesWrapper_k1okl","tag":"table__tag_k1okl","tagActive":"table__tagActive_k1okl","menu":"table__menu_k1okl","option":"table__option_k1okl"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var Pagination = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15dor */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-2xl: 32px;
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
|
-
} .
|
|
23
|
+
} .table__component_k1okl {
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: space-between;
|
|
26
26
|
align-items: flex-start;
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
padding: var(--gap-xl) var(--gap-m) var(--gap-2xl);
|
|
29
29
|
border-top: 1px solid var(--color-light-border-primary);
|
|
30
30
|
box-sizing: border-box;
|
|
31
|
-
} .
|
|
31
|
+
} .table__pagesWrapper_k1okl {
|
|
32
32
|
display: flex;
|
|
33
|
-
} .
|
|
33
|
+
} .table__tag_k1okl.table__tag_k1okl {
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
margin-right: var(--gap-xs);
|
|
36
36
|
padding: 0 var(--gap-xs);
|
|
37
37
|
min-width: 32px
|
|
38
|
-
} .
|
|
38
|
+
} .table__tag_k1okl.table__tag_k1okl:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
|
-
} .
|
|
40
|
+
} .table__tag_k1okl.table__tag_k1okl.table__tagActive_k1okl {
|
|
41
41
|
cursor: default;
|
|
42
|
-
} .
|
|
42
|
+
} .table__menu_k1okl {
|
|
43
43
|
margin: var(--gap-2xs) 0;
|
|
44
|
-
} .
|
|
44
|
+
} .table__option_k1okl {
|
|
45
45
|
min-width: 208px;
|
|
46
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jsau */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .table__field_gfrqv svg {
|
|
19
19
|
width: 18px;
|
|
20
20
|
height: 18px;
|
|
21
|
-
} .
|
|
22
|
-
.
|
|
21
|
+
} .table__open_gfrqv,
|
|
22
|
+
.table__open_gfrqv:hover {
|
|
23
23
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
24
24
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
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_gfrqv","open":"table__open_gfrqv"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var CustomSelectField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef, useRef, useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
@@ -6,7 +6,7 @@ import { findAllHeadCellsProps } from './utils.js';
|
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
import '../thead/Component.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"table__component_1twb0","wrapper":"table__wrapper_1twb0","stickyHeader":"table__stickyHeader_1twb0","hasPagination":"table__hasPagination_1twb0","table":"table__table_1twb0"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var Table = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1slq7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
--gap-m: 16px;
|
|
20
20
|
} :root {
|
|
21
21
|
} :root {
|
|
22
|
-
} .
|
|
22
|
+
} .table__component_1twb0 {
|
|
23
23
|
box-sizing: border-box;
|
|
24
|
-
} .
|
|
24
|
+
} .table__wrapper_1twb0 {
|
|
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
|
+
} .table__stickyHeader_1twb0 {
|
|
31
31
|
max-height: 100%;
|
|
32
|
-
} .
|
|
32
|
+
} .table__hasPagination_1twb0 {
|
|
33
33
|
padding-bottom: 0;
|
|
34
|
-
} .
|
|
34
|
+
} .table__table_1twb0 {
|
|
35
35
|
width: 100%;
|
|
36
36
|
border-collapse: collapse;
|
|
37
37
|
box-sizing: border-box
|
|
38
38
|
|
|
39
39
|
/* TODO: Хак для выравнивания чекбокса */
|
|
40
|
-
} .
|
|
40
|
+
} .table__table_1twb0 td:first-child label > *[class^='box'], .table__table_1twb0 th:first-child label > *[class^='box'] {
|
|
41
41
|
margin-top: 0;
|
|
42
42
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_15eh9"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TBody = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19xfb */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .
|
|
17
|
+
} .table__component_15eh9 {
|
|
18
18
|
width: 100%;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
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_1oudw","compactHorizontal":"table__compactHorizontal_1oudw","compact":"table__compact_1oudw"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: n4pl6 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-xl: 24px;
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
|
-
} .
|
|
23
|
+
} .table__component_1oudw {
|
|
24
24
|
font-size: 14px;
|
|
25
25
|
line-height: 20px;
|
|
26
26
|
font-weight: 400;
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
border-top: 1px solid var(--color-light-border-primary);
|
|
32
32
|
vertical-align: top;
|
|
33
33
|
box-sizing: border-box
|
|
34
|
-
} .
|
|
34
|
+
} .table__component_1oudw:first-child {
|
|
35
35
|
padding-left: var(--gap-m);
|
|
36
|
-
} .
|
|
36
|
+
} .table__component_1oudw:last-child {
|
|
37
37
|
padding-right: var(--gap-m);
|
|
38
|
-
} .
|
|
38
|
+
} .table__compactHorizontal_1oudw {
|
|
39
39
|
padding-left: 6px;
|
|
40
40
|
padding-right: 6px;
|
|
41
|
-
} .
|
|
41
|
+
} .table__compact_1oudw {
|
|
42
42
|
padding-top: var(--gap-xs);
|
|
43
43
|
padding-bottom: var(--gap-xs);
|
|
44
44
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
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_1dc34","selected":"table__selected_1dc34","expanded":"table__expanded_1dc34","expandable":"table__expandable_1dc34"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TExpandableRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 14afb */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .
|
|
17
|
+
} .table__row_1dc34 {
|
|
18
18
|
cursor: pointer;
|
|
19
|
-
} .
|
|
19
|
+
} .table__selected_1dc34.table__expanded_1dc34 {
|
|
20
20
|
background-color: inherit;
|
|
21
|
-
} .
|
|
21
|
+
} .table__expanded_1dc34:hover {
|
|
22
22
|
background-color: inherit;
|
|
23
|
-
} .
|
|
23
|
+
} .table__expandable_1dc34 td {
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding-top: 0;
|
|
26
26
|
padding-bottom: 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_1iezd","row":"table__row_1iezd"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var THead = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ryzz */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-quaternary: #dbdee1;
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .table__component_1iezd {
|
|
20
20
|
position: relative;
|
|
21
21
|
width: 100%;
|
|
22
22
|
box-sizing: border-box
|
|
23
|
-
} .
|
|
23
|
+
} .table__component_1iezd th:not(:last-child):not(:empty):after {
|
|
24
24
|
transition: opacity 0.2s;
|
|
25
25
|
position: absolute;
|
|
26
26
|
content: '';
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
top: var(--gap-xs);
|
|
32
32
|
bottom: var(--gap-xs);
|
|
33
33
|
background-color: var(--color-light-graphic-quaternary);
|
|
34
|
-
} .
|
|
34
|
+
} .table__component_1iezd th:after {
|
|
35
35
|
opacity: 0;
|
|
36
|
-
} .
|
|
36
|
+
} .table__component_1iezd:hover th:after {
|
|
37
37
|
opacity: 1;
|
|
38
|
-
} .
|
|
38
|
+
} .table__row_1iezd {
|
|
39
39
|
height: 72px;
|
|
40
40
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
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_joles","sortable":"table__sortable_joles","sorted":"table__sorted_joles","stickyHeader":"table__stickyHeader_joles","compactHorizontal":"table__compactHorizontal_joles"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var THeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1h5yl */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--gap-2xl: 32px;
|
|
22
22
|
} :root {
|
|
23
23
|
} :root {
|
|
24
|
-
} .
|
|
24
|
+
} .table__component_joles {
|
|
25
25
|
font-size: 12px;
|
|
26
26
|
line-height: 16px;
|
|
27
27
|
font-weight: 500;
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
background: var(--color-light-bg-primary);
|
|
38
38
|
vertical-align: top;
|
|
39
39
|
box-sizing: border-box
|
|
40
|
-
} .
|
|
40
|
+
} .table__component_joles:first-child {
|
|
41
41
|
padding-left: var(--gap-m);
|
|
42
|
-
} .
|
|
42
|
+
} .table__component_joles:last-child {
|
|
43
43
|
padding-right: var(--gap-m);
|
|
44
|
-
} .
|
|
44
|
+
} .table__sortable_joles {
|
|
45
45
|
cursor: pointer;
|
|
46
|
-
} .
|
|
46
|
+
} .table__sorted_joles {
|
|
47
47
|
color: var(--color-light-text-primary);
|
|
48
|
-
} .
|
|
48
|
+
} .table__stickyHeader_joles {
|
|
49
49
|
top: 0;
|
|
50
50
|
position: sticky;
|
|
51
51
|
box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
|
|
52
52
|
border: none;
|
|
53
53
|
z-index: 1;
|
|
54
|
-
} .
|
|
54
|
+
} .table__compactHorizontal_joles {
|
|
55
55
|
padding-left: 6px;
|
|
56
56
|
padding-right: 6px;
|
|
57
57
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_ekbpk","withoutBorder":"table__withoutBorder_ekbpk","clickable":"table__clickable_ekbpk","selected":"table__selected_ekbpk"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1005q */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
} .
|
|
20
|
+
} .table__component_ekbpk {
|
|
21
21
|
padding-top: 1px;
|
|
22
22
|
width: 100%;
|
|
23
23
|
transition: background-color 0.2s;
|
|
24
24
|
box-sizing: border-box;
|
|
25
25
|
background: var(--color-light-bg-primary)
|
|
26
|
-
} .
|
|
26
|
+
} .table__component_ekbpk:first-child td {
|
|
27
27
|
border-top: 0;
|
|
28
|
-
} .
|
|
28
|
+
} .table__withoutBorder_ekbpk td {
|
|
29
29
|
border: none;
|
|
30
|
-
} .
|
|
30
|
+
} .table__clickable_ekbpk {
|
|
31
31
|
cursor: pointer
|
|
32
|
-
} .
|
|
32
|
+
} .table__clickable_ekbpk:hover {
|
|
33
33
|
background-color: var(--color-light-bg-secondary);
|
|
34
|
-
} .
|
|
34
|
+
} .table__selected_ekbpk {
|
|
35
35
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
36
|
-
} .
|
|
36
|
+
} .table__selected_ekbpk:hover {
|
|
37
37
|
background-color: var(--color-static-graphic-solitude);
|
|
38
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { THeadCell } from '../thead-cell/Component.js';
|
|
@@ -7,7 +7,7 @@ import { SortIconDesc } from './sort-icon-desc.js';
|
|
|
7
7
|
import { SortIconUnset } from './sort-icon-unset.js';
|
|
8
8
|
import '../table-context/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"table__component_vsjnc","content":"table__content_vsjnc","icon":"table__icon_vsjnc","reverse":"table__reverse_vsjnc","sorted":"table__sorted_vsjnc"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var TSortableHeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: phnx9 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-link: #007aff;
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
--gap-xs: 8px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .
|
|
21
|
+
} .table__component_vsjnc {
|
|
22
22
|
position: relative;
|
|
23
|
-
} .
|
|
23
|
+
} .table__content_vsjnc {
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: flex-start;
|
|
26
|
-
} .
|
|
26
|
+
} .table__icon_vsjnc {
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
margin-left: var(--gap-xs);
|
|
29
29
|
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
color: var(--color-light-graphic-secondary);
|
|
36
36
|
transition: color 0.2s ease;
|
|
37
37
|
flex-shrink: 0
|
|
38
|
-
} .
|
|
38
|
+
} .table__icon_vsjnc:hover {
|
|
39
39
|
color: var(--color-light-graphic-primary);
|
|
40
|
-
} .
|
|
40
|
+
} .table__reverse_vsjnc {
|
|
41
41
|
flex-direction: row-reverse
|
|
42
|
-
} .
|
|
42
|
+
} .table__reverse_vsjnc .table__icon_vsjnc {
|
|
43
43
|
margin-left: 0;
|
|
44
44
|
margin-right: var(--gap-xs);
|
|
45
|
-
} .
|
|
45
|
+
} .table__sorted_vsjnc {
|
|
46
46
|
color: var(--color-light-graphic-link)
|
|
47
|
-
} .
|
|
47
|
+
} .table__sorted_vsjnc:hover {
|
|
48
48
|
color: var(--color-light-graphic-link);
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __assign } from 'tslib';
|
|
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 {
|
|
1
|
+
import { __assign } from 'tslib';
|
|
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 {
|
|
1
|
+
import { __assign } from 'tslib';
|
|
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
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { TableContext } from '../table-context/index.js';
|
|
|
6
6
|
import { CustomSelectField } from './select-field/index.js';
|
|
7
7
|
import '@alfalab/core-components-button/modern';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"table__component_k1okl","pagesWrapper":"table__pagesWrapper_k1okl","tag":"table__tag_k1okl","tagActive":"table__tagActive_k1okl","menu":"table__menu_k1okl","option":"table__option_k1okl"};
|
|
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 }) => {
|