@geneui/components 2.11.2 → 2.12.2
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/{ActionableList.js → ActionableList/index.js} +83 -152
- package/{AdvancedSearch.js → AdvancedSearch/index.js} +290 -304
- package/Alert/index.js +97 -0
- package/Avatar/index.js +30 -0
- package/Badge/index.js +75 -0
- package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
- package/BusyLoader/index.js +68 -0
- package/Button/index.js +129 -0
- package/CHANGELOG.md +53 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +120 -165
- package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-3741d716.js} +2 -2
- package/{index-9164a86d.js → Charts/index.js} +17103 -30447
- package/{Checkbox.js → Checkbox/index.js} +37 -38
- package/{CheckboxGroup.js → CheckboxGroup/index.js} +41 -42
- package/{CheckboxGroupWithSearch.js → CheckboxGroupWithSearch/index.js} +64 -65
- package/{Collapse.js → Collapse/index.js} +28 -29
- package/{ColorPicker.js → ColorPicker/index.js} +16 -16
- package/ComboBox/index.js +525 -0
- package/Counter/index.js +310 -0
- package/{DateFilter.js → DateFilter/index.js} +45 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-0199942c.js → DatePickerInput/index.js} +114 -100
- package/{Divider.js → Divider/index.js} +9 -10
- package/{Drawer.js → Drawer/index.js} +40 -41
- package/Dropdown/index.js +41 -0
- package/{Editor.js → Editor/index.js} +165 -164
- package/{Empty.js → Empty/index.js} +12 -13
- package/{ExtendedInput.js → ExtendedInput/index.js} +81 -71
- package/Form/index.js +83 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +41 -0
- package/FormableDropdown/index.js +48 -0
- package/FormableEditor/index.js +24 -0
- package/{FormableHOC-21051057.js → FormableHOC-55263162.js} +3 -3
- package/FormableMultiSelectDropdown/index.js +48 -0
- package/FormableNumberInput/index.js +32 -0
- package/FormableRadio/index.js +22 -0
- package/FormableSwitcher/index.js +22 -0
- package/FormableTextInput/index.js +32 -0
- package/FormableUploader/index.js +42 -0
- package/GeneUIProvider/index.js +282 -0
- package/{Grid.js → Grid/index.js} +27 -27
- package/Holder/index.js +261 -0
- package/{Icon.js → Icon/index.js} +9 -10
- package/Image/index.js +129 -0
- package/ImagePreview/index.js +481 -0
- package/{KeyValue.js → KeyValue/index.js} +11 -12
- package/LICENSE +21 -0
- package/Label/index.js +57 -0
- package/LinkButton/index.js +67 -0
- package/{Menu.js → Menu/index.js} +27 -28
- package/MobileNavigation/index.js +94 -0
- package/{MobilePopup.js → MobilePopup/index.js} +42 -41
- package/{Modal.js → Modal/index.js} +39 -40
- package/ModuleTitle/index.js +143 -0
- package/{NavigationMenu.js → NavigationMenu/index.js} +30 -29
- package/Notification/index.js +119 -0
- package/Option/index.js +184 -0
- package/Overlay/index.js +189 -0
- package/Overspread/index.js +289 -0
- package/{Pagination.js → Pagination/index.js} +35 -34
- package/Paper/index.js +96 -0
- package/{index-084588e9.js → Popover/index.js} +48 -58
- package/PopoverV2/index.js +18 -0
- package/{Portal.js → Portal/index.js} +7 -8
- package/{Products.js → Products/index.js} +20 -21
- package/Profile/index.js +585 -0
- package/Progress/index.js +199 -0
- package/{QRCode.js → QRCode/index.js} +4 -6
- package/{Radio.js → Radio/index.js} +25 -26
- package/{RadioGroup.js → RadioGroup/index.js} +17 -18
- package/{index-00fe8887.js → Range/index.js} +29 -32
- package/RichEditor/index.js +13 -0
- package/{RichEditor-98accead.js → RichEditor-8b0f7ccd.js} +18 -18
- package/{Scrollbar.js → Scrollbar/index.js} +15 -17
- package/{Search.js → Search/index.js} +25 -24
- package/SearchWithDropdown/index.js +138 -0
- package/Section/index.js +61 -0
- package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
- package/{Slider.js → Slider/index.js} +46 -43
- package/Status/index.js +103 -0
- package/Steps/index.js +313 -0
- package/{index-897d8240.js → SuggestionList/index.js} +15 -38
- package/{Switcher.js → Switcher/index.js} +30 -31
- package/Table/index.js +53 -0
- package/{TableCompositions.js → TableCompositions/index.js} +131 -168
- package/Tabs/index.js +235 -0
- package/Tag/index.js +102 -0
- package/{TextLink.js → TextLink/index.js} +3 -3
- package/{Textarea.js → Textarea/index.js} +66 -65
- package/{Time.js → Time/index.js} +13 -14
- package/TimePicker/index.js +555 -0
- package/Timeline/index.js +113 -0
- package/Title/index.js +65 -0
- package/{Toaster.js → Toaster/index.js} +19 -20
- package/{Tooltip.js → Tooltip/index.js} +27 -28
- package/{TransferList.js → TransferList/index.js} +44 -55
- package/{index-135b9d17.js → Uploader/index.js} +119 -116
- package/{ValidatableCheckbox.js → ValidatableCheckbox/index.js} +23 -24
- package/{ValidatableDatePicker.js → ValidatableDatePicker/index.js} +44 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +65 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +41 -33
- package/{ValidatableRadio.js → ValidatableRadio/index.js} +19 -20
- package/{ValidatableSwitcher.js → ValidatableSwitcher/index.js} +19 -20
- package/{ValidatableTextInput.js → ValidatableTextInput/index.js} +32 -31
- package/{ValidatableTimeInput.js → ValidatableTimeInput/index.js} +31 -30
- package/{ValidatableUploader.js → ValidatableUploader/index.js} +36 -34
- package/Widget/index.js +227 -0
- package/config-0ca92874.js +31 -0
- package/{configs-91c86664.js → configs-fed6ac34.js} +28 -1
- package/hooks/useBodyScroll.js +16 -0
- package/hooks/useClick.js +18 -0
- package/{useClickOutside-5183e396.js → hooks/useClickOutside.js} +1 -1
- package/hooks/useDebounceHook.js +16 -0
- package/{useDeviceType-dd51db38.js → hooks/useDeviceType.js} +4 -3
- package/hooks/useDidMount.js +15 -0
- package/{useEllipsisDetection-ef536015.js → hooks/useEllipsisDetection.js} +1 -1
- package/hooks/useForceUpdate.js +8 -0
- package/hooks/useImgDownload.js +18 -0
- package/{useKeyDown-38102ae7.js → hooks/useKeyDown.js} +1 -1
- package/hooks/useMount.js +13 -0
- package/hooks/useMutationObserver.js +21 -0
- package/hooks/usePrevious.js +10 -0
- package/hooks/useThrottle.js +16 -0
- package/hooks/useToggle.js +11 -0
- package/hooks/useUpdatableRef.js +14 -0
- package/hooks/useUpdate.js +10 -0
- package/{useWidth-9f4647f8.js → hooks/useWidth.js} +2 -2
- package/{useWindowSize-80369d76.js → hooks/useWindowSize.js} +1 -1
- package/{index-8c98317a.js → index-11eea761.js} +678 -752
- package/index-2ad83e03.js +4 -0
- package/index-34e47647.js +10054 -0
- package/index-45eafea6.js +90 -0
- package/{index-5e96cb4d.js → index-462461c0.js} +50 -48
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index.d.ts +115 -0
- package/index.js +137 -113
- package/index.mobile.d.ts +16 -0
- package/lib/atoms/Avatar/Avatar.d.ts +34 -0
- package/lib/atoms/Avatar/index.d.ts +1 -0
- package/lib/atoms/LinkButton/LinkButton.d.ts +46 -0
- package/lib/atoms/LinkButton/index.d.ts +1 -0
- package/{objectWithoutPropertiesLoose-299691d8.js → objectWithoutPropertiesLoose-d8a4a68c.js} +12 -12
- package/package.json +42 -22
- package/{rangeAndSlider-20599da4.js → rangeAndSlider-0301a458.js} +220 -375
- package/{react-beautiful-dnd.esm-38c37304.js → react-beautiful-dnd.esm-04c14563.js} +9 -9
- package/react-lifecycles-compat.es-6e1f3768.js +158 -0
- package/Alert.js +0 -98
- package/Avatar.js +0 -77
- package/Badge.js +0 -76
- package/BusyLoader.js +0 -69
- package/Button.js +0 -130
- package/Charts.js +0 -99
- package/ComboBox.js +0 -99
- package/Counter.js +0 -99
- package/DatePickerInput.js +0 -30
- package/Dropdown.js +0 -99
- package/Form.js +0 -116
- package/FormableCheckbox.js +0 -27
- package/FormableDatePicker.js +0 -39
- package/FormableDropdown.js +0 -105
- package/FormableEditor.js +0 -24
- package/FormableMultiSelectDropdown.js +0 -105
- package/FormableNumberInput.js +0 -31
- package/FormableRadio.js +0 -23
- package/FormableSwitcher.js +0 -23
- package/FormableTextInput.js +0 -31
- package/FormableUploader.js +0 -40
- package/GeneUIProvider.js +0 -256
- package/Holder.js +0 -99
- package/Image.js +0 -130
- package/ImagePreview.js +0 -99
- package/Label.js +0 -58
- package/LinkButton.js +0 -104
- package/MobileNavigation.js +0 -95
- package/ModuleTitle.js +0 -99
- package/Notification.js +0 -120
- package/Option.js +0 -186
- package/Overlay.js +0 -99
- package/Overspread.js +0 -343
- package/Paper.js +0 -97
- package/Popover.js +0 -20
- package/PopoverV2.js +0 -19
- package/Profile.js +0 -99
- package/Progress.js +0 -200
- package/Range.js +0 -14
- package/RichEditor.js +0 -13
- package/SearchWithDropdown.js +0 -195
- package/Section.js +0 -62
- package/Status.js +0 -104
- package/Steps.js +0 -312
- package/SuggestionList.js +0 -15
- package/Table.js +0 -102
- package/Tabs.js +0 -236
- package/Tag.js +0 -103
- package/TimePicker.js +0 -99
- package/Timeline.js +0 -114
- package/Title.js +0 -66
- package/Uploader.js +0 -32
- package/ValidatableDropdown.js +0 -99
- package/ValidatableElements.js +0 -99
- package/ValidatableMultiSelectDropdown.js +0 -99
- package/Widget.js +0 -99
- package/globalStyling-9c60a159.js +0 -4
- package/index-2030e31c.js +0 -4
- package/index-b7a33c58.js +0 -11
- package/index-e0af0caf.js +0 -1182
- package/useMount-6fef51a5.js +0 -9
|
@@ -1,82 +1,32 @@
|
|
|
1
1
|
import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
-
import React__default, {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { C as CellMeasurerCache } from './CellMeasurerCache-
|
|
2
|
+
import React__default, { createContext, memo, useEffect, useLayoutEffect, useState, useCallback, useMemo, isValidElement, cloneElement, useContext, useRef, forwardRef } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { D as Dropdown, I as InfiniteLoader, W as WindowScroller, A as AutoSizer, L as List, C as CellMeasurer } from './index-34e47647.js';
|
|
5
|
+
import { C as CellMeasurerCache } from './CellMeasurerCache-3741d716.js';
|
|
6
6
|
import { c as classnames } from './index-6ff23041.js';
|
|
7
|
-
import { s as stopEvent,
|
|
8
|
-
import
|
|
9
|
-
import './
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
7
|
+
import { s as stopEvent, o as oneIsRequired, n as noop } from './index-a0e4e333.js';
|
|
8
|
+
import useMount from './hooks/useMount.js';
|
|
9
|
+
import useUpdate from './hooks/useUpdate.js';
|
|
10
|
+
import './configs-fed6ac34.js';
|
|
11
|
+
import useThrottle from './hooks/useThrottle.js';
|
|
12
|
+
import Empty from './Empty/index.js';
|
|
13
|
+
import CustomScrollbar from './Scrollbar/index.js';
|
|
14
|
+
import BusyLoader from './BusyLoader/index.js';
|
|
15
|
+
import useMutationObserver from './hooks/useMutationObserver.js';
|
|
16
|
+
import Icon from './Icon/index.js';
|
|
17
|
+
import { a as createStore, r as reactIsExports } from './index-b1e429a7.js';
|
|
18
|
+
import Button from './Button/index.js';
|
|
15
19
|
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import Tooltip from './Tooltip.js';
|
|
20
|
+
import SkeletonLoader from './SkeletonLoader/index.js';
|
|
21
|
+
import Tooltip from './Tooltip/index.js';
|
|
19
22
|
import { g as guid } from './guid-8ddf77b3.js';
|
|
20
|
-
import './
|
|
21
|
-
import './Tabs.js';
|
|
22
|
-
import './Steps.js';
|
|
23
|
-
import './Timeline.js';
|
|
24
|
-
import './RadioGroup.js';
|
|
25
|
-
import './Checkbox.js';
|
|
26
|
-
import './Card.js';
|
|
27
|
-
import './Tag.js';
|
|
28
|
-
import './Alert.js';
|
|
29
|
-
import './index-00fe8887.js';
|
|
30
|
-
import './Slider.js';
|
|
31
|
-
import './Pagination.js';
|
|
32
|
-
import ExtendedInput from './ExtendedInput.js';
|
|
33
|
-
import './Editor.js';
|
|
34
|
-
import './ValidatableUploader.js';
|
|
35
|
-
import './ValidatableRadio.js';
|
|
36
|
-
import './ValidatableCheckbox.js';
|
|
37
|
-
import './ValidatableSwitcher.js';
|
|
38
|
-
import './ValidatableNumberInput.js';
|
|
39
|
-
import './ValidatableTextInput.js';
|
|
40
|
-
import './ValidatableDatePicker.js';
|
|
41
|
-
import './Notification.js';
|
|
42
|
-
import './Modal.js';
|
|
43
|
-
import './globalStyling-9c60a159.js';
|
|
44
|
-
import './Collapse.js';
|
|
45
|
-
import './Status.js';
|
|
46
|
-
import Menu from './Menu.js';
|
|
47
|
-
import './Progress.js';
|
|
48
|
-
import './MobileNavigation.js';
|
|
49
|
-
import './MobilePopup.js';
|
|
50
|
-
import './index-135b9d17.js';
|
|
51
|
-
import './Products.js';
|
|
52
|
-
import './Search.js';
|
|
53
|
-
import './index-0199942c.js';
|
|
54
|
-
import './Breadcrumb.js';
|
|
55
|
-
import './Section.js';
|
|
56
|
-
import './ColorPicker.js';
|
|
57
|
-
import './NavigationMenu.js';
|
|
58
|
-
import './Textarea.js';
|
|
59
|
-
import './AdvancedSearch.js';
|
|
60
|
-
import './TextLink.js';
|
|
61
|
-
import './Label.js';
|
|
62
|
-
import './Switcher.js';
|
|
63
|
-
import './Divider.js';
|
|
64
|
-
import './Radio.js';
|
|
65
|
-
import './Paper.js';
|
|
66
|
-
import './Portal.js';
|
|
67
|
-
import './Avatar.js';
|
|
68
|
-
import './Badge.js';
|
|
69
|
-
import './Time.js';
|
|
70
|
-
import { P as Popover } from './index-084588e9.js';
|
|
71
|
-
import { j as jsxRuntimeExports } from './index-5e96cb4d.js';
|
|
72
|
-
import './Title.js';
|
|
73
|
-
import './Image.js';
|
|
74
|
-
import './KeyValue.js';
|
|
75
|
-
import './Option.js';
|
|
76
|
-
import './QRCode.js';
|
|
23
|
+
import { c as callAfterDelay } from './config-0ca92874.js';
|
|
77
24
|
import ReactDOM__default from 'react-dom';
|
|
78
|
-
import
|
|
25
|
+
import Popover from './Popover/index.js';
|
|
26
|
+
import ExtendedInput from './ExtendedInput/index.js';
|
|
27
|
+
import Menu from './Menu/index.js';
|
|
79
28
|
import { d as debounce } from './debounce-4419bc2f.js';
|
|
29
|
+
import { j as jsxRuntimeExports } from './index-462461c0.js';
|
|
80
30
|
|
|
81
31
|
const copyToClipboard = str => {
|
|
82
32
|
const el = document.createElement('textarea');
|
|
@@ -87,44 +37,6 @@ const copyToClipboard = str => {
|
|
|
87
37
|
document.body.removeChild(el);
|
|
88
38
|
};
|
|
89
39
|
|
|
90
|
-
function useUpdate(callback, dependencies) {
|
|
91
|
-
const initial = useRef(true);
|
|
92
|
-
useEffect(initial.current ? () => {
|
|
93
|
-
initial.current = false;
|
|
94
|
-
} : callback, dependencies);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const useThrottle = (callback, delay) => {
|
|
98
|
-
const ref = useRef(null);
|
|
99
|
-
return useCallback(function () {
|
|
100
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
101
|
-
args[_key] = arguments[_key];
|
|
102
|
-
}
|
|
103
|
-
clearTimeout(ref.current);
|
|
104
|
-
ref.current = setTimeout(() => {
|
|
105
|
-
callback(...args);
|
|
106
|
-
}, delay);
|
|
107
|
-
}, [callback, delay]);
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
const defaultOptions = {
|
|
111
|
-
attributes: true,
|
|
112
|
-
childList: true,
|
|
113
|
-
subtree: true
|
|
114
|
-
};
|
|
115
|
-
const useMutationObserver = function (ref, callback) {
|
|
116
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultOptions;
|
|
117
|
-
useEffect(() => {
|
|
118
|
-
if (ref.current) {
|
|
119
|
-
const observer = new MutationObserver(callback);
|
|
120
|
-
observer.observe(ref.current, options);
|
|
121
|
-
return () => {
|
|
122
|
-
observer.disconnect();
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
}, [callback, options]);
|
|
126
|
-
};
|
|
127
|
-
|
|
128
40
|
/**
|
|
129
41
|
* Create the React Context
|
|
130
42
|
*/ const DndContext = createContext({
|
|
@@ -3497,477 +3409,132 @@ const resizeConfigs = {
|
|
|
3497
3409
|
}
|
|
3498
3410
|
};
|
|
3499
3411
|
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
var length, i, keys;
|
|
3517
|
-
if (Array.isArray(a)) {
|
|
3518
|
-
length = a.length;
|
|
3519
|
-
if (length != b.length) return false;
|
|
3520
|
-
for (i = length; i-- !== 0;)
|
|
3521
|
-
if (!equal(a[i], b[i])) return false;
|
|
3522
|
-
return true;
|
|
3523
|
-
}
|
|
3524
|
-
|
|
3525
|
-
// START: Modifications:
|
|
3526
|
-
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
3527
|
-
// to co-exist with es5.
|
|
3528
|
-
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
3529
|
-
// Basically, take:
|
|
3530
|
-
//
|
|
3531
|
-
// ```js
|
|
3532
|
-
// for (i of a.entries())
|
|
3533
|
-
// if (!b.has(i[0])) return false;
|
|
3534
|
-
// ```
|
|
3535
|
-
//
|
|
3536
|
-
// ... and convert to:
|
|
3537
|
-
//
|
|
3538
|
-
// ```js
|
|
3539
|
-
// it = a.entries();
|
|
3540
|
-
// while (!(i = it.next()).done)
|
|
3541
|
-
// if (!b.has(i.value[0])) return false;
|
|
3542
|
-
// ```
|
|
3543
|
-
//
|
|
3544
|
-
// **Note**: `i` access switches to `i.value`.
|
|
3545
|
-
var it;
|
|
3546
|
-
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
3547
|
-
if (a.size !== b.size) return false;
|
|
3548
|
-
it = a.entries();
|
|
3549
|
-
while (!(i = it.next()).done)
|
|
3550
|
-
if (!b.has(i.value[0])) return false;
|
|
3551
|
-
it = a.entries();
|
|
3552
|
-
while (!(i = it.next()).done)
|
|
3553
|
-
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
3554
|
-
return true;
|
|
3555
|
-
}
|
|
3556
|
-
|
|
3557
|
-
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
3558
|
-
if (a.size !== b.size) return false;
|
|
3559
|
-
it = a.entries();
|
|
3560
|
-
while (!(i = it.next()).done)
|
|
3561
|
-
if (!b.has(i.value[0])) return false;
|
|
3562
|
-
return true;
|
|
3563
|
-
}
|
|
3564
|
-
// END: Modifications
|
|
3565
|
-
|
|
3566
|
-
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
3567
|
-
length = a.length;
|
|
3568
|
-
if (length != b.length) return false;
|
|
3569
|
-
for (i = length; i-- !== 0;)
|
|
3570
|
-
if (a[i] !== b[i]) return false;
|
|
3571
|
-
return true;
|
|
3412
|
+
const isStickyActive = (targetInfo, rootBoundsInfo, position) => position === 'left' ? Math.floor(targetInfo.right) <= rootBoundsInfo.left : position === 'right' ? Math.ceil(targetInfo.left) >= rootBoundsInfo.right : position === 'top' ? targetInfo.bottom >= rootBoundsInfo.top : position === 'bottom' ? targetInfo.bottom <= rootBoundsInfo.bottom : null;
|
|
3413
|
+
const createStickyObserver = (container, stickyTarget, eventName, position, additionalInfo) => {
|
|
3414
|
+
const {
|
|
3415
|
+
offset
|
|
3416
|
+
} = additionalInfo;
|
|
3417
|
+
const observer = new IntersectionObserver(records => {
|
|
3418
|
+
for (const record of records) {
|
|
3419
|
+
const targetInfo = record.boundingClientRect;
|
|
3420
|
+
const rootBoundsInfo = record.rootBounds;
|
|
3421
|
+
const isSticky = isStickyActive(targetInfo, rootBoundsInfo, position);
|
|
3422
|
+
fireEvent(eventName, {
|
|
3423
|
+
isSticky,
|
|
3424
|
+
position,
|
|
3425
|
+
additionalInfo
|
|
3426
|
+
});
|
|
3572
3427
|
}
|
|
3428
|
+
}, {
|
|
3429
|
+
threshold: 1,
|
|
3430
|
+
root: container,
|
|
3431
|
+
rootMargin: "0px -".concat(offset.right, "px 0px -").concat(offset.left, "px")
|
|
3432
|
+
});
|
|
3433
|
+
observer.observe(stickyTarget);
|
|
3434
|
+
return () => observer.unobserve(stickyTarget);
|
|
3435
|
+
};
|
|
3436
|
+
const fireEvent = (eventName, detail) => document.dispatchEvent(new CustomEvent(eventName, {
|
|
3437
|
+
detail
|
|
3438
|
+
}));
|
|
3439
|
+
const observeStickyInfo = (container, targets, eventName, additionalInfo) => Object.keys(targets).map(key => createStickyObserver(container, targets[key], eventName, key, additionalInfo));
|
|
3573
3440
|
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
3600
|
-
// __v = $_original / $_vnode
|
|
3601
|
-
// __o = $_owner
|
|
3602
|
-
// These properties contain circular references and are not needed when
|
|
3603
|
-
// comparing the actual elements (and not their owners)
|
|
3604
|
-
// .$$typeof and ._store on just reasonable markers of elements
|
|
3605
|
-
|
|
3606
|
-
continue;
|
|
3441
|
+
function useGetColsInfo(initialValue, prefix) {
|
|
3442
|
+
const [colsInfo, setColsInfo] = useState(initialValue);
|
|
3443
|
+
const updateColsInfo = async (id, autoSizeOn, customWidth) => {
|
|
3444
|
+
/* TODO:
|
|
3445
|
+
* This is a temporary solution until we come up with something better
|
|
3446
|
+
* here we have a problem with rendering and using useEffect hook when we use
|
|
3447
|
+
* document.querySelectorAll elements are not generated and therefore we cannot
|
|
3448
|
+
* check their width
|
|
3449
|
+
*/
|
|
3450
|
+
const autoSizeWidth = await Promise.resolve().then(() => {
|
|
3451
|
+
let width = 0;
|
|
3452
|
+
if (autoSizeOn) {
|
|
3453
|
+
const prevWidth = colsInfo[id].autoSizeWidth;
|
|
3454
|
+
const ArrayOfEls = Array.from(document.querySelectorAll("div[data-id=\"".concat(prefix, "-").concat(id, "\"]")));
|
|
3455
|
+
if (ArrayOfEls.length > 1) {
|
|
3456
|
+
width = Math.max(...ArrayOfEls.map(element => {
|
|
3457
|
+
element.style.width = 'fit-content';
|
|
3458
|
+
return element.clientWidth + 2;
|
|
3459
|
+
}));
|
|
3460
|
+
ArrayOfEls.forEach(element => {
|
|
3461
|
+
element.style.width = "".concat(width, "px");
|
|
3462
|
+
});
|
|
3463
|
+
} else if (prevWidth) {
|
|
3464
|
+
width = prevWidth;
|
|
3465
|
+
}
|
|
3607
3466
|
}
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3467
|
+
return width;
|
|
3468
|
+
});
|
|
3469
|
+
setColsInfo(prev => ({
|
|
3470
|
+
...prev,
|
|
3471
|
+
[id]: {
|
|
3472
|
+
...colsInfo[id],
|
|
3473
|
+
autoSizeWidth,
|
|
3474
|
+
customWidth,
|
|
3475
|
+
autoSizeOn
|
|
3476
|
+
}
|
|
3477
|
+
}));
|
|
3478
|
+
};
|
|
3479
|
+
const reInit = columns => {
|
|
3480
|
+
const newColumns = columns.reduce((acc, column) => {
|
|
3481
|
+
acc[column.id] = colsInfo[column.id] || {
|
|
3482
|
+
autoSizeOn: null,
|
|
3483
|
+
customWidth: null,
|
|
3484
|
+
autoSizeWidth: null,
|
|
3485
|
+
defaultCustomWidth: null
|
|
3486
|
+
};
|
|
3487
|
+
return acc;
|
|
3488
|
+
}, {});
|
|
3489
|
+
setColsInfo(newColumns);
|
|
3490
|
+
};
|
|
3491
|
+
return [colsInfo, updateColsInfo, reInit];
|
|
3619
3492
|
}
|
|
3620
|
-
// end fast-deep-equal
|
|
3621
3493
|
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
// warn on circular references, don't crash
|
|
3628
|
-
// browsers give this different errors name and messages:
|
|
3629
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
3630
|
-
// firefox: "InternalError", too much recursion"
|
|
3631
|
-
// edge: "Error", "Out of stack space"
|
|
3632
|
-
console.warn('react-fast-compare cannot handle circular refs');
|
|
3633
|
-
return false;
|
|
3634
|
-
}
|
|
3635
|
-
// some other error. we should definitely know about these
|
|
3636
|
-
throw error;
|
|
3637
|
-
}
|
|
3494
|
+
const arrayReorder = (array, from, to) => {
|
|
3495
|
+
const arrayCopy = [...array];
|
|
3496
|
+
const [removed] = arrayCopy.splice(from, 1);
|
|
3497
|
+
arrayCopy.splice(to, 0, removed);
|
|
3498
|
+
return arrayCopy;
|
|
3638
3499
|
};
|
|
3639
3500
|
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
return reactIsExports.isFragment(children) || Array.isArray(children) ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
3645
|
-
className: "ta-action ta-a-1"
|
|
3646
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3647
|
-
className: "ta-item"
|
|
3648
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
3649
|
-
icon: "bc-icon-more-horizontal",
|
|
3650
|
-
size: "big",
|
|
3651
|
-
appearance: "minimal"
|
|
3652
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
3653
|
-
className: "ta-action ta-a-2"
|
|
3654
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3655
|
-
className: "ta-item"
|
|
3656
|
-
}, children))) : /*#__PURE__*/React__default.createElement("div", {
|
|
3657
|
-
className: "ta-action ta-a-1"
|
|
3658
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3659
|
-
className: "ta-item"
|
|
3660
|
-
}, children));
|
|
3661
|
-
}
|
|
3501
|
+
const itemTypes = {
|
|
3502
|
+
th: 'TH',
|
|
3503
|
+
tr: 'TR'
|
|
3504
|
+
};
|
|
3662
3505
|
|
|
3663
|
-
function
|
|
3664
|
-
let
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
})
|
|
3673
|
-
|
|
3674
|
-
}, children && /*#__PURE__*/React__default.createElement(ActionsWrapper, null, children));
|
|
3675
|
-
}
|
|
3676
|
-
var ActionBar$1 = /*#__PURE__*/memo(ActionBar, reactFastCompare);
|
|
3677
|
-
|
|
3678
|
-
function Header$2(_ref) {
|
|
3679
|
-
let {
|
|
3680
|
-
columns
|
|
3681
|
-
} = _ref;
|
|
3682
|
-
return /*#__PURE__*/React__default.createElement("ul", {
|
|
3683
|
-
className: "nt-row nt-head"
|
|
3684
|
-
}, columns.map((column, index) => {
|
|
3685
|
-
const {
|
|
3686
|
-
render,
|
|
3687
|
-
text
|
|
3688
|
-
} = column;
|
|
3689
|
-
const children = render ? render(column, index) : text;
|
|
3690
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
3691
|
-
key: index,
|
|
3692
|
-
title: children,
|
|
3693
|
-
className: "nt-cell"
|
|
3694
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3695
|
-
className: "ellipsis-text"
|
|
3696
|
-
}, children));
|
|
3697
|
-
}));
|
|
3698
|
-
}
|
|
3699
|
-
|
|
3700
|
-
const Body = _ref => {
|
|
3701
|
-
let {
|
|
3702
|
-
rows,
|
|
3703
|
-
columns,
|
|
3704
|
-
isEditActive
|
|
3705
|
-
} = _ref;
|
|
3706
|
-
return rows.length && rows.map((row, index) => row.render ? row.render(row, index, columns.dataKey) : /*#__PURE__*/React__default.createElement("div", {
|
|
3707
|
-
className: "nt-row",
|
|
3708
|
-
key: index
|
|
3709
|
-
}, columns.map((column, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
3710
|
-
key: index,
|
|
3711
|
-
className: "nt-cell"
|
|
3712
|
-
}, typeof row.data[column.dataKey] === 'function' ? row.data[column.dataKey](isEditActive, index, column.dataKey) : row.data[column.dataKey]))));
|
|
3713
|
-
};
|
|
3714
|
-
var Body$1 = /*#__PURE__*/memo(Body, reactFastCompare);
|
|
3715
|
-
|
|
3716
|
-
var css_248z$3 = "[data-gene-ui-version=\"1.0.0\"] .nested-table{border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:.4rem;display:flex;flex-direction:column;font:600 1.4rem/2rem var(--font-family);overflow:hidden;width:100%}[data-gene-ui-version=\"1.0.0\"] .nt-row{display:flex;width:100%}[data-gene-ui-version=\"1.0.0\"] .nt-row~.nt-row{border-top:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"1.0.0\"] .nt-head{background:rgba(var(--background-sc-rgb),.04);font-weight:700}[data-gene-ui-version=\"1.0.0\"] .nt-cell{display:flex;overflow:hidden;padding:1.1rem 2rem;position:relative;width:100%;word-break:break-word}[data-gene-ui-version=\"1.0.0\"] .nt-cell~.nt-cell:before{background:var(--background);border-right:1px solid rgba(var(--background-sc-rgb),.15);bottom:1rem;content:\"\";display:block;position:absolute;top:1rem}html:not([dir=rtl]) .nt-cell~.nt-cell:before{left:0}html[dir=rtl] .nt-cell~.nt-cell:before{right:0}";
|
|
3717
|
-
styleInject(css_248z$3);
|
|
3718
|
-
|
|
3719
|
-
function Nested(_ref) {
|
|
3720
|
-
let {
|
|
3721
|
-
rows,
|
|
3722
|
-
columns,
|
|
3723
|
-
isEditActive,
|
|
3724
|
-
...restProps
|
|
3725
|
-
} = _ref;
|
|
3726
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
3727
|
-
className: "nested-table"
|
|
3728
|
-
}, restProps), /*#__PURE__*/React__default.createElement(Header$2, {
|
|
3729
|
-
columns: columns
|
|
3730
|
-
}), /*#__PURE__*/React__default.createElement(Body$1, {
|
|
3731
|
-
rows: rows,
|
|
3732
|
-
columns: columns,
|
|
3733
|
-
isEditActive: isEditActive
|
|
3734
|
-
}));
|
|
3735
|
-
}
|
|
3736
|
-
Nested.defaultProps = {
|
|
3737
|
-
columns: [],
|
|
3738
|
-
rows: []
|
|
3739
|
-
};
|
|
3740
|
-
|
|
3741
|
-
function Col(_ref) {
|
|
3742
|
-
let {
|
|
3743
|
-
id,
|
|
3744
|
-
row,
|
|
3745
|
-
text,
|
|
3746
|
-
index,
|
|
3747
|
-
getter,
|
|
3748
|
-
prefix,
|
|
3749
|
-
colIndex,
|
|
3750
|
-
copyable,
|
|
3751
|
-
formatter,
|
|
3752
|
-
autoSizeOn,
|
|
3753
|
-
colRenderer,
|
|
3754
|
-
isEditActive,
|
|
3755
|
-
customWidth,
|
|
3756
|
-
autoSizeWidth,
|
|
3757
|
-
copyableValue,
|
|
3758
|
-
stickyColumns,
|
|
3759
|
-
copyTooltipText,
|
|
3760
|
-
initialColWidth,
|
|
3761
|
-
disabledColumnPin,
|
|
3762
|
-
defaultCustomWidth,
|
|
3763
|
-
...restProps
|
|
3764
|
-
} = _ref;
|
|
3765
|
-
const mainRef = useRef(null);
|
|
3766
|
-
const guidRef = useRef(null);
|
|
3767
|
-
const mounted = useRef(null);
|
|
3768
|
-
const {
|
|
3769
|
-
[colIndex]: colStickyInfo = {}
|
|
3770
|
-
} = stickyColumns;
|
|
3771
|
-
const {
|
|
3772
|
-
offset = {},
|
|
3773
|
-
isStickyLeft,
|
|
3774
|
-
isStickyRight
|
|
3775
|
-
} = colStickyInfo;
|
|
3776
|
-
const stickyStatus = (String(colIndex) in stickyColumns);
|
|
3777
|
-
const {
|
|
3778
|
-
left = 0,
|
|
3779
|
-
right = 0
|
|
3780
|
-
} = offset;
|
|
3781
|
-
const style = {
|
|
3782
|
-
left,
|
|
3783
|
-
right
|
|
3784
|
-
};
|
|
3785
|
-
const getterValue = getter ? getter(row, index, isEditActive) : text;
|
|
3786
|
-
const formattedValue = formatter ? formatter(getterValue, row, index, isEditActive) : getterValue;
|
|
3787
|
-
const inlineStyle = {
|
|
3788
|
-
width: autoSizeOn ? autoSizeWidth : customWidth || defaultCustomWidth || initialColWidth
|
|
3789
|
-
};
|
|
3790
|
-
const isValuePromise = formattedValue instanceof Promise;
|
|
3791
|
-
const [promiseValue, setPromiseValue] = useState(() => {
|
|
3792
|
-
if (isValuePromise) {
|
|
3793
|
-
guidRef.current = guid();
|
|
3794
|
-
return guidRef.current;
|
|
3506
|
+
const getOffsetValuesAndSubscriptions = function (state, index, updatedState) {
|
|
3507
|
+
let offsetLeft = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
3508
|
+
let offSetRight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
3509
|
+
let subscribe = arguments.length > 5 ? arguments[5] : undefined;
|
|
3510
|
+
let container = arguments.length > 6 ? arguments[6] : undefined;
|
|
3511
|
+
let eventName = arguments.length > 7 ? arguments[7] : undefined;
|
|
3512
|
+
const offset = Object.keys(updatedState).map(Number).reduce((offsetCalc, item) => {
|
|
3513
|
+
if (index > item) {
|
|
3514
|
+
offsetCalc.left += updatedState[item].target.clientWidth;
|
|
3515
|
+
} else if (index < item) {
|
|
3516
|
+
offsetCalc.right += updatedState[item].target.clientWidth;
|
|
3795
3517
|
}
|
|
3518
|
+
return offsetCalc;
|
|
3519
|
+
}, {
|
|
3520
|
+
left: offsetLeft,
|
|
3521
|
+
right: offSetRight
|
|
3796
3522
|
});
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
};
|
|
3803
|
-
}, [formattedValue, isValuePromise, mounted.current]);
|
|
3804
|
-
const value = isValuePromise ? promiseValue : formattedValue;
|
|
3805
|
-
const handleCopy = useCallback(event => {
|
|
3806
|
-
stopEvent(event);
|
|
3807
|
-
copyToClipboard(copyableValue || value);
|
|
3808
|
-
}, [copyableValue, value]);
|
|
3809
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, stickyStatus && isStickyLeft && /*#__PURE__*/React__default.createElement("sub", null), stickyStatus && isStickyRight && /*#__PURE__*/React__default.createElement("sup", null), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
3810
|
-
className: classnames('ta-cell', {
|
|
3811
|
-
...(!disabledColumnPin ? {
|
|
3812
|
-
sticky: stickyStatus,
|
|
3813
|
-
'sticky-left': isStickyLeft,
|
|
3814
|
-
'sticky-right': isStickyRight
|
|
3815
|
-
} : {}),
|
|
3816
|
-
'now-sticky': isStickyRight || isStickyLeft
|
|
3817
|
-
}),
|
|
3818
|
-
"data-id": "".concat(prefix, "-").concat(id)
|
|
3819
|
-
}, restProps, {
|
|
3820
|
-
style: {
|
|
3821
|
-
...style,
|
|
3822
|
-
...inlineStyle
|
|
3823
|
-
},
|
|
3824
|
-
title: colRenderer ? '' : value,
|
|
3825
|
-
ref: mainRef
|
|
3826
|
-
}), /*#__PURE__*/React__default.createElement(SkeletonLoader, {
|
|
3827
|
-
height: 20,
|
|
3828
|
-
isBusy: guidRef.current && promiseValue === guidRef.current
|
|
3829
|
-
}, copyable && value && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
3830
|
-
title: copyTooltipText
|
|
3831
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
3832
|
-
tabIndex: "1",
|
|
3833
|
-
className: "cursor-pointer copy-icon",
|
|
3834
|
-
type: "bc-icon-copy-mirror",
|
|
3835
|
-
onClick: handleCopy
|
|
3836
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
3837
|
-
className: "ellipsis-text"
|
|
3838
|
-
}, colRenderer ? colRenderer(value, index, row, isEditActive, formatter) : value))));
|
|
3839
|
-
}
|
|
3840
|
-
Col.defaultProps = {
|
|
3841
|
-
copyTooltipText: 'Copy'
|
|
3842
|
-
};
|
|
3843
|
-
var Col$1 = /*#__PURE__*/React__default.memo(Col, reactFastCompare);
|
|
3844
|
-
|
|
3845
|
-
const isStickyActive = (targetInfo, rootBoundsInfo, position) => position === 'left' ? Math.floor(targetInfo.right) <= rootBoundsInfo.left : position === 'right' ? Math.ceil(targetInfo.left) >= rootBoundsInfo.right : position === 'top' ? targetInfo.bottom >= rootBoundsInfo.top : position === 'bottom' ? targetInfo.bottom <= rootBoundsInfo.bottom : null;
|
|
3846
|
-
const createStickyObserver = (container, stickyTarget, eventName, position, additionalInfo) => {
|
|
3847
|
-
const {
|
|
3523
|
+
const subscriptions = subscribe(container, {
|
|
3524
|
+
left: updatedState[index].left,
|
|
3525
|
+
right: updatedState[index].right
|
|
3526
|
+
}, eventName, {
|
|
3527
|
+
index,
|
|
3848
3528
|
offset
|
|
3849
|
-
} = additionalInfo;
|
|
3850
|
-
const observer = new IntersectionObserver(records => {
|
|
3851
|
-
for (const record of records) {
|
|
3852
|
-
const targetInfo = record.boundingClientRect;
|
|
3853
|
-
const rootBoundsInfo = record.rootBounds;
|
|
3854
|
-
const isSticky = isStickyActive(targetInfo, rootBoundsInfo, position);
|
|
3855
|
-
fireEvent(eventName, {
|
|
3856
|
-
isSticky,
|
|
3857
|
-
position,
|
|
3858
|
-
additionalInfo
|
|
3859
|
-
});
|
|
3860
|
-
}
|
|
3861
|
-
}, {
|
|
3862
|
-
threshold: 1,
|
|
3863
|
-
root: container,
|
|
3864
|
-
rootMargin: "0px -".concat(offset.right, "px 0px -").concat(offset.left, "px")
|
|
3865
3529
|
});
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
function useGetColsInfo(initialValue, prefix) {
|
|
3875
|
-
const [colsInfo, setColsInfo] = useState(initialValue);
|
|
3876
|
-
const updateColsInfo = async (id, autoSizeOn, customWidth) => {
|
|
3877
|
-
/* TODO:
|
|
3878
|
-
* This is a temporary solution until we come up with something better
|
|
3879
|
-
* here we have a problem with rendering and using useEffect hook when we use
|
|
3880
|
-
* document.querySelectorAll elements are not generated and therefore we cannot
|
|
3881
|
-
* check their width
|
|
3882
|
-
*/
|
|
3883
|
-
const autoSizeWidth = await Promise.resolve().then(() => {
|
|
3884
|
-
let width = 0;
|
|
3885
|
-
if (autoSizeOn) {
|
|
3886
|
-
const prevWidth = colsInfo[id].autoSizeWidth;
|
|
3887
|
-
const ArrayOfEls = Array.from(document.querySelectorAll("div[data-id=\"".concat(prefix, "-").concat(id, "\"]")));
|
|
3888
|
-
if (ArrayOfEls.length > 1) {
|
|
3889
|
-
width = Math.max(...ArrayOfEls.map(element => {
|
|
3890
|
-
element.style.width = 'fit-content';
|
|
3891
|
-
return element.clientWidth + 2;
|
|
3892
|
-
}));
|
|
3893
|
-
ArrayOfEls.forEach(element => {
|
|
3894
|
-
element.style.width = "".concat(width, "px");
|
|
3895
|
-
});
|
|
3896
|
-
} else if (prevWidth) {
|
|
3897
|
-
width = prevWidth;
|
|
3898
|
-
}
|
|
3899
|
-
}
|
|
3900
|
-
return width;
|
|
3901
|
-
});
|
|
3902
|
-
setColsInfo(prev => ({
|
|
3903
|
-
...prev,
|
|
3904
|
-
[id]: {
|
|
3905
|
-
...colsInfo[id],
|
|
3906
|
-
autoSizeWidth,
|
|
3907
|
-
customWidth,
|
|
3908
|
-
autoSizeOn
|
|
3909
|
-
}
|
|
3910
|
-
}));
|
|
3911
|
-
};
|
|
3912
|
-
const reInit = columns => {
|
|
3913
|
-
const newColumns = columns.reduce((acc, column) => {
|
|
3914
|
-
acc[column.id] = colsInfo[column.id] || {
|
|
3915
|
-
autoSizeOn: null,
|
|
3916
|
-
customWidth: null,
|
|
3917
|
-
autoSizeWidth: null,
|
|
3918
|
-
defaultCustomWidth: null
|
|
3919
|
-
};
|
|
3920
|
-
return acc;
|
|
3921
|
-
}, {});
|
|
3922
|
-
setColsInfo(newColumns);
|
|
3923
|
-
};
|
|
3924
|
-
return [colsInfo, updateColsInfo, reInit];
|
|
3925
|
-
}
|
|
3926
|
-
|
|
3927
|
-
const arrayReorder = (array, from, to) => {
|
|
3928
|
-
const arrayCopy = [...array];
|
|
3929
|
-
const [removed] = arrayCopy.splice(from, 1);
|
|
3930
|
-
arrayCopy.splice(to, 0, removed);
|
|
3931
|
-
return arrayCopy;
|
|
3932
|
-
};
|
|
3933
|
-
|
|
3934
|
-
const itemTypes = {
|
|
3935
|
-
th: 'TH',
|
|
3936
|
-
tr: 'TR'
|
|
3937
|
-
};
|
|
3938
|
-
|
|
3939
|
-
const getOffsetValuesAndSubscriptions = function (state, index, updatedState) {
|
|
3940
|
-
let offsetLeft = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
3941
|
-
let offSetRight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
3942
|
-
let subscribe = arguments.length > 5 ? arguments[5] : undefined;
|
|
3943
|
-
let container = arguments.length > 6 ? arguments[6] : undefined;
|
|
3944
|
-
let eventName = arguments.length > 7 ? arguments[7] : undefined;
|
|
3945
|
-
const offset = Object.keys(updatedState).map(Number).reduce((offsetCalc, item) => {
|
|
3946
|
-
if (index > item) {
|
|
3947
|
-
offsetCalc.left += updatedState[item].target.clientWidth;
|
|
3948
|
-
} else if (index < item) {
|
|
3949
|
-
offsetCalc.right += updatedState[item].target.clientWidth;
|
|
3950
|
-
}
|
|
3951
|
-
return offsetCalc;
|
|
3952
|
-
}, {
|
|
3953
|
-
left: offsetLeft,
|
|
3954
|
-
right: offSetRight
|
|
3955
|
-
});
|
|
3956
|
-
const subscriptions = subscribe(container, {
|
|
3957
|
-
left: updatedState[index].left,
|
|
3958
|
-
right: updatedState[index].right
|
|
3959
|
-
}, eventName, {
|
|
3960
|
-
index,
|
|
3961
|
-
offset
|
|
3962
|
-
});
|
|
3963
|
-
return {
|
|
3964
|
-
...state,
|
|
3965
|
-
[index]: {
|
|
3966
|
-
...updatedState[index],
|
|
3967
|
-
offset,
|
|
3968
|
-
subscriptions
|
|
3969
|
-
}
|
|
3970
|
-
};
|
|
3530
|
+
return {
|
|
3531
|
+
...state,
|
|
3532
|
+
[index]: {
|
|
3533
|
+
...updatedState[index],
|
|
3534
|
+
offset,
|
|
3535
|
+
subscriptions
|
|
3536
|
+
}
|
|
3537
|
+
};
|
|
3971
3538
|
};
|
|
3972
3539
|
|
|
3973
3540
|
const hasStickyElements = columnsObject => {
|
|
@@ -4859,124 +4426,476 @@ var ResizeObserverSPI = /** @class */ (function () {
|
|
|
4859
4426
|
return ResizeObserverSPI;
|
|
4860
4427
|
}());
|
|
4861
4428
|
|
|
4862
|
-
// Registry of internal observers. If WeakMap is not available use current shim
|
|
4863
|
-
// for the Map collection as it has all required methods and because WeakMap
|
|
4864
|
-
// can't be fully polyfilled anyway.
|
|
4865
|
-
var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
|
|
4866
|
-
/**
|
|
4867
|
-
* ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
|
|
4868
|
-
* exposing only those methods and properties that are defined in the spec.
|
|
4869
|
-
*/
|
|
4870
|
-
var ResizeObserver = /** @class */ (function () {
|
|
4871
|
-
/**
|
|
4872
|
-
* Creates a new instance of ResizeObserver.
|
|
4873
|
-
*
|
|
4874
|
-
* @param {ResizeObserverCallback} callback - Callback that is invoked when
|
|
4875
|
-
* dimensions of the observed elements change.
|
|
4876
|
-
*/
|
|
4877
|
-
function ResizeObserver(callback) {
|
|
4878
|
-
if (!(this instanceof ResizeObserver)) {
|
|
4879
|
-
throw new TypeError('Cannot call a class as a function.');
|
|
4880
|
-
}
|
|
4881
|
-
if (!arguments.length) {
|
|
4882
|
-
throw new TypeError('1 argument required, but only 0 present.');
|
|
4883
|
-
}
|
|
4884
|
-
var controller = ResizeObserverController.getInstance();
|
|
4885
|
-
var observer = new ResizeObserverSPI(callback, controller, this);
|
|
4886
|
-
observers.set(this, observer);
|
|
4887
|
-
}
|
|
4888
|
-
return ResizeObserver;
|
|
4889
|
-
}());
|
|
4890
|
-
// Expose public methods of ResizeObserver.
|
|
4891
|
-
[
|
|
4892
|
-
'observe',
|
|
4893
|
-
'unobserve',
|
|
4894
|
-
'disconnect'
|
|
4895
|
-
].forEach(function (method) {
|
|
4896
|
-
ResizeObserver.prototype[method] = function () {
|
|
4897
|
-
var _a;
|
|
4898
|
-
return (_a = observers.get(this))[method].apply(_a, arguments);
|
|
4899
|
-
};
|
|
4900
|
-
});
|
|
4429
|
+
// Registry of internal observers. If WeakMap is not available use current shim
|
|
4430
|
+
// for the Map collection as it has all required methods and because WeakMap
|
|
4431
|
+
// can't be fully polyfilled anyway.
|
|
4432
|
+
var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
|
|
4433
|
+
/**
|
|
4434
|
+
* ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
|
|
4435
|
+
* exposing only those methods and properties that are defined in the spec.
|
|
4436
|
+
*/
|
|
4437
|
+
var ResizeObserver = /** @class */ (function () {
|
|
4438
|
+
/**
|
|
4439
|
+
* Creates a new instance of ResizeObserver.
|
|
4440
|
+
*
|
|
4441
|
+
* @param {ResizeObserverCallback} callback - Callback that is invoked when
|
|
4442
|
+
* dimensions of the observed elements change.
|
|
4443
|
+
*/
|
|
4444
|
+
function ResizeObserver(callback) {
|
|
4445
|
+
if (!(this instanceof ResizeObserver)) {
|
|
4446
|
+
throw new TypeError('Cannot call a class as a function.');
|
|
4447
|
+
}
|
|
4448
|
+
if (!arguments.length) {
|
|
4449
|
+
throw new TypeError('1 argument required, but only 0 present.');
|
|
4450
|
+
}
|
|
4451
|
+
var controller = ResizeObserverController.getInstance();
|
|
4452
|
+
var observer = new ResizeObserverSPI(callback, controller, this);
|
|
4453
|
+
observers.set(this, observer);
|
|
4454
|
+
}
|
|
4455
|
+
return ResizeObserver;
|
|
4456
|
+
}());
|
|
4457
|
+
// Expose public methods of ResizeObserver.
|
|
4458
|
+
[
|
|
4459
|
+
'observe',
|
|
4460
|
+
'unobserve',
|
|
4461
|
+
'disconnect'
|
|
4462
|
+
].forEach(function (method) {
|
|
4463
|
+
ResizeObserver.prototype[method] = function () {
|
|
4464
|
+
var _a;
|
|
4465
|
+
return (_a = observers.get(this))[method].apply(_a, arguments);
|
|
4466
|
+
};
|
|
4467
|
+
});
|
|
4468
|
+
|
|
4469
|
+
var index = (function () {
|
|
4470
|
+
// Export existing implementation if available.
|
|
4471
|
+
if (typeof global$1.ResizeObserver !== 'undefined') {
|
|
4472
|
+
return global$1.ResizeObserver;
|
|
4473
|
+
}
|
|
4474
|
+
return ResizeObserver;
|
|
4475
|
+
})();
|
|
4476
|
+
|
|
4477
|
+
const observeElementResize = (element, callback) => {
|
|
4478
|
+
const resizeObserver = new index(callback);
|
|
4479
|
+
if (element) {
|
|
4480
|
+
resizeObserver.observe(element);
|
|
4481
|
+
return {
|
|
4482
|
+
unobserve: () => resizeObserver.unobserve(element)
|
|
4483
|
+
};
|
|
4484
|
+
}
|
|
4485
|
+
};
|
|
4486
|
+
|
|
4487
|
+
const sortHandler = (nextSortObject, setSortObject, onSortChange, sortableColumns, currentSortState) => {
|
|
4488
|
+
const {
|
|
4489
|
+
id,
|
|
4490
|
+
column,
|
|
4491
|
+
dataKey,
|
|
4492
|
+
index
|
|
4493
|
+
} = nextSortObject;
|
|
4494
|
+
const isSortable = typeof column.sortable === 'boolean' ? column.sortable : sortableColumns;
|
|
4495
|
+
const {
|
|
4496
|
+
id: currId,
|
|
4497
|
+
type: currType
|
|
4498
|
+
} = currentSortState;
|
|
4499
|
+
const type = id !== currId || !currType ? 'asc' : currType === 'asc' ? 'desc' : null;
|
|
4500
|
+
if (isSortable) {
|
|
4501
|
+
setSortObject({
|
|
4502
|
+
id,
|
|
4503
|
+
type,
|
|
4504
|
+
index
|
|
4505
|
+
});
|
|
4506
|
+
onSortChange(isSortable, id, index, dataKey, column, type);
|
|
4507
|
+
}
|
|
4508
|
+
};
|
|
4509
|
+
|
|
4510
|
+
const getValue = (value, formatter) => formatter ? formatter(value) : value;
|
|
4511
|
+
const useSortConfigs = (sortConfigs, columns, rows, columnKey) => {
|
|
4512
|
+
const {
|
|
4513
|
+
type,
|
|
4514
|
+
id
|
|
4515
|
+
} = sortConfigs;
|
|
4516
|
+
const isSortExists = type !== null;
|
|
4517
|
+
const column = columns.find(col => col[columnKey] === id) || {};
|
|
4518
|
+
const dataKey = isSortExists ? column.dataKey : null;
|
|
4519
|
+
const defaultSortFn = useCallback((prev, next, dataKey, type, formatter, removeSymbol) => {
|
|
4520
|
+
const first = getValue(prev.data[dataKey], formatter);
|
|
4521
|
+
const second = getValue(next.data[dataKey], formatter);
|
|
4522
|
+
const firstValue = removeSymbol ? parseFloat(first.replace(/[^\d.-]/g, '')) : first;
|
|
4523
|
+
const secondValue = removeSymbol ? parseFloat(second.replace(/[^\d.-]/g, '')) : second;
|
|
4524
|
+
if (firstValue === null) return 1;
|
|
4525
|
+
if (secondValue === null) return -1;
|
|
4526
|
+
const firstLowerCased = typeof firstValue === 'string' ? firstValue.toLowerCase() : firstValue;
|
|
4527
|
+
const secondLowerCased = typeof secondValue === 'string' ? secondValue.toLowerCase() : secondValue;
|
|
4528
|
+
if (type === 'asc') {
|
|
4529
|
+
return firstLowerCased > secondLowerCased ? 1 : firstLowerCased < secondLowerCased ? -1 : 0;
|
|
4530
|
+
}
|
|
4531
|
+
if (type === 'desc') {
|
|
4532
|
+
return firstLowerCased < secondLowerCased ? 1 : firstLowerCased > secondLowerCased ? -1 : 0;
|
|
4533
|
+
}
|
|
4534
|
+
return 0;
|
|
4535
|
+
}, []);
|
|
4536
|
+
const sortFn = useMemo(() => isSortExists ? (prev, next) => {
|
|
4537
|
+
const {
|
|
4538
|
+
sortFn,
|
|
4539
|
+
formatter,
|
|
4540
|
+
removeSymbol
|
|
4541
|
+
} = column;
|
|
4542
|
+
const fn = sortFn || defaultSortFn;
|
|
4543
|
+
return typeof prev === 'object' ? fn(prev, next, dataKey, type, formatter, removeSymbol) : fn(rows[prev], rows[next], dataKey, type, formatter, removeSymbol);
|
|
4544
|
+
} : undefined, [isSortExists, column, defaultSortFn, dataKey, type, rows]);
|
|
4545
|
+
return [type, column[columnKey], sortFn];
|
|
4546
|
+
};
|
|
4547
|
+
|
|
4548
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
4549
|
+
|
|
4550
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
4551
|
+
var hasMap = typeof Map === 'function';
|
|
4552
|
+
var hasSet = typeof Set === 'function';
|
|
4553
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
4554
|
+
|
|
4555
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
4556
|
+
|
|
4557
|
+
function equal(a, b) {
|
|
4558
|
+
// START: fast-deep-equal es6/index.js 3.1.3
|
|
4559
|
+
if (a === b) return true;
|
|
4560
|
+
|
|
4561
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
4562
|
+
if (a.constructor !== b.constructor) return false;
|
|
4563
|
+
|
|
4564
|
+
var length, i, keys;
|
|
4565
|
+
if (Array.isArray(a)) {
|
|
4566
|
+
length = a.length;
|
|
4567
|
+
if (length != b.length) return false;
|
|
4568
|
+
for (i = length; i-- !== 0;)
|
|
4569
|
+
if (!equal(a[i], b[i])) return false;
|
|
4570
|
+
return true;
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
// START: Modifications:
|
|
4574
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
4575
|
+
// to co-exist with es5.
|
|
4576
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
4577
|
+
// Basically, take:
|
|
4578
|
+
//
|
|
4579
|
+
// ```js
|
|
4580
|
+
// for (i of a.entries())
|
|
4581
|
+
// if (!b.has(i[0])) return false;
|
|
4582
|
+
// ```
|
|
4583
|
+
//
|
|
4584
|
+
// ... and convert to:
|
|
4585
|
+
//
|
|
4586
|
+
// ```js
|
|
4587
|
+
// it = a.entries();
|
|
4588
|
+
// while (!(i = it.next()).done)
|
|
4589
|
+
// if (!b.has(i.value[0])) return false;
|
|
4590
|
+
// ```
|
|
4591
|
+
//
|
|
4592
|
+
// **Note**: `i` access switches to `i.value`.
|
|
4593
|
+
var it;
|
|
4594
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
4595
|
+
if (a.size !== b.size) return false;
|
|
4596
|
+
it = a.entries();
|
|
4597
|
+
while (!(i = it.next()).done)
|
|
4598
|
+
if (!b.has(i.value[0])) return false;
|
|
4599
|
+
it = a.entries();
|
|
4600
|
+
while (!(i = it.next()).done)
|
|
4601
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
4602
|
+
return true;
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4605
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
4606
|
+
if (a.size !== b.size) return false;
|
|
4607
|
+
it = a.entries();
|
|
4608
|
+
while (!(i = it.next()).done)
|
|
4609
|
+
if (!b.has(i.value[0])) return false;
|
|
4610
|
+
return true;
|
|
4611
|
+
}
|
|
4612
|
+
// END: Modifications
|
|
4613
|
+
|
|
4614
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
4615
|
+
length = a.length;
|
|
4616
|
+
if (length != b.length) return false;
|
|
4617
|
+
for (i = length; i-- !== 0;)
|
|
4618
|
+
if (a[i] !== b[i]) return false;
|
|
4619
|
+
return true;
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4622
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
4623
|
+
// START: Modifications:
|
|
4624
|
+
// Apply guards for `Object.create(null)` handling. See:
|
|
4625
|
+
// - https://github.com/FormidableLabs/react-fast-compare/issues/64
|
|
4626
|
+
// - https://github.com/epoberezkin/fast-deep-equal/issues/49
|
|
4627
|
+
if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();
|
|
4628
|
+
if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();
|
|
4629
|
+
// END: Modifications
|
|
4630
|
+
|
|
4631
|
+
keys = Object.keys(a);
|
|
4632
|
+
length = keys.length;
|
|
4633
|
+
if (length !== Object.keys(b).length) return false;
|
|
4634
|
+
|
|
4635
|
+
for (i = length; i-- !== 0;)
|
|
4636
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
4637
|
+
// END: fast-deep-equal
|
|
4638
|
+
|
|
4639
|
+
// START: react-fast-compare
|
|
4640
|
+
// custom handling for DOM elements
|
|
4641
|
+
if (hasElementType && a instanceof Element) return false;
|
|
4642
|
+
|
|
4643
|
+
// custom handling for React/Preact
|
|
4644
|
+
for (i = length; i-- !== 0;) {
|
|
4645
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
4646
|
+
// React-specific: avoid traversing React elements' _owner
|
|
4647
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
4648
|
+
// __v = $_original / $_vnode
|
|
4649
|
+
// __o = $_owner
|
|
4650
|
+
// These properties contain circular references and are not needed when
|
|
4651
|
+
// comparing the actual elements (and not their owners)
|
|
4652
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
4653
|
+
|
|
4654
|
+
continue;
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4657
|
+
// all other properties should be traversed as usual
|
|
4658
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
4659
|
+
}
|
|
4660
|
+
// END: react-fast-compare
|
|
4661
|
+
|
|
4662
|
+
// START: fast-deep-equal
|
|
4663
|
+
return true;
|
|
4664
|
+
}
|
|
4665
|
+
|
|
4666
|
+
return a !== a && b !== b;
|
|
4667
|
+
}
|
|
4668
|
+
// end fast-deep-equal
|
|
4669
|
+
|
|
4670
|
+
var reactFastCompare = function isEqual(a, b) {
|
|
4671
|
+
try {
|
|
4672
|
+
return equal(a, b);
|
|
4673
|
+
} catch (error) {
|
|
4674
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
4675
|
+
// warn on circular references, don't crash
|
|
4676
|
+
// browsers give this different errors name and messages:
|
|
4677
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
4678
|
+
// firefox: "InternalError", too much recursion"
|
|
4679
|
+
// edge: "Error", "Out of stack space"
|
|
4680
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
4681
|
+
return false;
|
|
4682
|
+
}
|
|
4683
|
+
// some other error. we should definitely know about these
|
|
4684
|
+
throw error;
|
|
4685
|
+
}
|
|
4686
|
+
};
|
|
4687
|
+
|
|
4688
|
+
function ActionsWrapper(_ref) {
|
|
4689
|
+
let {
|
|
4690
|
+
children
|
|
4691
|
+
} = _ref;
|
|
4692
|
+
return reactIsExports.isFragment(children) || Array.isArray(children) ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
4693
|
+
className: "ta-action ta-a-1"
|
|
4694
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4695
|
+
className: "ta-item"
|
|
4696
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
4697
|
+
icon: "bc-icon-more-horizontal",
|
|
4698
|
+
size: "big",
|
|
4699
|
+
appearance: "minimal"
|
|
4700
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
4701
|
+
className: "ta-action ta-a-2"
|
|
4702
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4703
|
+
className: "ta-item"
|
|
4704
|
+
}, children))) : /*#__PURE__*/React__default.createElement("div", {
|
|
4705
|
+
className: "ta-action ta-a-1"
|
|
4706
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4707
|
+
className: "ta-item"
|
|
4708
|
+
}, children));
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4711
|
+
function ActionBar(_ref) {
|
|
4712
|
+
let {
|
|
4713
|
+
children,
|
|
4714
|
+
lastColRef,
|
|
4715
|
+
stickyRightExist
|
|
4716
|
+
} = _ref;
|
|
4717
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
4718
|
+
className: classnames('ta-cell', 'right-actions-holder', 'a-square', {
|
|
4719
|
+
'sticky sticky-right now-sticky': stickyRightExist
|
|
4720
|
+
}),
|
|
4721
|
+
ref: lastColRef
|
|
4722
|
+
}, children && /*#__PURE__*/React__default.createElement(ActionsWrapper, null, children));
|
|
4723
|
+
}
|
|
4724
|
+
var ActionBar$1 = /*#__PURE__*/memo(ActionBar, reactFastCompare);
|
|
4725
|
+
|
|
4726
|
+
function Header$2(_ref) {
|
|
4727
|
+
let {
|
|
4728
|
+
columns
|
|
4729
|
+
} = _ref;
|
|
4730
|
+
return /*#__PURE__*/React__default.createElement("ul", {
|
|
4731
|
+
className: "nt-row nt-head"
|
|
4732
|
+
}, columns.map((column, index) => {
|
|
4733
|
+
const {
|
|
4734
|
+
render,
|
|
4735
|
+
text
|
|
4736
|
+
} = column;
|
|
4737
|
+
const children = render ? render(column, index) : text;
|
|
4738
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
4739
|
+
key: index,
|
|
4740
|
+
title: children,
|
|
4741
|
+
className: "nt-cell"
|
|
4742
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4743
|
+
className: "ellipsis-text"
|
|
4744
|
+
}, children));
|
|
4745
|
+
}));
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
const Body = _ref => {
|
|
4749
|
+
let {
|
|
4750
|
+
rows,
|
|
4751
|
+
columns,
|
|
4752
|
+
isEditActive
|
|
4753
|
+
} = _ref;
|
|
4754
|
+
return rows.length && rows.map((row, index) => row.render ? row.render(row, index, columns.dataKey) : /*#__PURE__*/React__default.createElement("div", {
|
|
4755
|
+
className: "nt-row",
|
|
4756
|
+
key: index
|
|
4757
|
+
}, columns.map((column, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
4758
|
+
key: index,
|
|
4759
|
+
className: "nt-cell"
|
|
4760
|
+
}, typeof row.data[column.dataKey] === 'function' ? row.data[column.dataKey](isEditActive, index, column.dataKey) : row.data[column.dataKey]))));
|
|
4761
|
+
};
|
|
4762
|
+
var Body$1 = /*#__PURE__*/memo(Body, reactFastCompare);
|
|
4901
4763
|
|
|
4902
|
-
var
|
|
4903
|
-
|
|
4904
|
-
if (typeof global$1.ResizeObserver !== 'undefined') {
|
|
4905
|
-
return global$1.ResizeObserver;
|
|
4906
|
-
}
|
|
4907
|
-
return ResizeObserver;
|
|
4908
|
-
})();
|
|
4764
|
+
var css_248z$3 = "[data-gene-ui-version=\"2.12.2\"] .nested-table{border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:.4rem;display:flex;flex-direction:column;font:600 1.4rem/2rem var(--font-family);overflow:hidden;width:100%}[data-gene-ui-version=\"2.12.2\"] .nt-row{display:flex;width:100%}[data-gene-ui-version=\"2.12.2\"] .nt-row~.nt-row{border-top:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.2\"] .nt-head{background:rgba(var(--background-sc-rgb),.04);font-weight:700}[data-gene-ui-version=\"2.12.2\"] .nt-cell{display:flex;overflow:hidden;padding:1.1rem 2rem;position:relative;width:100%;word-break:break-word}[data-gene-ui-version=\"2.12.2\"] .nt-cell~.nt-cell:before{background:var(--background);border-right:1px solid rgba(var(--background-sc-rgb),.15);bottom:1rem;content:\"\";display:block;position:absolute;top:1rem}html:not([dir=rtl]) .nt-cell~.nt-cell:before{left:0}html[dir=rtl] .nt-cell~.nt-cell:before{right:0}";
|
|
4765
|
+
styleInject(css_248z$3);
|
|
4909
4766
|
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4767
|
+
function Nested(_ref) {
|
|
4768
|
+
let {
|
|
4769
|
+
rows,
|
|
4770
|
+
columns,
|
|
4771
|
+
isEditActive,
|
|
4772
|
+
...restProps
|
|
4773
|
+
} = _ref;
|
|
4774
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
4775
|
+
className: "nested-table"
|
|
4776
|
+
}, restProps), /*#__PURE__*/React__default.createElement(Header$2, {
|
|
4777
|
+
columns: columns
|
|
4778
|
+
}), /*#__PURE__*/React__default.createElement(Body$1, {
|
|
4779
|
+
rows: rows,
|
|
4780
|
+
columns: columns,
|
|
4781
|
+
isEditActive: isEditActive
|
|
4782
|
+
}));
|
|
4783
|
+
}
|
|
4784
|
+
Nested.defaultProps = {
|
|
4785
|
+
columns: [],
|
|
4786
|
+
rows: []
|
|
4918
4787
|
};
|
|
4919
4788
|
|
|
4920
|
-
|
|
4921
|
-
|
|
4789
|
+
function Col(_ref) {
|
|
4790
|
+
let {
|
|
4922
4791
|
id,
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
index
|
|
4926
|
-
|
|
4927
|
-
|
|
4792
|
+
row,
|
|
4793
|
+
text,
|
|
4794
|
+
index,
|
|
4795
|
+
getter,
|
|
4796
|
+
prefix,
|
|
4797
|
+
colIndex,
|
|
4798
|
+
copyable,
|
|
4799
|
+
formatter,
|
|
4800
|
+
autoSizeOn,
|
|
4801
|
+
colRenderer,
|
|
4802
|
+
isEditActive,
|
|
4803
|
+
customWidth,
|
|
4804
|
+
autoSizeWidth,
|
|
4805
|
+
copyableValue,
|
|
4806
|
+
stickyColumns,
|
|
4807
|
+
copyTooltipText,
|
|
4808
|
+
copiedTooltipText,
|
|
4809
|
+
initialColWidth,
|
|
4810
|
+
disabledColumnPin,
|
|
4811
|
+
defaultCustomWidth,
|
|
4812
|
+
...restProps
|
|
4813
|
+
} = _ref;
|
|
4814
|
+
const mainRef = useRef(null);
|
|
4815
|
+
const guidRef = useRef(null);
|
|
4816
|
+
const mounted = useRef(null);
|
|
4928
4817
|
const {
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
} = currentSortState;
|
|
4932
|
-
const type = id !== currId || !currType ? 'asc' : currType === 'asc' ? 'desc' : null;
|
|
4933
|
-
if (isSortable) {
|
|
4934
|
-
setSortObject({
|
|
4935
|
-
id,
|
|
4936
|
-
type,
|
|
4937
|
-
index
|
|
4938
|
-
});
|
|
4939
|
-
onSortChange(isSortable, id, index, dataKey, column, type);
|
|
4940
|
-
}
|
|
4941
|
-
};
|
|
4942
|
-
|
|
4943
|
-
const getValue = (value, formatter) => formatter ? formatter(value) : value;
|
|
4944
|
-
const useSortConfigs = (sortConfigs, columns, rows, columnKey) => {
|
|
4818
|
+
[colIndex]: colStickyInfo = {}
|
|
4819
|
+
} = stickyColumns;
|
|
4945
4820
|
const {
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
const
|
|
4951
|
-
const
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4821
|
+
offset = {},
|
|
4822
|
+
isStickyLeft,
|
|
4823
|
+
isStickyRight
|
|
4824
|
+
} = colStickyInfo;
|
|
4825
|
+
const stickyStatus = (String(colIndex) in stickyColumns);
|
|
4826
|
+
const {
|
|
4827
|
+
left = 0,
|
|
4828
|
+
right = 0
|
|
4829
|
+
} = offset;
|
|
4830
|
+
const style = {
|
|
4831
|
+
left,
|
|
4832
|
+
right
|
|
4833
|
+
};
|
|
4834
|
+
const getterValue = getter ? getter(row, index, isEditActive) : text;
|
|
4835
|
+
const formattedValue = formatter ? formatter(getterValue, row, index, isEditActive) : getterValue;
|
|
4836
|
+
const inlineStyle = {
|
|
4837
|
+
width: autoSizeOn ? autoSizeWidth : customWidth || defaultCustomWidth || initialColWidth
|
|
4838
|
+
};
|
|
4839
|
+
const isValuePromise = formattedValue instanceof Promise;
|
|
4840
|
+
const [promiseValue, setPromiseValue] = useState(() => {
|
|
4841
|
+
if (isValuePromise) {
|
|
4842
|
+
guidRef.current = guid();
|
|
4843
|
+
return guidRef.current;
|
|
4966
4844
|
}
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
}
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4845
|
+
});
|
|
4846
|
+
const [isCopied, setIsCopied] = useState(false);
|
|
4847
|
+
useEffect(() => {
|
|
4848
|
+
mounted.current = true;
|
|
4849
|
+
isValuePromise && formattedValue.then(result => mounted.current && setPromiseValue(result));
|
|
4850
|
+
return () => {
|
|
4851
|
+
mounted.current = false;
|
|
4852
|
+
};
|
|
4853
|
+
}, [formattedValue, isValuePromise, mounted.current]);
|
|
4854
|
+
const value = isValuePromise ? promiseValue : formattedValue;
|
|
4855
|
+
const handleCopy = useCallback(event => {
|
|
4856
|
+
stopEvent(event);
|
|
4857
|
+
copyToClipboard(copyableValue || value);
|
|
4858
|
+
!isCopied && setIsCopied(true);
|
|
4859
|
+
callAfterDelay(() => {
|
|
4860
|
+
setIsCopied(false);
|
|
4861
|
+
}, 2000);
|
|
4862
|
+
}, [copyableValue, value, isCopied]);
|
|
4863
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, stickyStatus && isStickyLeft && /*#__PURE__*/React__default.createElement("sub", null), stickyStatus && isStickyRight && /*#__PURE__*/React__default.createElement("sup", null), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
4864
|
+
className: classnames('ta-cell', {
|
|
4865
|
+
...(!disabledColumnPin ? {
|
|
4866
|
+
sticky: stickyStatus,
|
|
4867
|
+
'sticky-left': isStickyLeft,
|
|
4868
|
+
'sticky-right': isStickyRight
|
|
4869
|
+
} : {}),
|
|
4870
|
+
'now-sticky': isStickyRight || isStickyLeft
|
|
4871
|
+
}),
|
|
4872
|
+
"data-id": "".concat(prefix, "-").concat(id)
|
|
4873
|
+
}, restProps, {
|
|
4874
|
+
style: {
|
|
4875
|
+
...style,
|
|
4876
|
+
...inlineStyle
|
|
4877
|
+
},
|
|
4878
|
+
title: colRenderer ? '' : value,
|
|
4879
|
+
ref: mainRef
|
|
4880
|
+
}), /*#__PURE__*/React__default.createElement(SkeletonLoader, {
|
|
4881
|
+
height: 20,
|
|
4882
|
+
isBusy: guidRef.current && promiseValue === guidRef.current
|
|
4883
|
+
}, copyable && value && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
4884
|
+
title: isCopied ? copiedTooltipText : copyTooltipText
|
|
4885
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
4886
|
+
tabIndex: "1",
|
|
4887
|
+
className: "cursor-pointer copy-icon",
|
|
4888
|
+
type: isCopied ? 'bc-icon-checkbox-checked' : 'bc-icon-copy-mirror',
|
|
4889
|
+
onClick: !isCopied && handleCopy
|
|
4890
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
4891
|
+
className: "ellipsis-text"
|
|
4892
|
+
}, colRenderer ? colRenderer(value, index, row, isEditActive, formatter) : value))));
|
|
4893
|
+
}
|
|
4894
|
+
Col.defaultProps = {
|
|
4895
|
+
copyTooltipText: 'Copy',
|
|
4896
|
+
copiedTooltipText: 'Copied!'
|
|
4979
4897
|
};
|
|
4898
|
+
var Col$1 = /*#__PURE__*/React__default.memo(Col, reactFastCompare);
|
|
4980
4899
|
|
|
4981
4900
|
function Row(_ref) {
|
|
4982
4901
|
let {
|
|
@@ -5175,7 +5094,8 @@ function Row(_ref) {
|
|
|
5175
5094
|
formatter,
|
|
5176
5095
|
colRenderer,
|
|
5177
5096
|
copyableValue,
|
|
5178
|
-
copyTooltipText
|
|
5097
|
+
copyTooltipText,
|
|
5098
|
+
copiedTooltipText
|
|
5179
5099
|
} = columns.find(column => column.uid === id) || {};
|
|
5180
5100
|
const {
|
|
5181
5101
|
autoSizeOn,
|
|
@@ -5205,6 +5125,7 @@ function Row(_ref) {
|
|
|
5205
5125
|
disabledColumnPin: disabledColumnPin,
|
|
5206
5126
|
initialColWidth: initialColWidth,
|
|
5207
5127
|
copyTooltipText: copyTooltipText,
|
|
5128
|
+
copiedTooltipText: copiedTooltipText,
|
|
5208
5129
|
defaultCustomWidth: defaultCustomWidth
|
|
5209
5130
|
});
|
|
5210
5131
|
}), actionBar && /*#__PURE__*/React__default.createElement(ActionBar$1, {
|
|
@@ -5596,7 +5517,7 @@ HeaderItem.defaultProps = {
|
|
|
5596
5517
|
};
|
|
5597
5518
|
var HeaderItem$1 = /*#__PURE__*/memo(HeaderItem, reactFastCompare);
|
|
5598
5519
|
|
|
5599
|
-
var css_248z$2 = "[data-gene-ui-version=\"
|
|
5520
|
+
var css_248z$2 = "[data-gene-ui-version=\"2.12.2\"] .ta-header{top:0}[data-gene-ui-version=\"2.12.2\"] .ta-header .ta-cell{align-items:normal;flex-direction:column}[data-gene-ui-version=\"2.12.2\"] .ta-header .ta-cell.centered .table-heading{justify-content:center}@media (hover:hover){[data-gene-ui-version=\"2.12.2\"] .ta-header .ta-cell:hover{background:rgba(var(--background-sc-rgb),.02)}[data-gene-ui-version=\"2.12.2\"] .ta-header .ta-cell.sticky:hover{background:rgba(var(--background-sc-rgb),.06)}}[data-gene-ui-version=\"2.12.2\"] .ta-header .ta-cell.is-dragged-over{background-color:rgba(var(--hero-rgb),.05)}[data-gene-ui-version=\"2.12.2\"] .ta-header .ta-cell .ta-cell-header-item{padding:5px 0}[data-gene-ui-version=\"2.12.2\"] .ta-header .ta-cell .ta-cell-header-tittle{display:flex}[data-gene-ui-version=\"2.12.2\"] .sticky-viewport-checker{bottom:0;position:absolute;top:0;visibility:hidden;width:1px}[data-gene-ui-version=\"2.12.2\"] .table-heading{align-items:center;display:flex;flex-shrink:0;flex:auto;overflow:hidden;width:100%}[data-gene-ui-version=\"2.12.2\"] .ta-filter-icon{color:rgba(var(--background-sc-rgb),.38);cursor:pointer;flex-shrink:0;margin:0 .4rem;position:relative}[data-gene-ui-version=\"2.12.2\"] .ta-filter-icon:after,[data-gene-ui-version=\"2.12.2\"] .ta-filter-icon:before{display:block;font:2.4rem/1 betcore;transition:color .3s}[data-gene-ui-version=\"2.12.2\"] .ta-filter-icon:before{content:\"\\e92c\"}[data-gene-ui-version=\"2.12.2\"] .ta-filter-icon:after{content:\"\\e92b\";left:0;position:absolute;top:0}[data-gene-ui-version=\"2.12.2\"] .ta-filter-icon.active-asc:before,[data-gene-ui-version=\"2.12.2\"] .ta-filter-icon.active-desc:after{color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .table-heading-text{transition:color .3s}[data-gene-ui-version=\"2.12.2\"] .table-heading-text.active{color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .cell-options{transition:opacity .4s}[data-gene-ui-version=\"2.12.2\"] .ta-cell:not(:hover) .cell-options:not(.popover-opened),[data-gene-ui-version=\"2.12.2\"] .vertical-resizing-cursor .cell-options{opacity:0}[data-gene-ui-version=\"2.12.2\"] .th-divider-holder{bottom:0;display:flex;padding:.9rem;position:absolute;top:0;transform:translateZ(0);transform:translateX(-50%);z-index:10}html:not([dir=rtl]) .th-divider-holder{left:100%}html[dir=rtl] .th-divider-holder{right:100%;transform:translateX(50%)}[data-gene-ui-version=\"2.12.2\"] .th-divider-holder i{transition:opacity .3s}[data-gene-ui-version=\"2.12.2\"] .th-divider{background:rgba(var(--background-sc-rgb),.15);width:1px}[data-gene-ui-version=\"2.12.2\"] .sticky .th-divider,[data-gene-ui-version=\"2.12.2\"] .ta-cell:hover .th-divider:nth-child(2),[data-gene-ui-version=\"2.12.2\"] .table-resize-handle:active~.th-divider{opacity:0}[data-gene-ui-version=\"2.12.2\"] .table-resize-handle{bottom:0;cursor:col-resize;display:flex;left:0;padding:.4rem .9rem;position:absolute;top:0}[data-gene-ui-version=\"2.12.2\"] .ta-cell:not(:hover) .table-resize-handle:not(:active){opacity:0}[data-gene-ui-version=\"2.12.2\"] .table-resize-handle:before{border-left:1px dashed rgba(var(--background-sc-rgb),.18);content:\"\";display:block;width:1px}[data-gene-ui-version=\"2.12.2\"] .table-resize-handle:active:before{border-color:var(--hero)}";
|
|
5600
5521
|
styleInject(css_248z$2);
|
|
5601
5522
|
|
|
5602
5523
|
const Header = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
@@ -5764,7 +5685,7 @@ function FooterItem(_ref) {
|
|
|
5764
5685
|
}
|
|
5765
5686
|
var FooterItem$1 = /*#__PURE__*/memo(FooterItem, reactFastCompare);
|
|
5766
5687
|
|
|
5767
|
-
var css_248z$1 = "[data-gene-ui-version=\"
|
|
5688
|
+
var css_248z$1 = "[data-gene-ui-version=\"2.12.2\"] .ta-footer .ellipsis-text{-webkit-user-select:all;user-select:all}";
|
|
5768
5689
|
styleInject(css_248z$1);
|
|
5769
5690
|
|
|
5770
5691
|
function Footer(_ref) {
|
|
@@ -5800,7 +5721,7 @@ Footer.defaultProps = {
|
|
|
5800
5721
|
withLeftCorners: []
|
|
5801
5722
|
};
|
|
5802
5723
|
|
|
5803
|
-
var css_248z = "[data-gene-ui-version=\"1.0.0\"] .table-loader-container{position:relative;width:100%}[data-gene-ui-version=\"1.0.0\"] .table-holder{display:flex;flex-direction:column;font:600 1.4rem/1.8rem var(--font-family);position:relative;width:100%}[data-gene-ui-version=\"1.0.0\"] .table-loader-container .table-holder{position:static}[data-gene-ui-version=\"1.0.0\"] .table-holder .ReactVirtualized__Grid{direction:inherit!important;min-width:100%;overflow:visible!important;width:auto!important}[data-gene-ui-version=\"1.0.0\"] .table-holder .ReactVirtualized__Grid .ReactVirtualized__Grid__innerScrollContainer{max-width:inherit!important;min-width:100%;overflow:visible!important;width:auto!important}[data-gene-ui-version=\"1.0.0\"] .table-holder:not(.content-empty){max-height:calc(100vh - var(--header-height, 0px) - var(--table-max-height-additional-calc, 0px))}[data-gene-ui-version=\"1.0.0\"] .ta-body{display:inline-block;min-width:100%;position:relative;z-index:0}[data-gene-ui-version=\"1.0.0\"] .content-empty .ta-body{position:-webkit-sticky;position:sticky}html:not([dir=rtl]) .content-empty .ta-body{left:0}html[dir=rtl] .content-empty .ta-body{right:0}[data-gene-ui-version=\"1.0.0\"] .ta-n-body{background:var(--background);display:inline-block;font-weight:700;min-width:100%;position:-webkit-sticky;position:sticky;-webkit-user-select:none;user-select:none;z-index:10}[data-gene-ui-version=\"1.0.0\"] .ta-n-body .ta-row{background:rgba(var(--background-sc-rgb),.04);display:inline-flex;min-width:100%}[data-gene-ui-version=\"1.0.0\"] .ta-n-body .ta-row.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"1.0.0\"] .ta-group{display:inline-flex;flex-direction:column;min-width:100%;position:relative;width:auto!important}html:not([dir=rtl]) .ta-group{right:auto!important}html[dir=rtl] .ta-group{left:auto!important}html:not([dir=rtl]) .ta-group{left:0!important}html[dir=rtl] .ta-group{right:0!important}[data-gene-ui-version=\"1.0.0\"] .ta-gr-left-line{bottom:0;display:flex;pointer-events:none;position:absolute;top:-1px;width:100%;z-index:12}html:not([dir=rtl]) .ta-gr-left-line{left:0}html[dir=rtl] .ta-gr-left-line{right:0}[data-gene-ui-version=\"1.0.0\"] .ta-gr-left-line:before{background:var(--hero);content:\"\";display:block;height:100%;position:-webkit-sticky;position:sticky;transform:translateX(-110%);transition:transform .3s;width:.3rem}html:not([dir=rtl]) .ta-gr-left-line:before{left:0}html[dir=rtl] .ta-gr-left-line:before{right:0;transform:translateX(110%)}[data-gene-ui-version=\"1.0.0\"] .hover-able:hover .ta-gr-left-line:before,[data-gene-ui-version=\"1.0.0\"] .selected .ta-gr-left-line:before{transform:translateX(0)}[data-gene-ui-version=\"1.0.0\"] .ta-row{align-items:center;background-clip:content-box;display:flex;justify-content:flex-start;min-width:100%}[data-gene-ui-version=\"1.0.0\"] .ta-row.border-bottom{border-bottom:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"1.0.0\"] .ta-row.border-top{border-top:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"1.0.0\"] .ta-row.even-coloring{background-color:rgba(var(--background-sc-rgb),.02)}[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover,[data-gene-ui-version=\"1.0.0\"] .ta-row.selected{background-color:rgba(var(--hero-rgb),.08)}[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover .tl-bc-icon-action,[data-gene-ui-version=\"1.0.0\"] .ta-row.selected .tl-bc-icon-action{color:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:not(.cursor-grab){cursor:pointer}[data-gene-ui-version=\"1.0.0\"] .ta-row.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"1.0.0\"] .ta-cell{align-items:center;display:flex;flex-shrink:0;min-height:4.2rem;min-width:4.2rem;position:relative;will-change:width,background-color,position}[data-gene-ui-version=\"1.0.0\"] .ta-cell>.ellipsis-text{width:100%}[data-gene-ui-version=\"1.0.0\"] .ta-n-body .ta-cell:last-child,[data-gene-ui-version=\"1.0.0\"] .ta-n-body .ta-cell:nth-last-child(2){overflow:hidden}[data-gene-ui-version=\"1.0.0\"] .ta-cell a{color:var(--hero);font-weight:600}[data-gene-ui-version=\"1.0.0\"] .ta-cell:not(.a-square){padding:0 1.2rem 0 2rem}html[dir=rtl] .ta-cell:not(.a-square){padding:0 2rem 0 1.2rem}[data-gene-ui-version=\"1.0.0\"] .ta-cell.a-square{justify-content:center}[data-gene-ui-version=\"1.0.0\"] .ta-cell.a-square:empty{pointer-events:none}[data-gene-ui-version=\"1.0.0\"] .ta-cell.a-square:not(:empty){position:-webkit-sticky;position:sticky;transform:translateZ(0);z-index:11}[data-gene-ui-version=\"1.0.0\"] .ta-cell.sticky{background-color:inherit;box-shadow:1px 0 0 rgba(var(--background-sc-rgb),.1),-1px 0 0 rgba(var(--background-sc-rgb),.1),inset 0 0 0 10rem var(--background);position:-webkit-sticky;position:sticky;transition:none;z-index:11}[data-gene-ui-version=\"1.0.0\"] .ta-cell.sticky:before{background:inherit;content:\"\";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}[data-gene-ui-version=\"1.0.0\"] .ta-cell.sticky:after{bottom:-1px;content:\"\";display:block;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .3s,visibility .3s;visibility:hidden;width:2rem}[data-gene-ui-version=\"1.0.0\"] sub:last-of-type+.ta-cell.sticky:after,[data-gene-ui-version=\"1.0.0\"] sup:first-of-type+.ta-cell.sticky:after{opacity:1;visibility:visible}[data-gene-ui-version=\"1.0.0\"] .ta-cell.sticky.now-sticky{box-shadow:inset 0 0 0 10rem var(--background)}html:not([dir=rtl]) .ta-cell.sticky.sticky-left{left:0}html[dir=rtl] .ta-cell.sticky.sticky-left{right:0}[data-gene-ui-version=\"1.0.0\"] .ta-cell.sticky.sticky-left:after{background:linear-gradient(to right,#0000000d,rgba(var(--background-rgb),0))}html:not([dir=rtl]) .ta-cell.sticky.sticky-left:after{left:100%}html[dir=rtl] .ta-cell.sticky.sticky-left:after{background:linear-gradient(to left,#0000000d,rgba(var(--background-rgb),0));right:100%}[data-gene-ui-version=\"1.0.0\"] sub:last-of-type+.ta-cell.sticky.sticky-left{box-shadow:1px 0 0 rgba(var(--background-sc-rgb),.1),inset 0 0 0 10rem var(--background)}html:not([dir=rtl]) .ta-cell.sticky.sticky-right{right:0}html[dir=rtl] .ta-cell.sticky.sticky-right{left:0}[data-gene-ui-version=\"1.0.0\"] .ta-cell.sticky.sticky-right:after{background:linear-gradient(to left,#0000000d,rgba(var(--background-rgb),0))}html:not([dir=rtl]) .ta-cell.sticky.sticky-right:after{right:100%}html[dir=rtl] .ta-cell.sticky.sticky-right:after{background:linear-gradient(to right,#0000000d,rgba(var(--background-rgb),0));left:100%}[data-gene-ui-version=\"1.0.0\"] sup:first-of-type+.ta-cell.sticky.sticky-right{box-shadow:-1px 0 0 rgba(var(--background-sc-rgb),.1),inset 0 0 0 10rem var(--background)}[data-gene-ui-version=\"1.0.0\"] .ta-cell:hover .copy-icon{opacity:1}[data-gene-ui-version=\"1.0.0\"] .ta-cell .copy-icon{font-size:14px;margin-right:6px;opacity:0}[data-gene-ui-version=\"1.0.0\"] .ta-cell .copy-icon:focus{color:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .ta-cell .crs-holder{display:flex}[data-gene-ui-version=\"1.0.0\"] .ta-nested-child-holder{cursor:auto;max-width:var(--table-max-width);overflow:hidden;position:-webkit-sticky;position:sticky;-webkit-user-select:text;user-select:text;width:100%}html:not([dir=rtl]) .ta-nested-child-holder{left:0}html[dir=rtl] .ta-nested-child-holder{right:0}[data-gene-ui-version=\"1.0.0\"] .ta-nested-child-holder:not(.table-empty-holder){border-bottom:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"1.0.0\"] .ta-nested-child{padding:1.2rem 1.4rem;width:100%}[data-gene-ui-version=\"1.0.0\"] .tl-bc-icon-action{cursor:pointer;position:relative;text-align:center;transition:color .3s,transform .3s;width:100%;z-index:1}[data-gene-ui-version=\"1.0.0\"] .tl-bc-icon-action.active{transform:rotate(180deg)}[data-gene-ui-version=\"1.0.0\"] .table-splash-loader{background:rgba(var(--background-rgb),.6);border-radius:2rem;height:100%;left:0;position:absolute;top:0;width:100%;z-index:11}[data-gene-ui-version=\"1.0.0\"] .table-empty-holder{align-items:center;display:flex;justify-content:center;min-height:42rem;padding:2rem;-webkit-user-select:none;user-select:none}[data-gene-ui-version=\"1.0.0\"] .right-actions-holder{width:5.2rem}html:not([dir=rtl]) .right-actions-holder{right:0}html[dir=rtl] .right-actions-holder{left:0}[data-gene-ui-version=\"1.0.0\"] .ta-n-body .right-actions-holder:not(.sticky){opacity:0;pointer-events:none}html:not([dir=rtl]) .left-actions-holder{left:0}html[dir=rtl] .left-actions-holder{right:0}[data-gene-ui-version=\"1.0.0\"] .left-actions-holder .icon{margin:0 .9rem}[data-gene-ui-version=\"1.0.0\"] .left-actions-holder:after,[data-gene-ui-version=\"1.0.0\"] .left-actions-holder:before{bottom:0;content:\"\";pointer-events:none;position:absolute;top:0}html:not([dir=rtl]) .left-actions-holder:after,html:not([dir=rtl]) .left-actions-holder:before{right:-2rem}html[dir=rtl] .left-actions-holder:after,html[dir=rtl] .left-actions-holder:before{left:-2rem}html:not([dir=rtl]) .left-actions-holder:after,html:not([dir=rtl]) .left-actions-holder:before{left:0}html[dir=rtl] .left-actions-holder:after,html[dir=rtl] .left-actions-holder:before{right:0}[data-gene-ui-version=\"1.0.0\"] .left-actions-holder:before{background:linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .left-actions-holder:before{background:linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"1.0.0\"] .even-coloring .left-actions-holder:before{background:linear-gradient(to right,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .even-coloring .left-actions-holder:before{background:linear-gradient(to left,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"1.0.0\"] .left-actions-holder:after{background:linear-gradient(to right,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%);opacity:0}html[dir=rtl] .left-actions-holder:after{background:linear-gradient(to left,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover .left-actions-holder:before,[data-gene-ui-version=\"1.0.0\"] .ta-row.selected .left-actions-holder:before{opacity:0}[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover .left-actions-holder:after,[data-gene-ui-version=\"1.0.0\"] .ta-row.selected .left-actions-holder:after{opacity:1}[data-gene-ui-version=\"1.0.0\"] .ta-action{align-items:center;bottom:0;display:flex;padding:0 .6rem;position:absolute;top:0}html:not([dir=rtl]) .ta-action{right:0}html[dir=rtl] .ta-action{left:0}[data-gene-ui-version=\"1.0.0\"] .ta-action:after,[data-gene-ui-version=\"1.0.0\"] .ta-action:before{bottom:0;content:\"\";position:absolute;top:0}html:not([dir=rtl]) .ta-action:after,html:not([dir=rtl]) .ta-action:before{left:-3rem}html[dir=rtl] .ta-action:after,html[dir=rtl] .ta-action:before{right:-3rem}html:not([dir=rtl]) .ta-action:after,html:not([dir=rtl]) .ta-action:before{right:0}html[dir=rtl] .ta-action:after,html[dir=rtl] .ta-action:before{left:0}[data-gene-ui-version=\"1.0.0\"] .ta-action:before{background:linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .ta-action:before{background:linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"1.0.0\"] .even-coloring .ta-action:before{background:linear-gradient(to left,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .even-coloring .ta-action:before{background:linear-gradient(to right,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"1.0.0\"] .ta-action:after{background:linear-gradient(to left,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%);opacity:0}html[dir=rtl] .ta-action:after{background:linear-gradient(to right,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"1.0.0\"] .ta-action.ta-a-2,[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover .ta-action.ta-a-1:not(:only-child),[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover .ta-action:before,[data-gene-ui-version=\"1.0.0\"] .ta-row.selected .ta-action.ta-a-1:not(:only-child),[data-gene-ui-version=\"1.0.0\"] .ta-row.selected .ta-action:before{opacity:0}[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover .ta-action.ta-a-2,[data-gene-ui-version=\"1.0.0\"] .ta-row.hover-able:hover .ta-action:after,[data-gene-ui-version=\"1.0.0\"] .ta-row.selected .ta-action.ta-a-2,[data-gene-ui-version=\"1.0.0\"] .ta-row.selected .ta-action:after{opacity:1}[data-gene-ui-version=\"1.0.0\"] .now-sticky .ta-action:before{content:none}[data-gene-ui-version=\"1.0.0\"] .ta-item{align-items:center;display:flex;position:relative;z-index:1}[data-gene-ui-version=\"1.0.0\"] .edit-save-button-holder{align-items:center;display:flex}[data-gene-ui-version=\"1.0.0\"] .edit-save-button-holder:not(:only-child){margin-inline-end:1rem}[data-gene-ui-version=\"1.0.0\"] .edit-save-button-holder>*+*{margin-inline-start:1rem}";
|
|
5724
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .table-loader-container{position:relative;width:100%}[data-gene-ui-version=\"2.12.2\"] .table-holder{display:flex;flex-direction:column;font:600 1.4rem/1.8rem var(--font-family);position:relative;width:100%}[data-gene-ui-version=\"2.12.2\"] .table-loader-container .table-holder{position:static}[data-gene-ui-version=\"2.12.2\"] .table-holder .ReactVirtualized__Grid{direction:inherit!important;min-width:100%;overflow:visible!important;width:auto!important}[data-gene-ui-version=\"2.12.2\"] .table-holder .ReactVirtualized__Grid .ReactVirtualized__Grid__innerScrollContainer{max-width:inherit!important;min-width:100%;overflow:visible!important;width:auto!important}[data-gene-ui-version=\"2.12.2\"] .table-holder:not(.content-empty){max-height:calc(100vh - var(--header-height, 0px) - var(--table-max-height-additional-calc, 0px))}[data-gene-ui-version=\"2.12.2\"] .ta-body{display:inline-block;min-width:100%;position:relative;z-index:0}[data-gene-ui-version=\"2.12.2\"] .content-empty .ta-body{position:-webkit-sticky;position:sticky}html:not([dir=rtl]) .content-empty .ta-body{left:0}html[dir=rtl] .content-empty .ta-body{right:0}[data-gene-ui-version=\"2.12.2\"] .ta-n-body{background:var(--background);display:inline-block;font-weight:700;min-width:100%;position:-webkit-sticky;position:sticky;-webkit-user-select:none;user-select:none;z-index:10}[data-gene-ui-version=\"2.12.2\"] .ta-n-body .ta-row{background:rgba(var(--background-sc-rgb),.04);display:inline-flex;min-width:100%}[data-gene-ui-version=\"2.12.2\"] .ta-n-body .ta-row.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.12.2\"] .ta-group{display:inline-flex;flex-direction:column;min-width:100%;position:relative;width:auto!important}html:not([dir=rtl]) .ta-group{right:auto!important}html[dir=rtl] .ta-group{left:auto!important}html:not([dir=rtl]) .ta-group{left:0!important}html[dir=rtl] .ta-group{right:0!important}[data-gene-ui-version=\"2.12.2\"] .ta-gr-left-line{bottom:0;display:flex;pointer-events:none;position:absolute;top:-1px;width:100%;z-index:12}html:not([dir=rtl]) .ta-gr-left-line{left:0}html[dir=rtl] .ta-gr-left-line{right:0}[data-gene-ui-version=\"2.12.2\"] .ta-gr-left-line:before{background:var(--hero);content:\"\";display:block;height:100%;position:-webkit-sticky;position:sticky;transform:translateX(-110%);transition:transform .3s;width:.3rem}html:not([dir=rtl]) .ta-gr-left-line:before{left:0}html[dir=rtl] .ta-gr-left-line:before{right:0;transform:translateX(110%)}[data-gene-ui-version=\"2.12.2\"] .hover-able:hover .ta-gr-left-line:before,[data-gene-ui-version=\"2.12.2\"] .selected .ta-gr-left-line:before{transform:translateX(0)}[data-gene-ui-version=\"2.12.2\"] .ta-row{align-items:center;background-clip:content-box;display:flex;justify-content:flex-start;min-width:100%}[data-gene-ui-version=\"2.12.2\"] .ta-row.border-bottom{border-bottom:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.2\"] .ta-row.border-top{border-top:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.2\"] .ta-row.even-coloring{background-color:rgba(var(--background-sc-rgb),.02)}[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover,[data-gene-ui-version=\"2.12.2\"] .ta-row.selected{background-color:rgba(var(--hero-rgb),.08)}[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover .tl-bc-icon-action,[data-gene-ui-version=\"2.12.2\"] .ta-row.selected .tl-bc-icon-action{color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:not(.cursor-grab){cursor:pointer}[data-gene-ui-version=\"2.12.2\"] .ta-row.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.12.2\"] .ta-cell{align-items:center;display:flex;flex-shrink:0;min-height:4.2rem;min-width:4.2rem;position:relative;will-change:width,background-color,position}[data-gene-ui-version=\"2.12.2\"] .ta-cell>.ellipsis-text{width:100%}[data-gene-ui-version=\"2.12.2\"] .ta-n-body .ta-cell:last-child,[data-gene-ui-version=\"2.12.2\"] .ta-n-body .ta-cell:nth-last-child(2){overflow:hidden}[data-gene-ui-version=\"2.12.2\"] .ta-cell a{color:var(--hero);font-weight:600}[data-gene-ui-version=\"2.12.2\"] .ta-cell:not(.a-square){padding:0 1.2rem 0 2rem}html[dir=rtl] .ta-cell:not(.a-square){padding:0 2rem 0 1.2rem}[data-gene-ui-version=\"2.12.2\"] .ta-cell.a-square{justify-content:center}[data-gene-ui-version=\"2.12.2\"] .ta-cell.a-square:empty{pointer-events:none}[data-gene-ui-version=\"2.12.2\"] .ta-cell.a-square:not(:empty){position:-webkit-sticky;position:sticky;transform:translateZ(0);z-index:11}[data-gene-ui-version=\"2.12.2\"] .ta-cell.sticky{background-color:inherit;box-shadow:1px 0 0 rgba(var(--background-sc-rgb),.1),-1px 0 0 rgba(var(--background-sc-rgb),.1),inset 0 0 0 10rem var(--background);position:-webkit-sticky;position:sticky;transition:none;z-index:11}[data-gene-ui-version=\"2.12.2\"] .ta-cell.sticky:before{background:inherit;content:\"\";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}[data-gene-ui-version=\"2.12.2\"] .ta-cell.sticky:after{bottom:-1px;content:\"\";display:block;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .3s,visibility .3s;visibility:hidden;width:2rem}[data-gene-ui-version=\"2.12.2\"] sub:last-of-type+.ta-cell.sticky:after,[data-gene-ui-version=\"2.12.2\"] sup:first-of-type+.ta-cell.sticky:after{opacity:1;visibility:visible}[data-gene-ui-version=\"2.12.2\"] .ta-cell.sticky.now-sticky{box-shadow:inset 0 0 0 10rem var(--background)}html:not([dir=rtl]) .ta-cell.sticky.sticky-left{left:0}html[dir=rtl] .ta-cell.sticky.sticky-left{right:0}[data-gene-ui-version=\"2.12.2\"] .ta-cell.sticky.sticky-left:after{background:linear-gradient(to right,#0000000d,rgba(var(--background-rgb),0))}html:not([dir=rtl]) .ta-cell.sticky.sticky-left:after{left:100%}html[dir=rtl] .ta-cell.sticky.sticky-left:after{background:linear-gradient(to left,#0000000d,rgba(var(--background-rgb),0));right:100%}[data-gene-ui-version=\"2.12.2\"] sub:last-of-type+.ta-cell.sticky.sticky-left{box-shadow:1px 0 0 rgba(var(--background-sc-rgb),.1),inset 0 0 0 10rem var(--background)}html:not([dir=rtl]) .ta-cell.sticky.sticky-right{right:0}html[dir=rtl] .ta-cell.sticky.sticky-right{left:0}[data-gene-ui-version=\"2.12.2\"] .ta-cell.sticky.sticky-right:after{background:linear-gradient(to left,#0000000d,rgba(var(--background-rgb),0))}html:not([dir=rtl]) .ta-cell.sticky.sticky-right:after{right:100%}html[dir=rtl] .ta-cell.sticky.sticky-right:after{background:linear-gradient(to right,#0000000d,rgba(var(--background-rgb),0));left:100%}[data-gene-ui-version=\"2.12.2\"] sup:first-of-type+.ta-cell.sticky.sticky-right{box-shadow:-1px 0 0 rgba(var(--background-sc-rgb),.1),inset 0 0 0 10rem var(--background)}[data-gene-ui-version=\"2.12.2\"] .ta-cell:hover .copy-icon{opacity:1}[data-gene-ui-version=\"2.12.2\"] .ta-cell .copy-icon{font-size:14px;margin-right:6px;opacity:0}[data-gene-ui-version=\"2.12.2\"] .ta-cell .copy-icon:focus{color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .ta-cell .crs-holder{display:flex}[data-gene-ui-version=\"2.12.2\"] .ta-nested-child-holder{cursor:auto;max-width:var(--table-max-width);overflow:hidden;position:-webkit-sticky;position:sticky;-webkit-user-select:text;user-select:text;width:100%}html:not([dir=rtl]) .ta-nested-child-holder{left:0}html[dir=rtl] .ta-nested-child-holder{right:0}[data-gene-ui-version=\"2.12.2\"] .ta-nested-child-holder:not(.table-empty-holder){border-bottom:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.2\"] .ta-nested-child{padding:1.2rem 1.4rem;width:100%}[data-gene-ui-version=\"2.12.2\"] .tl-bc-icon-action{cursor:pointer;position:relative;text-align:center;transition:color .3s,transform .3s;width:100%;z-index:1}[data-gene-ui-version=\"2.12.2\"] .tl-bc-icon-action.active{transform:rotate(180deg)}[data-gene-ui-version=\"2.12.2\"] .table-splash-loader{background:rgba(var(--background-rgb),.6);border-radius:2rem;height:100%;left:0;position:absolute;top:0;width:100%;z-index:11}[data-gene-ui-version=\"2.12.2\"] .table-empty-holder{align-items:center;display:flex;justify-content:center;min-height:42rem;padding:2rem;-webkit-user-select:none;user-select:none}[data-gene-ui-version=\"2.12.2\"] .right-actions-holder{width:5.2rem}html:not([dir=rtl]) .right-actions-holder{right:0}html[dir=rtl] .right-actions-holder{left:0}[data-gene-ui-version=\"2.12.2\"] .ta-n-body .right-actions-holder:not(.sticky){opacity:0;pointer-events:none}html:not([dir=rtl]) .left-actions-holder{left:0}html[dir=rtl] .left-actions-holder{right:0}[data-gene-ui-version=\"2.12.2\"] .left-actions-holder .icon{margin:0 .9rem}[data-gene-ui-version=\"2.12.2\"] .left-actions-holder:after,[data-gene-ui-version=\"2.12.2\"] .left-actions-holder:before{bottom:0;content:\"\";pointer-events:none;position:absolute;top:0}html:not([dir=rtl]) .left-actions-holder:after,html:not([dir=rtl]) .left-actions-holder:before{right:-2rem}html[dir=rtl] .left-actions-holder:after,html[dir=rtl] .left-actions-holder:before{left:-2rem}html:not([dir=rtl]) .left-actions-holder:after,html:not([dir=rtl]) .left-actions-holder:before{left:0}html[dir=rtl] .left-actions-holder:after,html[dir=rtl] .left-actions-holder:before{right:0}[data-gene-ui-version=\"2.12.2\"] .left-actions-holder:before{background:linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .left-actions-holder:before{background:linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"2.12.2\"] .even-coloring .left-actions-holder:before{background:linear-gradient(to right,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .even-coloring .left-actions-holder:before{background:linear-gradient(to left,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"2.12.2\"] .left-actions-holder:after{background:linear-gradient(to right,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%);opacity:0}html[dir=rtl] .left-actions-holder:after{background:linear-gradient(to left,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover .left-actions-holder:before,[data-gene-ui-version=\"2.12.2\"] .ta-row.selected .left-actions-holder:before{opacity:0}[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover .left-actions-holder:after,[data-gene-ui-version=\"2.12.2\"] .ta-row.selected .left-actions-holder:after{opacity:1}[data-gene-ui-version=\"2.12.2\"] .ta-action{align-items:center;bottom:0;display:flex;padding:0 .6rem;position:absolute;top:0}html:not([dir=rtl]) .ta-action{right:0}html[dir=rtl] .ta-action{left:0}[data-gene-ui-version=\"2.12.2\"] .ta-action:after,[data-gene-ui-version=\"2.12.2\"] .ta-action:before{bottom:0;content:\"\";position:absolute;top:0}html:not([dir=rtl]) .ta-action:after,html:not([dir=rtl]) .ta-action:before{left:-3rem}html[dir=rtl] .ta-action:after,html[dir=rtl] .ta-action:before{right:-3rem}html:not([dir=rtl]) .ta-action:after,html:not([dir=rtl]) .ta-action:before{right:0}html[dir=rtl] .ta-action:after,html[dir=rtl] .ta-action:before{left:0}[data-gene-ui-version=\"2.12.2\"] .ta-action:before{background:linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .ta-action:before{background:linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"2.12.2\"] .even-coloring .ta-action:before{background:linear-gradient(to left,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}html[dir=rtl] .even-coloring .ta-action:before{background:linear-gradient(to right,rgba(var(--background-sc-rgb),.02) 65%,rgba(var(--background-sc-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"2.12.2\"] .ta-action:after{background:linear-gradient(to left,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to left,var(--background) 65%,rgba(var(--background-rgb),0) 100%);opacity:0}html[dir=rtl] .ta-action:after{background:linear-gradient(to right,rgba(var(--hero-rgb),.08) 65%,rgba(var(--hero-rgb),0) 100%),linear-gradient(to right,var(--background) 65%,rgba(var(--background-rgb),0) 100%)}[data-gene-ui-version=\"2.12.2\"] .ta-action.ta-a-2,[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover .ta-action.ta-a-1:not(:only-child),[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover .ta-action:before,[data-gene-ui-version=\"2.12.2\"] .ta-row.selected .ta-action.ta-a-1:not(:only-child),[data-gene-ui-version=\"2.12.2\"] .ta-row.selected .ta-action:before{opacity:0}[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover .ta-action.ta-a-2,[data-gene-ui-version=\"2.12.2\"] .ta-row.hover-able:hover .ta-action:after,[data-gene-ui-version=\"2.12.2\"] .ta-row.selected .ta-action.ta-a-2,[data-gene-ui-version=\"2.12.2\"] .ta-row.selected .ta-action:after{opacity:1}[data-gene-ui-version=\"2.12.2\"] .now-sticky .ta-action:before{content:none}[data-gene-ui-version=\"2.12.2\"] .ta-item{align-items:center;display:flex;position:relative;z-index:1}[data-gene-ui-version=\"2.12.2\"] .edit-save-button-holder{align-items:center;display:flex}[data-gene-ui-version=\"2.12.2\"] .edit-save-button-holder:not(:only-child){margin-inline-end:1rem}[data-gene-ui-version=\"2.12.2\"] .edit-save-button-holder>*+*{margin-inline-start:1rem}";
|
|
5804
5725
|
styleInject(css_248z);
|
|
5805
5726
|
|
|
5806
5727
|
function Table(props) {
|
|
@@ -6326,6 +6247,10 @@ Table.propTypes = {
|
|
|
6326
6247
|
*
|
|
6327
6248
|
* exportDisabled: Hide that column from export
|
|
6328
6249
|
*
|
|
6250
|
+
* copyTooltipText: Text for the tooltip when you hover on the element that can be copied.
|
|
6251
|
+
*
|
|
6252
|
+
* copiedTooltipText: Text for the tooltip when you already pressed copy button on the element that can be copied.
|
|
6253
|
+
*
|
|
6329
6254
|
* resizable: Allows resizing if true
|
|
6330
6255
|
*
|
|
6331
6256
|
* current column's data key
|
|
@@ -6345,72 +6270,73 @@ Table.propTypes = {
|
|
|
6345
6270
|
* hasOptions: Renders dropdown of options in header items
|
|
6346
6271
|
* searchInColumns: Property for the searching in column. There are two types for search: "text" && "select". Table should not have the rowsCount property.
|
|
6347
6272
|
*/
|
|
6348
|
-
columns:
|
|
6349
|
-
sortFn:
|
|
6273
|
+
columns: PropTypes.arrayOf(PropTypes.shape({
|
|
6274
|
+
sortFn: PropTypes.func,
|
|
6350
6275
|
...oneIsRequired({
|
|
6351
|
-
text:
|
|
6352
|
-
render:
|
|
6276
|
+
text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
6277
|
+
render: PropTypes.func
|
|
6353
6278
|
}),
|
|
6354
|
-
copyable:
|
|
6355
|
-
exportDisabled:
|
|
6356
|
-
copyTooltipText:
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6279
|
+
copyable: PropTypes.bool,
|
|
6280
|
+
exportDisabled: PropTypes.bool,
|
|
6281
|
+
copyTooltipText: PropTypes.string,
|
|
6282
|
+
copiedTooltipText: PropTypes.string,
|
|
6283
|
+
copyableValue: PropTypes.string,
|
|
6284
|
+
sortable: PropTypes.bool,
|
|
6285
|
+
resizable: PropTypes.bool,
|
|
6286
|
+
dataKey: PropTypes.string,
|
|
6287
|
+
draggable: PropTypes.bool,
|
|
6288
|
+
colRenderer: PropTypes.func,
|
|
6289
|
+
getter: PropTypes.func,
|
|
6290
|
+
formatter: PropTypes.func,
|
|
6291
|
+
hasOptions: PropTypes.bool,
|
|
6366
6292
|
searchInColumns: {
|
|
6367
|
-
type:
|
|
6368
|
-
data:
|
|
6293
|
+
type: PropTypes.oneOf(searchConfigs.types),
|
|
6294
|
+
data: PropTypes.array
|
|
6369
6295
|
},
|
|
6370
6296
|
sizeParams: {
|
|
6371
|
-
autoSizeOn:
|
|
6372
|
-
customWidth:
|
|
6373
|
-
autoSizeWidth:
|
|
6374
|
-
defaultCustomWidth:
|
|
6297
|
+
autoSizeOn: PropTypes.bool,
|
|
6298
|
+
customWidth: PropTypes.number,
|
|
6299
|
+
autoSizeWidth: PropTypes.number,
|
|
6300
|
+
defaultCustomWidth: PropTypes.number
|
|
6375
6301
|
}
|
|
6376
6302
|
})).isRequired,
|
|
6377
6303
|
/**
|
|
6378
6304
|
* Called after move row.((dragIndex: number, hoverIndex: number) => custom logic)
|
|
6379
6305
|
*/
|
|
6380
|
-
onRowMove:
|
|
6306
|
+
onRowMove: PropTypes.func,
|
|
6381
6307
|
/**
|
|
6382
6308
|
* Called after clicking on row.((data: object, index: number, row: PropTypes.rows[item]) => custom logic)
|
|
6383
6309
|
*/
|
|
6384
|
-
onRowClick:
|
|
6310
|
+
onRowClick: PropTypes.func,
|
|
6385
6311
|
/**
|
|
6386
6312
|
* Pass this function to catch sorting event and get related data
|
|
6387
6313
|
* ((type: string, dataKey: sting, column: PropTypes.columns[item]) => void
|
|
6388
6314
|
*/
|
|
6389
|
-
onSortChange:
|
|
6315
|
+
onSortChange: PropTypes.func,
|
|
6390
6316
|
/**
|
|
6391
6317
|
* Custom loader component
|
|
6392
6318
|
*/
|
|
6393
|
-
loader:
|
|
6319
|
+
loader: PropTypes.node,
|
|
6394
6320
|
/**
|
|
6395
6321
|
* Will render when there are no rows to render
|
|
6396
6322
|
*/
|
|
6397
|
-
emptyContent:
|
|
6323
|
+
emptyContent: PropTypes.node,
|
|
6398
6324
|
/**
|
|
6399
6325
|
* Key from row's data which value is surely unique
|
|
6400
6326
|
*/
|
|
6401
|
-
rowKey:
|
|
6327
|
+
rowKey: PropTypes.string.isRequired,
|
|
6402
6328
|
/**
|
|
6403
6329
|
* Key from column's data which value is surely unique
|
|
6404
6330
|
*/
|
|
6405
|
-
columnKey:
|
|
6331
|
+
columnKey: PropTypes.string.isRequired,
|
|
6406
6332
|
/**
|
|
6407
6333
|
* If all rows should have hover effect you can pass rowsHover true instead of controlling hovNer effect on each rows individually
|
|
6408
6334
|
*/
|
|
6409
|
-
rowsHover:
|
|
6335
|
+
rowsHover: PropTypes.bool,
|
|
6410
6336
|
/**
|
|
6411
6337
|
* If true then expanded rows will be closed after rows count change
|
|
6412
6338
|
*/
|
|
6413
|
-
closeExpandedAfterFilter:
|
|
6339
|
+
closeExpandedAfterFilter: PropTypes.bool,
|
|
6414
6340
|
/**
|
|
6415
6341
|
* hasHover: Allow hovering
|
|
6416
6342
|
* data: rows column's data
|
|
@@ -6420,132 +6346,132 @@ Table.propTypes = {
|
|
|
6420
6346
|
* render: Render custom component on (row: PropTypes.rows[item] index: number) => {
|
|
6421
6347
|
* return <div>Hello World</div>})
|
|
6422
6348
|
*/
|
|
6423
|
-
rows:
|
|
6424
|
-
hasHover:
|
|
6425
|
-
data:
|
|
6426
|
-
nestedTable:
|
|
6427
|
-
className:
|
|
6428
|
-
render:
|
|
6429
|
-
disabled:
|
|
6349
|
+
rows: PropTypes.arrayOf(PropTypes.shape({
|
|
6350
|
+
hasHover: PropTypes.bool,
|
|
6351
|
+
data: PropTypes.object,
|
|
6352
|
+
nestedTable: PropTypes.any,
|
|
6353
|
+
className: PropTypes.string,
|
|
6354
|
+
render: PropTypes.func,
|
|
6355
|
+
disabled: PropTypes.bool
|
|
6430
6356
|
})),
|
|
6431
|
-
footer:
|
|
6357
|
+
footer: PropTypes.oneOfType([PropTypes.object, PropTypes.node]),
|
|
6432
6358
|
/**
|
|
6433
6359
|
*
|
|
6434
6360
|
*/
|
|
6435
|
-
selectableRows:
|
|
6361
|
+
selectableRows: PropTypes.bool,
|
|
6436
6362
|
/** Default minimum width for columns */
|
|
6437
|
-
defaultColWidth:
|
|
6363
|
+
defaultColWidth: PropTypes.number,
|
|
6438
6364
|
/**
|
|
6439
6365
|
* Maximum limit for sticky columns.
|
|
6440
6366
|
*/
|
|
6441
|
-
stickyColumnsLimitCount:
|
|
6367
|
+
stickyColumnsLimitCount: PropTypes.number,
|
|
6442
6368
|
/**
|
|
6443
6369
|
* Extra click function for rows. ((e: event object, data: object, index: number, row: PropTypes.rows[item]) => custom logic)
|
|
6444
6370
|
*/
|
|
6445
|
-
rowExtraClick:
|
|
6371
|
+
rowExtraClick: PropTypes.func,
|
|
6446
6372
|
/**
|
|
6447
6373
|
* Function for determining which rows should have extra click. ((e: event object, data: object, index: number, row: PropTypes.rows[item]) => return true or false)
|
|
6448
6374
|
*/
|
|
6449
|
-
rowExtraClickNeeded:
|
|
6375
|
+
rowExtraClickNeeded: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
6450
6376
|
/**
|
|
6451
6377
|
* Function which will return React components as row's action bar on the right corner of the row. ((row: PropTypes.rows[item] ,index: number) =>
|
|
6452
6378
|
* <button>custom component</button>)
|
|
6453
6379
|
*/
|
|
6454
|
-
rowActionBar:
|
|
6380
|
+
rowActionBar: PropTypes.func,
|
|
6455
6381
|
/**
|
|
6456
6382
|
* Function which should return null or another
|
|
6457
6383
|
* Function which will return valid node
|
|
6458
6384
|
*/
|
|
6459
|
-
renderRowNestedChildren:
|
|
6385
|
+
renderRowNestedChildren: PropTypes.func,
|
|
6460
6386
|
/**
|
|
6461
6387
|
* Array of toggled rows unique keys
|
|
6462
6388
|
*/
|
|
6463
|
-
toggledRows:
|
|
6389
|
+
toggledRows: PropTypes.arrayOf(PropTypes.number),
|
|
6464
6390
|
/**
|
|
6465
6391
|
* Function which should return boolean
|
|
6466
6392
|
*/
|
|
6467
|
-
getExpandIconDisableState:
|
|
6393
|
+
getExpandIconDisableState: PropTypes.func,
|
|
6468
6394
|
/**
|
|
6469
6395
|
* Search Handler
|
|
6470
6396
|
*/
|
|
6471
|
-
columnSizeChangeHandler:
|
|
6397
|
+
columnSizeChangeHandler: PropTypes.func,
|
|
6472
6398
|
/**
|
|
6473
6399
|
* columnSizeChangeHandler: (params:object) => void
|
|
6474
6400
|
* with the help of this function you can get column key, size and action type after size changing.
|
|
6475
6401
|
*/
|
|
6476
|
-
searchHandler:
|
|
6402
|
+
searchHandler: PropTypes.func,
|
|
6477
6403
|
/**
|
|
6478
6404
|
* there is a search in the table if hasSearch is true
|
|
6479
6405
|
*/
|
|
6480
|
-
hasSearch:
|
|
6406
|
+
hasSearch: PropTypes.bool,
|
|
6481
6407
|
/**
|
|
6482
6408
|
* controls whether columns should be sortable or not
|
|
6483
6409
|
*/
|
|
6484
|
-
sortableColumns:
|
|
6410
|
+
sortableColumns: PropTypes.bool,
|
|
6485
6411
|
/**
|
|
6486
6412
|
* controls whether columns should be resizable or not
|
|
6487
6413
|
*/
|
|
6488
|
-
resizableColumns:
|
|
6414
|
+
resizableColumns: PropTypes.bool,
|
|
6489
6415
|
/**
|
|
6490
6416
|
* controls whether columns should be draggable or not
|
|
6491
6417
|
*/
|
|
6492
|
-
draggableColumns:
|
|
6418
|
+
draggableColumns: PropTypes.bool,
|
|
6493
6419
|
/**
|
|
6494
6420
|
* Value of row data[rowKey]
|
|
6495
6421
|
*/
|
|
6496
|
-
selectedRow:
|
|
6422
|
+
selectedRow: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
6497
6423
|
/**
|
|
6498
6424
|
* Function to control row selection. ((row: PropTypes.rows[item], index: number, rowKey: string) => void
|
|
6499
6425
|
*/
|
|
6500
|
-
handleRowSelect:
|
|
6426
|
+
handleRowSelect: PropTypes.func,
|
|
6501
6427
|
/**
|
|
6502
6428
|
* Function for controlling column sorting. ((isSortable: boolean, sortData: object) => void
|
|
6503
6429
|
*/
|
|
6504
|
-
handleColumnSorting:
|
|
6430
|
+
handleColumnSorting: PropTypes.func,
|
|
6505
6431
|
/**
|
|
6506
6432
|
* Type of sorting when it's controlled
|
|
6507
6433
|
*/
|
|
6508
|
-
sortType:
|
|
6434
|
+
sortType: PropTypes.oneOf(['asc', 'desc', null]),
|
|
6509
6435
|
/**
|
|
6510
6436
|
* DataKey of column which was sorted
|
|
6511
6437
|
*/
|
|
6512
|
-
sortedColumn:
|
|
6438
|
+
sortedColumn: PropTypes.string,
|
|
6513
6439
|
/**
|
|
6514
6440
|
* Array of two strings, which will be applied as tooltips to arrow icons of collapsable rows
|
|
6515
6441
|
*/
|
|
6516
|
-
toggleTooltips:
|
|
6442
|
+
toggleTooltips: PropTypes.arrayOf(PropTypes.string),
|
|
6517
6443
|
/**
|
|
6518
6444
|
* Tooltips for arrow icons of extra click rows
|
|
6519
6445
|
*/
|
|
6520
|
-
rowExtraClickIconTooltip:
|
|
6446
|
+
rowExtraClickIconTooltip: PropTypes.string,
|
|
6521
6447
|
/**
|
|
6522
6448
|
* Initial sort state
|
|
6523
6449
|
*/
|
|
6524
|
-
defaultSortType:
|
|
6450
|
+
defaultSortType: PropTypes.oneOf(['asc', 'desc']),
|
|
6525
6451
|
/**
|
|
6526
6452
|
* Initially sorted column
|
|
6527
6453
|
*/
|
|
6528
|
-
defaultSortedColumn:
|
|
6454
|
+
defaultSortedColumn: PropTypes.string,
|
|
6529
6455
|
/**
|
|
6530
6456
|
* True if u want to load elements when scroll
|
|
6531
6457
|
*/
|
|
6532
|
-
infiniteLoader:
|
|
6458
|
+
infiniteLoader: PropTypes.bool,
|
|
6533
6459
|
/**
|
|
6534
6460
|
* Function for fetching new rows
|
|
6535
6461
|
*/
|
|
6536
|
-
getRowsAsync:
|
|
6462
|
+
getRowsAsync: PropTypes.func,
|
|
6537
6463
|
/**
|
|
6538
6464
|
* Function for getting draggable element ref
|
|
6539
6465
|
*/
|
|
6540
|
-
getDragAcceptType:
|
|
6466
|
+
getDragAcceptType: PropTypes.func,
|
|
6541
6467
|
/**
|
|
6542
6468
|
* Custom node for drag preview
|
|
6543
6469
|
*/
|
|
6544
|
-
CustomPreview:
|
|
6470
|
+
CustomPreview: PropTypes.node,
|
|
6545
6471
|
/**
|
|
6546
6472
|
* custom toggle rows
|
|
6547
6473
|
*/
|
|
6548
|
-
customToggledRowsKeys:
|
|
6474
|
+
customToggledRowsKeys: PropTypes.array | undefined
|
|
6549
6475
|
};
|
|
6550
6476
|
Table.defaultProps = {
|
|
6551
6477
|
footerValues: {},
|
|
@@ -6571,4 +6497,4 @@ Table.defaultProps = {
|
|
|
6571
6497
|
defaultSortedColumn: null
|
|
6572
6498
|
};
|
|
6573
6499
|
|
|
6574
|
-
export { Table as T, sortHandler as a,
|
|
6500
|
+
export { Table as T, sortHandler as a, searchConfigs as s, useSortConfigs as u };
|