@alfalab/core-components-table 2.2.6 → 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-b31083a0.d.ts → tslib.es6-c7b61e8d.d.ts} +0 -0
- package/esm/{tslib.es6-b31083a0.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-b7aac270.d.ts → tslib.es6-73285132.d.ts} +0 -0
- package/{tslib.es6-b7aac270.js → tslib.es6-73285132.js} +0 -0
- package/utils.js +1 -7
|
@@ -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_10faw","withoutBorder":"table__withoutBorder_10faw","clickable":"table__clickable_10faw","selected":"table__selected_10faw"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nbx5 */
|
|
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_10faw {
|
|
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_10faw:first-child td {
|
|
25
25
|
border-top: 0;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.table__withoutBorder_10faw td {
|
|
28
28
|
border: none;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.table__clickable_10faw {
|
|
31
31
|
cursor: pointer
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.table__clickable_10faw:hover {
|
|
34
34
|
background-color: var(--color-light-bg-secondary);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__selected_10faw {
|
|
37
37
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.table__selected_10faw: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-c7b61e8d.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_18935","content":"table__content_18935","icon":"table__icon_18935","reverse":"table__reverse_18935","sorted":"table__sorted_18935"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var TSortableHeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rxqky */
|
|
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_18935 {
|
|
19
19
|
position: relative;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__content_18935 {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.table__icon_18935 {
|
|
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_18935:hover {
|
|
39
39
|
color: var(--color-light-graphic-primary);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__reverse_18935 {
|
|
42
42
|
flex-direction: row-reverse
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__reverse_18935 .table__icon_18935 {
|
|
45
45
|
margin-left: 0;
|
|
46
46
|
margin-right: var(--gap-xs);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.table__sorted_18935 {
|
|
49
49
|
color: var(--color-light-graphic-link)
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.table__sorted_18935: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-c7b61e8d.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-c7b61e8d.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-c7b61e8d.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-c7b61e8d.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-c7b61e8d.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-73285132.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_1efgn","pagesWrapper":"table__pagesWrapper_1efgn","tag":"table__tag_1efgn","tagActive":"table__tagActive_1efgn","menu":"table__menu_1efgn","option":"table__option_1efgn"};
|
|
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: 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,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: 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
|
}
|
|
@@ -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_gdcns","open":"table__open_gdcns"};
|
|
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_mrr8v","wrapper":"table__wrapper_mrr8v","stickyHeader":"table__stickyHeader_mrr8v","hasPagination":"table__hasPagination_mrr8v","table":"table__table_mrr8v"};
|
|
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: 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,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_8o6tk"};
|
|
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));
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TableContext } from '../table-context/index.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const styles = {"component":"table__component_et29k","compactHorizontal":"table__compactHorizontal_et29k","compact":"table__compact_et29k"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
|
|
@@ -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
|
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TRow } from '../trow/Component.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const styles = {"row":"table__row_mrz8c","selected":"table__selected_mrz8c","expanded":"table__expanded_mrz8c","expandable":"table__expandable_mrz8c"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TExpandableRow = ({ className, selected, expanded, defaultExpanded = false, onToggle = () => null, renderContent = () => null, ...restProps }) => {
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const styles = {"component":"table__component_6t5yu","row":"table__row_6t5yu"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => (React.createElement("thead", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps },
|