@alfalab/core-components-table 2.1.15 → 2.2.1
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.d.ts +1 -0
- package/component.js +1 -1
- package/components/index.js +1 -1
- package/components/pagination/Component.js +2 -2
- 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 +2 -2
- package/components/table/Component.d.ts +8 -0
- package/components/table/Component.js +5 -3
- package/components/table/index.css +9 -6
- package/components/table/index.js +1 -1
- package/components/table/utils.js +1 -1
- package/components/table-context/index.d.ts +1 -0
- package/components/table-context/index.js +1 -0
- package/components/tbody/Component.js +2 -2
- package/components/tbody/index.css +2 -2
- package/components/tbody/index.js +1 -1
- package/components/tcell/Component.js +2 -2
- package/components/tcell/index.css +6 -6
- package/components/tcell/index.js +1 -1
- package/components/texpandable-row/Component.js +2 -2
- package/components/texpandable-row/index.css +5 -5
- package/components/texpandable-row/index.js +1 -1
- package/components/thead/Component.js +2 -2
- package/components/thead/index.css +6 -6
- package/components/thead/index.js +1 -1
- package/components/thead-cell/Component.js +7 -4
- package/components/thead-cell/index.css +14 -7
- package/components/thead-cell/index.js +1 -1
- package/components/trow/Component.js +2 -2
- package/components/trow/index.css +8 -8
- package/components/trow/index.js +1 -1
- package/components/tsortable-head-cell/Component.js +2 -2
- 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 +1 -1
- package/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/cssm/component.d.ts +1 -0
- package/cssm/components/table/Component.d.ts +8 -0
- package/cssm/components/table/Component.js +3 -1
- package/cssm/components/table/index.module.css +3 -0
- package/cssm/components/table-context/index.d.ts +1 -0
- package/cssm/components/table-context/index.js +1 -0
- package/cssm/components/thead-cell/Component.js +5 -2
- package/cssm/components/thead-cell/index.module.css +7 -0
- package/esm/component.d.ts +1 -0
- 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.d.ts +8 -0
- package/esm/components/table/Component.js +5 -3
- package/esm/components/table/index.css +9 -6
- package/esm/components/table/index.js +1 -1
- package/esm/components/table/utils.js +1 -1
- package/esm/components/table-context/index.d.ts +1 -0
- package/esm/components/table-context/index.js +1 -0
- 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 +7 -4
- package/esm/components/thead-cell/index.css +14 -7
- 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/esm/{tslib.es6-0b627ed6.d.ts → tslib.es6-73de7bd1.d.ts} +0 -0
- package/esm/{tslib.es6-0b627ed6.js → tslib.es6-73de7bd1.js} +0 -0
- package/index.js +1 -1
- package/modern/component.d.ts +1 -0
- package/modern/components/pagination/Component.js +2 -2
- 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.d.ts +8 -0
- package/modern/components/table/Component.js +4 -2
- package/modern/components/table/index.css +9 -6
- package/modern/components/table/utils.js +2 -2
- package/modern/components/table-context/index.d.ts +1 -0
- package/modern/components/table-context/index.js +1 -0
- 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 +5 -3
- package/modern/components/thead-cell/index.css +14 -7
- 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/modern/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/modern/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/modern/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/package.json +4 -4
- package/send-stats.js +1 -1
- /package/{tslib.es6-7aeefe28.d.ts → tslib.es6-4a0b0964.d.ts} +0 -0
- /package/{tslib.es6-7aeefe28.js → tslib.es6-4a0b0964.js} +0 -0
package/component.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
|
|
|
7
7
|
wrapper?: boolean | undefined;
|
|
8
8
|
pagination?: import("react").ReactNode;
|
|
9
9
|
dataTestId?: string | undefined;
|
|
10
|
+
stickyHeader?: boolean | undefined;
|
|
10
11
|
} & import("react").RefAttributes<HTMLTableElement>> & {
|
|
11
12
|
TBody: import("react").FC<import("./components/index").TBodyProps>;
|
|
12
13
|
THead: import("react").FC<import("./components/index").THeadProps>;
|
package/component.js
CHANGED
package/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var components_tableContext_index = require('../table-context/index.js');
|
|
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
18
18
|
|
|
19
|
-
var styles = {"component":"
|
|
19
|
+
var styles = {"component":"table__component_1xtw6","pagesWrapper":"table__pagesWrapper_1xtw6","tag":"table__tag_1xtw6","tagActive":"table__tagActive_1xtw6","menu":"table__menu_1xtw6","option":"table__option_1xtw6"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var Pagination = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hrhe */
|
|
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_1xtw6 {
|
|
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_1xtw6 {
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__tag_1xtw6.table__tag_1xtw6 {
|
|
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_1xtw6.table__tag_1xtw6:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__tag_1xtw6.table__tag_1xtw6.table__tagActive_1xtw6 {
|
|
42
42
|
cursor: default;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__menu_1xtw6 {
|
|
45
45
|
margin: var(--gap-2xs) 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__option_1xtw6 {
|
|
48
48
|
min-width: 208px;
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1vzyb */
|
|
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_drpc1 svg {
|
|
14
14
|
width: 18px;
|
|
15
15
|
height: 18px;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
.table__open_drpc1,
|
|
18
|
+
.table__open_drpc1:hover {
|
|
19
19
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
20
20
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var coreComponentsButton = require('@alfalab/core-components-button');
|
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"field":"
|
|
15
|
+
var styles = {"field":"table__field_drpc1","open":"table__open_drpc1"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var CustomSelectField = function (_a) {
|
|
@@ -30,6 +30,10 @@ type TableProps = TableHTMLAttributes<HTMLTableElement> & {
|
|
|
30
30
|
* Идентификатор для систем автоматизированного тестирования
|
|
31
31
|
*/
|
|
32
32
|
dataTestId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Если true то заголовок будет фиксироваться при скроле
|
|
35
|
+
*/
|
|
36
|
+
stickyHeader?: boolean;
|
|
33
37
|
};
|
|
34
38
|
declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<HTMLTableElement> & {
|
|
35
39
|
/**
|
|
@@ -60,5 +64,9 @@ declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<H
|
|
|
60
64
|
* Идентификатор для систем автоматизированного тестирования
|
|
61
65
|
*/
|
|
62
66
|
dataTestId?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Если true то заголовок будет фиксироваться при скроле
|
|
69
|
+
*/
|
|
70
|
+
stickyHeader?: boolean | undefined;
|
|
63
71
|
} & React.RefAttributes<HTMLTableElement>>;
|
|
64
72
|
export { TableProps, Table };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var components_tableContext_index = require('../table-context/index.js');
|
|
@@ -15,12 +15,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"component":"
|
|
18
|
+
var styles = {"component":"table__component_11ycg","wrapper":"table__wrapper_11ycg","stickyHeader":"table__stickyHeader_11ycg","hasPagination":"table__hasPagination_11ycg","table":"table__table_11ycg"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var Table = React.forwardRef(function (_a, ref) {
|
|
22
22
|
var _b;
|
|
23
|
-
var className = _a.className, children = _a.children, _c = _a.compactView, compactView = _c === void 0 ? false : _c, _d = _a.compactHorizontal, compactHorizontal = _d === void 0 ? false : _d, _e = _a.wrapper, wrapper = _e === void 0 ? true : _e, pagination = _a.pagination, dataTestId = _a.dataTestId, restProps = tslib_es6.__rest(_a, ["className", "children", "compactView", "compactHorizontal", "wrapper", "pagination", "dataTestId"]);
|
|
23
|
+
var className = _a.className, children = _a.children, _c = _a.compactView, compactView = _c === void 0 ? false : _c, _d = _a.compactHorizontal, compactHorizontal = _d === void 0 ? false : _d, _e = _a.wrapper, wrapper = _e === void 0 ? true : _e, pagination = _a.pagination, dataTestId = _a.dataTestId, _f = _a.stickyHeader, stickyHeader = _f === void 0 ? false : _f, restProps = tslib_es6.__rest(_a, ["className", "children", "compactView", "compactHorizontal", "wrapper", "pagination", "dataTestId", "stickyHeader"]);
|
|
24
24
|
var wrapperRef = React.useRef(null);
|
|
25
25
|
var columnsConfiguration = React.useMemo(function () {
|
|
26
26
|
return components_table_utils.findAllHeadCellsProps(children).map(function (columnProps, index) { return ({
|
|
@@ -32,6 +32,7 @@ var Table = React.forwardRef(function (_a, ref) {
|
|
|
32
32
|
}, [children]);
|
|
33
33
|
/* eslint-disable react/jsx-no-constructed-context-values */
|
|
34
34
|
return (React__default['default'].createElement(components_tableContext_index.TableContext.Provider, { value: {
|
|
35
|
+
stickyHeader: stickyHeader,
|
|
35
36
|
columnsConfiguration: columnsConfiguration,
|
|
36
37
|
compactView: compactView,
|
|
37
38
|
compactHorizontal: compactHorizontal,
|
|
@@ -40,6 +41,7 @@ var Table = React.forwardRef(function (_a, ref) {
|
|
|
40
41
|
React__default['default'].createElement("div", { ref: wrapperRef, className: cn__default['default'](styles.component, className, (_b = {},
|
|
41
42
|
_b[styles.wrapper] = wrapper,
|
|
42
43
|
_b[styles.hasPagination] = !!pagination,
|
|
44
|
+
_b[styles.stickyHeader] = stickyHeader,
|
|
43
45
|
_b)), "data-test-id": dataTestId },
|
|
44
46
|
React__default['default'].createElement("table", tslib_es6.__assign({ ref: ref, className: styles.table }, restProps), children),
|
|
45
47
|
pagination)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1u3sg */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -18,26 +18,29 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_11ycg {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__wrapper_11ycg {
|
|
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_11ycg {
|
|
32
|
+
max-height: 100%;
|
|
33
|
+
}
|
|
34
|
+
.table__hasPagination_11ycg {
|
|
32
35
|
padding-bottom: 0;
|
|
33
36
|
}
|
|
34
|
-
.
|
|
37
|
+
.table__table_11ycg {
|
|
35
38
|
width: 100%;
|
|
36
39
|
border-collapse: collapse;
|
|
37
40
|
box-sizing: border-box
|
|
38
41
|
|
|
39
42
|
/* TODO: Хак для выравнивания чекбокса */
|
|
40
43
|
}
|
|
41
|
-
.
|
|
44
|
+
.table__table_11ycg td:first-child label > *[class^='box'], .table__table_11ycg th:first-child label > *[class^='box'] {
|
|
42
45
|
margin-top: 0;
|
|
43
46
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"
|
|
14
|
+
var styles = {"component":"table__component_12qeu"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var TBody = function (_a) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var components_tableContext_index = require('../table-context/index.js');
|
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"
|
|
15
|
+
var styles = {"component":"table__component_1018l","compactHorizontal":"table__compactHorizontal_1018l","compact":"table__compact_1018l"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var TCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1l689 */
|
|
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_1018l {
|
|
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_1018l:first-child {
|
|
33
33
|
padding-left: var(--gap-m);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.table__component_1018l:last-child {
|
|
36
36
|
padding-right: var(--gap-m);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__compactHorizontal_1018l {
|
|
39
39
|
padding-left: 6px;
|
|
40
40
|
padding-right: 6px;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.table__compact_1018l {
|
|
43
43
|
padding-top: var(--gap-xs);
|
|
44
44
|
padding-bottom: var(--gap-xs);
|
|
45
45
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var components_trow_Component = require('../trow/Component.js');
|
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"row":"
|
|
15
|
+
var styles = {"row":"table__row_344dd","selected":"table__selected_344dd","expanded":"table__expanded_344dd","expandable":"table__expandable_344dd"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var TExpandableRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bmjvu */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.table__row_344dd {
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__selected_344dd.table__expanded_344dd {
|
|
14
14
|
background-color: inherit;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.table__expanded_344dd:hover {
|
|
17
17
|
background-color: inherit;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.table__expandable_344dd td {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding-top: 0;
|
|
22
22
|
padding-bottom: 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"
|
|
14
|
+
var styles = {"component":"table__component_qh0tt","row":"table__row_qh0tt"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var THead = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ovg68 */
|
|
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_qh0tt {
|
|
17
17
|
position: relative;
|
|
18
18
|
width: 100%;
|
|
19
19
|
box-sizing: border-box
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_qh0tt 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_qh0tt th:after {
|
|
34
34
|
opacity: 0;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__component_qh0tt:hover th:after {
|
|
37
37
|
opacity: 1;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.table__row_qh0tt {
|
|
40
40
|
height: 72px;
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var components_tableContext_index = require('../table-context/index.js');
|
|
@@ -12,15 +12,18 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"
|
|
15
|
+
var styles = {"component":"table__component_1kdim","sortable":"table__sortable_1kdim","sorted":"table__sorted_1kdim","stickyHeader":"table__stickyHeader_1kdim","compactHorizontal":"table__compactHorizontal_1kdim"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var THeadCell = function (_a) {
|
|
19
|
+
var _b;
|
|
19
20
|
var children = _a.children, className = _a.className, dataTestId = _a.dataTestId, style = _a.style, width = _a.width, textAlign = _a.textAlign, hidden = _a.hidden, restProps = tslib_es6.__rest(_a, ["children", "className", "dataTestId", "style", "width", "textAlign", "hidden"]);
|
|
20
|
-
var
|
|
21
|
+
var _c = React.useContext(components_tableContext_index.TableContext), compactHorizontal = _c.compactHorizontal, stickyHeader = _c.stickyHeader;
|
|
21
22
|
if (hidden)
|
|
22
23
|
return null;
|
|
23
|
-
return (React__default['default'].createElement("th", tslib_es6.__assign({ className: cn__default['default'](styles.component, className, compactHorizontal && styles.compactHorizontal
|
|
24
|
+
return (React__default['default'].createElement("th", tslib_es6.__assign({ className: cn__default['default'](styles.component, className, compactHorizontal && styles.compactHorizontal, (_b = {},
|
|
25
|
+
_b[styles.stickyHeader] = stickyHeader,
|
|
26
|
+
_b)), style: tslib_es6.__assign(tslib_es6.__assign({}, style), { width: width, textAlign: textAlign }), "data-test-id": dataTestId }, restProps), children));
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
exports.THeadCell = THeadCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: cjg3u */
|
|
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_1kdim {
|
|
22
22
|
font-size: 12px;
|
|
23
23
|
line-height: 16px;
|
|
24
24
|
font-weight: 500;
|
|
@@ -35,19 +35,26 @@
|
|
|
35
35
|
vertical-align: top;
|
|
36
36
|
box-sizing: border-box
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__component_1kdim:first-child {
|
|
39
39
|
padding-left: var(--gap-m);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__component_1kdim:last-child {
|
|
42
42
|
padding-right: var(--gap-m);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__sortable_1kdim {
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__sorted_1kdim {
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.table__stickyHeader_1kdim {
|
|
51
|
+
top: 0;
|
|
52
|
+
position: sticky;
|
|
53
|
+
box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
|
|
54
|
+
border: none;
|
|
55
|
+
z-index: 1;
|
|
56
|
+
}
|
|
57
|
+
.table__compactHorizontal_1kdim {
|
|
51
58
|
padding-left: 6px;
|
|
52
59
|
padding-right: 6px;
|
|
53
60
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-4a0b0964.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"
|
|
14
|
+
var styles = {"component":"table__component_1lnh8","withoutBorder":"table__withoutBorder_1lnh8","clickable":"table__clickable_1lnh8","selected":"table__selected_1lnh8"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var TRow = function (_a) {
|