@alfalab/core-components-table 2.1.13 → 2.1.15
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 -1
- package/component.js +5 -5
- package/components/index.js +5 -5
- package/components/pagination/Component.js +3 -3
- package/components/pagination/index.css +8 -8
- package/components/pagination/index.js +2 -2
- package/components/pagination/select-field/index.css +4 -4
- package/components/pagination/select-field/index.js +2 -2
- package/components/table/Component.d.ts +3 -3
- package/components/table/Component.js +5 -4
- package/components/table/index.css +6 -6
- package/components/table/index.js +3 -3
- package/components/table/utils.js +2 -2
- 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 +2 -2
- package/components/thead-cell/index.css +7 -7
- package/components/thead-cell/index.js +1 -1
- package/components/trow/Component.js +2 -2
- package/components/trow/index.css +8 -10
- 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 +2 -2
- 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 -1
- package/cssm/component.js +5 -5
- package/cssm/components/index.js +5 -5
- package/cssm/components/pagination/Component.js +2 -2
- package/cssm/components/pagination/index.js +2 -2
- package/cssm/components/pagination/select-field/index.js +1 -1
- package/cssm/components/table/Component.d.ts +3 -3
- package/cssm/components/table/Component.js +4 -3
- package/cssm/components/table/index.js +3 -3
- package/cssm/components/table/utils.js +2 -2
- package/cssm/components/tbody/Component.js +1 -1
- package/cssm/components/tbody/index.js +1 -1
- package/cssm/components/tcell/Component.js +1 -1
- package/cssm/components/tcell/index.js +1 -1
- package/cssm/components/texpandable-row/Component.js +1 -1
- package/cssm/components/texpandable-row/index.js +1 -1
- package/cssm/components/thead/Component.js +1 -1
- package/cssm/components/thead/index.js +1 -1
- package/cssm/components/thead-cell/Component.js +1 -1
- package/cssm/components/thead-cell/index.js +1 -1
- package/cssm/components/trow/Component.js +1 -1
- package/cssm/components/trow/index.js +1 -1
- package/cssm/components/trow/index.module.css +1 -3
- package/cssm/components/tsortable-head-cell/Component.js +2 -2
- package/cssm/components/tsortable-head-cell/index.js +2 -2
- package/cssm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/cssm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/cssm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/cssm/index.js +5 -5
- package/cssm/{tslib.es6-ce870b46.d.ts → tslib.es6-9682e485.d.ts} +8 -4
- package/{tslib.es6-4bb530e9.js → cssm/tslib.es6-9682e485.js} +1 -1
- package/esm/component.d.ts +1 -1
- package/esm/component.js +5 -5
- package/esm/components/index.js +5 -5
- package/esm/components/pagination/Component.js +3 -3
- package/esm/components/pagination/index.css +8 -8
- package/esm/components/pagination/index.js +2 -2
- 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 +3 -3
- package/esm/components/table/Component.js +5 -4
- package/esm/components/table/index.css +6 -6
- 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 +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 +7 -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 -10
- 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 +2 -2
- 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 +5 -5
- package/{tslib.es6-4bb530e9.d.ts → esm/tslib.es6-0b627ed6.d.ts} +8 -4
- package/esm/{tslib.es6-6e61193e.js → tslib.es6-0b627ed6.js} +1 -1
- package/index.js +5 -5
- package/modern/component.d.ts +1 -1
- package/modern/component.js +4 -4
- package/modern/components/index.js +4 -4
- package/modern/components/pagination/Component.js +3 -3
- package/modern/components/pagination/index.css +8 -8
- package/modern/components/pagination/index.js +1 -1
- package/modern/components/pagination/select-field/index.css +4 -4
- package/modern/components/pagination/select-field/index.js +2 -2
- package/modern/components/table/Component.d.ts +3 -3
- package/modern/components/table/Component.js +5 -4
- package/modern/components/table/index.css +6 -6
- package/modern/components/table/index.js +2 -2
- package/modern/components/table/utils.js +1 -1
- package/modern/components/tbody/Component.js +2 -4
- package/modern/components/tbody/index.css +2 -2
- package/modern/components/tcell/Component.js +2 -2
- package/modern/components/tcell/index.css +6 -6
- package/modern/components/texpandable-row/Component.js +3 -3
- package/modern/components/texpandable-row/index.css +5 -5
- package/modern/components/thead/Component.js +3 -5
- package/modern/components/thead/index.css +6 -6
- package/modern/components/thead-cell/Component.js +2 -2
- package/modern/components/thead-cell/index.css +7 -7
- package/modern/components/trow/Component.js +3 -3
- package/modern/components/trow/index.css +8 -10
- 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 +1 -1
- 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/modern/index.js +4 -4
- package/package.json +4 -4
- package/{esm/tslib.es6-6e61193e.d.ts → tslib.es6-7aeefe28.d.ts} +8 -4
- package/{cssm/tslib.es6-ce870b46.js → tslib.es6-7aeefe28.js} +1 -1
|
@@ -12,9 +12,12 @@ declare function __generator(thisArg: any, body: any): {
|
|
|
12
12
|
declare function __exportStar(m: any, o: any): void;
|
|
13
13
|
declare function __values(o: any): any;
|
|
14
14
|
declare function __read(o: any, n: any): any;
|
|
15
|
+
/** @deprecated */
|
|
15
16
|
declare function __spread(...args: any[]): any[];
|
|
17
|
+
/** @deprecated */
|
|
16
18
|
declare function __spreadArrays(...args: any[]): any[];
|
|
17
|
-
declare function
|
|
19
|
+
declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
|
|
20
|
+
declare function __await(v: any): __await;
|
|
18
21
|
declare class __await {
|
|
19
22
|
constructor(v: any);
|
|
20
23
|
v: any;
|
|
@@ -25,8 +28,9 @@ declare function __asyncValues(o: any): any;
|
|
|
25
28
|
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
26
29
|
declare function __importStar(mod: any): any;
|
|
27
30
|
declare function __importDefault(mod: any): any;
|
|
28
|
-
declare function __classPrivateFieldGet(receiver: any,
|
|
29
|
-
declare function __classPrivateFieldSet(receiver: any,
|
|
31
|
+
declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
|
|
32
|
+
declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
|
|
33
|
+
declare function __classPrivateFieldIn(state: any, receiver: any): any;
|
|
30
34
|
declare function __assign(...args: any[]): any;
|
|
31
35
|
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
32
|
-
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
|
|
36
|
+
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/******************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
5
5
|
|
|
6
6
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/esm/component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
|
|
|
3
3
|
compactView?: boolean | undefined;
|
|
4
4
|
compactHorizontal?: boolean | undefined;
|
|
5
5
|
className?: string | undefined;
|
|
6
|
-
children: import("react").ReactElement<any, string |
|
|
6
|
+
children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
|
|
7
7
|
wrapper?: boolean | undefined;
|
|
8
8
|
pagination?: import("react").ReactNode;
|
|
9
9
|
dataTestId?: string | undefined;
|
package/esm/component.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-0b627ed6.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import
|
|
4
|
+
import './components/table-context/index.js';
|
|
5
5
|
import './utils.js';
|
|
6
|
+
import { THead } from './components/thead/Component.js';
|
|
6
7
|
import './components/table/utils.js';
|
|
7
|
-
import './components/table-context/index.js';
|
|
8
8
|
import { Table as Table$1 } from './components/table/Component.js';
|
|
9
|
-
import '@alfalab/core-components-select/esm';
|
|
10
9
|
import '@alfalab/core-components-pagination/esm';
|
|
10
|
+
import '@alfalab/core-components-select/esm';
|
|
11
11
|
import '@alfalab/core-components-button/esm';
|
|
12
12
|
import './components/pagination/select-field/index.js';
|
|
13
13
|
import { Pagination } from './components/pagination/Component.js';
|
|
14
14
|
import { THeadCell } from './components/thead-cell/Component.js';
|
|
15
|
-
import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
|
|
16
15
|
import './components/tsortable-head-cell/sort-icon-asc.js';
|
|
17
16
|
import './components/tsortable-head-cell/sort-icon-desc.js';
|
|
18
17
|
import './components/tsortable-head-cell/sort-icon-unset.js';
|
|
18
|
+
import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
|
|
19
19
|
import { TBody } from './components/tbody/Component.js';
|
|
20
20
|
import { TCell } from './components/tcell/Component.js';
|
|
21
21
|
import { TRow } from './components/trow/Component.js';
|
package/esm/components/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import '../tslib.es6-
|
|
1
|
+
import '../tslib.es6-0b627ed6.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
|
|
4
|
+
import './table-context/index.js';
|
|
5
5
|
import '../utils.js';
|
|
6
|
+
export { THead } from './thead/Component.js';
|
|
6
7
|
import './table/utils.js';
|
|
7
|
-
import './table-context/index.js';
|
|
8
8
|
export { Table } from './table/Component.js';
|
|
9
|
-
import '@alfalab/core-components-select/esm';
|
|
10
9
|
import '@alfalab/core-components-pagination/esm';
|
|
10
|
+
import '@alfalab/core-components-select/esm';
|
|
11
11
|
import '@alfalab/core-components-button/esm';
|
|
12
12
|
import './pagination/select-field/index.js';
|
|
13
13
|
export { Pagination } from './pagination/Component.js';
|
|
14
14
|
export { THeadCell } from './thead-cell/Component.js';
|
|
15
|
-
export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
|
|
16
15
|
import './tsortable-head-cell/sort-icon-asc.js';
|
|
17
16
|
import './tsortable-head-cell/sort-icon-desc.js';
|
|
18
17
|
import './tsortable-head-cell/sort-icon-unset.js';
|
|
18
|
+
export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
|
|
19
19
|
export { TBody } from './tbody/Component.js';
|
|
20
20
|
export { TCell } from './tcell/Component.js';
|
|
21
21
|
export { TRow } from './trow/Component.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-0b627ed6.js';
|
|
2
2
|
import React, { useContext, useMemo, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
|
-
import { Select } from '@alfalab/core-components-select/esm';
|
|
6
5
|
import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/esm';
|
|
6
|
+
import { Select } from '@alfalab/core-components-select/esm';
|
|
7
7
|
import '@alfalab/core-components-button/esm';
|
|
8
8
|
import { CustomSelectField } from './select-field/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"table__component_s5an6","pagesWrapper":"table__pagesWrapper_s5an6","tag":"table__tag_s5an6","tagActive":"table__tagActive_s5an6","menu":"table__menu_s5an6","option":"table__option_s5an6"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var Pagination = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: t4a06 */
|
|
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_s5an6 {
|
|
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_s5an6 {
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__tag_s5an6.table__tag_s5an6 {
|
|
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_s5an6.table__tag_s5an6:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__tag_s5an6.table__tag_s5an6.table__tagActive_s5an6 {
|
|
42
42
|
cursor: default;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__menu_s5an6 {
|
|
45
45
|
margin: var(--gap-2xs) 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__option_s5an6 {
|
|
48
48
|
min-width: 208px;
|
|
49
49
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-0b627ed6.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../table-context/index.js';
|
|
5
|
-
import '@alfalab/core-components-select/esm';
|
|
6
5
|
import '@alfalab/core-components-pagination/esm';
|
|
6
|
+
import '@alfalab/core-components-select/esm';
|
|
7
7
|
import '@alfalab/core-components-button/esm';
|
|
8
8
|
import './select-field/index.js';
|
|
9
9
|
export { Pagination } from './Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17iw2 */
|
|
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_1747u svg {
|
|
14
14
|
width: 18px;
|
|
15
15
|
height: 18px;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
.table__open_1747u,
|
|
18
|
+
.table__open_1747u:hover {
|
|
19
19
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
20
20
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../../tslib.es6-0b627ed6.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Button } from '@alfalab/core-components-button/esm';
|
|
5
5
|
|
|
6
|
-
var styles = {"field":"
|
|
6
|
+
var styles = {"field":"table__field_1747u","open":"table__open_1747u"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var CustomSelectField = function (_a) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactNode, TableHTMLAttributes } from "react";
|
|
4
4
|
type TableProps = TableHTMLAttributes<HTMLTableElement> & {
|
|
5
5
|
/**
|
|
6
6
|
* Компактный вид
|
|
@@ -47,7 +47,7 @@ declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<H
|
|
|
47
47
|
/**
|
|
48
48
|
* Дочерние компоненты
|
|
49
49
|
*/
|
|
50
|
-
children: React.ReactElement
|
|
50
|
+
children: React.ReactElement[];
|
|
51
51
|
/**
|
|
52
52
|
* Оборачивает таблицу в стилизованный контейнер
|
|
53
53
|
*/
|
|
@@ -55,7 +55,7 @@ declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<H
|
|
|
55
55
|
/**
|
|
56
56
|
* Слот для пагинации
|
|
57
57
|
*/
|
|
58
|
-
pagination?:
|
|
58
|
+
pagination?: ReactNode;
|
|
59
59
|
/**
|
|
60
60
|
* Идентификатор для систем автоматизированного тестирования
|
|
61
61
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-0b627ed6.js';
|
|
2
2
|
import React, { forwardRef, useRef, useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import '../
|
|
4
|
+
import { TableContext } from '../table-context/index.js';
|
|
5
5
|
import '../../utils.js';
|
|
6
|
+
import '../thead/Component.js';
|
|
6
7
|
import { findAllHeadCellsProps } from './utils.js';
|
|
7
|
-
import { TableContext } from '../table-context/index.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"table__component_ek6bj","wrapper":"table__wrapper_ek6bj","hasPagination":"table__hasPagination_ek6bj","table":"table__table_ek6bj"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var Table = forwardRef(function (_a, ref) {
|
|
@@ -21,6 +21,7 @@ var Table = forwardRef(function (_a, ref) {
|
|
|
21
21
|
index: index,
|
|
22
22
|
}); });
|
|
23
23
|
}, [children]);
|
|
24
|
+
/* eslint-disable react/jsx-no-constructed-context-values */
|
|
24
25
|
return (React.createElement(TableContext.Provider, { value: {
|
|
25
26
|
columnsConfiguration: columnsConfiguration,
|
|
26
27
|
compactView: compactView,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1anmq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_ek6bj {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__wrapper_ek6bj {
|
|
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__hasPagination_ek6bj {
|
|
32
32
|
padding-bottom: 0;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.table__table_ek6bj {
|
|
35
35
|
width: 100%;
|
|
36
36
|
border-collapse: collapse;
|
|
37
37
|
box-sizing: border-box
|
|
38
38
|
|
|
39
39
|
/* TODO: Хак для выравнивания чекбокса */
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__table_ek6bj td:first-child label > *[class^='box'], .table__table_ek6bj th:first-child label > *[class^='box'] {
|
|
42
42
|
margin-top: 0;
|
|
43
43
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-0b627ed6.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../
|
|
4
|
+
import '../table-context/index.js';
|
|
5
5
|
import '../../utils.js';
|
|
6
|
+
import '../thead/Component.js';
|
|
6
7
|
import './utils.js';
|
|
7
|
-
import '../table-context/index.js';
|
|
8
8
|
export { Table } from './Component.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-0b627ed6.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import { THead } from '../thead/Component.js';
|
|
5
4
|
import { isChildInstanceOf } from '../../utils.js';
|
|
5
|
+
import { THead } from '../thead/Component.js';
|
|
6
6
|
|
|
7
7
|
function findAllHeadCellsProps(children) {
|
|
8
8
|
var result = [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-0b627ed6.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_15gn4"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TBody = function (_a) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-0b627ed6.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_rcnyn","compactHorizontal":"table__compactHorizontal_rcnyn","compact":"table__compact_rcnyn"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15hdv */
|
|
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_rcnyn {
|
|
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_rcnyn:first-child {
|
|
33
33
|
padding-left: var(--gap-m);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.table__component_rcnyn:last-child {
|
|
36
36
|
padding-right: var(--gap-m);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__compactHorizontal_rcnyn {
|
|
39
39
|
padding-left: 6px;
|
|
40
40
|
padding-right: 6px;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.table__compact_rcnyn {
|
|
43
43
|
padding-top: var(--gap-xs);
|
|
44
44
|
padding-bottom: var(--gap-xs);
|
|
45
45
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-0b627ed6.js';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TRow } from '../trow/Component.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"row":"
|
|
6
|
+
var styles = {"row":"table__row_1tgns","selected":"table__selected_1tgns","expanded":"table__expanded_1tgns","expandable":"table__expandable_1tgns"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TExpandableRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r85s7 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.table__row_1tgns {
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__selected_1tgns.table__expanded_1tgns {
|
|
14
14
|
background-color: inherit;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.table__expanded_1tgns:hover {
|
|
17
17
|
background-color: inherit;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.table__expandable_1tgns td {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding-top: 0;
|
|
22
22
|
padding-bottom: 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-0b627ed6.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_1dv6z","row":"table__row_1dv6z"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var THead = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: px89i */
|
|
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_1dv6z {
|
|
17
17
|
position: relative;
|
|
18
18
|
width: 100%;
|
|
19
19
|
box-sizing: border-box
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_1dv6z 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_1dv6z th:after {
|
|
34
34
|
opacity: 0;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__component_1dv6z:hover th:after {
|
|
37
37
|
opacity: 1;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.table__row_1dv6z {
|
|
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-0b627ed6.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_r104n","sortable":"table__sortable_r104n","sorted":"table__sorted_r104n","compactHorizontal":"table__compactHorizontal_r104n"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var THeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ce19 */
|
|
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_r104n {
|
|
22
22
|
font-size: 12px;
|
|
23
23
|
line-height: 16px;
|
|
24
24
|
font-weight: 500;
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
vertical-align: top;
|
|
36
36
|
box-sizing: border-box
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__component_r104n:first-child {
|
|
39
39
|
padding-left: var(--gap-m);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__component_r104n:last-child {
|
|
42
42
|
padding-right: var(--gap-m);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__sortable_r104n {
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__sorted_r104n {
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.table__compactHorizontal_r104n {
|
|
51
51
|
padding-left: 6px;
|
|
52
52
|
padding-right: 6px;
|
|
53
53
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-0b627ed6.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_1cywl","withoutBorder":"table__withoutBorder_1cywl","clickable":"table__clickable_1cywl","selected":"table__selected_1cywl"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1icu0 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-static-graphic-solitude: #e8f2fe;
|
|
4
4
|
}
|
|
@@ -14,30 +14,28 @@
|
|
|
14
14
|
|
|
15
15
|
/* Hard up */
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.table__component_1cywl {
|
|
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_1cywl:first-child td {
|
|
25
25
|
border-top: 0;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
28
|
-
td {
|
|
27
|
+
.table__withoutBorder_1cywl td {
|
|
29
28
|
border: none;
|
|
30
29
|
}
|
|
31
|
-
|
|
32
|
-
.table__clickable_17i4p {
|
|
30
|
+
.table__clickable_1cywl {
|
|
33
31
|
cursor: pointer
|
|
34
32
|
}
|
|
35
|
-
.
|
|
33
|
+
.table__clickable_1cywl:hover {
|
|
36
34
|
background-color: var(--color-light-bg-secondary);
|
|
37
35
|
}
|
|
38
|
-
.
|
|
36
|
+
.table__selected_1cywl {
|
|
39
37
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
40
38
|
}
|
|
41
|
-
.
|
|
39
|
+
.table__selected_1cywl:hover {
|
|
42
40
|
background-color: var(--color-static-graphic-solitude);
|
|
43
41
|
}
|