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,74 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.useTableSelection = exports.tableSelectionMode = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("react");
|
|
7
|
-
|
|
8
6
|
(function () {
|
|
9
7
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
8
|
enterModule && enterModule(module);
|
|
11
9
|
})();
|
|
12
|
-
|
|
13
10
|
(function () {
|
|
14
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
12
|
enterModule && enterModule(module);
|
|
16
13
|
})();
|
|
17
|
-
|
|
18
14
|
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; }
|
|
19
|
-
|
|
20
15
|
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; }
|
|
21
|
-
|
|
22
16
|
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; }
|
|
23
|
-
|
|
24
17
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
-
|
|
26
18
|
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."); }
|
|
27
|
-
|
|
28
19
|
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); }
|
|
29
|
-
|
|
30
20
|
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; }
|
|
31
|
-
|
|
32
21
|
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; }
|
|
33
|
-
|
|
34
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
-
|
|
36
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
37
24
|
return a;
|
|
38
25
|
};
|
|
39
|
-
|
|
40
26
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
41
27
|
return a;
|
|
42
28
|
};
|
|
43
|
-
|
|
44
29
|
var tableSelectionMode = Object.freeze({
|
|
45
30
|
none: 1,
|
|
46
31
|
indeterminate: 2,
|
|
47
32
|
all: 3
|
|
48
|
-
});
|
|
49
|
-
// By default, it is managed internally but the state is not persistent through unmounting and remounting stages.
|
|
33
|
+
});
|
|
50
34
|
|
|
35
|
+
// When "selectedRowsChanged" is set, it means the selection is managed externally of the Table component.
|
|
36
|
+
// By default, it is managed internally but the state is not persistent through unmounting and remounting stages.
|
|
51
37
|
exports.tableSelectionMode = tableSelectionMode;
|
|
52
|
-
|
|
53
38
|
var useTableSelection = function useTableSelection(rows, selectedRows, selectedRowsChanged) {
|
|
54
39
|
if (selectedRows === void 0) {
|
|
55
40
|
selectedRows = null;
|
|
56
41
|
}
|
|
57
|
-
|
|
58
42
|
if (selectedRowsChanged === void 0) {
|
|
59
43
|
selectedRowsChanged = null;
|
|
60
44
|
}
|
|
61
|
-
|
|
62
45
|
var _useState = (0, _react.useState)({}),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
46
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47
|
+
selected = _useState2[0],
|
|
48
|
+
setSelected = _useState2[1]; // Default internal management of selected rows if none are specified
|
|
68
49
|
var selectedNumber = Object.keys(selectedRows ? selectedRows : selected).length;
|
|
69
|
-
|
|
70
50
|
var selectionHandler = function selectionHandler(event, key) {
|
|
71
51
|
var newSelection = _objectSpread({}, key === null ? {} : selectedRows ? selectedRows : selected);
|
|
72
|
-
|
|
73
52
|
if (key === null) {
|
|
74
53
|
if (event.target.checked) {
|
|
75
54
|
rows.forEach(function (r) {
|
|
@@ -79,72 +58,54 @@ var useTableSelection = function useTableSelection(rows, selectedRows, selectedR
|
|
|
79
58
|
} else {
|
|
80
59
|
if (event.target.checked) newSelection[key] = event.target.checked;else delete newSelection[key];
|
|
81
60
|
}
|
|
82
|
-
|
|
83
61
|
if (selectedRowsChanged !== null) {
|
|
84
62
|
selectedRowsChanged(newSelection);
|
|
85
63
|
} else {
|
|
86
64
|
setSelected(newSelection);
|
|
87
65
|
}
|
|
88
66
|
};
|
|
89
|
-
|
|
90
67
|
var isSelected = function isSelected(key) {
|
|
91
68
|
return (selectedRows || selected)[key] === true;
|
|
92
69
|
};
|
|
93
|
-
|
|
94
70
|
var tableSelectionStatus = selectedNumber === 0 ? tableSelectionMode.none : selectedNumber === rows.length ? tableSelectionMode.all : tableSelectionMode.indeterminate;
|
|
95
71
|
return [selectedNumber, tableSelectionStatus, {
|
|
96
72
|
selectionHandler: selectionHandler,
|
|
97
73
|
isSelected: isSelected
|
|
98
74
|
}];
|
|
99
75
|
};
|
|
100
|
-
|
|
101
76
|
exports.useTableSelection = useTableSelection;
|
|
102
|
-
|
|
103
77
|
__signature__(useTableSelection, "useState{[selected, setSelected]({})}");
|
|
104
|
-
|
|
105
78
|
__signature__(useTableSelection, "useState{[selected, setSelected]({})}");
|
|
106
|
-
|
|
107
79
|
var _default = useTableSelection;
|
|
108
80
|
var _default2 = _default;
|
|
109
81
|
var _default3 = _default2;
|
|
110
82
|
exports.default = _default3;
|
|
111
83
|
;
|
|
112
|
-
|
|
113
84
|
(function () {
|
|
114
85
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
115
|
-
|
|
116
86
|
if (!reactHotLoader) {
|
|
117
87
|
return;
|
|
118
88
|
}
|
|
119
|
-
|
|
120
89
|
reactHotLoader.register(tableSelectionMode, "tableSelectionMode", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/useTableSelection.js");
|
|
121
90
|
reactHotLoader.register(useTableSelection, "useTableSelection", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/useTableSelection.js");
|
|
122
91
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/useTableSelection.js");
|
|
123
92
|
})();
|
|
124
|
-
|
|
125
93
|
;
|
|
126
|
-
|
|
127
94
|
(function () {
|
|
128
95
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
129
96
|
leaveModule && leaveModule(module);
|
|
130
97
|
})();
|
|
131
|
-
|
|
132
98
|
;
|
|
133
|
-
|
|
134
99
|
(function () {
|
|
135
100
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
136
|
-
|
|
137
101
|
if (!reactHotLoader) {
|
|
138
102
|
return;
|
|
139
103
|
}
|
|
140
|
-
|
|
141
104
|
reactHotLoader.register(tableSelectionMode, "tableSelectionMode", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/useTableSelection.js");
|
|
142
105
|
reactHotLoader.register(useTableSelection, "useTableSelection", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/useTableSelection.js");
|
|
143
106
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/useTableSelection.js");
|
|
144
107
|
})();
|
|
145
|
-
|
|
146
108
|
;
|
|
147
|
-
|
|
148
109
|
(function () {
|
|
149
110
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
150
111
|
leaveModule && leaveModule(module);
|
|
@@ -2,60 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.NotificationContextProvider = exports.NotificationContext = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _useNotification = require("./useNotification");
|
|
9
|
-
|
|
10
7
|
var _Notification = _interopRequireDefault(require("./../DataDisplay/Notification"));
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
9
|
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); }
|
|
15
|
-
|
|
16
10
|
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; }
|
|
17
|
-
|
|
18
11
|
(function () {
|
|
19
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
13
|
enterModule && enterModule(module);
|
|
21
14
|
})();
|
|
22
|
-
|
|
23
15
|
(function () {
|
|
24
16
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
25
17
|
enterModule && enterModule(module);
|
|
26
18
|
})();
|
|
27
|
-
|
|
28
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
30
20
|
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."); }
|
|
31
|
-
|
|
32
21
|
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); }
|
|
33
|
-
|
|
34
22
|
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; }
|
|
35
|
-
|
|
36
23
|
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; }
|
|
37
|
-
|
|
38
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
41
26
|
return a;
|
|
42
27
|
};
|
|
43
|
-
|
|
44
28
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
45
29
|
return a;
|
|
46
30
|
};
|
|
47
|
-
|
|
48
31
|
var NotificationContext = (0, _react.createContext)();
|
|
49
32
|
exports.NotificationContext = NotificationContext;
|
|
50
|
-
|
|
51
33
|
var NotificationContextProvider = function NotificationContextProvider(_ref) {
|
|
52
34
|
var children = _ref.children;
|
|
53
|
-
|
|
54
35
|
var _useState = (0, _react.useState)([]),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
snackPack = _useState2[0],
|
|
38
|
+
setSnackPack = _useState2[1];
|
|
59
39
|
var addNotification = (0, _useNotification.useNotification)(snackPack, setSnackPack);
|
|
60
40
|
return /*#__PURE__*/_react.default.createElement(NotificationContext.Provider, {
|
|
61
41
|
value: {
|
|
@@ -66,58 +46,43 @@ var NotificationContextProvider = function NotificationContextProvider(_ref) {
|
|
|
66
46
|
setSnackPack: setSnackPack
|
|
67
47
|
}), children);
|
|
68
48
|
};
|
|
69
|
-
|
|
70
49
|
exports.NotificationContextProvider = NotificationContextProvider;
|
|
71
|
-
|
|
72
50
|
__signature__(NotificationContextProvider, "useState{[snackPack, setSnackPack]([])}\nuseNotification{addNotification}", function () {
|
|
73
51
|
return [_useNotification.useNotification];
|
|
74
52
|
});
|
|
75
|
-
|
|
76
53
|
__signature__(NotificationContextProvider, "useState{[snackPack, setSnackPack]([])}\nuseNotification{addNotification}", function () {
|
|
77
54
|
return [_useNotification.useNotification];
|
|
78
55
|
});
|
|
79
|
-
|
|
80
56
|
var _default = NotificationContextProvider;
|
|
81
57
|
var _default2 = _default;
|
|
82
58
|
var _default3 = _default2;
|
|
83
59
|
exports.default = _default3;
|
|
84
60
|
;
|
|
85
|
-
|
|
86
61
|
(function () {
|
|
87
62
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
88
|
-
|
|
89
63
|
if (!reactHotLoader) {
|
|
90
64
|
return;
|
|
91
65
|
}
|
|
92
|
-
|
|
93
66
|
reactHotLoader.register(NotificationContext, "NotificationContext", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/NotificationContext.js");
|
|
94
67
|
reactHotLoader.register(NotificationContextProvider, "NotificationContextProvider", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/NotificationContext.js");
|
|
95
68
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/NotificationContext.js");
|
|
96
69
|
})();
|
|
97
|
-
|
|
98
70
|
;
|
|
99
|
-
|
|
100
71
|
(function () {
|
|
101
72
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
102
73
|
leaveModule && leaveModule(module);
|
|
103
74
|
})();
|
|
104
|
-
|
|
105
75
|
;
|
|
106
|
-
|
|
107
76
|
(function () {
|
|
108
77
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
109
|
-
|
|
110
78
|
if (!reactHotLoader) {
|
|
111
79
|
return;
|
|
112
80
|
}
|
|
113
|
-
|
|
114
81
|
reactHotLoader.register(NotificationContext, "NotificationContext", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/NotificationContext.js");
|
|
115
82
|
reactHotLoader.register(NotificationContextProvider, "NotificationContextProvider", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/NotificationContext.js");
|
|
116
83
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/NotificationContext.js");
|
|
117
84
|
})();
|
|
118
|
-
|
|
119
85
|
;
|
|
120
|
-
|
|
121
86
|
(function () {
|
|
122
87
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
123
88
|
leaveModule && leaveModule(module);
|
|
@@ -2,55 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _reactRedux = require("react-redux");
|
|
9
|
-
|
|
10
7
|
var _Backdrop = _interopRequireDefault(require("@material-ui/core/Backdrop"));
|
|
11
|
-
|
|
12
8
|
var _styles = require("@material-ui/core/styles");
|
|
13
|
-
|
|
14
9
|
var _CircularProgress = _interopRequireDefault(require("@material-ui/core/CircularProgress"));
|
|
15
|
-
|
|
16
10
|
var _requests = require("../../../selectors/requests");
|
|
17
|
-
|
|
18
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
12
|
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); }
|
|
21
|
-
|
|
22
13
|
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; }
|
|
23
|
-
|
|
24
14
|
(function () {
|
|
25
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26
16
|
enterModule && enterModule(module);
|
|
27
17
|
})();
|
|
28
|
-
|
|
29
18
|
(function () {
|
|
30
19
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
31
20
|
enterModule && enterModule(module);
|
|
32
21
|
})();
|
|
33
|
-
|
|
34
22
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
-
|
|
36
23
|
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."); }
|
|
37
|
-
|
|
38
24
|
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); }
|
|
39
|
-
|
|
40
25
|
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; }
|
|
41
|
-
|
|
42
26
|
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; }
|
|
43
|
-
|
|
44
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
-
|
|
46
28
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
47
29
|
return a;
|
|
48
30
|
};
|
|
49
|
-
|
|
50
31
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
51
32
|
return a;
|
|
52
33
|
};
|
|
53
|
-
|
|
54
34
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
55
35
|
return {
|
|
56
36
|
backdrop: {
|
|
@@ -61,22 +41,18 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
61
41
|
}
|
|
62
42
|
};
|
|
63
43
|
});
|
|
64
|
-
|
|
65
44
|
var onMouseDownHandler = function onMouseDownHandler(event) {
|
|
66
45
|
// We want to disable clicking on the backdrop, as it causes strange user selections to occur
|
|
67
46
|
event.preventDefault();
|
|
68
47
|
event.stopPropagation();
|
|
69
48
|
};
|
|
70
|
-
|
|
71
49
|
var LoadingScreen = function LoadingScreen() {
|
|
72
50
|
var classes = useStyles();
|
|
73
51
|
var loadingScreen = (0, _reactRedux.useSelector)(_requests.requestRunningSelector);
|
|
74
|
-
|
|
75
52
|
var _useState = (0, _react.useState)(false),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
53
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54
|
+
progressState = _useState2[0],
|
|
55
|
+
setProgressState = _useState2[1];
|
|
80
56
|
(0, _react.useEffect)(function () {
|
|
81
57
|
if (loadingScreen) {
|
|
82
58
|
var timeout = setTimeout(function () {
|
|
@@ -86,7 +62,6 @@ var LoadingScreen = function LoadingScreen() {
|
|
|
86
62
|
return clearTimeout(timeout);
|
|
87
63
|
};
|
|
88
64
|
}
|
|
89
|
-
|
|
90
65
|
setProgressState(false);
|
|
91
66
|
}, [loadingScreen, setProgressState]);
|
|
92
67
|
return /*#__PURE__*/_react.default.createElement(_Backdrop.default, {
|
|
@@ -101,58 +76,44 @@ var LoadingScreen = function LoadingScreen() {
|
|
|
101
76
|
color: "inherit"
|
|
102
77
|
}));
|
|
103
78
|
};
|
|
104
|
-
|
|
105
79
|
__signature__(LoadingScreen, "useStyles{classes}\nuseSelector{loadingScreen}\nuseState{[progressState, setProgressState](false)}\nuseEffect{}", function () {
|
|
106
80
|
return [useStyles, _reactRedux.useSelector];
|
|
107
81
|
});
|
|
108
|
-
|
|
109
82
|
__signature__(LoadingScreen, "useStyles{classes}\nuseSelector{loadingScreen}\nuseState{[progressState, setProgressState](false)}\nuseEffect{}", function () {
|
|
110
83
|
return [useStyles, _reactRedux.useSelector];
|
|
111
84
|
});
|
|
112
|
-
|
|
113
85
|
var _default = LoadingScreen;
|
|
114
86
|
var _default2 = _default;
|
|
115
87
|
var _default3 = _default2;
|
|
116
88
|
exports.default = _default3;
|
|
117
89
|
;
|
|
118
|
-
|
|
119
90
|
(function () {
|
|
120
91
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
121
|
-
|
|
122
92
|
if (!reactHotLoader) {
|
|
123
93
|
return;
|
|
124
94
|
}
|
|
125
|
-
|
|
126
95
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
127
96
|
reactHotLoader.register(onMouseDownHandler, "onMouseDownHandler", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
128
97
|
reactHotLoader.register(LoadingScreen, "LoadingScreen", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
129
98
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
130
99
|
})();
|
|
131
|
-
|
|
132
100
|
;
|
|
133
|
-
|
|
134
101
|
(function () {
|
|
135
102
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
136
103
|
leaveModule && leaveModule(module);
|
|
137
104
|
})();
|
|
138
|
-
|
|
139
105
|
;
|
|
140
|
-
|
|
141
106
|
(function () {
|
|
142
107
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
143
|
-
|
|
144
108
|
if (!reactHotLoader) {
|
|
145
109
|
return;
|
|
146
110
|
}
|
|
147
|
-
|
|
148
111
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
149
112
|
reactHotLoader.register(onMouseDownHandler, "onMouseDownHandler", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
150
113
|
reactHotLoader.register(LoadingScreen, "LoadingScreen", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
151
114
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/loadingScreen.js");
|
|
152
115
|
})();
|
|
153
|
-
|
|
154
116
|
;
|
|
155
|
-
|
|
156
117
|
(function () {
|
|
157
118
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
158
119
|
leaveModule && leaveModule(module);
|
|
@@ -2,27 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.useNotification = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("react");
|
|
7
|
-
|
|
8
6
|
(function () {
|
|
9
7
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
8
|
enterModule && enterModule(module);
|
|
11
9
|
})();
|
|
12
|
-
|
|
13
10
|
(function () {
|
|
14
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
12
|
enterModule && enterModule(module);
|
|
16
13
|
})();
|
|
17
|
-
|
|
18
14
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
19
15
|
return a;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
18
|
return a;
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
var useNotification = function useNotification(snackPack, setSnackPack) {
|
|
27
21
|
var addNotification = (0, _react.useCallback)(function (message, type) {
|
|
28
22
|
var snack = {
|
|
@@ -34,52 +28,37 @@ var useNotification = function useNotification(snackPack, setSnackPack) {
|
|
|
34
28
|
}, [snackPack, setSnackPack]);
|
|
35
29
|
return addNotification;
|
|
36
30
|
};
|
|
37
|
-
|
|
38
31
|
exports.useNotification = useNotification;
|
|
39
|
-
|
|
40
32
|
__signature__(useNotification, "useCallback{addNotification}");
|
|
41
|
-
|
|
42
33
|
__signature__(useNotification, "useCallback{addNotification}");
|
|
43
|
-
|
|
44
34
|
var _default = useNotification;
|
|
45
35
|
var _default2 = _default;
|
|
46
36
|
var _default3 = _default2;
|
|
47
37
|
exports.default = _default3;
|
|
48
38
|
;
|
|
49
|
-
|
|
50
39
|
(function () {
|
|
51
40
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
52
|
-
|
|
53
41
|
if (!reactHotLoader) {
|
|
54
42
|
return;
|
|
55
43
|
}
|
|
56
|
-
|
|
57
44
|
reactHotLoader.register(useNotification, "useNotification", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
|
|
58
45
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
|
|
59
46
|
})();
|
|
60
|
-
|
|
61
47
|
;
|
|
62
|
-
|
|
63
48
|
(function () {
|
|
64
49
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
65
50
|
leaveModule && leaveModule(module);
|
|
66
51
|
})();
|
|
67
|
-
|
|
68
52
|
;
|
|
69
|
-
|
|
70
53
|
(function () {
|
|
71
54
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
72
|
-
|
|
73
55
|
if (!reactHotLoader) {
|
|
74
56
|
return;
|
|
75
57
|
}
|
|
76
|
-
|
|
77
58
|
reactHotLoader.register(useNotification, "useNotification", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
|
|
78
59
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
|
|
79
60
|
})();
|
|
80
|
-
|
|
81
61
|
;
|
|
82
|
-
|
|
83
62
|
(function () {
|
|
84
63
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
85
64
|
leaveModule && leaveModule(module);
|
|
@@ -2,53 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
|
|
10
7
|
var _Autocomplete = _interopRequireDefault(require("@material-ui/lab/Autocomplete"));
|
|
11
|
-
|
|
12
8
|
var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
13
|
-
|
|
14
9
|
var _styles = require("@material-ui/core/styles");
|
|
15
|
-
|
|
16
10
|
var _Icon = _interopRequireDefault(require("../DataDisplay/Icon"));
|
|
17
|
-
|
|
18
11
|
var _AutocompleteProps = _interopRequireWildcard(require("./AutocompleteProps"));
|
|
19
|
-
|
|
20
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
13
|
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); }
|
|
23
|
-
|
|
24
14
|
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; }
|
|
25
|
-
|
|
26
15
|
(function () {
|
|
27
16
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28
17
|
enterModule && enterModule(module);
|
|
29
18
|
})();
|
|
30
|
-
|
|
31
19
|
(function () {
|
|
32
20
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
33
21
|
enterModule && enterModule(module);
|
|
34
22
|
})();
|
|
35
|
-
|
|
36
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
37
|
-
|
|
23
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
38
24
|
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; }
|
|
39
|
-
|
|
40
25
|
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; }
|
|
41
|
-
|
|
42
26
|
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; }
|
|
43
|
-
|
|
44
27
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
45
28
|
return a;
|
|
46
29
|
};
|
|
47
|
-
|
|
48
30
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
49
31
|
return a;
|
|
50
32
|
};
|
|
51
|
-
|
|
52
33
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
53
34
|
return {
|
|
54
35
|
container: {
|
|
@@ -125,18 +106,14 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
125
106
|
}
|
|
126
107
|
};
|
|
127
108
|
});
|
|
128
|
-
|
|
129
109
|
var Autocomplete = function Autocomplete(_ref) {
|
|
130
110
|
var _autocompleteProps$ge;
|
|
131
|
-
|
|
132
111
|
var id = _ref.id,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
112
|
+
options = _ref.options,
|
|
113
|
+
autocompleteProps = _ref.autocompleteProps;
|
|
136
114
|
if ((0, _AutocompleteProps.isAutocompleteProps)(autocompleteProps) === false) {
|
|
137
115
|
throw new TypeError("autocompleteProps property is not of type AutocompleteProps");
|
|
138
116
|
}
|
|
139
|
-
|
|
140
117
|
var classes = useStyles();
|
|
141
118
|
var update = autocompleteProps == null ? void 0 : autocompleteProps.get(_AutocompleteProps.default.propNames.update);
|
|
142
119
|
var value = (_autocompleteProps$ge = autocompleteProps == null ? void 0 : autocompleteProps.get(_AutocompleteProps.default.propNames.value)) != null ? _autocompleteProps$ge : "";
|
|
@@ -145,10 +122,8 @@ var Autocomplete = function Autocomplete(_ref) {
|
|
|
145
122
|
var placeholder = autocompleteProps == null ? void 0 : autocompleteProps.get(_AutocompleteProps.default.propNames.placeholder);
|
|
146
123
|
var onChangeOption = (0, _react.useCallback)(function (event, option) {
|
|
147
124
|
var _option$value;
|
|
148
|
-
|
|
149
125
|
return update((_option$value = option == null ? void 0 : option.value) != null ? _option$value : null);
|
|
150
126
|
}, [update]);
|
|
151
|
-
|
|
152
127
|
var RenderInput = function RenderInput(params) {
|
|
153
128
|
return /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({}, params, {
|
|
154
129
|
fullWidth: true,
|
|
@@ -162,10 +137,8 @@ var Autocomplete = function Autocomplete(_ref) {
|
|
|
162
137
|
})
|
|
163
138
|
}));
|
|
164
139
|
};
|
|
165
|
-
|
|
166
140
|
var selected = (0, _react.useMemo)(function () {
|
|
167
141
|
var _options$find;
|
|
168
|
-
|
|
169
142
|
return (_options$find = options.find(function (o) {
|
|
170
143
|
return o.value === value;
|
|
171
144
|
})) != null ? _options$find : null;
|
|
@@ -200,56 +173,42 @@ var Autocomplete = function Autocomplete(_ref) {
|
|
|
200
173
|
className: (0, _classnames.default)(classes.errorText)
|
|
201
174
|
}, error));
|
|
202
175
|
};
|
|
203
|
-
|
|
204
176
|
__signature__(Autocomplete, "useStyles{classes}\nuseCallback{onChangeOption}\nuseMemo{selected}", function () {
|
|
205
177
|
return [useStyles];
|
|
206
178
|
});
|
|
207
|
-
|
|
208
179
|
__signature__(Autocomplete, "useStyles{classes}\nuseCallback{onChangeOption}\nuseMemo{selected}", function () {
|
|
209
180
|
return [useStyles];
|
|
210
181
|
});
|
|
211
|
-
|
|
212
182
|
var _default = Autocomplete;
|
|
213
183
|
var _default2 = _default;
|
|
214
184
|
var _default3 = _default2;
|
|
215
185
|
exports.default = _default3;
|
|
216
186
|
;
|
|
217
|
-
|
|
218
187
|
(function () {
|
|
219
188
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
220
|
-
|
|
221
189
|
if (!reactHotLoader) {
|
|
222
190
|
return;
|
|
223
191
|
}
|
|
224
|
-
|
|
225
192
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Autocomplete.js");
|
|
226
193
|
reactHotLoader.register(Autocomplete, "Autocomplete", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Autocomplete.js");
|
|
227
194
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Autocomplete.js");
|
|
228
195
|
})();
|
|
229
|
-
|
|
230
196
|
;
|
|
231
|
-
|
|
232
197
|
(function () {
|
|
233
198
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
234
199
|
leaveModule && leaveModule(module);
|
|
235
200
|
})();
|
|
236
|
-
|
|
237
201
|
;
|
|
238
|
-
|
|
239
202
|
(function () {
|
|
240
203
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
241
|
-
|
|
242
204
|
if (!reactHotLoader) {
|
|
243
205
|
return;
|
|
244
206
|
}
|
|
245
|
-
|
|
246
207
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Autocomplete.js");
|
|
247
208
|
reactHotLoader.register(Autocomplete, "Autocomplete", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Autocomplete.js");
|
|
248
209
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Autocomplete.js");
|
|
249
210
|
})();
|
|
250
|
-
|
|
251
211
|
;
|
|
252
|
-
|
|
253
212
|
(function () {
|
|
254
213
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
255
214
|
leaveModule && leaveModule(module);
|