orc-shared 1.2.2-dev.1 → 1.2.3
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 +14 -52
- package/dist/actions/authentication.js +10 -45
- package/dist/actions/countries.js +6 -36
- package/dist/actions/locale.js +14 -54
- package/dist/actions/makeApiAction.js +31 -79
- package/dist/actions/makeOrcApiAction.js +3 -26
- package/dist/actions/metadata.js +65 -174
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +3 -33
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +1 -17
- package/dist/actions/scopes.js +14 -56
- package/dist/actions/timezones.js +6 -36
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +6 -39
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +3 -53
- package/dist/components/AppFrame/About.js +8 -70
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +23 -92
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +1 -31
- 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 +17 -70
- package/dist/components/AppFrame/Preferences.js +17 -79
- package/dist/components/AppFrame/Sidebar.js +8 -53
- 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 +7 -46
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +33 -82
- package/dist/components/Checkbox.js +3 -41
- 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 +12 -50
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +6 -37
- package/dist/components/Form/FieldElements.js +9 -41
- package/dist/components/Form/FieldList.js +28 -92
- 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 +17 -66
- package/dist/components/Form/Inputs/Button.js +5 -35
- package/dist/components/Form/Inputs/Date.js +2 -28
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +7 -46
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +6 -38
- package/dist/components/Form/Inputs/Text.js +8 -41
- package/dist/components/Form/Inputs/Time.js +4 -33
- package/dist/components/Form/Inputs/Toggles.js +5 -39
- package/dist/components/Form/Inputs/Translation.js +21 -78
- 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 +0 -28
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +2 -42
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +3 -42
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +37 -107
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +3 -29
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +5 -48
- 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 +7 -51
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +2 -28
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +4 -37
- package/dist/components/MaterialUI/DataDisplay/Notification.js +17 -69
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +3 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +0 -22
- 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 +3 -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 +14 -60
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +15 -59
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +23 -70
- package/dist/components/MaterialUI/DataDisplay/Table.js +34 -123
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +3 -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 +7 -46
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +0 -21
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +32 -97
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +3 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +3 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +3 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +3 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +5 -68
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +11 -48
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +5 -40
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +5 -44
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +5 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +3 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +3 -40
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +3 -43
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +3 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +3 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +16 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +7 -56
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +3 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +12 -65
- 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 +3 -41
- package/dist/components/MaterialUI/Inputs/Select.js +10 -72
- package/dist/components/MaterialUI/Inputs/SelectProps.js +3 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +3 -35
- package/dist/components/MaterialUI/Inputs/Switch.js +4 -38
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +3 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +14 -91
- package/dist/components/MaterialUI/Inputs/createInput.js +5 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +3 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +12 -56
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +3 -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 +22 -103
- package/dist/components/MaterialUI/Navigation/TabLabel.js +7 -41
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +22 -62
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +16 -68
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +15 -55
- 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 +19 -62
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +3 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +3 -36
- package/dist/components/MaterialUI/componentProps.js +3 -29
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +10 -59
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -44
- package/dist/components/MaterialUI/muiThemes.js +5 -57
- package/dist/components/MaterialUI/textProps.js +3 -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 +8 -44
- package/dist/components/Modules.js +21 -93
- package/dist/components/MultiSelector.js +21 -74
- package/dist/components/Navigation/Bar.js +29 -90
- package/dist/components/Navigation/Tab.js +22 -74
- package/dist/components/Navigation/index.js +1 -21
- package/dist/components/Navigation/useNavigationState.js +90 -173
- package/dist/components/Placeholder.js +5 -43
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +14 -51
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +26 -106
- package/dist/components/Routing/SubPage.js +6 -54
- package/dist/components/Routing/withWaypointing.js +6 -37
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +8 -49
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +29 -96
- package/dist/components/Scope/useScopeConfirmationModalState.js +33 -100
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +15 -76
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +11 -51
- package/dist/components/Text.js +6 -50
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +16 -74
- 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 +17 -55
- package/dist/components/Treeview/index.js +25 -66
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +3 -22
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +2 -28
- package/dist/hocs/withErrorBoundary.js +2 -37
- package/dist/hocs/withId.js +1 -30
- 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 +5 -32
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +6 -33
- package/dist/hocs/withScrollBox.js +2 -31
- package/dist/hocs/withToggle.js +9 -37
- package/dist/hocs/withUpdateHandler.js +3 -23
- package/dist/hocs/withViewState.js +5 -32
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +6 -103
- package/dist/hooks/useEntityLoader.js +18 -67
- package/dist/hooks/useFullEntityEditState.js +9 -56
- package/dist/hooks/useInfiniteScroll.js +5 -33
- package/dist/hooks/useLabelMessage.js +3 -42
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +3 -40
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +17 -47
- 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 +5 -35
- 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 +6 -37
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +3 -63
- 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 +4 -45
- package/dist/selectors/modules.js +3 -22
- 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 +7 -38
- 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 +7 -38
- 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 +3 -42
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +2 -24
- 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 +1 -28
- package/dist/utils/setTranslationWithFallback.js +1 -33
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +14 -91
- package/dist/utils/timezoneHelper.js +4 -35
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +3 -28
- package/dist/whyDidYouRerender.js +1 -5
- package/package.json +3 -3
|
@@ -2,123 +2,90 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isPaperProps = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _componentProps = _interopRequireDefault(require("../componentProps"));
|
|
7
|
-
|
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
7
|
(function () {
|
|
11
8
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
9
|
enterModule && enterModule(module);
|
|
13
10
|
})();
|
|
14
|
-
|
|
15
11
|
(function () {
|
|
16
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
17
13
|
enterModule && enterModule(module);
|
|
18
14
|
})();
|
|
19
|
-
|
|
20
15
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
21
|
-
|
|
22
16
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
19
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
21
|
return a;
|
|
28
22
|
};
|
|
29
|
-
|
|
30
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
24
|
return a;
|
|
32
25
|
};
|
|
33
|
-
|
|
34
26
|
var PaperProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
27
|
_inheritsLoose(PaperProps, _ComponentProps);
|
|
36
|
-
|
|
37
28
|
function PaperProps() {
|
|
38
29
|
var _this;
|
|
39
|
-
|
|
40
30
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
31
|
_this.componentProps.set(_this.constructor.propNames.elevation, null);
|
|
43
|
-
|
|
44
32
|
_this.componentProps.set(_this.constructor.propNames.square, null);
|
|
45
|
-
|
|
46
33
|
_this.componentProps.set(_this.constructor.propNames.variant, null);
|
|
47
|
-
|
|
48
34
|
_this.componentClasses.set(_this.constructor.ruleNames.root, null);
|
|
49
|
-
|
|
50
35
|
_this._isPaperProps = true;
|
|
51
36
|
return _this;
|
|
52
37
|
}
|
|
53
|
-
|
|
54
38
|
var _proto = PaperProps.prototype;
|
|
55
|
-
|
|
56
39
|
// @ts-ignore
|
|
57
40
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
58
41
|
// @ts-ignore
|
|
59
42
|
this[key] = eval(code);
|
|
60
43
|
};
|
|
61
|
-
|
|
62
44
|
return PaperProps;
|
|
63
45
|
}(_componentProps.default);
|
|
64
|
-
|
|
65
46
|
_defineProperty(PaperProps, "propNames", {
|
|
66
47
|
elevation: "elevation",
|
|
67
48
|
square: "square",
|
|
68
49
|
variant: "variant"
|
|
69
50
|
});
|
|
70
|
-
|
|
71
51
|
_defineProperty(PaperProps, "ruleNames", {
|
|
72
52
|
root: "root"
|
|
73
53
|
});
|
|
74
|
-
|
|
75
54
|
var isPaperProps = function isPaperProps(value) {
|
|
76
55
|
if (value == null) return true;
|
|
77
56
|
return typeof value === "object" && (value instanceof PaperProps || value._isPaperProps === true);
|
|
78
57
|
};
|
|
79
|
-
|
|
80
58
|
exports.isPaperProps = isPaperProps;
|
|
81
59
|
var _default = PaperProps;
|
|
82
60
|
var _default2 = _default;
|
|
83
61
|
var _default3 = _default2;
|
|
84
62
|
exports.default = _default3;
|
|
85
63
|
;
|
|
86
|
-
|
|
87
64
|
(function () {
|
|
88
65
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
89
|
-
|
|
90
66
|
if (!reactHotLoader) {
|
|
91
67
|
return;
|
|
92
68
|
}
|
|
93
|
-
|
|
94
69
|
reactHotLoader.register(PaperProps, "PaperProps", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/paperProps.js");
|
|
95
70
|
reactHotLoader.register(isPaperProps, "isPaperProps", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/paperProps.js");
|
|
96
71
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/paperProps.js");
|
|
97
72
|
})();
|
|
98
|
-
|
|
99
73
|
;
|
|
100
|
-
|
|
101
74
|
(function () {
|
|
102
75
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
103
76
|
leaveModule && leaveModule(module);
|
|
104
77
|
})();
|
|
105
|
-
|
|
106
78
|
;
|
|
107
|
-
|
|
108
79
|
(function () {
|
|
109
80
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
110
|
-
|
|
111
81
|
if (!reactHotLoader) {
|
|
112
82
|
return;
|
|
113
83
|
}
|
|
114
|
-
|
|
115
84
|
reactHotLoader.register(PaperProps, "PaperProps", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/paperProps.js");
|
|
116
85
|
reactHotLoader.register(isPaperProps, "isPaperProps", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/paperProps.js");
|
|
117
86
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Surfaces/paperProps.js");
|
|
118
87
|
})();
|
|
119
|
-
|
|
120
88
|
;
|
|
121
|
-
|
|
122
89
|
(function () {
|
|
123
90
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
124
91
|
leaveModule && leaveModule(module);
|
|
@@ -2,103 +2,77 @@
|
|
|
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
|
-
function
|
|
17
|
-
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
19
17
|
return a;
|
|
20
18
|
};
|
|
21
|
-
|
|
22
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
20
|
return a;
|
|
24
21
|
};
|
|
25
|
-
|
|
26
22
|
var ComponentProps = /*#__PURE__*/function () {
|
|
27
23
|
function ComponentProps() {
|
|
28
24
|
_defineProperty(this, "componentProps", new Map());
|
|
29
|
-
|
|
30
25
|
_defineProperty(this, "componentClasses", new Map());
|
|
31
26
|
}
|
|
32
|
-
|
|
33
27
|
var _proto = ComponentProps.prototype;
|
|
34
|
-
|
|
35
28
|
_proto.set = function set(key, value) {
|
|
36
29
|
if (this.componentProps.has(key) === false) {
|
|
37
30
|
throw new Error("Incorrect key was passed");
|
|
38
31
|
}
|
|
39
|
-
|
|
40
32
|
this.componentProps.set(key, value);
|
|
41
33
|
};
|
|
42
|
-
|
|
43
34
|
_proto.get = function get(key) {
|
|
44
35
|
return this.componentProps.get(key);
|
|
45
36
|
};
|
|
46
|
-
|
|
47
37
|
_proto.setStyle = function setStyle(key, value) {
|
|
48
38
|
if (this.componentClasses.has(key) === false) {
|
|
49
39
|
throw new Error("Incorrect key was passed");
|
|
50
40
|
}
|
|
51
|
-
|
|
52
41
|
this.componentClasses.set(key, value);
|
|
53
42
|
};
|
|
54
|
-
|
|
55
43
|
_proto.getStyle = function getStyle(key) {
|
|
56
44
|
return this.componentClasses.get(key);
|
|
57
45
|
};
|
|
58
|
-
|
|
59
46
|
// @ts-ignore
|
|
60
47
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
61
48
|
// @ts-ignore
|
|
62
49
|
this[key] = eval(code);
|
|
63
50
|
};
|
|
64
|
-
|
|
65
51
|
return ComponentProps;
|
|
66
52
|
}();
|
|
67
|
-
|
|
68
53
|
exports.default = ComponentProps;
|
|
69
54
|
;
|
|
70
|
-
|
|
71
55
|
(function () {
|
|
72
56
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
73
|
-
|
|
74
57
|
if (!reactHotLoader) {
|
|
75
58
|
return;
|
|
76
59
|
}
|
|
77
|
-
|
|
78
60
|
reactHotLoader.register(ComponentProps, "ComponentProps", "/home/vsts/work/1/s/src/components/MaterialUI/componentProps.js");
|
|
79
61
|
})();
|
|
80
|
-
|
|
81
62
|
;
|
|
82
|
-
|
|
83
63
|
(function () {
|
|
84
64
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
85
65
|
leaveModule && leaveModule(module);
|
|
86
66
|
})();
|
|
87
|
-
|
|
88
67
|
;
|
|
89
|
-
|
|
90
68
|
(function () {
|
|
91
69
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
92
|
-
|
|
93
70
|
if (!reactHotLoader) {
|
|
94
71
|
return;
|
|
95
72
|
}
|
|
96
|
-
|
|
97
73
|
reactHotLoader.register(ComponentProps, "ComponentProps", "/home/vsts/work/1/s/src/components/MaterialUI/componentProps.js");
|
|
98
74
|
})();
|
|
99
|
-
|
|
100
75
|
;
|
|
101
|
-
|
|
102
76
|
(function () {
|
|
103
77
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
104
78
|
leaveModule && leaveModule(module);
|
|
@@ -2,61 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.Arrow = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _Popper = _interopRequireDefault(require("@material-ui/core/Popper"));
|
|
9
|
-
|
|
10
7
|
var _ClickAwayListener = _interopRequireDefault(require("@material-ui/core/ClickAwayListener"));
|
|
11
|
-
|
|
12
8
|
var _propertyValidator = require("../../../utils/propertyValidator");
|
|
13
|
-
|
|
14
9
|
var _styles = require("@material-ui/core/styles");
|
|
15
|
-
|
|
16
10
|
var _excluded = ["popperValue"];
|
|
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 _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); }
|
|
35
|
-
|
|
36
23
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
-
|
|
38
24
|
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."); }
|
|
39
|
-
|
|
40
25
|
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); }
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
26
|
+
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; }
|
|
27
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
46
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
-
|
|
48
29
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
49
|
-
|
|
50
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
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 useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
61
38
|
return {
|
|
62
39
|
popper: {
|
|
@@ -108,55 +85,43 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
108
85
|
}
|
|
109
86
|
};
|
|
110
87
|
});
|
|
111
|
-
|
|
112
88
|
var Arrow = function Arrow(_ref) {
|
|
113
89
|
var arrowClass = _ref.arrowClass;
|
|
114
90
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
115
91
|
className: arrowClass
|
|
116
92
|
});
|
|
117
93
|
};
|
|
118
|
-
|
|
119
94
|
exports.Arrow = Arrow;
|
|
120
|
-
|
|
121
95
|
var withDeferredPopper = function withDeferredPopper(Comp) {
|
|
122
96
|
return __signature__(__signature__(function (_ref2) {
|
|
123
97
|
var _props$placement, _classProp$popperCont, _classProp$popper, _classProp$arrow;
|
|
124
|
-
|
|
125
98
|
var popperValue = _ref2.popperValue,
|
|
126
|
-
|
|
127
|
-
|
|
99
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
128
100
|
var classes = useStyles();
|
|
129
|
-
|
|
130
101
|
var _useState = (0, _react.useState)({
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
102
|
+
isDisplayed: false,
|
|
103
|
+
anchorElement: null,
|
|
104
|
+
arrowElement: null
|
|
105
|
+
}),
|
|
106
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
107
|
+
popperState = _useState2[0],
|
|
108
|
+
setPopperState = _useState2[1];
|
|
139
109
|
if (popperValue == null) return /*#__PURE__*/_react.default.createElement(Comp, props);
|
|
140
110
|
if ((0, _propertyValidator.isString)(popperValue) && (0, _propertyValidator.isStringNullOrWhitespace)(popperValue)) return /*#__PURE__*/_react.default.createElement(Comp, props);
|
|
141
111
|
if ((0, _propertyValidator.isObject)(popperValue) && (0, _propertyValidator.isReactComponent)(popperValue) === false) return /*#__PURE__*/_react.default.createElement(Comp, props);
|
|
142
|
-
|
|
143
112
|
var defaultComponent = /*#__PURE__*/_react.default.createElement(Comp, _extends({
|
|
144
113
|
onClick: function onClick(event) {
|
|
145
114
|
return togglePopper(event);
|
|
146
115
|
}
|
|
147
116
|
}, props));
|
|
148
|
-
|
|
149
117
|
var togglePopper = function togglePopper(event) {
|
|
150
118
|
var _event$_dispatchInsta;
|
|
151
|
-
|
|
152
119
|
var linkParent = event == null ? void 0 : (_event$_dispatchInsta = event._dispatchInstances) == null ? void 0 : _event$_dispatchInsta.filter(function (item) {
|
|
153
120
|
return item.elementType === "a";
|
|
154
121
|
});
|
|
155
|
-
|
|
156
122
|
if (linkParent) {
|
|
157
123
|
event.preventDefault();
|
|
158
124
|
}
|
|
159
|
-
|
|
160
125
|
var isDisplayed = !popperState.isDisplayed;
|
|
161
126
|
var anchorElement = event.currentTarget;
|
|
162
127
|
setPopperState({
|
|
@@ -166,7 +131,6 @@ var withDeferredPopper = function withDeferredPopper(Comp) {
|
|
|
166
131
|
event.bubbles = false;
|
|
167
132
|
event.stopPropagation();
|
|
168
133
|
};
|
|
169
|
-
|
|
170
134
|
var clickAwayHandler = function clickAwayHandler() {
|
|
171
135
|
if (popperState.anchorElement) {
|
|
172
136
|
setPopperState({
|
|
@@ -175,7 +139,6 @@ var withDeferredPopper = function withDeferredPopper(Comp) {
|
|
|
175
139
|
});
|
|
176
140
|
}
|
|
177
141
|
};
|
|
178
|
-
|
|
179
142
|
var placement = (_props$placement = props == null ? void 0 : props.placement) != null ? _props$placement : "bottom";
|
|
180
143
|
var classProp = props.classprop ? props.classprop : classes;
|
|
181
144
|
classProp.popperContainer = (_classProp$popperCont = classProp.popperContainer) != null ? _classProp$popperCont : classes.popperContainer;
|
|
@@ -212,50 +175,38 @@ var withDeferredPopper = function withDeferredPopper(Comp) {
|
|
|
212
175
|
return [useStyles];
|
|
213
176
|
});
|
|
214
177
|
};
|
|
215
|
-
|
|
216
178
|
var _default = withDeferredPopper;
|
|
217
179
|
var _default2 = _default;
|
|
218
180
|
var _default3 = _default2;
|
|
219
181
|
exports.default = _default3;
|
|
220
182
|
;
|
|
221
|
-
|
|
222
183
|
(function () {
|
|
223
184
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
224
|
-
|
|
225
185
|
if (!reactHotLoader) {
|
|
226
186
|
return;
|
|
227
187
|
}
|
|
228
|
-
|
|
229
188
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
230
189
|
reactHotLoader.register(Arrow, "Arrow", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
231
190
|
reactHotLoader.register(withDeferredPopper, "withDeferredPopper", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
232
191
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
233
192
|
})();
|
|
234
|
-
|
|
235
193
|
;
|
|
236
|
-
|
|
237
194
|
(function () {
|
|
238
195
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
239
196
|
leaveModule && leaveModule(module);
|
|
240
197
|
})();
|
|
241
|
-
|
|
242
198
|
;
|
|
243
|
-
|
|
244
199
|
(function () {
|
|
245
200
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
246
|
-
|
|
247
201
|
if (!reactHotLoader) {
|
|
248
202
|
return;
|
|
249
203
|
}
|
|
250
|
-
|
|
251
204
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
252
205
|
reactHotLoader.register(Arrow, "Arrow", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
253
206
|
reactHotLoader.register(withDeferredPopper, "withDeferredPopper", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
254
207
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredPopper.js");
|
|
255
208
|
})();
|
|
256
|
-
|
|
257
209
|
;
|
|
258
|
-
|
|
259
210
|
(function () {
|
|
260
211
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
261
212
|
leaveModule && leaveModule(module);
|
|
@@ -2,77 +2,53 @@
|
|
|
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 _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
9
|
-
|
|
10
7
|
var _propertyValidator = require("../../../utils/propertyValidator");
|
|
11
|
-
|
|
12
8
|
var _excluded = ["titleValue", "alwaysDisplay"];
|
|
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
|
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); }
|
|
31
|
-
|
|
32
21
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
-
|
|
34
22
|
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."); }
|
|
35
|
-
|
|
36
23
|
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); }
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
24
|
+
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; }
|
|
25
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
42
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
-
|
|
44
27
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
45
|
-
|
|
46
28
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
47
|
-
|
|
48
29
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
49
30
|
return a;
|
|
50
31
|
};
|
|
51
|
-
|
|
52
32
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
53
33
|
return a;
|
|
54
34
|
};
|
|
55
|
-
|
|
56
35
|
// Pay attention that if component you are passed to this HOC contains titleValue property
|
|
57
36
|
// by itself then that property will be disappeared after using that HOC.
|
|
58
37
|
// To fix it rename that property and pass titleValue just as a title for tooltip.
|
|
59
38
|
var withDeferredTooltip = function withDeferredTooltip(Comp) {
|
|
60
39
|
return __signature__(__signature__(function (_ref) {
|
|
61
40
|
var titleValue = _ref.titleValue,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
alwaysDisplay = _ref.alwaysDisplay,
|
|
42
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
65
43
|
var _useState = (0, _react.useState)(false),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
+
shouldBeTooltipped = _useState2[0],
|
|
46
|
+
setShouldBeTooltipped = _useState2[1];
|
|
70
47
|
var defaultComponent = /*#__PURE__*/_react.default.createElement(Comp, _extends({
|
|
71
48
|
onMouseEnter: function onMouseEnter(event) {
|
|
72
49
|
return makeComponentTooltipped(event);
|
|
73
50
|
}
|
|
74
51
|
}, props));
|
|
75
|
-
|
|
76
52
|
var makeComponentTooltipped = function makeComponentTooltipped(event) {
|
|
77
53
|
if (alwaysDisplay) {
|
|
78
54
|
setShouldBeTooltipped(true);
|
|
@@ -80,7 +56,6 @@ var withDeferredTooltip = function withDeferredTooltip(Comp) {
|
|
|
80
56
|
setShouldBeTooltipped(event.target.offsetWidth < event.target.scrollWidth);
|
|
81
57
|
}
|
|
82
58
|
};
|
|
83
|
-
|
|
84
59
|
if (titleValue == null) return /*#__PURE__*/_react.default.createElement(Comp, props);
|
|
85
60
|
if ((0, _propertyValidator.isString)(titleValue) && (0, _propertyValidator.isStringNullOrWhitespace)(titleValue)) return /*#__PURE__*/_react.default.createElement(Comp, props);
|
|
86
61
|
if ((0, _propertyValidator.isObject)(titleValue) && (0, _propertyValidator.isReactComponent)(titleValue) === false) return /*#__PURE__*/_react.default.createElement(Comp, props);
|
|
@@ -94,46 +69,34 @@ var withDeferredTooltip = function withDeferredTooltip(Comp) {
|
|
|
94
69
|
}, defaultComponent);
|
|
95
70
|
}, "useState{[shouldBeTooltipped, setShouldBeTooltipped](false)}"), "useState{[shouldBeTooltipped, setShouldBeTooltipped](false)}");
|
|
96
71
|
};
|
|
97
|
-
|
|
98
72
|
var _default = withDeferredTooltip;
|
|
99
73
|
var _default2 = _default;
|
|
100
74
|
var _default3 = _default2;
|
|
101
75
|
exports.default = _default3;
|
|
102
76
|
;
|
|
103
|
-
|
|
104
77
|
(function () {
|
|
105
78
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
106
|
-
|
|
107
79
|
if (!reactHotLoader) {
|
|
108
80
|
return;
|
|
109
81
|
}
|
|
110
|
-
|
|
111
82
|
reactHotLoader.register(withDeferredTooltip, "withDeferredTooltip", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredTooltip.js");
|
|
112
83
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredTooltip.js");
|
|
113
84
|
})();
|
|
114
|
-
|
|
115
85
|
;
|
|
116
|
-
|
|
117
86
|
(function () {
|
|
118
87
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
119
88
|
leaveModule && leaveModule(module);
|
|
120
89
|
})();
|
|
121
|
-
|
|
122
90
|
;
|
|
123
|
-
|
|
124
91
|
(function () {
|
|
125
92
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
126
|
-
|
|
127
93
|
if (!reactHotLoader) {
|
|
128
94
|
return;
|
|
129
95
|
}
|
|
130
|
-
|
|
131
96
|
reactHotLoader.register(withDeferredTooltip, "withDeferredTooltip", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredTooltip.js");
|
|
132
97
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/hocs/withDeferredTooltip.js");
|
|
133
98
|
})();
|
|
134
|
-
|
|
135
99
|
;
|
|
136
|
-
|
|
137
100
|
(function () {
|
|
138
101
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
139
102
|
leaveModule && leaveModule(module);
|