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,41 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.inputTypes = exports.default = exports.createInput = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _index = require("./index");
|
|
9
|
-
|
|
10
7
|
var _propsClasses, _inputComponents, _propsPropertyName;
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
9
|
(function () {
|
|
15
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
11
|
enterModule && enterModule(module);
|
|
17
12
|
})();
|
|
18
|
-
|
|
19
13
|
(function () {
|
|
20
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
15
|
enterModule && enterModule(module);
|
|
22
16
|
})();
|
|
23
|
-
|
|
24
17
|
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; }
|
|
25
|
-
|
|
26
18
|
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; }
|
|
27
|
-
|
|
28
|
-
function _extends() { _extends = Object.assign
|
|
29
|
-
|
|
19
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
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); }
|
|
30
21
|
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; }
|
|
31
|
-
|
|
32
22
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
33
23
|
return a;
|
|
34
24
|
};
|
|
35
|
-
|
|
36
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
37
26
|
return a;
|
|
38
27
|
};
|
|
39
|
-
|
|
40
28
|
var inputTypes = {
|
|
41
29
|
inputBase: "inputBase",
|
|
42
30
|
checkbox: "checkbox",
|
|
@@ -50,16 +38,13 @@ exports.inputTypes = inputTypes;
|
|
|
50
38
|
var propsClasses = (_propsClasses = {}, _defineProperty(_propsClasses, inputTypes.inputBase, _index.InputBaseProps), _defineProperty(_propsClasses, inputTypes.checkbox, _index.CheckboxProps), _defineProperty(_propsClasses, inputTypes.checkboxGroup, _index.CheckboxGroupProps), _defineProperty(_propsClasses, inputTypes.radio, _index.RadioProps), _defineProperty(_propsClasses, inputTypes.select, _index.SelectProps), _defineProperty(_propsClasses, inputTypes.standaloneRadio, _index.StandaloneRadioProps), _defineProperty(_propsClasses, inputTypes.switch, _index.SwitchProps), _propsClasses);
|
|
51
39
|
var inputComponents = (_inputComponents = {}, _defineProperty(_inputComponents, inputTypes.inputBase, _index.InputBase), _defineProperty(_inputComponents, inputTypes.checkbox, _index.Checkbox), _defineProperty(_inputComponents, inputTypes.checkboxGroup, _index.CheckboxGroup), _defineProperty(_inputComponents, inputTypes.radio, _index.Radio), _defineProperty(_inputComponents, inputTypes.select, _index.Select), _defineProperty(_inputComponents, inputTypes.standaloneRadio, _index.StandaloneRadio), _defineProperty(_inputComponents, inputTypes.switch, _index.Switch), _inputComponents);
|
|
52
40
|
var propsPropertyName = (_propsPropertyName = {}, _defineProperty(_propsPropertyName, inputTypes.inputBase, "inputProps"), _defineProperty(_propsPropertyName, inputTypes.checkbox, "checkboxProps"), _defineProperty(_propsPropertyName, inputTypes.checkboxGroup, "checkboxGroupProps"), _defineProperty(_propsPropertyName, inputTypes.radio, "radioProps"), _defineProperty(_propsPropertyName, inputTypes.select, "selectProps"), _defineProperty(_propsPropertyName, inputTypes.standaloneRadio, "radioProps"), _defineProperty(_propsPropertyName, inputTypes.switch, "switchProps"), _propsPropertyName);
|
|
53
|
-
|
|
54
41
|
var createInput = function createInput(inputType, _ref) {
|
|
55
|
-
var props = _extends({}, _ref);
|
|
56
|
-
|
|
42
|
+
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
57
43
|
var typePropsInstance = new propsClasses[inputType]();
|
|
58
44
|
var propKeys = Object.keys(props);
|
|
59
45
|
var otherProps = {};
|
|
60
46
|
propKeys.forEach(function (propKey) {
|
|
61
47
|
var _propsClasses$inputTy;
|
|
62
|
-
|
|
63
48
|
if (propsClasses[inputType].propNames[propKey] != null) {
|
|
64
49
|
typePropsInstance.set(propKey, props[propKey]);
|
|
65
50
|
} else if (((_propsClasses$inputTy = propsClasses[inputType].ruleNames) == null ? void 0 : _propsClasses$inputTy[propKey]) != null) {
|
|
@@ -70,21 +55,17 @@ var createInput = function createInput(inputType, _ref) {
|
|
|
70
55
|
});
|
|
71
56
|
return _react.default.createElement(inputComponents[inputType], _objectSpread(_defineProperty({}, propsPropertyName[inputType], typePropsInstance), otherProps));
|
|
72
57
|
};
|
|
73
|
-
|
|
74
58
|
exports.createInput = createInput;
|
|
75
59
|
var _default = createInput;
|
|
76
60
|
var _default2 = _default;
|
|
77
61
|
var _default3 = _default2;
|
|
78
62
|
exports.default = _default3;
|
|
79
63
|
;
|
|
80
|
-
|
|
81
64
|
(function () {
|
|
82
65
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
83
|
-
|
|
84
66
|
if (!reactHotLoader) {
|
|
85
67
|
return;
|
|
86
68
|
}
|
|
87
|
-
|
|
88
69
|
reactHotLoader.register(inputTypes, "inputTypes", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
89
70
|
reactHotLoader.register(propsClasses, "propsClasses", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
90
71
|
reactHotLoader.register(inputComponents, "inputComponents", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
@@ -92,23 +73,17 @@ exports.default = _default3;
|
|
|
92
73
|
reactHotLoader.register(createInput, "createInput", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
93
74
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
94
75
|
})();
|
|
95
|
-
|
|
96
76
|
;
|
|
97
|
-
|
|
98
77
|
(function () {
|
|
99
78
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
100
79
|
leaveModule && leaveModule(module);
|
|
101
80
|
})();
|
|
102
|
-
|
|
103
81
|
;
|
|
104
|
-
|
|
105
82
|
(function () {
|
|
106
83
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
107
|
-
|
|
108
84
|
if (!reactHotLoader) {
|
|
109
85
|
return;
|
|
110
86
|
}
|
|
111
|
-
|
|
112
87
|
reactHotLoader.register(inputTypes, "inputTypes", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
113
88
|
reactHotLoader.register(propsClasses, "propsClasses", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
114
89
|
reactHotLoader.register(inputComponents, "inputComponents", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
@@ -116,9 +91,7 @@ exports.default = _default3;
|
|
|
116
91
|
reactHotLoader.register(createInput, "createInput", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
117
92
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/createInput.js");
|
|
118
93
|
})();
|
|
119
|
-
|
|
120
94
|
;
|
|
121
|
-
|
|
122
95
|
(function () {
|
|
123
96
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
124
97
|
leaveModule && leaveModule(module);
|
|
@@ -2,77 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.TimePicker = exports.SwitchProps = exports.Switch = exports.StandaloneRadioProps = exports.StandaloneRadio = exports.SelectProps = exports.Select = exports.RadioProps = exports.Radio = exports.InputBaseProps = exports.InputBase = exports.DatePicker = exports.CheckboxProps = exports.CheckboxGroupProps = exports.CheckboxGroup = exports.Checkbox = void 0;
|
|
5
|
-
|
|
6
5
|
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
7
|
-
|
|
8
6
|
exports.Checkbox = _Checkbox.default;
|
|
9
|
-
|
|
10
7
|
var _CheckboxProps = _interopRequireDefault(require("./CheckboxProps"));
|
|
11
|
-
|
|
12
8
|
exports.CheckboxProps = _CheckboxProps.default;
|
|
13
|
-
|
|
14
9
|
var _CheckboxGroup = _interopRequireDefault(require("./CheckboxGroup"));
|
|
15
|
-
|
|
16
10
|
exports.CheckboxGroup = _CheckboxGroup.default;
|
|
17
|
-
|
|
18
11
|
var _CheckboxGroupProps = _interopRequireDefault(require("./CheckboxGroupProps"));
|
|
19
|
-
|
|
20
12
|
exports.CheckboxGroupProps = _CheckboxGroupProps.default;
|
|
21
|
-
|
|
22
13
|
var _DatePicker = _interopRequireDefault(require("./DatePicker"));
|
|
23
|
-
|
|
24
14
|
exports.DatePicker = _DatePicker.default;
|
|
25
|
-
|
|
26
15
|
var _InputBase = _interopRequireDefault(require("./InputBase"));
|
|
27
|
-
|
|
28
16
|
exports.InputBase = _InputBase.default;
|
|
29
|
-
|
|
30
17
|
var _InputBaseProps = _interopRequireDefault(require("./InputBaseProps"));
|
|
31
|
-
|
|
32
18
|
exports.InputBaseProps = _InputBaseProps.default;
|
|
33
|
-
|
|
34
19
|
var _Radio = _interopRequireDefault(require("./Radio"));
|
|
35
|
-
|
|
36
20
|
exports.Radio = _Radio.default;
|
|
37
|
-
|
|
38
21
|
var _RadioProps = _interopRequireDefault(require("./RadioProps"));
|
|
39
|
-
|
|
40
22
|
exports.RadioProps = _RadioProps.default;
|
|
41
|
-
|
|
42
23
|
var _StandaloneRadio = _interopRequireDefault(require("./StandaloneRadio"));
|
|
43
|
-
|
|
44
24
|
exports.StandaloneRadio = _StandaloneRadio.default;
|
|
45
|
-
|
|
46
25
|
var _standaloneRadioProps = _interopRequireDefault(require("./standaloneRadioProps"));
|
|
47
|
-
|
|
48
26
|
exports.StandaloneRadioProps = _standaloneRadioProps.default;
|
|
49
|
-
|
|
50
27
|
var _Select = _interopRequireDefault(require("./Select"));
|
|
51
|
-
|
|
52
28
|
exports.Select = _Select.default;
|
|
53
|
-
|
|
54
29
|
var _SelectProps = _interopRequireDefault(require("./SelectProps"));
|
|
55
|
-
|
|
56
30
|
exports.SelectProps = _SelectProps.default;
|
|
57
|
-
|
|
58
31
|
var _Switch = _interopRequireDefault(require("./Switch"));
|
|
59
|
-
|
|
60
32
|
exports.Switch = _Switch.default;
|
|
61
|
-
|
|
62
33
|
var _SwitchProps = _interopRequireDefault(require("./SwitchProps"));
|
|
63
|
-
|
|
64
34
|
exports.SwitchProps = _SwitchProps.default;
|
|
65
|
-
|
|
66
35
|
var _TimePicker = _interopRequireDefault(require("./TimePicker"));
|
|
67
|
-
|
|
68
36
|
exports.TimePicker = _TimePicker.default;
|
|
69
|
-
|
|
70
37
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
71
|
-
|
|
72
38
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
73
39
|
return a;
|
|
74
40
|
};
|
|
75
|
-
|
|
76
41
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
77
42
|
return a;
|
|
78
43
|
};
|
|
@@ -2,76 +2,50 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isStandaloneRadioProps = 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
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
17
|
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; }
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var StandaloneRadioProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
25
|
_inheritsLoose(StandaloneRadioProps, _ComponentProps);
|
|
36
|
-
|
|
37
26
|
function StandaloneRadioProps() {
|
|
38
27
|
var _this;
|
|
39
|
-
|
|
40
28
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
29
|
_this.componentProps.set(_this.constructor.propNames.name, null);
|
|
43
|
-
|
|
44
30
|
_this.componentProps.set(_this.constructor.propNames.checked, null);
|
|
45
|
-
|
|
46
31
|
_this.componentProps.set(_this.constructor.propNames.disabled, null);
|
|
47
|
-
|
|
48
32
|
_this.componentProps.set(_this.constructor.propNames.onChange, null);
|
|
49
|
-
|
|
50
33
|
_this.componentProps.set(_this.constructor.propNames.size, null);
|
|
51
|
-
|
|
52
34
|
_this.componentProps.set(_this.constructor.propNames.value, null);
|
|
53
|
-
|
|
54
35
|
_this.componentProps.set(_this.constructor.propNames.inputProps, null);
|
|
55
|
-
|
|
56
36
|
_this.componentProps.set(_this.constructor.propNames.readOnly, null);
|
|
57
|
-
|
|
58
37
|
_this.componentClasses.set(_this.constructor.ruleNames.root, null);
|
|
59
|
-
|
|
60
38
|
_this._isStandaloneRadioProps = true;
|
|
61
39
|
return _this;
|
|
62
40
|
}
|
|
63
|
-
|
|
64
41
|
var _proto = StandaloneRadioProps.prototype;
|
|
65
|
-
|
|
66
42
|
// @ts-ignore
|
|
67
43
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
68
44
|
// @ts-ignore
|
|
69
45
|
this[key] = eval(code);
|
|
70
46
|
};
|
|
71
|
-
|
|
72
47
|
return StandaloneRadioProps;
|
|
73
48
|
}(_componentProps.default);
|
|
74
|
-
|
|
75
49
|
_defineProperty(StandaloneRadioProps, "propNames", {
|
|
76
50
|
name: "name",
|
|
77
51
|
checked: "checked",
|
|
@@ -82,58 +56,44 @@ _defineProperty(StandaloneRadioProps, "propNames", {
|
|
|
82
56
|
inputProps: "inputProps",
|
|
83
57
|
readOnly: "readOnly"
|
|
84
58
|
});
|
|
85
|
-
|
|
86
59
|
_defineProperty(StandaloneRadioProps, "ruleNames", {
|
|
87
60
|
root: "root"
|
|
88
61
|
});
|
|
89
|
-
|
|
90
62
|
var isStandaloneRadioProps = function isStandaloneRadioProps(value) {
|
|
91
63
|
if (value == null) return true;
|
|
92
64
|
return typeof value === "object" && (value instanceof StandaloneRadioProps || value._isStandaloneRadioProps === true);
|
|
93
65
|
};
|
|
94
|
-
|
|
95
66
|
exports.isStandaloneRadioProps = isStandaloneRadioProps;
|
|
96
67
|
var _default = StandaloneRadioProps;
|
|
97
68
|
var _default2 = _default;
|
|
98
69
|
var _default3 = _default2;
|
|
99
70
|
exports.default = _default3;
|
|
100
71
|
;
|
|
101
|
-
|
|
102
72
|
(function () {
|
|
103
73
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
104
|
-
|
|
105
74
|
if (!reactHotLoader) {
|
|
106
75
|
return;
|
|
107
76
|
}
|
|
108
|
-
|
|
109
77
|
reactHotLoader.register(StandaloneRadioProps, "StandaloneRadioProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/standaloneRadioProps.js");
|
|
110
78
|
reactHotLoader.register(isStandaloneRadioProps, "isStandaloneRadioProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/standaloneRadioProps.js");
|
|
111
79
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/standaloneRadioProps.js");
|
|
112
80
|
})();
|
|
113
|
-
|
|
114
81
|
;
|
|
115
|
-
|
|
116
82
|
(function () {
|
|
117
83
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
118
84
|
leaveModule && leaveModule(module);
|
|
119
85
|
})();
|
|
120
|
-
|
|
121
86
|
;
|
|
122
|
-
|
|
123
87
|
(function () {
|
|
124
88
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
125
|
-
|
|
126
89
|
if (!reactHotLoader) {
|
|
127
90
|
return;
|
|
128
91
|
}
|
|
129
|
-
|
|
130
92
|
reactHotLoader.register(StandaloneRadioProps, "StandaloneRadioProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/standaloneRadioProps.js");
|
|
131
93
|
reactHotLoader.register(isStandaloneRadioProps, "isStandaloneRadioProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/standaloneRadioProps.js");
|
|
132
94
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/standaloneRadioProps.js");
|
|
133
95
|
})();
|
|
134
|
-
|
|
135
96
|
;
|
|
136
|
-
|
|
137
97
|
(function () {
|
|
138
98
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
139
99
|
leaveModule && leaveModule(module);
|
|
@@ -2,57 +2,36 @@
|
|
|
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 _styles = require("@material-ui/core/styles");
|
|
9
|
-
|
|
10
7
|
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
11
|
-
|
|
12
8
|
var _Menu = _interopRequireDefault(require("@material-ui/core/Menu"));
|
|
13
|
-
|
|
14
9
|
var _MenuItem = _interopRequireDefault(require("@material-ui/core/MenuItem"));
|
|
15
|
-
|
|
16
10
|
var _Text = _interopRequireDefault(require("../../Text"));
|
|
17
|
-
|
|
18
11
|
var _DropDownMenuProps = _interopRequireWildcard(require("./DropDownMenuProps"));
|
|
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
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
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; }
|
|
43
|
-
|
|
44
27
|
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
|
-
|
|
46
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
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
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
57
36
|
return {
|
|
58
37
|
menuItem: {
|
|
@@ -73,46 +52,37 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
73
52
|
}
|
|
74
53
|
};
|
|
75
54
|
});
|
|
76
|
-
|
|
77
55
|
var DropDownMenu = function DropDownMenu(_ref) {
|
|
78
56
|
var payload = _ref.payload,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
57
|
+
menuItems = _ref.menuItems,
|
|
58
|
+
children = _ref.children,
|
|
59
|
+
_ref$dropDownMenuProp = _ref.dropDownMenuProps,
|
|
60
|
+
dropDownMenuProps = _ref$dropDownMenuProp === void 0 ? new _DropDownMenuProps.default() : _ref$dropDownMenuProp;
|
|
84
61
|
if ((0, _DropDownMenuProps.isDropDownMenuProps)(dropDownMenuProps) === false) {
|
|
85
62
|
throw new TypeError("dropDownMenuProps property is not of type DropDownMenuProps");
|
|
86
63
|
}
|
|
87
|
-
|
|
88
64
|
var disabled = dropDownMenuProps.get(_DropDownMenuProps.default.propNames.disabled);
|
|
89
65
|
var autoFocus = dropDownMenuProps.get(_DropDownMenuProps.default.propNames.autoFocus);
|
|
90
|
-
|
|
91
66
|
var _useState = (0, _react.useState)(null),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
67
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
68
|
+
anchorEl = _useState2[0],
|
|
69
|
+
setAnchorEl = _useState2[1];
|
|
96
70
|
var isOpened = Boolean(anchorEl);
|
|
97
71
|
var classes = useStyles();
|
|
98
|
-
|
|
99
72
|
var onClose = function onClose(event) {
|
|
100
73
|
event.stopPropagation();
|
|
101
74
|
setAnchorEl(null);
|
|
102
75
|
};
|
|
103
|
-
|
|
104
76
|
var onMenuItemClick = function onMenuItemClick(action, itemContext) {
|
|
105
77
|
return function (event) {
|
|
106
78
|
onClose(event);
|
|
107
79
|
action(payload, itemContext);
|
|
108
80
|
};
|
|
109
81
|
};
|
|
110
|
-
|
|
111
82
|
var onOpenClick = function onOpenClick(event) {
|
|
112
83
|
event.stopPropagation();
|
|
113
84
|
setAnchorEl(event.currentTarget);
|
|
114
85
|
};
|
|
115
|
-
|
|
116
86
|
var buttonProps = {
|
|
117
87
|
"aria-controls": "scope-menu",
|
|
118
88
|
"aria-haspopup": true,
|
|
@@ -140,9 +110,9 @@ var DropDownMenu = function DropDownMenu(_ref) {
|
|
|
140
110
|
anchorEl: anchorEl
|
|
141
111
|
}, menuItems.map(function (_ref2, key) {
|
|
142
112
|
var title = _ref2.title,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
113
|
+
disabled = _ref2.disabled,
|
|
114
|
+
action = _ref2.action,
|
|
115
|
+
itemContext = _ref2.itemContext;
|
|
146
116
|
return /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
147
117
|
classes: {
|
|
148
118
|
root: classes.menuItem
|
|
@@ -155,56 +125,42 @@ var DropDownMenu = function DropDownMenu(_ref) {
|
|
|
155
125
|
}));
|
|
156
126
|
})));
|
|
157
127
|
};
|
|
158
|
-
|
|
159
128
|
__signature__(DropDownMenu, "useState{[anchorEl, setAnchorEl](null)}\nuseStyles{classes}", function () {
|
|
160
129
|
return [useStyles];
|
|
161
130
|
});
|
|
162
|
-
|
|
163
131
|
__signature__(DropDownMenu, "useState{[anchorEl, setAnchorEl](null)}\nuseStyles{classes}", function () {
|
|
164
132
|
return [useStyles];
|
|
165
133
|
});
|
|
166
|
-
|
|
167
134
|
var _default = DropDownMenu;
|
|
168
135
|
var _default2 = _default;
|
|
169
136
|
var _default3 = _default2;
|
|
170
137
|
exports.default = _default3;
|
|
171
138
|
;
|
|
172
|
-
|
|
173
139
|
(function () {
|
|
174
140
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
175
|
-
|
|
176
141
|
if (!reactHotLoader) {
|
|
177
142
|
return;
|
|
178
143
|
}
|
|
179
|
-
|
|
180
144
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenu.js");
|
|
181
145
|
reactHotLoader.register(DropDownMenu, "DropDownMenu", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenu.js");
|
|
182
146
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenu.js");
|
|
183
147
|
})();
|
|
184
|
-
|
|
185
148
|
;
|
|
186
|
-
|
|
187
149
|
(function () {
|
|
188
150
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
189
151
|
leaveModule && leaveModule(module);
|
|
190
152
|
})();
|
|
191
|
-
|
|
192
153
|
;
|
|
193
|
-
|
|
194
154
|
(function () {
|
|
195
155
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
196
|
-
|
|
197
156
|
if (!reactHotLoader) {
|
|
198
157
|
return;
|
|
199
158
|
}
|
|
200
|
-
|
|
201
159
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenu.js");
|
|
202
160
|
reactHotLoader.register(DropDownMenu, "DropDownMenu", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenu.js");
|
|
203
161
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenu.js");
|
|
204
162
|
})();
|
|
205
|
-
|
|
206
163
|
;
|
|
207
|
-
|
|
208
164
|
(function () {
|
|
209
165
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
210
166
|
leaveModule && leaveModule(module);
|
|
@@ -2,114 +2,82 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isDropDownMenuProps = 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
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
17
|
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; }
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var DropDownMenuProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
25
|
_inheritsLoose(DropDownMenuProps, _ComponentProps);
|
|
36
|
-
|
|
37
26
|
function DropDownMenuProps() {
|
|
38
27
|
var _this;
|
|
39
|
-
|
|
40
28
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
29
|
_this.componentProps.set(_this.constructor.propNames.autoFocus, true);
|
|
43
|
-
|
|
44
30
|
_this.componentProps.set(_this.constructor.propNames.disabled, false);
|
|
45
|
-
|
|
46
31
|
_this._isDropDownMenuProps = true;
|
|
47
32
|
return _this;
|
|
48
33
|
}
|
|
49
|
-
|
|
50
34
|
var _proto = DropDownMenuProps.prototype;
|
|
51
|
-
|
|
52
35
|
// @ts-ignore
|
|
53
36
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
54
37
|
// @ts-ignore
|
|
55
38
|
this[key] = eval(code);
|
|
56
39
|
};
|
|
57
|
-
|
|
58
40
|
return DropDownMenuProps;
|
|
59
41
|
}(_componentProps.default);
|
|
60
|
-
|
|
61
42
|
_defineProperty(DropDownMenuProps, "propNames", {
|
|
62
43
|
autoFocus: "autoFocus",
|
|
63
44
|
disabled: "disabled"
|
|
64
45
|
});
|
|
65
|
-
|
|
66
46
|
var isDropDownMenuProps = function isDropDownMenuProps(value) {
|
|
67
47
|
if (value == null) return true;
|
|
68
48
|
return typeof value === "object" && (value instanceof DropDownMenuProps || value._isDropDownMenuProps === true);
|
|
69
49
|
};
|
|
70
|
-
|
|
71
50
|
exports.isDropDownMenuProps = isDropDownMenuProps;
|
|
72
51
|
var _default = DropDownMenuProps;
|
|
73
52
|
var _default2 = _default;
|
|
74
53
|
var _default3 = _default2;
|
|
75
54
|
exports.default = _default3;
|
|
76
55
|
;
|
|
77
|
-
|
|
78
56
|
(function () {
|
|
79
57
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
80
|
-
|
|
81
58
|
if (!reactHotLoader) {
|
|
82
59
|
return;
|
|
83
60
|
}
|
|
84
|
-
|
|
85
61
|
reactHotLoader.register(DropDownMenuProps, "DropDownMenuProps", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenuProps.js");
|
|
86
62
|
reactHotLoader.register(isDropDownMenuProps, "isDropDownMenuProps", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenuProps.js");
|
|
87
63
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenuProps.js");
|
|
88
64
|
})();
|
|
89
|
-
|
|
90
65
|
;
|
|
91
|
-
|
|
92
66
|
(function () {
|
|
93
67
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
94
68
|
leaveModule && leaveModule(module);
|
|
95
69
|
})();
|
|
96
|
-
|
|
97
70
|
;
|
|
98
|
-
|
|
99
71
|
(function () {
|
|
100
72
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
101
|
-
|
|
102
73
|
if (!reactHotLoader) {
|
|
103
74
|
return;
|
|
104
75
|
}
|
|
105
|
-
|
|
106
76
|
reactHotLoader.register(DropDownMenuProps, "DropDownMenuProps", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenuProps.js");
|
|
107
77
|
reactHotLoader.register(isDropDownMenuProps, "isDropDownMenuProps", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenuProps.js");
|
|
108
78
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/DropDownMenuProps.js");
|
|
109
79
|
})();
|
|
110
|
-
|
|
111
80
|
;
|
|
112
|
-
|
|
113
81
|
(function () {
|
|
114
82
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
115
83
|
leaveModule && leaveModule(module);
|