@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,106 +1,63 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
2
|
import React__default, { useMemo, useState, useEffect, useCallback, useRef } from 'react';
|
|
3
|
-
import { c as classnames } from '
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import SearchWithDropdown from '
|
|
7
|
-
import { s as styleInject } from '
|
|
8
|
-
import Paper from '
|
|
9
|
-
import { L as Logger, n as noop } from '
|
|
10
|
-
import Pagination from '
|
|
11
|
-
import {
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import Divider from './Divider.js';
|
|
22
|
-
import './Editor.js';
|
|
3
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import ModuleTitle from '../ModuleTitle/index.js';
|
|
6
|
+
import SearchWithDropdown from '../SearchWithDropdown/index.js';
|
|
7
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
8
|
+
import Paper from '../Paper/index.js';
|
|
9
|
+
import { L as Logger, n as noop } from '../index-a0e4e333.js';
|
|
10
|
+
import Pagination from '../Pagination/index.js';
|
|
11
|
+
import { D as Dropdown } from '../index-34e47647.js';
|
|
12
|
+
import { T as Table, s as searchConfigs, a as sortHandler, u as useSortConfigs } from '../index-11eea761.js';
|
|
13
|
+
import '../configs-fed6ac34.js';
|
|
14
|
+
import useThrottle from '../hooks/useThrottle.js';
|
|
15
|
+
import Button from '../Button/index.js';
|
|
16
|
+
import Divider from '../Divider/index.js';
|
|
17
|
+
import Tooltip from '../Tooltip/index.js';
|
|
18
|
+
import { c as commonjsGlobal } from '../_commonjsHelpers-24198af3.js';
|
|
19
|
+
import { P as PopoverV2 } from '../index-462461c0.js';
|
|
20
|
+
import '../dateValidation-67caec66.js';
|
|
23
21
|
import 'react-dom';
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
import '
|
|
28
|
-
import '
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
31
|
-
import '
|
|
32
|
-
import '
|
|
33
|
-
import '
|
|
34
|
-
import '
|
|
35
|
-
import '
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
40
|
-
import '
|
|
41
|
-
import '
|
|
42
|
-
import '
|
|
43
|
-
import '
|
|
44
|
-
import '
|
|
45
|
-
import '
|
|
46
|
-
import '
|
|
47
|
-
import '
|
|
48
|
-
import '
|
|
49
|
-
import '
|
|
50
|
-
import '
|
|
51
|
-
import '
|
|
52
|
-
import '
|
|
53
|
-
import '
|
|
54
|
-
import '
|
|
55
|
-
import '
|
|
56
|
-
import '
|
|
57
|
-
import '
|
|
58
|
-
import '
|
|
59
|
-
import '
|
|
60
|
-
import '
|
|
61
|
-
import '
|
|
62
|
-
import '
|
|
63
|
-
import './index-084588e9.js';
|
|
64
|
-
import './Portal.js';
|
|
65
|
-
import './Timeline.js';
|
|
66
|
-
import './Card.js';
|
|
67
|
-
import './MobilePopup.js';
|
|
68
|
-
import './Menu.js';
|
|
69
|
-
import './SkeletonLoader.js';
|
|
70
|
-
import './KeyValue.js';
|
|
71
|
-
import './configs.js';
|
|
72
|
-
import './Tag.js';
|
|
73
|
-
import './Alert.js';
|
|
74
|
-
import './index-00fe8887.js';
|
|
75
|
-
import './rangeAndSlider-20599da4.js';
|
|
76
|
-
import './Slider.js';
|
|
77
|
-
import './objectWithoutPropertiesLoose-299691d8.js';
|
|
78
|
-
import './clsx.m-2bb6df4b.js';
|
|
79
|
-
import './index-2030e31c.js';
|
|
80
|
-
import './Notification.js';
|
|
81
|
-
import './Modal.js';
|
|
82
|
-
import './Collapse.js';
|
|
83
|
-
import './Status.js';
|
|
84
|
-
import './Avatar.js';
|
|
85
|
-
import './Search.js';
|
|
86
|
-
import './TextLink.js';
|
|
87
|
-
import './Label.js';
|
|
88
|
-
import './Badge.js';
|
|
89
|
-
import './Time.js';
|
|
90
|
-
import './Title.js';
|
|
91
|
-
import './QRCode.js';
|
|
92
|
-
import './Progress.js';
|
|
93
|
-
import './MobileNavigation.js';
|
|
94
|
-
import './Products.js';
|
|
95
|
-
import './Breadcrumb.js';
|
|
96
|
-
import './Section.js';
|
|
97
|
-
import './ColorPicker.js';
|
|
98
|
-
import './NavigationMenu.js';
|
|
99
|
-
import './Textarea.js';
|
|
100
|
-
import './AdvancedSearch.js';
|
|
101
|
-
import './LinkButton.js';
|
|
102
|
-
import './CellMeasurerCache-b786dd93.js';
|
|
103
|
-
import './index-e8776f3d.js';
|
|
22
|
+
import Icon from '../Icon/index.js';
|
|
23
|
+
import Option from '../Option/index.js';
|
|
24
|
+
import '../Popover-f4d1cac0.js';
|
|
25
|
+
import '../hooks/useDeviceType.js';
|
|
26
|
+
import '../hooks/useWindowSize.js';
|
|
27
|
+
import '../GeneUIProvider/index.js';
|
|
28
|
+
import '../Search/index.js';
|
|
29
|
+
import '../ExtendedInput/index.js';
|
|
30
|
+
import '../hooks/useEllipsisDetection.js';
|
|
31
|
+
import '../SuggestionList/index.js';
|
|
32
|
+
import '../hooks/useKeyDown.js';
|
|
33
|
+
import '../hooks/useClickOutside.js';
|
|
34
|
+
import '../config-0ca92874.js';
|
|
35
|
+
import '../Scrollbar/index.js';
|
|
36
|
+
import '../objectWithoutPropertiesLoose-d8a4a68c.js';
|
|
37
|
+
import '../react-lifecycles-compat.es-6e1f3768.js';
|
|
38
|
+
import '../clsx.m-2bb6df4b.js';
|
|
39
|
+
import '../hooks/useMount.js';
|
|
40
|
+
import '../hooks/useClick.js';
|
|
41
|
+
import '../hooks/useUpdatableRef.js';
|
|
42
|
+
import '../hooks/useForceUpdate.js';
|
|
43
|
+
import '../BusyLoader/index.js';
|
|
44
|
+
import '../Empty/index.js';
|
|
45
|
+
import '../index-122432cd.js';
|
|
46
|
+
import '../debounce-4419bc2f.js';
|
|
47
|
+
import '../Checkbox/index.js';
|
|
48
|
+
import '../checkboxRadioSwitcher-5b69d7bd.js';
|
|
49
|
+
import '../guid-8ddf77b3.js';
|
|
50
|
+
import '../index-2ad83e03.js';
|
|
51
|
+
import '../Tag/index.js';
|
|
52
|
+
import '../ValidatableTextInput/index.js';
|
|
53
|
+
import '../CellMeasurerCache-3741d716.js';
|
|
54
|
+
import '../hooks/useUpdate.js';
|
|
55
|
+
import '../hooks/useMutationObserver.js';
|
|
56
|
+
import '../index-b1e429a7.js';
|
|
57
|
+
import '../SkeletonLoader/index.js';
|
|
58
|
+
import '../Popover/index.js';
|
|
59
|
+
import '../Portal/index.js';
|
|
60
|
+
import '../Menu/index.js';
|
|
104
61
|
|
|
105
62
|
function WithTitle(_ref) {
|
|
106
63
|
let {
|
|
@@ -115,12 +72,12 @@ function WithTitle(_ref) {
|
|
|
115
72
|
}, restProps), actions), children);
|
|
116
73
|
}
|
|
117
74
|
WithTitle.propTypes = {
|
|
118
|
-
name:
|
|
119
|
-
actions:
|
|
120
|
-
children:
|
|
75
|
+
name: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
|
|
76
|
+
actions: PropTypes.node,
|
|
77
|
+
children: PropTypes.node
|
|
121
78
|
};
|
|
122
79
|
|
|
123
|
-
var css_248z$2 = "[data-gene-ui-version=\"
|
|
80
|
+
var css_248z$2 = "[data-gene-ui-version=\"2.12.2\"] .paper-actions{align-items:center;display:flex;flex-shrink:0}[data-gene-ui-version=\"2.12.2\"] .paper-actions>li{align-items:center;display:flex;padding:2rem}[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-left-actions{flex:auto}[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-left-actions>.dropdown-holder,[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-left-actions>.input-holder{max-width:25.5rem}html:not([dir=rtl]) .paper-actions .paper-left-actions>*+*{margin-left:2rem}html[dir=rtl] .paper-actions .paper-left-actions>*+*{margin-right:2rem}[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-right-actions{flex-shrink:0}html:not([dir=rtl]) .paper-actions .paper-right-actions>:not(.btn)+:not(.btn){margin-left:1.6rem}html[dir=rtl] .paper-actions .paper-right-actions>:not(.btn)+:not(.btn){margin-right:1.6rem}";
|
|
124
81
|
styleInject(css_248z$2);
|
|
125
82
|
|
|
126
83
|
function WithHeader(_ref) {
|
|
@@ -174,12 +131,12 @@ function WithHeader(_ref) {
|
|
|
174
131
|
}, actions)), children);
|
|
175
132
|
}
|
|
176
133
|
WithHeader.propTypes = {
|
|
177
|
-
withSearch:
|
|
178
|
-
actions:
|
|
179
|
-
leftHeaderActions:
|
|
180
|
-
handleSearch:
|
|
181
|
-
dropDownData:
|
|
182
|
-
checkAllText:
|
|
134
|
+
withSearch: PropTypes.bool,
|
|
135
|
+
actions: PropTypes.node,
|
|
136
|
+
leftHeaderActions: PropTypes.node,
|
|
137
|
+
handleSearch: PropTypes.func,
|
|
138
|
+
dropDownData: PropTypes.arrayOf(PropTypes.object),
|
|
139
|
+
checkAllText: PropTypes.string
|
|
183
140
|
};
|
|
184
141
|
WithHeader.defaultProps = {
|
|
185
142
|
withSearch: false,
|
|
@@ -203,10 +160,10 @@ function PaperWrapper(_ref) {
|
|
|
203
160
|
}, restProps), children);
|
|
204
161
|
}
|
|
205
162
|
PaperWrapper.propTypes = {
|
|
206
|
-
className:
|
|
207
|
-
children:
|
|
208
|
-
cornerRadius:
|
|
209
|
-
shadow:
|
|
163
|
+
className: PropTypes.string,
|
|
164
|
+
children: PropTypes.node.isRequired,
|
|
165
|
+
cornerRadius: PropTypes.string,
|
|
166
|
+
shadow: PropTypes.bool
|
|
210
167
|
};
|
|
211
168
|
PaperWrapper.defaultProps = {
|
|
212
169
|
shadow: true,
|
|
@@ -214,7 +171,7 @@ PaperWrapper.defaultProps = {
|
|
|
214
171
|
paperDirection: 'column'
|
|
215
172
|
};
|
|
216
173
|
|
|
217
|
-
var css_248z$1 = "[data-gene-ui-version=\"
|
|
174
|
+
var css_248z$1 = "[data-gene-ui-version=\"2.12.2\"] .pagination-drop{align-items:center;display:flex}html:not([dir=rtl]) .pagination-drop>*+*{margin-left:2rem}html[dir=rtl] .pagination-drop>*+*{margin-right:2rem}[data-gene-ui-version=\"2.12.2\"] .pagination-drop>p{font-weight:600}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder{align-items:center;border-top:1px solid rgba(var(--background-sc-rgb),.1);display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;padding:1rem;width:100%}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder>li{padding:1rem}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder>li:first-child{flex:auto}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder>li:last-child{flex-shrink:0}";
|
|
218
175
|
styleInject(css_248z$1);
|
|
219
176
|
|
|
220
177
|
function PaginationSelector(_ref) {
|
|
@@ -270,12 +227,12 @@ function PaginationSelector(_ref) {
|
|
|
270
227
|
}, controlledProps, paginationProps))));
|
|
271
228
|
}
|
|
272
229
|
PaginationSelector.propTypes = {
|
|
273
|
-
showSelector:
|
|
274
|
-
defaultOpenedPage:
|
|
275
|
-
showPagination:
|
|
276
|
-
noItemsText:
|
|
277
|
-
totalCount:
|
|
278
|
-
fabricateSelectorLabel:
|
|
230
|
+
showSelector: PropTypes.bool,
|
|
231
|
+
defaultOpenedPage: PropTypes.number,
|
|
232
|
+
showPagination: PropTypes.bool,
|
|
233
|
+
noItemsText: PropTypes.string,
|
|
234
|
+
totalCount: PropTypes.number.isRequired,
|
|
235
|
+
fabricateSelectorLabel: PropTypes.func
|
|
279
236
|
};
|
|
280
237
|
PaginationSelector.defaultProps = {
|
|
281
238
|
defaultOpenedPage: 1,
|
|
@@ -286,7 +243,7 @@ PaginationSelector.defaultProps = {
|
|
|
286
243
|
fabricateSelectorLabel: noop
|
|
287
244
|
};
|
|
288
245
|
|
|
289
|
-
var css_248z = "[data-gene-ui-version=\"
|
|
246
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .table-actions{align-items:center;display:flex;padding:1rem}[data-gene-ui-version=\"2.12.2\"] .table-actions>li{padding:1rem}[data-gene-ui-version=\"2.12.2\"] .table-actions .table-left-actions{flex:auto}[data-gene-ui-version=\"2.12.2\"] .table-actions .table-right-actions{flex-shrink:0}";
|
|
290
247
|
styleInject(css_248z);
|
|
291
248
|
|
|
292
249
|
function TableHeader(_ref) {
|
|
@@ -316,11 +273,11 @@ TableHeader.propTypes = {
|
|
|
316
273
|
/**
|
|
317
274
|
* Define is search bar will shown or no
|
|
318
275
|
*/
|
|
319
|
-
withSearch:
|
|
276
|
+
withSearch: PropTypes.bool,
|
|
320
277
|
/**
|
|
321
278
|
* Any valid react node
|
|
322
279
|
*/
|
|
323
|
-
headerActions:
|
|
280
|
+
headerActions: PropTypes.node
|
|
324
281
|
};
|
|
325
282
|
|
|
326
283
|
function WrapperTableWithHeader(_ref) {
|
|
@@ -350,15 +307,15 @@ TableTitle.propTypes = {
|
|
|
350
307
|
/**
|
|
351
308
|
* Any valid react node
|
|
352
309
|
*/
|
|
353
|
-
titleActions:
|
|
310
|
+
titleActions: PropTypes.node,
|
|
354
311
|
/**
|
|
355
312
|
* Value for title
|
|
356
313
|
*/
|
|
357
|
-
name:
|
|
314
|
+
name: PropTypes.string.isRequired,
|
|
358
315
|
/**
|
|
359
316
|
* Callback for refresh icon click
|
|
360
317
|
*/
|
|
361
|
-
onRefreshClick:
|
|
318
|
+
onRefreshClick: PropTypes.func
|
|
362
319
|
};
|
|
363
320
|
|
|
364
321
|
function WrapperTableTitle(_ref) {
|
|
@@ -537,31 +494,31 @@ PaginationTable.propTypes = {
|
|
|
537
494
|
/**
|
|
538
495
|
* Page number that must be opened by default
|
|
539
496
|
*/
|
|
540
|
-
defaultOpenedPage:
|
|
497
|
+
defaultOpenedPage: PropTypes.number,
|
|
541
498
|
/**
|
|
542
499
|
* Rows total count
|
|
543
500
|
*/
|
|
544
|
-
rowsCount:
|
|
501
|
+
rowsCount: PropTypes.number,
|
|
545
502
|
/**
|
|
546
503
|
* Data for selector dropdown
|
|
547
504
|
*/
|
|
548
|
-
selectorData:
|
|
505
|
+
selectorData: PropTypes.array,
|
|
549
506
|
/**
|
|
550
507
|
* Define pagination will be shown or no.
|
|
551
508
|
*/
|
|
552
|
-
withPagination:
|
|
509
|
+
withPagination: PropTypes.bool,
|
|
553
510
|
/**
|
|
554
511
|
* Define page selector will be shown or no.
|
|
555
512
|
*/
|
|
556
|
-
withPageSelector:
|
|
513
|
+
withPageSelector: PropTypes.bool,
|
|
557
514
|
/**
|
|
558
515
|
* Default value for selector dropdown
|
|
559
516
|
*/
|
|
560
|
-
selectorDefaultValue:
|
|
517
|
+
selectorDefaultValue: PropTypes.number,
|
|
561
518
|
/**
|
|
562
519
|
* Value for selector dropdown
|
|
563
520
|
*/
|
|
564
|
-
selectorValue:
|
|
521
|
+
selectorValue: PropTypes.number
|
|
565
522
|
};
|
|
566
523
|
PaginationTable.defaultProps = {
|
|
567
524
|
withPageSelector: true,
|
|
@@ -606,9 +563,9 @@ function WrapperTableContainer(_ref) {
|
|
|
606
563
|
}, headerProps))));
|
|
607
564
|
}
|
|
608
565
|
WrapperTableContainer.propTypes = {
|
|
609
|
-
name:
|
|
610
|
-
titleActions:
|
|
611
|
-
headerActions:
|
|
566
|
+
name: PropTypes.string.isRequired,
|
|
567
|
+
titleActions: PropTypes.node,
|
|
568
|
+
headerActions: PropTypes.node,
|
|
612
569
|
...TableHeader.propTypes
|
|
613
570
|
};
|
|
614
571
|
|
|
@@ -16558,6 +16515,12 @@ const exportToCSV = async (fileName, data, columns) => {
|
|
|
16558
16515
|
return await createFile(file, fileName, 'csv');
|
|
16559
16516
|
};
|
|
16560
16517
|
|
|
16518
|
+
const stopEvent = function (event) {
|
|
16519
|
+
let isPreventNeeded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
16520
|
+
event.stopPropagation();
|
|
16521
|
+
isPreventNeeded && event.preventDefault();
|
|
16522
|
+
};
|
|
16523
|
+
|
|
16561
16524
|
function ExportItem(_ref) {
|
|
16562
16525
|
let {
|
|
16563
16526
|
type,
|
|
@@ -16720,14 +16683,14 @@ function Export(_ref) {
|
|
|
16720
16683
|
}, exportButtonText));
|
|
16721
16684
|
}
|
|
16722
16685
|
Export.propTypes = {
|
|
16723
|
-
fileName:
|
|
16724
|
-
exportButtonText:
|
|
16725
|
-
exportButtonTooltipText:
|
|
16726
|
-
csvIconTooltipText:
|
|
16727
|
-
xlsIconTooltipText:
|
|
16728
|
-
isDisable:
|
|
16729
|
-
tableColumns:
|
|
16730
|
-
getDataForExport:
|
|
16686
|
+
fileName: PropTypes.string.isRequired,
|
|
16687
|
+
exportButtonText: PropTypes.string,
|
|
16688
|
+
exportButtonTooltipText: PropTypes.string,
|
|
16689
|
+
csvIconTooltipText: PropTypes.string,
|
|
16690
|
+
xlsIconTooltipText: PropTypes.string,
|
|
16691
|
+
isDisable: PropTypes.bool,
|
|
16692
|
+
tableColumns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
16693
|
+
getDataForExport: PropTypes.func
|
|
16731
16694
|
};
|
|
16732
16695
|
Export.defaultProps = {
|
|
16733
16696
|
isDisable: false,
|
|
@@ -16912,92 +16875,92 @@ ComboTable.propTypes = {
|
|
|
16912
16875
|
* Fires event when edit button is clicked,
|
|
16913
16876
|
* (event: Event) => void
|
|
16914
16877
|
*/
|
|
16915
|
-
onEdit:
|
|
16878
|
+
onEdit: PropTypes.func,
|
|
16916
16879
|
/**
|
|
16917
16880
|
* Fires event when clicked on `Save` or `Cancel` buttons
|
|
16918
16881
|
* (save: Boolean) => void
|
|
16919
16882
|
*/
|
|
16920
|
-
onSaveChanges:
|
|
16883
|
+
onSaveChanges: PropTypes.func,
|
|
16921
16884
|
/**
|
|
16922
16885
|
* Enables searchbar with dropdown on top left corner under the title of the table
|
|
16923
16886
|
*/
|
|
16924
|
-
withSearch:
|
|
16887
|
+
withSearch: PropTypes.bool,
|
|
16925
16888
|
/**
|
|
16926
16889
|
* Enables export dropdown on the top right corner of the table
|
|
16927
16890
|
*/
|
|
16928
|
-
withExport:
|
|
16891
|
+
withExport: PropTypes.bool,
|
|
16929
16892
|
/**
|
|
16930
16893
|
* Disable Save button if false
|
|
16931
16894
|
*/
|
|
16932
|
-
isSaveActive:
|
|
16895
|
+
isSaveActive: PropTypes.bool,
|
|
16933
16896
|
/**
|
|
16934
16897
|
* Enable Edit mode from outside
|
|
16935
16898
|
*/
|
|
16936
|
-
editActiveOutside:
|
|
16899
|
+
editActiveOutside: PropTypes.bool,
|
|
16937
16900
|
/**
|
|
16938
16901
|
* Any valid React node,
|
|
16939
16902
|
* Displays on the right corner of the table's title
|
|
16940
16903
|
*/
|
|
16941
|
-
titleActions:
|
|
16904
|
+
titleActions: PropTypes.node,
|
|
16942
16905
|
/**
|
|
16943
16906
|
* Any valid React node,
|
|
16944
16907
|
* Displays on the right top corner above table's title
|
|
16945
16908
|
*/
|
|
16946
|
-
headerActions:
|
|
16909
|
+
headerActions: PropTypes.node,
|
|
16947
16910
|
/**
|
|
16948
16911
|
* Displays refresh button and handles click event,
|
|
16949
16912
|
* (event: Event) => void
|
|
16950
16913
|
*/
|
|
16951
|
-
onRefreshClick:
|
|
16914
|
+
onRefreshClick: PropTypes.func,
|
|
16952
16915
|
/**
|
|
16953
16916
|
* Custom text for edit button
|
|
16954
16917
|
*/
|
|
16955
|
-
editButtonText:
|
|
16918
|
+
editButtonText: PropTypes.string,
|
|
16956
16919
|
/**
|
|
16957
16920
|
* Table's name
|
|
16958
16921
|
*/
|
|
16959
|
-
name:
|
|
16922
|
+
name: PropTypes.node.isRequired,
|
|
16960
16923
|
/**
|
|
16961
16924
|
* Custom text for approving button in edit mode
|
|
16962
16925
|
*/
|
|
16963
|
-
editApprovalText:
|
|
16926
|
+
editApprovalText: PropTypes.string,
|
|
16964
16927
|
/**
|
|
16965
16928
|
* Custom text for rejecting button in edit mode
|
|
16966
16929
|
*/
|
|
16967
|
-
editRejectionText:
|
|
16930
|
+
editRejectionText: PropTypes.string,
|
|
16968
16931
|
/**
|
|
16969
16932
|
* additional className which will apply to table loader container
|
|
16970
16933
|
*/
|
|
16971
|
-
className:
|
|
16934
|
+
className: PropTypes.string,
|
|
16972
16935
|
/**
|
|
16973
16936
|
* Hides dropdown on search if true
|
|
16974
16937
|
*/
|
|
16975
|
-
hideSearchDropdown:
|
|
16938
|
+
hideSearchDropdown: PropTypes.bool,
|
|
16976
16939
|
/**
|
|
16977
16940
|
* Displays refresh button on top right corner
|
|
16978
16941
|
*/
|
|
16979
|
-
showRefreshButton:
|
|
16942
|
+
showRefreshButton: PropTypes.bool,
|
|
16980
16943
|
/**
|
|
16981
16944
|
* Initial sort state
|
|
16982
16945
|
*/
|
|
16983
|
-
defaultSortType:
|
|
16946
|
+
defaultSortType: PropTypes.oneOf(['asc', 'desc']),
|
|
16984
16947
|
/**
|
|
16985
16948
|
* Initially sorted column
|
|
16986
16949
|
*/
|
|
16987
|
-
defaultSortedColumn:
|
|
16950
|
+
defaultSortedColumn: PropTypes.string,
|
|
16988
16951
|
/**
|
|
16989
16952
|
* Exporting file name
|
|
16990
16953
|
*/
|
|
16991
|
-
exportedFileName:
|
|
16954
|
+
exportedFileName: PropTypes.string,
|
|
16992
16955
|
/**
|
|
16993
16956
|
* Text for refresh button tooltip
|
|
16994
16957
|
*/
|
|
16995
|
-
refreshButtonTooltipText:
|
|
16958
|
+
refreshButtonTooltipText: PropTypes.string,
|
|
16996
16959
|
/**
|
|
16997
16960
|
* Customize pagination selectors' label text
|
|
16998
16961
|
* (currentValue: Number, totalCount: Number) => void
|
|
16999
16962
|
*/
|
|
17000
|
-
fabricateSelectorLabel:
|
|
16963
|
+
fabricateSelectorLabel: PropTypes.func,
|
|
17001
16964
|
/**
|
|
17002
16965
|
* getDataForExport: (type: string) => array || object
|
|
17003
16966
|
* with the help of these functions you can modify the exported data in two ways
|
|
@@ -17007,7 +16970,7 @@ ComboTable.propTypes = {
|
|
|
17007
16970
|
* (but don't forget, there's still exportedFileName, so if you add name to exportedFileName will be useless and will not be used)
|
|
17008
16971
|
* return { columns: [{...}, ...], data: [{...}, ...], name: 'file name' }
|
|
17009
16972
|
*/
|
|
17010
|
-
getDataForExport:
|
|
16973
|
+
getDataForExport: PropTypes.func,
|
|
17011
16974
|
...PaginationTable.propTypes
|
|
17012
16975
|
};
|
|
17013
16976
|
ComboTable.defaultProps = {
|