@alfalab/core-components-table 2.2.6 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component.js +12 -14
- package/components/index.js +13 -15
- package/components/pagination/Component.js +11 -13
- package/components/pagination/index.css +8 -8
- package/components/pagination/index.js +4 -6
- package/components/pagination/select-field/index.css +4 -4
- package/components/pagination/select-field/index.js +7 -9
- package/components/table/Component.js +9 -11
- package/components/table/index.css +7 -7
- package/components/table/index.js +3 -5
- package/components/table/utils.js +6 -8
- package/components/table-context/index.js +3 -5
- package/components/tbody/Component.js +6 -8
- package/components/tbody/index.css +2 -2
- package/components/tbody/index.js +2 -4
- package/components/tcell/Component.js +6 -8
- package/components/tcell/index.css +6 -6
- package/components/tcell/index.js +2 -4
- package/components/texpandable-row/Component.js +8 -10
- package/components/texpandable-row/index.css +5 -5
- package/components/texpandable-row/index.js +2 -4
- package/components/thead/Component.js +7 -9
- package/components/thead/index.css +6 -6
- package/components/thead/index.js +2 -4
- package/components/thead-cell/Component.js +6 -8
- package/components/thead-cell/index.css +8 -8
- package/components/thead-cell/index.js +2 -4
- package/components/trow/Component.js +7 -9
- package/components/trow/index.css +8 -8
- package/components/trow/index.js +2 -4
- package/components/tsortable-head-cell/Component.js +9 -11
- package/components/tsortable-head-cell/index.css +9 -9
- package/components/tsortable-head-cell/index.js +3 -5
- package/components/tsortable-head-cell/sort-icon-asc.js +5 -7
- package/components/tsortable-head-cell/sort-icon-desc.js +5 -7
- package/components/tsortable-head-cell/sort-icon-unset.js +5 -7
- package/cssm/component.js +13 -15
- package/cssm/components/index.js +13 -15
- package/cssm/components/pagination/Component.js +12 -14
- package/cssm/components/pagination/index.js +4 -6
- package/cssm/components/pagination/select-field/index.js +7 -9
- package/cssm/components/table/Component.js +14 -16
- package/cssm/components/table/index.js +4 -6
- package/cssm/components/table/utils.js +7 -9
- package/cssm/components/table-context/index.js +3 -5
- package/cssm/components/tbody/Component.js +6 -8
- package/cssm/components/tbody/index.js +2 -4
- package/cssm/components/tcell/Component.js +6 -8
- package/cssm/components/tcell/index.js +2 -4
- package/cssm/components/texpandable-row/Component.js +11 -13
- package/cssm/components/texpandable-row/index.js +3 -5
- package/cssm/components/thead/Component.js +7 -9
- package/cssm/components/thead/index.js +2 -4
- package/cssm/components/thead-cell/Component.js +7 -9
- package/cssm/components/thead-cell/index.js +2 -4
- package/cssm/components/trow/Component.js +10 -12
- package/cssm/components/trow/index.js +2 -4
- package/cssm/components/tsortable-head-cell/Component.js +11 -13
- package/cssm/components/tsortable-head-cell/index.js +3 -5
- package/cssm/components/tsortable-head-cell/sort-icon-asc.js +5 -7
- package/cssm/components/tsortable-head-cell/sort-icon-desc.js +5 -7
- package/cssm/components/tsortable-head-cell/sort-icon-unset.js +5 -7
- package/cssm/index.js +13 -15
- package/cssm/{tslib.es6-9682e485.d.ts → tslib.es6-bbd6cd2a.d.ts} +0 -0
- package/cssm/{tslib.es6-9682e485.js → tslib.es6-bbd6cd2a.js} +0 -0
- package/cssm/utils.js +3 -5
- package/esm/component.js +12 -12
- package/esm/components/index.js +12 -12
- package/esm/components/pagination/Component.js +5 -5
- package/esm/components/pagination/index.css +8 -8
- package/esm/components/pagination/index.js +4 -4
- package/esm/components/pagination/select-field/index.css +4 -4
- package/esm/components/pagination/select-field/index.js +2 -2
- package/esm/components/table/Component.js +3 -3
- package/esm/components/table/index.css +7 -7
- package/esm/components/table/index.js +3 -3
- package/esm/components/table/utils.js +2 -2
- package/esm/components/tbody/Component.js +2 -2
- package/esm/components/tbody/index.css +2 -2
- package/esm/components/tbody/index.js +2 -2
- package/esm/components/tcell/Component.js +2 -2
- package/esm/components/tcell/index.css +6 -6
- package/esm/components/tcell/index.js +2 -2
- package/esm/components/texpandable-row/Component.js +2 -2
- package/esm/components/texpandable-row/index.css +5 -5
- package/esm/components/texpandable-row/index.js +2 -2
- package/esm/components/thead/Component.js +2 -2
- package/esm/components/thead/index.css +6 -6
- package/esm/components/thead/index.js +2 -2
- package/esm/components/thead-cell/Component.js +2 -2
- package/esm/components/thead-cell/index.css +8 -8
- package/esm/components/thead-cell/index.js +2 -2
- package/esm/components/trow/Component.js +2 -2
- package/esm/components/trow/index.css +8 -8
- package/esm/components/trow/index.js +2 -2
- package/esm/components/tsortable-head-cell/Component.js +3 -3
- package/esm/components/tsortable-head-cell/index.css +9 -9
- package/esm/components/tsortable-head-cell/index.js +3 -3
- package/esm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/esm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/esm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/esm/index.js +7 -7
- package/esm/{tslib.es6-b31083a0.d.ts → tslib.es6-cb60cfea.d.ts} +0 -0
- package/esm/{tslib.es6-b31083a0.js → tslib.es6-cb60cfea.js} +0 -0
- package/index.js +7 -9
- package/modern/component.js +11 -11
- package/modern/components/index.js +11 -11
- package/modern/components/pagination/Component.js +3 -3
- package/modern/components/pagination/index.css +8 -8
- package/modern/components/pagination/index.js +3 -3
- package/modern/components/pagination/select-field/index.css +4 -4
- package/modern/components/pagination/select-field/index.js +1 -1
- package/modern/components/table/Component.js +2 -2
- package/modern/components/table/index.css +7 -7
- package/modern/components/table/index.js +2 -2
- package/modern/components/table/utils.js +1 -1
- package/modern/components/tbody/Component.js +1 -1
- package/modern/components/tbody/index.css +2 -2
- package/modern/components/tbody/index.js +1 -1
- package/modern/components/tcell/Component.js +1 -1
- package/modern/components/tcell/index.css +6 -6
- package/modern/components/tcell/index.js +1 -1
- package/modern/components/texpandable-row/Component.js +1 -1
- package/modern/components/texpandable-row/index.css +5 -5
- package/modern/components/texpandable-row/index.js +1 -1
- package/modern/components/thead/Component.js +1 -1
- package/modern/components/thead/index.css +6 -6
- package/modern/components/thead/index.js +1 -1
- package/modern/components/thead-cell/Component.js +1 -1
- package/modern/components/thead-cell/index.css +8 -8
- package/modern/components/thead-cell/index.js +1 -1
- package/modern/components/trow/Component.js +1 -1
- package/modern/components/trow/index.css +8 -8
- package/modern/components/trow/index.js +1 -1
- package/modern/components/tsortable-head-cell/Component.js +2 -2
- package/modern/components/tsortable-head-cell/index.css +9 -9
- package/modern/components/tsortable-head-cell/index.js +2 -2
- package/modern/index.js +6 -6
- package/package.json +4 -4
- package/{tslib.es6-b7aac270.d.ts → tslib.es6-318f9fb1.d.ts} +0 -0
- package/{tslib.es6-b7aac270.js → tslib.es6-318f9fb1.js} +0 -0
- package/utils.js +3 -5
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('../../tslib.es6-9682e485.js');
|
|
3
|
+
var components_tsortableHeadCell_Component = require('./Component.js');
|
|
4
|
+
require('../../tslib.es6-bbd6cd2a.js');
|
|
6
5
|
require('react');
|
|
7
6
|
require('classnames');
|
|
7
|
+
require('../thead-cell/Component.js');
|
|
8
8
|
require('../table-context/index.js');
|
|
9
9
|
require('../thead-cell/index.module.css');
|
|
10
|
-
require('../thead-cell/Component.js');
|
|
11
10
|
require('./sort-icon-asc.js');
|
|
12
11
|
require('./sort-icon-desc.js');
|
|
13
12
|
require('./sort-icon-unset.js');
|
|
14
13
|
require('./index.module.css');
|
|
15
|
-
var components_tsortableHeadCell_Component = require('./Component.js');
|
|
16
14
|
|
|
17
15
|
|
|
18
16
|
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-9682e485.js');
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-bbd6cd2a.js');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
|
|
8
|
-
function
|
|
6
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
7
|
|
|
10
|
-
var React__default = /*#__PURE__*/
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
9
|
|
|
12
|
-
var SortIconAsc = function (props) { return (React__default
|
|
13
|
-
React__default
|
|
10
|
+
var SortIconAsc = function (props) { return (React__default.default.createElement("svg", tslib_es6.__assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
|
11
|
+
React__default.default.createElement("path", { d: 'M3.00004 10C3.00004 10 11.4477 10 12 10C12 9.33333 12.0001 8.16667 12.0001 7.5H3.0001C3.00006 8 3.0001 9.5 3.00004 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H9C9 5.33333 9 4.16667 9 3.5C9 3.5 3.55238 3.5 3.0001 3.5ZM3.00009 14C3.21041 14 15 14 15 14C15 13.5 15 12 15 11.5C15 11.5 3.55238 11.5 3.00009 11.5C3 12 3 13.5 3.00009 14Z' }))); };
|
|
14
12
|
|
|
15
13
|
exports.SortIconAsc = SortIconAsc;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-9682e485.js');
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-bbd6cd2a.js');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
|
|
8
|
-
function
|
|
6
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
7
|
|
|
10
|
-
var React__default = /*#__PURE__*/
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
9
|
|
|
12
|
-
var SortIconDesc = function (props) { return (React__default
|
|
13
|
-
React__default
|
|
10
|
+
var SortIconDesc = function (props) { return (React__default.default.createElement("svg", tslib_es6.__assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
|
11
|
+
React__default.default.createElement("path", { d: 'M3.00004 10C3.00004 10 11.4477 10 12 10C12 9.33333 12.0001 8.16667 12.0001 7.5H3.0001C3.00006 8 3.0001 9.5 3.00004 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H15C15 5.33333 15 4.16667 15 3.5C15 3.5 3.55238 3.5 3.0001 3.5ZM3.00009 14C3.21041 14 9 14 9 14C9 13.5 9 12 9 11.5C9 11.5 3.55238 11.5 3.00009 11.5C3 12 3 13.5 3.00009 14Z' }))); };
|
|
14
12
|
|
|
15
13
|
exports.SortIconDesc = SortIconDesc;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-9682e485.js');
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-bbd6cd2a.js');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
|
|
8
|
-
function
|
|
6
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
7
|
|
|
10
|
-
var React__default = /*#__PURE__*/
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
9
|
|
|
12
|
-
var SortIconUnset = function (props) { return (React__default
|
|
13
|
-
React__default
|
|
10
|
+
var SortIconUnset = function (props) { return (React__default.default.createElement("svg", tslib_es6.__assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
|
11
|
+
React__default.default.createElement("path", { d: 'M3 10C3 10 10.4477 10 11 10C11 9.33333 11.0001 8.16667 11.0001 7.5H3.00006C3.00002 8 3.00006 9.5 3 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H15C15 5.33333 15 4.16667 15 3.5C15 3.5 3.55238 3.5 3.0001 3.5ZM3 14C3.21032 14 14 14 14 14C14 13.5 14 12 14 11.5C14 11.5 3.55228 11.5 3 11.5C2.99991 12 2.99991 13.5 3 14Z' }))); };
|
|
14
12
|
|
|
15
13
|
exports.SortIconUnset = SortIconUnset;
|
package/cssm/index.js
CHANGED
|
@@ -1,40 +1,38 @@
|
|
|
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-bbd6cd2a.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
|
-
require('./components/thead/index.module.css');
|
|
11
11
|
require('./components/thead/Component.js');
|
|
12
|
-
require('./components/
|
|
12
|
+
require('./components/thead/index.module.css');
|
|
13
13
|
require('./components/table/index.module.css');
|
|
14
|
-
require('./components/
|
|
14
|
+
require('./components/pagination/Component.js');
|
|
15
15
|
require('@alfalab/core-components-pagination/cssm');
|
|
16
16
|
require('@alfalab/core-components-select/cssm');
|
|
17
|
+
require('./components/pagination/select-field/index.js');
|
|
17
18
|
require('@alfalab/core-components-button/cssm');
|
|
18
19
|
require('./components/pagination/select-field/index.module.css');
|
|
19
|
-
require('./components/pagination/select-field/index.js');
|
|
20
20
|
require('./components/pagination/index.module.css');
|
|
21
|
-
require('./components/pagination/Component.js');
|
|
22
|
-
require('./components/thead-cell/index.module.css');
|
|
23
21
|
require('./components/thead-cell/Component.js');
|
|
22
|
+
require('./components/thead-cell/index.module.css');
|
|
23
|
+
require('./components/tsortable-head-cell/Component.js');
|
|
24
24
|
require('./components/tsortable-head-cell/sort-icon-asc.js');
|
|
25
25
|
require('./components/tsortable-head-cell/sort-icon-desc.js');
|
|
26
26
|
require('./components/tsortable-head-cell/sort-icon-unset.js');
|
|
27
27
|
require('./components/tsortable-head-cell/index.module.css');
|
|
28
|
-
require('./components/tsortable-head-cell/Component.js');
|
|
29
|
-
require('./components/tbody/index.module.css');
|
|
30
28
|
require('./components/tbody/Component.js');
|
|
31
|
-
require('./components/
|
|
29
|
+
require('./components/tbody/index.module.css');
|
|
32
30
|
require('./components/tcell/Component.js');
|
|
33
|
-
require('./components/
|
|
31
|
+
require('./components/tcell/index.module.css');
|
|
34
32
|
require('./components/trow/Component.js');
|
|
35
|
-
require('./components/
|
|
33
|
+
require('./components/trow/index.module.css');
|
|
36
34
|
require('./components/texpandable-row/Component.js');
|
|
37
|
-
|
|
35
|
+
require('./components/texpandable-row/index.module.css');
|
|
38
36
|
|
|
39
37
|
|
|
40
38
|
|
|
File without changes
|
|
File without changes
|
package/cssm/utils.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
|
|
7
|
-
function
|
|
5
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
6
|
|
|
9
|
-
var React__default = /*#__PURE__*/
|
|
7
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
8
|
|
|
11
9
|
function isChildInstanceOf(child, Component) {
|
|
12
10
|
// мы не можем полагаться на child.type === Component, см. https://github.com/gaearon/react-hot-loader/issues/304
|
|
13
|
-
return child.type === React__default
|
|
11
|
+
return child.type === React__default.default.createElement(Component).type;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
exports.isChildInstanceOf = isChildInstanceOf;
|
package/esm/component.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import './
|
|
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';
|
|
10
|
+
import './tslib.es6-cb60cfea.js';
|
|
2
11
|
import 'react';
|
|
3
12
|
import 'classnames';
|
|
4
13
|
import './components/table-context/index.js';
|
|
5
|
-
import './utils.js';
|
|
6
|
-
import { THead } from './components/thead/Component.js';
|
|
7
14
|
import './components/table/utils.js';
|
|
8
|
-
import
|
|
15
|
+
import './utils.js';
|
|
9
16
|
import '@alfalab/core-components-pagination/esm';
|
|
10
17
|
import '@alfalab/core-components-select/esm';
|
|
11
|
-
import '@alfalab/core-components-button/esm';
|
|
12
18
|
import './components/pagination/select-field/index.js';
|
|
13
|
-
import
|
|
14
|
-
import { THeadCell } from './components/thead-cell/Component.js';
|
|
19
|
+
import '@alfalab/core-components-button/esm';
|
|
15
20
|
import './components/tsortable-head-cell/sort-icon-asc.js';
|
|
16
21
|
import './components/tsortable-head-cell/sort-icon-desc.js';
|
|
17
22
|
import './components/tsortable-head-cell/sort-icon-unset.js';
|
|
18
|
-
import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
|
|
19
|
-
import { TBody } from './components/tbody/Component.js';
|
|
20
|
-
import { TCell } from './components/tcell/Component.js';
|
|
21
|
-
import { TRow } from './components/trow/Component.js';
|
|
22
|
-
import { TExpandableRow } from './components/texpandable-row/Component.js';
|
|
23
23
|
|
|
24
24
|
var Table = Object.assign(Table$1, {
|
|
25
25
|
TBody: TBody,
|
package/esm/components/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
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';
|
|
10
|
+
import '../tslib.es6-cb60cfea.js';
|
|
2
11
|
import 'react';
|
|
3
12
|
import 'classnames';
|
|
4
13
|
import './table-context/index.js';
|
|
5
|
-
import '../utils.js';
|
|
6
|
-
export { THead } from './thead/Component.js';
|
|
7
14
|
import './table/utils.js';
|
|
8
|
-
|
|
15
|
+
import '../utils.js';
|
|
9
16
|
import '@alfalab/core-components-pagination/esm';
|
|
10
17
|
import '@alfalab/core-components-select/esm';
|
|
11
|
-
import '@alfalab/core-components-button/esm';
|
|
12
18
|
import './pagination/select-field/index.js';
|
|
13
|
-
|
|
14
|
-
export { THeadCell } from './thead-cell/Component.js';
|
|
19
|
+
import '@alfalab/core-components-button/esm';
|
|
15
20
|
import './tsortable-head-cell/sort-icon-asc.js';
|
|
16
21
|
import './tsortable-head-cell/sort-icon-desc.js';
|
|
17
22
|
import './tsortable-head-cell/sort-icon-unset.js';
|
|
18
|
-
export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
|
|
19
|
-
export { TBody } from './tbody/Component.js';
|
|
20
|
-
export { TCell } from './tcell/Component.js';
|
|
21
|
-
export { TRow } from './trow/Component.js';
|
|
22
|
-
export { TExpandableRow } from './texpandable-row/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-cb60cfea.js';
|
|
2
2
|
import React, { useContext, useMemo, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import { TableContext } from '../table-context/index.js';
|
|
5
4
|
import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/esm';
|
|
6
5
|
import { Select } from '@alfalab/core-components-select/esm';
|
|
7
|
-
import '
|
|
6
|
+
import { TableContext } from '../table-context/index.js';
|
|
8
7
|
import { CustomSelectField } from './select-field/index.js';
|
|
8
|
+
import '@alfalab/core-components-button/esm';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"table__component_j7gcc","pagesWrapper":"table__pagesWrapper_j7gcc","tag":"table__tag_j7gcc","tagActive":"table__tagActive_j7gcc","menu":"table__menu_j7gcc","option":"table__option_j7gcc"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var Pagination = function (_a) {
|
|
@@ -18,7 +18,7 @@ var Pagination = function (_a) {
|
|
|
18
18
|
.sort(function (a, b) { return a - b; })
|
|
19
19
|
.map(function (value) { return ({
|
|
20
20
|
key: value.toString(),
|
|
21
|
-
content: "\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u043E "
|
|
21
|
+
content: "\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u043E ".concat(value),
|
|
22
22
|
}); });
|
|
23
23
|
}, [perPage, possiblePerPage]);
|
|
24
24
|
var handlePerPageChange = useCallback(function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1imze */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--gap-xl: 24px;
|
|
18
18
|
--gap-2xl: 32px;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.table__component_j7gcc {
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: space-between;
|
|
23
23
|
align-items: flex-start;
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
border-top: 1px solid var(--color-light-border-primary);
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.table__pagesWrapper_j7gcc {
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__tag_j7gcc.table__tag_j7gcc {
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
margin-right: var(--gap-xs);
|
|
35
35
|
padding: 0 var(--gap-xs);
|
|
36
36
|
min-width: 32px
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__tag_j7gcc.table__tag_j7gcc:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__tag_j7gcc.table__tag_j7gcc.table__tagActive_j7gcc {
|
|
42
42
|
cursor: default;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__menu_j7gcc {
|
|
45
45
|
margin: var(--gap-2xs) 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__option_j7gcc {
|
|
48
48
|
min-width: 208px;
|
|
49
49
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { Pagination } from './Component.js';
|
|
2
|
+
import '../../tslib.es6-cb60cfea.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
|
-
import '../table-context/index.js';
|
|
5
5
|
import '@alfalab/core-components-pagination/esm';
|
|
6
6
|
import '@alfalab/core-components-select/esm';
|
|
7
|
-
import '
|
|
7
|
+
import '../table-context/index.js';
|
|
8
8
|
import './select-field/index.js';
|
|
9
|
-
|
|
9
|
+
import '@alfalab/core-components-button/esm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wvgc */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
4
4
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__field_y6dji svg {
|
|
14
14
|
width: 18px;
|
|
15
15
|
height: 18px;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
.table__open_y6dji,
|
|
18
|
+
.table__open_y6dji:hover {
|
|
19
19
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
20
20
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../../tslib.es6-cb60cfea.js';
|
|
2
2
|
import React 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_y6dji","open":"table__open_y6dji"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var CustomSelectField = function (_a) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-cb60cfea.js';
|
|
2
2
|
import React, { forwardRef, useRef, useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
|
+
import { findAllHeadCellsProps } from './utils.js';
|
|
5
6
|
import '../../utils.js';
|
|
6
7
|
import '../thead/Component.js';
|
|
7
|
-
import { findAllHeadCellsProps } from './utils.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"table__component_tnsjw","wrapper":"table__wrapper_tnsjw","stickyHeader":"table__stickyHeader_tnsjw","hasPagination":"table__hasPagination_tnsjw","table":"table__table_tnsjw"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var Table = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1skjn */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -18,29 +18,29 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_tnsjw {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__wrapper_tnsjw {
|
|
25
25
|
padding: 0 var(--gap-m) var(--gap-m);
|
|
26
26
|
background: var(--color-light-bg-primary);
|
|
27
27
|
box-shadow: var(--shadow-xs-hard);
|
|
28
28
|
border-radius: var(--border-radius-m);
|
|
29
29
|
overflow: auto;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.table__stickyHeader_tnsjw {
|
|
32
32
|
max-height: 100%;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.table__hasPagination_tnsjw {
|
|
35
35
|
padding-bottom: 0;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.table__table_tnsjw {
|
|
38
38
|
width: 100%;
|
|
39
39
|
border-collapse: collapse;
|
|
40
40
|
box-sizing: border-box
|
|
41
41
|
|
|
42
42
|
/* TODO: Хак для выравнивания чекбокса */
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__table_tnsjw td:first-child label > *[class^='box'], .table__table_tnsjw th:first-child label > *[class^='box'] {
|
|
45
45
|
margin-top: 0;
|
|
46
46
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export { Table } from './Component.js';
|
|
2
|
+
import '../../tslib.es6-cb60cfea.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '../table-context/index.js';
|
|
6
|
+
import './utils.js';
|
|
5
7
|
import '../../utils.js';
|
|
6
8
|
import '../thead/Component.js';
|
|
7
|
-
import './utils.js';
|
|
8
|
-
export { Table } from './Component.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../../tslib.es6-b31083a0.js';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import 'classnames';
|
|
4
2
|
import { isChildInstanceOf } from '../../utils.js';
|
|
5
3
|
import { THead } from '../thead/Component.js';
|
|
4
|
+
import '../../tslib.es6-cb60cfea.js';
|
|
5
|
+
import 'classnames';
|
|
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-cb60cfea.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_1h3hx"};
|
|
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-cb60cfea.js';
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"component":"
|
|
6
|
+
var styles = {"component":"table__component_1hxmn","compactHorizontal":"table__compactHorizontal_1hxmn","compact":"table__compact_1hxmn"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1x8vd */
|
|
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_1hxmn {
|
|
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_1hxmn:first-child {
|
|
33
33
|
padding-left: var(--gap-m);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.table__component_1hxmn:last-child {
|
|
36
36
|
padding-right: var(--gap-m);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__compactHorizontal_1hxmn {
|
|
39
39
|
padding-left: 6px;
|
|
40
40
|
padding-right: 6px;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.table__compact_1hxmn {
|
|
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-cb60cfea.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_scucq","selected":"table__selected_scucq","expanded":"table__expanded_scucq","expandable":"table__expandable_scucq"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TExpandableRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1if4g */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.table__row_scucq {
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__selected_scucq.table__expanded_scucq {
|
|
14
14
|
background-color: inherit;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.table__expanded_scucq:hover {
|
|
17
17
|
background-color: inherit;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.table__expandable_scucq 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-cb60cfea.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_1xg2u","row":"table__row_1xg2u"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var THead = function (_a) {
|