@geneui/components 2.11.2 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{ActionableList.js → ActionableList/index.js} +83 -152
- package/{AdvancedSearch.js → AdvancedSearch/index.js} +291 -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 +40 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +118 -165
- package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-bc2163c1.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} +46 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-0199942c.js → DatePickerInput/index.js} +103 -89
- 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 +86 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +42 -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 +287 -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/{index-5e96cb4d.js → PopoverV2/index.js} +57 -1006
- 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-8b9c3afa.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} +132 -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 +556 -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} +45 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +68 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +34 -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-45eafea6.js +90 -0
- package/index-583e0b30.js +4 -0
- package/{index-8c98317a.js → index-78d2ea5b.js} +678 -752
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index-bd525a3a.js +10054 -0
- package/index.d.ts +115 -0
- package/index.js +138 -113
- package/index.mobile.d.ts +16 -0
- package/jsx-runtime-57b40d9e.js +957 -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,64 @@
|
|
|
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-bd525a3a.js';
|
|
12
|
+
import { T as Table, s as searchConfigs, a as sortHandler, u as useSortConfigs } from '../index-78d2ea5b.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 PopoverV2 from '../PopoverV2/index.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 '
|
|
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 '../Popover/index.js';
|
|
46
|
+
import '../index-122432cd.js';
|
|
47
|
+
import '../Portal/index.js';
|
|
48
|
+
import '../guid-8ddf77b3.js';
|
|
49
|
+
import '../Checkbox/index.js';
|
|
50
|
+
import '../checkboxRadioSwitcher-5b69d7bd.js';
|
|
51
|
+
import '../index-583e0b30.js';
|
|
52
|
+
import '../Tag/index.js';
|
|
53
|
+
import '../ValidatableTextInput/index.js';
|
|
54
|
+
import '../CellMeasurerCache-bc2163c1.js';
|
|
55
|
+
import '../hooks/useUpdate.js';
|
|
56
|
+
import '../hooks/useMutationObserver.js';
|
|
57
|
+
import '../index-b1e429a7.js';
|
|
58
|
+
import '../SkeletonLoader/index.js';
|
|
59
|
+
import '../Menu/index.js';
|
|
60
|
+
import '../debounce-4419bc2f.js';
|
|
61
|
+
import '../jsx-runtime-57b40d9e.js';
|
|
104
62
|
|
|
105
63
|
function WithTitle(_ref) {
|
|
106
64
|
let {
|
|
@@ -115,12 +73,12 @@ function WithTitle(_ref) {
|
|
|
115
73
|
}, restProps), actions), children);
|
|
116
74
|
}
|
|
117
75
|
WithTitle.propTypes = {
|
|
118
|
-
name:
|
|
119
|
-
actions:
|
|
120
|
-
children:
|
|
76
|
+
name: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
|
|
77
|
+
actions: PropTypes.node,
|
|
78
|
+
children: PropTypes.node
|
|
121
79
|
};
|
|
122
80
|
|
|
123
|
-
var css_248z$2 = "[data-gene-ui-version=\"
|
|
81
|
+
var css_248z$2 = "[data-gene-ui-version=\"2.12.1\"] .paper-actions{align-items:center;display:flex;flex-shrink:0}[data-gene-ui-version=\"2.12.1\"] .paper-actions>li{align-items:center;display:flex;padding:2rem}[data-gene-ui-version=\"2.12.1\"] .paper-actions .paper-left-actions{flex:auto}[data-gene-ui-version=\"2.12.1\"] .paper-actions .paper-left-actions>.dropdown-holder,[data-gene-ui-version=\"2.12.1\"] .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.1\"] .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
82
|
styleInject(css_248z$2);
|
|
125
83
|
|
|
126
84
|
function WithHeader(_ref) {
|
|
@@ -174,12 +132,12 @@ function WithHeader(_ref) {
|
|
|
174
132
|
}, actions)), children);
|
|
175
133
|
}
|
|
176
134
|
WithHeader.propTypes = {
|
|
177
|
-
withSearch:
|
|
178
|
-
actions:
|
|
179
|
-
leftHeaderActions:
|
|
180
|
-
handleSearch:
|
|
181
|
-
dropDownData:
|
|
182
|
-
checkAllText:
|
|
135
|
+
withSearch: PropTypes.bool,
|
|
136
|
+
actions: PropTypes.node,
|
|
137
|
+
leftHeaderActions: PropTypes.node,
|
|
138
|
+
handleSearch: PropTypes.func,
|
|
139
|
+
dropDownData: PropTypes.arrayOf(PropTypes.object),
|
|
140
|
+
checkAllText: PropTypes.string
|
|
183
141
|
};
|
|
184
142
|
WithHeader.defaultProps = {
|
|
185
143
|
withSearch: false,
|
|
@@ -203,10 +161,10 @@ function PaperWrapper(_ref) {
|
|
|
203
161
|
}, restProps), children);
|
|
204
162
|
}
|
|
205
163
|
PaperWrapper.propTypes = {
|
|
206
|
-
className:
|
|
207
|
-
children:
|
|
208
|
-
cornerRadius:
|
|
209
|
-
shadow:
|
|
164
|
+
className: PropTypes.string,
|
|
165
|
+
children: PropTypes.node.isRequired,
|
|
166
|
+
cornerRadius: PropTypes.string,
|
|
167
|
+
shadow: PropTypes.bool
|
|
210
168
|
};
|
|
211
169
|
PaperWrapper.defaultProps = {
|
|
212
170
|
shadow: true,
|
|
@@ -214,7 +172,7 @@ PaperWrapper.defaultProps = {
|
|
|
214
172
|
paperDirection: 'column'
|
|
215
173
|
};
|
|
216
174
|
|
|
217
|
-
var css_248z$1 = "[data-gene-ui-version=\"
|
|
175
|
+
var css_248z$1 = "[data-gene-ui-version=\"2.12.1\"] .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.1\"] .pagination-drop>p{font-weight:600}[data-gene-ui-version=\"2.12.1\"] .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.1\"] .ta-pagination-holder>li{padding:1rem}[data-gene-ui-version=\"2.12.1\"] .ta-pagination-holder>li:first-child{flex:auto}[data-gene-ui-version=\"2.12.1\"] .ta-pagination-holder>li:last-child{flex-shrink:0}";
|
|
218
176
|
styleInject(css_248z$1);
|
|
219
177
|
|
|
220
178
|
function PaginationSelector(_ref) {
|
|
@@ -270,12 +228,12 @@ function PaginationSelector(_ref) {
|
|
|
270
228
|
}, controlledProps, paginationProps))));
|
|
271
229
|
}
|
|
272
230
|
PaginationSelector.propTypes = {
|
|
273
|
-
showSelector:
|
|
274
|
-
defaultOpenedPage:
|
|
275
|
-
showPagination:
|
|
276
|
-
noItemsText:
|
|
277
|
-
totalCount:
|
|
278
|
-
fabricateSelectorLabel:
|
|
231
|
+
showSelector: PropTypes.bool,
|
|
232
|
+
defaultOpenedPage: PropTypes.number,
|
|
233
|
+
showPagination: PropTypes.bool,
|
|
234
|
+
noItemsText: PropTypes.string,
|
|
235
|
+
totalCount: PropTypes.number.isRequired,
|
|
236
|
+
fabricateSelectorLabel: PropTypes.func
|
|
279
237
|
};
|
|
280
238
|
PaginationSelector.defaultProps = {
|
|
281
239
|
defaultOpenedPage: 1,
|
|
@@ -286,7 +244,7 @@ PaginationSelector.defaultProps = {
|
|
|
286
244
|
fabricateSelectorLabel: noop
|
|
287
245
|
};
|
|
288
246
|
|
|
289
|
-
var css_248z = "[data-gene-ui-version=\"
|
|
247
|
+
var css_248z = "[data-gene-ui-version=\"2.12.1\"] .table-actions{align-items:center;display:flex;padding:1rem}[data-gene-ui-version=\"2.12.1\"] .table-actions>li{padding:1rem}[data-gene-ui-version=\"2.12.1\"] .table-actions .table-left-actions{flex:auto}[data-gene-ui-version=\"2.12.1\"] .table-actions .table-right-actions{flex-shrink:0}";
|
|
290
248
|
styleInject(css_248z);
|
|
291
249
|
|
|
292
250
|
function TableHeader(_ref) {
|
|
@@ -316,11 +274,11 @@ TableHeader.propTypes = {
|
|
|
316
274
|
/**
|
|
317
275
|
* Define is search bar will shown or no
|
|
318
276
|
*/
|
|
319
|
-
withSearch:
|
|
277
|
+
withSearch: PropTypes.bool,
|
|
320
278
|
/**
|
|
321
279
|
* Any valid react node
|
|
322
280
|
*/
|
|
323
|
-
headerActions:
|
|
281
|
+
headerActions: PropTypes.node
|
|
324
282
|
};
|
|
325
283
|
|
|
326
284
|
function WrapperTableWithHeader(_ref) {
|
|
@@ -350,15 +308,15 @@ TableTitle.propTypes = {
|
|
|
350
308
|
/**
|
|
351
309
|
* Any valid react node
|
|
352
310
|
*/
|
|
353
|
-
titleActions:
|
|
311
|
+
titleActions: PropTypes.node,
|
|
354
312
|
/**
|
|
355
313
|
* Value for title
|
|
356
314
|
*/
|
|
357
|
-
name:
|
|
315
|
+
name: PropTypes.string.isRequired,
|
|
358
316
|
/**
|
|
359
317
|
* Callback for refresh icon click
|
|
360
318
|
*/
|
|
361
|
-
onRefreshClick:
|
|
319
|
+
onRefreshClick: PropTypes.func
|
|
362
320
|
};
|
|
363
321
|
|
|
364
322
|
function WrapperTableTitle(_ref) {
|
|
@@ -537,31 +495,31 @@ PaginationTable.propTypes = {
|
|
|
537
495
|
/**
|
|
538
496
|
* Page number that must be opened by default
|
|
539
497
|
*/
|
|
540
|
-
defaultOpenedPage:
|
|
498
|
+
defaultOpenedPage: PropTypes.number,
|
|
541
499
|
/**
|
|
542
500
|
* Rows total count
|
|
543
501
|
*/
|
|
544
|
-
rowsCount:
|
|
502
|
+
rowsCount: PropTypes.number,
|
|
545
503
|
/**
|
|
546
504
|
* Data for selector dropdown
|
|
547
505
|
*/
|
|
548
|
-
selectorData:
|
|
506
|
+
selectorData: PropTypes.array,
|
|
549
507
|
/**
|
|
550
508
|
* Define pagination will be shown or no.
|
|
551
509
|
*/
|
|
552
|
-
withPagination:
|
|
510
|
+
withPagination: PropTypes.bool,
|
|
553
511
|
/**
|
|
554
512
|
* Define page selector will be shown or no.
|
|
555
513
|
*/
|
|
556
|
-
withPageSelector:
|
|
514
|
+
withPageSelector: PropTypes.bool,
|
|
557
515
|
/**
|
|
558
516
|
* Default value for selector dropdown
|
|
559
517
|
*/
|
|
560
|
-
selectorDefaultValue:
|
|
518
|
+
selectorDefaultValue: PropTypes.number,
|
|
561
519
|
/**
|
|
562
520
|
* Value for selector dropdown
|
|
563
521
|
*/
|
|
564
|
-
selectorValue:
|
|
522
|
+
selectorValue: PropTypes.number
|
|
565
523
|
};
|
|
566
524
|
PaginationTable.defaultProps = {
|
|
567
525
|
withPageSelector: true,
|
|
@@ -606,9 +564,9 @@ function WrapperTableContainer(_ref) {
|
|
|
606
564
|
}, headerProps))));
|
|
607
565
|
}
|
|
608
566
|
WrapperTableContainer.propTypes = {
|
|
609
|
-
name:
|
|
610
|
-
titleActions:
|
|
611
|
-
headerActions:
|
|
567
|
+
name: PropTypes.string.isRequired,
|
|
568
|
+
titleActions: PropTypes.node,
|
|
569
|
+
headerActions: PropTypes.node,
|
|
612
570
|
...TableHeader.propTypes
|
|
613
571
|
};
|
|
614
572
|
|
|
@@ -16558,6 +16516,12 @@ const exportToCSV = async (fileName, data, columns) => {
|
|
|
16558
16516
|
return await createFile(file, fileName, 'csv');
|
|
16559
16517
|
};
|
|
16560
16518
|
|
|
16519
|
+
const stopEvent = function (event) {
|
|
16520
|
+
let isPreventNeeded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
16521
|
+
event.stopPropagation();
|
|
16522
|
+
isPreventNeeded && event.preventDefault();
|
|
16523
|
+
};
|
|
16524
|
+
|
|
16561
16525
|
function ExportItem(_ref) {
|
|
16562
16526
|
let {
|
|
16563
16527
|
type,
|
|
@@ -16720,14 +16684,14 @@ function Export(_ref) {
|
|
|
16720
16684
|
}, exportButtonText));
|
|
16721
16685
|
}
|
|
16722
16686
|
Export.propTypes = {
|
|
16723
|
-
fileName:
|
|
16724
|
-
exportButtonText:
|
|
16725
|
-
exportButtonTooltipText:
|
|
16726
|
-
csvIconTooltipText:
|
|
16727
|
-
xlsIconTooltipText:
|
|
16728
|
-
isDisable:
|
|
16729
|
-
tableColumns:
|
|
16730
|
-
getDataForExport:
|
|
16687
|
+
fileName: PropTypes.string.isRequired,
|
|
16688
|
+
exportButtonText: PropTypes.string,
|
|
16689
|
+
exportButtonTooltipText: PropTypes.string,
|
|
16690
|
+
csvIconTooltipText: PropTypes.string,
|
|
16691
|
+
xlsIconTooltipText: PropTypes.string,
|
|
16692
|
+
isDisable: PropTypes.bool,
|
|
16693
|
+
tableColumns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
16694
|
+
getDataForExport: PropTypes.func
|
|
16731
16695
|
};
|
|
16732
16696
|
Export.defaultProps = {
|
|
16733
16697
|
isDisable: false,
|
|
@@ -16912,92 +16876,92 @@ ComboTable.propTypes = {
|
|
|
16912
16876
|
* Fires event when edit button is clicked,
|
|
16913
16877
|
* (event: Event) => void
|
|
16914
16878
|
*/
|
|
16915
|
-
onEdit:
|
|
16879
|
+
onEdit: PropTypes.func,
|
|
16916
16880
|
/**
|
|
16917
16881
|
* Fires event when clicked on `Save` or `Cancel` buttons
|
|
16918
16882
|
* (save: Boolean) => void
|
|
16919
16883
|
*/
|
|
16920
|
-
onSaveChanges:
|
|
16884
|
+
onSaveChanges: PropTypes.func,
|
|
16921
16885
|
/**
|
|
16922
16886
|
* Enables searchbar with dropdown on top left corner under the title of the table
|
|
16923
16887
|
*/
|
|
16924
|
-
withSearch:
|
|
16888
|
+
withSearch: PropTypes.bool,
|
|
16925
16889
|
/**
|
|
16926
16890
|
* Enables export dropdown on the top right corner of the table
|
|
16927
16891
|
*/
|
|
16928
|
-
withExport:
|
|
16892
|
+
withExport: PropTypes.bool,
|
|
16929
16893
|
/**
|
|
16930
16894
|
* Disable Save button if false
|
|
16931
16895
|
*/
|
|
16932
|
-
isSaveActive:
|
|
16896
|
+
isSaveActive: PropTypes.bool,
|
|
16933
16897
|
/**
|
|
16934
16898
|
* Enable Edit mode from outside
|
|
16935
16899
|
*/
|
|
16936
|
-
editActiveOutside:
|
|
16900
|
+
editActiveOutside: PropTypes.bool,
|
|
16937
16901
|
/**
|
|
16938
16902
|
* Any valid React node,
|
|
16939
16903
|
* Displays on the right corner of the table's title
|
|
16940
16904
|
*/
|
|
16941
|
-
titleActions:
|
|
16905
|
+
titleActions: PropTypes.node,
|
|
16942
16906
|
/**
|
|
16943
16907
|
* Any valid React node,
|
|
16944
16908
|
* Displays on the right top corner above table's title
|
|
16945
16909
|
*/
|
|
16946
|
-
headerActions:
|
|
16910
|
+
headerActions: PropTypes.node,
|
|
16947
16911
|
/**
|
|
16948
16912
|
* Displays refresh button and handles click event,
|
|
16949
16913
|
* (event: Event) => void
|
|
16950
16914
|
*/
|
|
16951
|
-
onRefreshClick:
|
|
16915
|
+
onRefreshClick: PropTypes.func,
|
|
16952
16916
|
/**
|
|
16953
16917
|
* Custom text for edit button
|
|
16954
16918
|
*/
|
|
16955
|
-
editButtonText:
|
|
16919
|
+
editButtonText: PropTypes.string,
|
|
16956
16920
|
/**
|
|
16957
16921
|
* Table's name
|
|
16958
16922
|
*/
|
|
16959
|
-
name:
|
|
16923
|
+
name: PropTypes.node.isRequired,
|
|
16960
16924
|
/**
|
|
16961
16925
|
* Custom text for approving button in edit mode
|
|
16962
16926
|
*/
|
|
16963
|
-
editApprovalText:
|
|
16927
|
+
editApprovalText: PropTypes.string,
|
|
16964
16928
|
/**
|
|
16965
16929
|
* Custom text for rejecting button in edit mode
|
|
16966
16930
|
*/
|
|
16967
|
-
editRejectionText:
|
|
16931
|
+
editRejectionText: PropTypes.string,
|
|
16968
16932
|
/**
|
|
16969
16933
|
* additional className which will apply to table loader container
|
|
16970
16934
|
*/
|
|
16971
|
-
className:
|
|
16935
|
+
className: PropTypes.string,
|
|
16972
16936
|
/**
|
|
16973
16937
|
* Hides dropdown on search if true
|
|
16974
16938
|
*/
|
|
16975
|
-
hideSearchDropdown:
|
|
16939
|
+
hideSearchDropdown: PropTypes.bool,
|
|
16976
16940
|
/**
|
|
16977
16941
|
* Displays refresh button on top right corner
|
|
16978
16942
|
*/
|
|
16979
|
-
showRefreshButton:
|
|
16943
|
+
showRefreshButton: PropTypes.bool,
|
|
16980
16944
|
/**
|
|
16981
16945
|
* Initial sort state
|
|
16982
16946
|
*/
|
|
16983
|
-
defaultSortType:
|
|
16947
|
+
defaultSortType: PropTypes.oneOf(['asc', 'desc']),
|
|
16984
16948
|
/**
|
|
16985
16949
|
* Initially sorted column
|
|
16986
16950
|
*/
|
|
16987
|
-
defaultSortedColumn:
|
|
16951
|
+
defaultSortedColumn: PropTypes.string,
|
|
16988
16952
|
/**
|
|
16989
16953
|
* Exporting file name
|
|
16990
16954
|
*/
|
|
16991
|
-
exportedFileName:
|
|
16955
|
+
exportedFileName: PropTypes.string,
|
|
16992
16956
|
/**
|
|
16993
16957
|
* Text for refresh button tooltip
|
|
16994
16958
|
*/
|
|
16995
|
-
refreshButtonTooltipText:
|
|
16959
|
+
refreshButtonTooltipText: PropTypes.string,
|
|
16996
16960
|
/**
|
|
16997
16961
|
* Customize pagination selectors' label text
|
|
16998
16962
|
* (currentValue: Number, totalCount: Number) => void
|
|
16999
16963
|
*/
|
|
17000
|
-
fabricateSelectorLabel:
|
|
16964
|
+
fabricateSelectorLabel: PropTypes.func,
|
|
17001
16965
|
/**
|
|
17002
16966
|
* getDataForExport: (type: string) => array || object
|
|
17003
16967
|
* with the help of these functions you can modify the exported data in two ways
|
|
@@ -17007,7 +16971,7 @@ ComboTable.propTypes = {
|
|
|
17007
16971
|
* (but don't forget, there's still exportedFileName, so if you add name to exportedFileName will be useless and will not be used)
|
|
17008
16972
|
* return { columns: [{...}, ...], data: [{...}, ...], name: 'file name' }
|
|
17009
16973
|
*/
|
|
17010
|
-
getDataForExport:
|
|
16974
|
+
getDataForExport: PropTypes.func,
|
|
17011
16975
|
...PaginationTable.propTypes
|
|
17012
16976
|
};
|
|
17013
16977
|
ComboTable.defaultProps = {
|