orc-shared 1.2.2-dev.0 → 1.2.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/dist/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,83 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.useListState = exports.default = exports.Table = exports.ROW_HEIGHT = exports.PlaceholderCell = exports.PlaceholderBox = exports.Placeholder = exports.List = exports.HEADER_HEIGHT = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
-
|
|
12
8
|
var _recompose = require("recompose");
|
|
13
|
-
|
|
14
9
|
var _utils = require("../../utils");
|
|
15
|
-
|
|
16
10
|
var _withScrollBox = _interopRequireDefault(require("../../hocs/withScrollBox"));
|
|
17
|
-
|
|
18
11
|
var _withInfiniteScroll = _interopRequireDefault(require("../../hocs/withInfiniteScroll"));
|
|
19
|
-
|
|
20
12
|
var _Row = _interopRequireDefault(require("./Row"));
|
|
21
|
-
|
|
22
13
|
var _HeadRow = _interopRequireDefault(require("./HeadRow"));
|
|
23
|
-
|
|
24
14
|
var _useViewState3 = _interopRequireDefault(require("../../hooks/useViewState"));
|
|
25
|
-
|
|
26
15
|
var _enhanceColumnDefs = _interopRequireDefault(require("./enhanceColumnDefs"));
|
|
27
|
-
|
|
28
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
17
|
(function () {
|
|
31
18
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
32
19
|
enterModule && enterModule(module);
|
|
33
20
|
})();
|
|
34
|
-
|
|
35
21
|
(function () {
|
|
36
22
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
37
23
|
enterModule && enterModule(module);
|
|
38
24
|
})();
|
|
39
|
-
|
|
40
25
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
|
-
|
|
42
26
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
43
|
-
|
|
44
27
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
45
|
-
|
|
46
28
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
47
|
-
|
|
48
29
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
49
|
-
|
|
50
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
|
-
|
|
52
31
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
53
32
|
return a;
|
|
54
33
|
};
|
|
55
|
-
|
|
56
34
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
57
35
|
return a;
|
|
58
36
|
};
|
|
59
|
-
|
|
60
37
|
var PlaceholderCell = _styledComponents.default.div.withConfig({
|
|
61
38
|
displayName: "List__PlaceholderCell",
|
|
62
39
|
componentId: "sc-dohdkx-0"
|
|
63
|
-
})(["height:", "px;display:flex;justify-content:center;"],
|
|
64
|
-
/* istanbul ignore next*/
|
|
65
|
-
function (props) {
|
|
40
|
+
})(["height:", "px;display:flex;justify-content:center;"], /* istanbul ignore next*/function (props) {
|
|
66
41
|
return props.cssHeight || 100;
|
|
67
42
|
});
|
|
68
|
-
|
|
69
43
|
exports.PlaceholderCell = PlaceholderCell;
|
|
70
|
-
|
|
71
44
|
var PlaceholderBox = _styledComponents.default.div.withConfig({
|
|
72
45
|
displayName: "List__PlaceholderBox",
|
|
73
46
|
componentId: "sc-dohdkx-1"
|
|
74
47
|
})(["padding-top:30px;width:100%;margin:auto;"]);
|
|
75
|
-
|
|
76
48
|
exports.PlaceholderBox = PlaceholderBox;
|
|
77
|
-
|
|
78
49
|
var Placeholder = function Placeholder(_ref) {
|
|
79
50
|
var width = _ref.width,
|
|
80
|
-
|
|
81
|
-
|
|
51
|
+
height = _ref.height,
|
|
52
|
+
children = _ref.children;
|
|
82
53
|
return /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
|
|
83
54
|
colSpan: width,
|
|
84
55
|
style: {
|
|
@@ -88,116 +59,95 @@ var Placeholder = function Placeholder(_ref) {
|
|
|
88
59
|
cssHeight: height
|
|
89
60
|
}, /*#__PURE__*/_react.default.createElement(PlaceholderBox, null, children))));
|
|
90
61
|
};
|
|
91
|
-
|
|
92
62
|
exports.Placeholder = Placeholder;
|
|
93
63
|
Placeholder.displayName = "Placeholder";
|
|
94
|
-
|
|
95
64
|
var Table = _styledComponents.default.table.withConfig({
|
|
96
65
|
displayName: "List__Table",
|
|
97
66
|
componentId: "sc-dohdkx-2"
|
|
98
67
|
})(["border-spacing:0;table-layout:fixed;width:100%;font-size:13px;"]);
|
|
99
|
-
|
|
100
68
|
exports.Table = Table;
|
|
101
69
|
var HEADER_HEIGHT = 41;
|
|
102
70
|
exports.HEADER_HEIGHT = HEADER_HEIGHT;
|
|
103
71
|
var ROW_HEIGHT = 51;
|
|
104
72
|
exports.ROW_HEIGHT = ROW_HEIGHT;
|
|
105
|
-
|
|
106
73
|
var calculateVirtualization = function calculateVirtualization(virtual, scrollTop, scrollBuffer, height, rows) {
|
|
107
74
|
var virtualFilter, heightAbove, heightBelow;
|
|
108
|
-
|
|
109
75
|
if (virtual) {
|
|
110
76
|
var correctedScrollTop = scrollTop - HEADER_HEIGHT; // Subtract header height
|
|
111
|
-
|
|
112
77
|
var firstIn = Math.floor(correctedScrollTop / ROW_HEIGHT);
|
|
113
78
|
var firstShow = Math.max(firstIn - scrollBuffer, 0);
|
|
114
79
|
var lastIn = Math.ceil((correctedScrollTop + height) / ROW_HEIGHT);
|
|
115
80
|
var lastShow = Math.min(lastIn + scrollBuffer, rows.length);
|
|
116
|
-
|
|
117
81
|
virtualFilter = function virtualFilter(index) {
|
|
118
82
|
return index >= firstShow && index < lastShow;
|
|
119
83
|
};
|
|
120
|
-
|
|
121
84
|
heightAbove = firstShow * ROW_HEIGHT;
|
|
122
85
|
heightBelow = (rows.length - lastShow) * ROW_HEIGHT;
|
|
123
86
|
} else {
|
|
124
87
|
virtualFilter = function virtualFilter() {
|
|
125
88
|
return true;
|
|
126
89
|
};
|
|
127
|
-
|
|
128
90
|
heightAbove = 0;
|
|
129
91
|
heightBelow = 0;
|
|
130
92
|
}
|
|
131
|
-
|
|
132
93
|
return {
|
|
133
94
|
virtualFilter: virtualFilter,
|
|
134
95
|
heightAbove: heightAbove,
|
|
135
96
|
heightBelow: heightBelow
|
|
136
97
|
};
|
|
137
98
|
};
|
|
138
|
-
|
|
139
99
|
var useListState = function useListState(name, columnDefs) {
|
|
140
100
|
var _useViewState = (0, _useViewState3.default)(name),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
101
|
+
_useViewState2 = _slicedToArray(_useViewState, 2),
|
|
102
|
+
viewState = _useViewState2[0],
|
|
103
|
+
updateViewState = _useViewState2[1];
|
|
145
104
|
var _viewState$selection = viewState.selection,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
105
|
+
selection = _viewState$selection === void 0 ? [] : _viewState$selection,
|
|
106
|
+
_viewState$sorting = viewState.sorting,
|
|
107
|
+
sorting = _viewState$sorting === void 0 ? {} : _viewState$sorting;
|
|
149
108
|
var enhancedColumnDefs = (0, _enhanceColumnDefs.default)(sorting, selection, updateViewState, columnDefs);
|
|
150
109
|
return [enhancedColumnDefs, selection];
|
|
151
110
|
};
|
|
152
|
-
|
|
153
111
|
exports.useListState = useListState;
|
|
154
|
-
|
|
155
112
|
__signature__(useListState, "useViewState{[viewState, updateViewState]}", function () {
|
|
156
113
|
return [_useViewState3.default];
|
|
157
114
|
});
|
|
158
|
-
|
|
159
115
|
__signature__(useListState, "useViewState{[viewState, updateViewState]}", function () {
|
|
160
116
|
return [_useViewState3.default];
|
|
161
117
|
});
|
|
162
|
-
|
|
163
118
|
var List = function List(_ref2) {
|
|
164
119
|
var name = _ref2.name,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
120
|
+
_ref2$columnDefs = _ref2.columnDefs,
|
|
121
|
+
columnDefs = _ref2$columnDefs === void 0 ? [] : _ref2$columnDefs,
|
|
122
|
+
_ref2$rows = _ref2.rows,
|
|
123
|
+
rows = _ref2$rows === void 0 ? [] : _ref2$rows,
|
|
124
|
+
rowOnClick = _ref2.rowOnClick,
|
|
125
|
+
placeholder = _ref2.placeholder,
|
|
126
|
+
_ref2$keyField = _ref2.keyField,
|
|
127
|
+
keyField = _ref2$keyField === void 0 ? ["id"] : _ref2$keyField,
|
|
128
|
+
_ref2$virtual = _ref2.virtual,
|
|
129
|
+
virtual = _ref2$virtual === void 0 ? false : _ref2$virtual,
|
|
130
|
+
_ref2$scrollTop = _ref2.scrollTop,
|
|
131
|
+
scrollTop = _ref2$scrollTop === void 0 ? 0 : _ref2$scrollTop,
|
|
132
|
+
_ref2$height = _ref2.height,
|
|
133
|
+
height = _ref2$height === void 0 ? 300 : _ref2$height,
|
|
134
|
+
_ref2$scrollBuffer = _ref2.scrollBuffer,
|
|
135
|
+
scrollBuffer = _ref2$scrollBuffer === void 0 ? 10 : _ref2$scrollBuffer,
|
|
136
|
+
_ref2$rowBackgroundGe = _ref2.rowBackgroundGetter,
|
|
137
|
+
rowBackgroundGetter = _ref2$rowBackgroundGe === void 0 ? function () {} : _ref2$rowBackgroundGe;
|
|
184
138
|
var _useListState = useListState(name, columnDefs),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
139
|
+
_useListState2 = _slicedToArray(_useListState, 2),
|
|
140
|
+
enhancedColumnDefs = _useListState2[0],
|
|
141
|
+
selection = _useListState2[1];
|
|
189
142
|
if (columnDefs.length === 0) return null;
|
|
190
143
|
var rowIds = [],
|
|
191
|
-
|
|
192
|
-
|
|
144
|
+
rowElements = [];
|
|
193
145
|
var _calculateVirtualizat = calculateVirtualization(virtual, scrollTop, scrollBuffer, height, rows),
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
146
|
+
virtualFilter = _calculateVirtualizat.virtualFilter,
|
|
147
|
+
heightAbove = _calculateVirtualizat.heightAbove,
|
|
148
|
+
heightBelow = _calculateVirtualizat.heightBelow;
|
|
198
149
|
rows.forEach(function (row, index) {
|
|
199
150
|
var id = _utils.safeGet.apply(void 0, [row].concat(keyField)) + ""; // Ensure rowId is string
|
|
200
|
-
|
|
201
151
|
rowIds.push(id);
|
|
202
152
|
if (!virtualFilter(index)) return;
|
|
203
153
|
rowElements.push( /*#__PURE__*/_react.default.createElement(_Row.default, {
|
|
@@ -210,7 +160,6 @@ var List = function List(_ref2) {
|
|
|
210
160
|
bgColor: rowBackgroundGetter(row, index)
|
|
211
161
|
}));
|
|
212
162
|
});
|
|
213
|
-
|
|
214
163
|
if (virtual && heightAbove) {
|
|
215
164
|
rowElements.unshift( /*#__PURE__*/_react.default.createElement("tr", {
|
|
216
165
|
key: "virtualAbove",
|
|
@@ -219,7 +168,6 @@ var List = function List(_ref2) {
|
|
|
219
168
|
}
|
|
220
169
|
}));
|
|
221
170
|
}
|
|
222
|
-
|
|
223
171
|
if (virtual && heightBelow) {
|
|
224
172
|
rowElements.push( /*#__PURE__*/_react.default.createElement("tr", {
|
|
225
173
|
key: "virtualBelow",
|
|
@@ -228,7 +176,6 @@ var List = function List(_ref2) {
|
|
|
228
176
|
}
|
|
229
177
|
}));
|
|
230
178
|
}
|
|
231
|
-
|
|
232
179
|
if (rowElements.length === 0 && placeholder) {
|
|
233
180
|
rowElements.push( /*#__PURE__*/_react.default.createElement(Placeholder, {
|
|
234
181
|
key: "placeholder",
|
|
@@ -236,26 +183,21 @@ var List = function List(_ref2) {
|
|
|
236
183
|
height: height - HEADER_HEIGHT
|
|
237
184
|
}, placeholder));
|
|
238
185
|
}
|
|
239
|
-
|
|
240
186
|
return /*#__PURE__*/_react.default.createElement(Table, null, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement(_HeadRow.default, {
|
|
241
187
|
columnDefs: columnDefs,
|
|
242
188
|
rowIds: rowIds,
|
|
243
189
|
allSelected: rows.length === selection.length && rows.length !== 0
|
|
244
190
|
})), /*#__PURE__*/_react.default.createElement("tbody", null, rowElements));
|
|
245
191
|
};
|
|
246
|
-
/* istanbul ignore next */
|
|
247
|
-
|
|
248
192
|
|
|
193
|
+
/* istanbul ignore next */
|
|
249
194
|
exports.List = List;
|
|
250
|
-
|
|
251
195
|
__signature__(List, "useListState{[enhancedColumnDefs, selection]}", function () {
|
|
252
196
|
return [useListState];
|
|
253
197
|
});
|
|
254
|
-
|
|
255
198
|
__signature__(List, "useListState{[enhancedColumnDefs, selection]}", function () {
|
|
256
199
|
return [useListState];
|
|
257
200
|
});
|
|
258
|
-
|
|
259
201
|
var checkInfiniteScroll = (0, _recompose.branch)(function (_ref3) {
|
|
260
202
|
var scrollLoader = _ref3.scrollLoader;
|
|
261
203
|
return !!scrollLoader;
|
|
@@ -286,21 +228,17 @@ StatefulList.propTypes = {
|
|
|
286
228
|
latestPage: _propTypes.default.number,
|
|
287
229
|
// The latest page number loaded
|
|
288
230
|
pageLength: _propTypes.default.number // The length of a page, in row items. Default: 20.
|
|
289
|
-
|
|
290
231
|
};
|
|
291
232
|
var _default = StatefulList;
|
|
292
233
|
var _default2 = _default;
|
|
293
234
|
var _default3 = _default2;
|
|
294
235
|
exports.default = _default3;
|
|
295
236
|
;
|
|
296
|
-
|
|
297
237
|
(function () {
|
|
298
238
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
299
|
-
|
|
300
239
|
if (!reactHotLoader) {
|
|
301
240
|
return;
|
|
302
241
|
}
|
|
303
|
-
|
|
304
242
|
reactHotLoader.register(PlaceholderCell, "PlaceholderCell", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
305
243
|
reactHotLoader.register(PlaceholderBox, "PlaceholderBox", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
306
244
|
reactHotLoader.register(Placeholder, "Placeholder", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
@@ -314,23 +252,17 @@ exports.default = _default3;
|
|
|
314
252
|
reactHotLoader.register(StatefulList, "StatefulList", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
315
253
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
316
254
|
})();
|
|
317
|
-
|
|
318
255
|
;
|
|
319
|
-
|
|
320
256
|
(function () {
|
|
321
257
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
322
258
|
leaveModule && leaveModule(module);
|
|
323
259
|
})();
|
|
324
|
-
|
|
325
260
|
;
|
|
326
|
-
|
|
327
261
|
(function () {
|
|
328
262
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
329
|
-
|
|
330
263
|
if (!reactHotLoader) {
|
|
331
264
|
return;
|
|
332
265
|
}
|
|
333
|
-
|
|
334
266
|
reactHotLoader.register(PlaceholderCell, "PlaceholderCell", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
335
267
|
reactHotLoader.register(PlaceholderBox, "PlaceholderBox", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
336
268
|
reactHotLoader.register(Placeholder, "Placeholder", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
@@ -344,9 +276,7 @@ exports.default = _default3;
|
|
|
344
276
|
reactHotLoader.register(StatefulList, "StatefulList", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
345
277
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/List/List.js");
|
|
346
278
|
})();
|
|
347
|
-
|
|
348
279
|
;
|
|
349
|
-
|
|
350
280
|
(function () {
|
|
351
281
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
352
282
|
leaveModule && leaveModule(module);
|
|
@@ -2,39 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.stringifyFieldName = exports.default = exports.TableRow = exports.Row = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
|
|
10
7
|
var _utils = require("../../utils");
|
|
11
|
-
|
|
12
8
|
var _DataCell = _interopRequireDefault(require("./DataCell"));
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
12
|
(function () {
|
|
21
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
22
14
|
enterModule && enterModule(module);
|
|
23
15
|
})();
|
|
24
|
-
|
|
25
16
|
(function () {
|
|
26
17
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
27
18
|
enterModule && enterModule(module);
|
|
28
19
|
})();
|
|
29
|
-
|
|
30
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
21
|
return a;
|
|
32
22
|
};
|
|
33
|
-
|
|
34
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
35
24
|
return a;
|
|
36
25
|
};
|
|
37
|
-
|
|
38
26
|
var stringifyFieldName = function stringifyFieldName(name) {
|
|
39
27
|
if (Array.isArray(name)) {
|
|
40
28
|
return name.join("_");
|
|
@@ -42,34 +30,30 @@ var stringifyFieldName = function stringifyFieldName(name) {
|
|
|
42
30
|
return name && name.toString();
|
|
43
31
|
}
|
|
44
32
|
};
|
|
45
|
-
|
|
46
33
|
exports.stringifyFieldName = stringifyFieldName;
|
|
47
|
-
|
|
48
34
|
var TableRow = _styledComponents.default.tr.withConfig({
|
|
49
35
|
displayName: "Row__TableRow",
|
|
50
36
|
componentId: "sc-fh6oyu-0"
|
|
51
37
|
})(["", " ", ""], (0, _utils.ifFlag)("bgColor", function (props) {
|
|
52
38
|
return (0, _styledComponents.css)(["background-color:", ";"], props.bgColor);
|
|
53
|
-
}, (0, _styledComponents.css)(["transition:background-color 0.2s ease-in;&:hover{background-color:#f3f3f3;}"])), (0, _utils.ifFlag)("onClick", (0, _styledComponents.css)(["& td{cursor:pointer;}"])));
|
|
54
|
-
|
|
39
|
+
}, (0, _styledComponents.css)(["transition:background-color 0.2s ease-in;&:hover{background-color:#f3f3f3;}"])), (0, _utils.ifFlag)("onClick", (0, _styledComponents.css)(["& td{cursor:pointer;}"])));
|
|
55
40
|
|
|
41
|
+
// Clicks on these elements will not be handled by the row onClick
|
|
56
42
|
exports.TableRow = TableRow;
|
|
57
43
|
var formTags = ["INPUT", "SELECT", "LABEL"];
|
|
58
|
-
|
|
59
44
|
var Row = function Row(_ref) {
|
|
60
45
|
var columnDefs = _ref.columnDefs,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
46
|
+
row = _ref.row,
|
|
47
|
+
rowId = _ref.rowId,
|
|
48
|
+
selected = _ref.selected,
|
|
49
|
+
rowOnClick = _ref.rowOnClick,
|
|
50
|
+
bgColor = _ref.bgColor;
|
|
66
51
|
var onClick = (0, _react.useCallback)(function (event) {
|
|
67
52
|
if (formTags.indexOf(event.target.tagName) === -1) {
|
|
68
53
|
/* istanbul ignore else */
|
|
69
54
|
if (!event.target.dataset["rowId"]) {
|
|
70
55
|
event.target.dataset["rowId"] = rowId;
|
|
71
56
|
}
|
|
72
|
-
|
|
73
57
|
rowOnClick(event);
|
|
74
58
|
}
|
|
75
59
|
}, [rowOnClick, rowId]);
|
|
@@ -86,58 +70,43 @@ var Row = function Row(_ref) {
|
|
|
86
70
|
});
|
|
87
71
|
}));
|
|
88
72
|
};
|
|
89
|
-
|
|
90
73
|
exports.Row = Row;
|
|
91
|
-
|
|
92
74
|
__signature__(Row, "useCallback{onClick}");
|
|
93
|
-
|
|
94
75
|
__signature__(Row, "useCallback{onClick}");
|
|
95
|
-
|
|
96
76
|
var _default = Row;
|
|
97
77
|
var _default2 = _default;
|
|
98
78
|
var _default3 = _default2;
|
|
99
79
|
exports.default = _default3;
|
|
100
80
|
;
|
|
101
|
-
|
|
102
81
|
(function () {
|
|
103
82
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
104
|
-
|
|
105
83
|
if (!reactHotLoader) {
|
|
106
84
|
return;
|
|
107
85
|
}
|
|
108
|
-
|
|
109
86
|
reactHotLoader.register(stringifyFieldName, "stringifyFieldName", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
110
87
|
reactHotLoader.register(TableRow, "TableRow", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
111
88
|
reactHotLoader.register(formTags, "formTags", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
112
89
|
reactHotLoader.register(Row, "Row", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
113
90
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
114
91
|
})();
|
|
115
|
-
|
|
116
92
|
;
|
|
117
|
-
|
|
118
93
|
(function () {
|
|
119
94
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
120
95
|
leaveModule && leaveModule(module);
|
|
121
96
|
})();
|
|
122
|
-
|
|
123
97
|
;
|
|
124
|
-
|
|
125
98
|
(function () {
|
|
126
99
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
127
|
-
|
|
128
100
|
if (!reactHotLoader) {
|
|
129
101
|
return;
|
|
130
102
|
}
|
|
131
|
-
|
|
132
103
|
reactHotLoader.register(stringifyFieldName, "stringifyFieldName", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
133
104
|
reactHotLoader.register(TableRow, "TableRow", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
134
105
|
reactHotLoader.register(formTags, "formTags", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
135
106
|
reactHotLoader.register(Row, "Row", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
136
107
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/List/Row.js");
|
|
137
108
|
})();
|
|
138
|
-
|
|
139
109
|
;
|
|
140
|
-
|
|
141
110
|
(function () {
|
|
142
111
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
143
112
|
leaveModule && leaveModule(module);
|
|
@@ -2,31 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
(function () {
|
|
7
6
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
7
|
enterModule && enterModule(module);
|
|
9
8
|
})();
|
|
10
|
-
|
|
11
9
|
(function () {
|
|
12
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
13
11
|
enterModule && enterModule(module);
|
|
14
12
|
})();
|
|
15
|
-
|
|
16
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
-
|
|
20
15
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
|
|
22
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
17
|
return a;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
|
|
30
22
|
var toggleInArray = function toggleInArray(nameList, name) {
|
|
31
23
|
if (nameList.indexOf(name) !== -1) {
|
|
32
24
|
return nameList.filter(function (n) {
|
|
@@ -36,7 +28,6 @@ var toggleInArray = function toggleInArray(nameList, name) {
|
|
|
36
28
|
return nameList.concat(name);
|
|
37
29
|
}
|
|
38
30
|
};
|
|
39
|
-
|
|
40
31
|
var enhanceSelectColumn = function enhanceSelectColumn(selection, updateViewState, def) {
|
|
41
32
|
return _objectSpread(_objectSpread({
|
|
42
33
|
fieldName: "selection"
|
|
@@ -51,11 +42,9 @@ var enhanceSelectColumn = function enhanceSelectColumn(selection, updateViewStat
|
|
|
51
42
|
}
|
|
52
43
|
});
|
|
53
44
|
};
|
|
54
|
-
|
|
55
45
|
var enhanceSortableColumn = function enhanceSortableColumn(sorting, updateViewState, def) {
|
|
56
46
|
var isSortColumn = sorting.column && def.fieldName && sorting.column.toString() === def.fieldName.toString();
|
|
57
47
|
var isAscending = isSortColumn && sorting.direction === "asc";
|
|
58
|
-
|
|
59
48
|
var newDef = _objectSpread(_objectSpread({}, def), {}, {
|
|
60
49
|
sort: function sort() {
|
|
61
50
|
updateViewState("sorting", {
|
|
@@ -65,73 +54,56 @@ var enhanceSortableColumn = function enhanceSortableColumn(sorting, updateViewSt
|
|
|
65
54
|
def.sort(isAscending, def.fieldName, def.type);
|
|
66
55
|
}
|
|
67
56
|
});
|
|
68
|
-
|
|
69
57
|
if (isSortColumn) {
|
|
70
58
|
newDef.sortDirection = sorting.direction;
|
|
71
59
|
}
|
|
72
|
-
|
|
73
60
|
return newDef;
|
|
74
61
|
};
|
|
75
|
-
|
|
76
62
|
var enhanceColumnDef = function enhanceColumnDef(sorting, selection, updateViewState, columnDefs) {
|
|
77
63
|
return columnDefs.map(function (def) {
|
|
78
64
|
if (def.type === "select") {
|
|
79
65
|
return enhanceSelectColumn(selection, updateViewState, def);
|
|
80
66
|
}
|
|
81
|
-
|
|
82
67
|
if (def.sort) {
|
|
83
68
|
return enhanceSortableColumn(sorting, updateViewState, def);
|
|
84
69
|
}
|
|
85
|
-
|
|
86
70
|
return def;
|
|
87
71
|
});
|
|
88
72
|
};
|
|
89
|
-
|
|
90
73
|
var _default = enhanceColumnDef;
|
|
91
74
|
var _default2 = _default;
|
|
92
75
|
var _default3 = _default2;
|
|
93
76
|
exports.default = _default3;
|
|
94
77
|
;
|
|
95
|
-
|
|
96
78
|
(function () {
|
|
97
79
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
98
|
-
|
|
99
80
|
if (!reactHotLoader) {
|
|
100
81
|
return;
|
|
101
82
|
}
|
|
102
|
-
|
|
103
83
|
reactHotLoader.register(toggleInArray, "toggleInArray", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
104
84
|
reactHotLoader.register(enhanceSelectColumn, "enhanceSelectColumn", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
105
85
|
reactHotLoader.register(enhanceSortableColumn, "enhanceSortableColumn", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
106
86
|
reactHotLoader.register(enhanceColumnDef, "enhanceColumnDef", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
107
87
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
108
88
|
})();
|
|
109
|
-
|
|
110
89
|
;
|
|
111
|
-
|
|
112
90
|
(function () {
|
|
113
91
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
114
92
|
leaveModule && leaveModule(module);
|
|
115
93
|
})();
|
|
116
|
-
|
|
117
94
|
;
|
|
118
|
-
|
|
119
95
|
(function () {
|
|
120
96
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
121
|
-
|
|
122
97
|
if (!reactHotLoader) {
|
|
123
98
|
return;
|
|
124
99
|
}
|
|
125
|
-
|
|
126
100
|
reactHotLoader.register(toggleInArray, "toggleInArray", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
127
101
|
reactHotLoader.register(enhanceSelectColumn, "enhanceSelectColumn", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
128
102
|
reactHotLoader.register(enhanceSortableColumn, "enhanceSortableColumn", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
129
103
|
reactHotLoader.register(enhanceColumnDef, "enhanceColumnDef", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
130
104
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/List/enhanceColumnDefs.js");
|
|
131
105
|
})();
|
|
132
|
-
|
|
133
106
|
;
|
|
134
|
-
|
|
135
107
|
(function () {
|
|
136
108
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
137
109
|
leaveModule && leaveModule(module);
|