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,35 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _withDeferredTooltip = _interopRequireDefault(require("../../hocs/withDeferredTooltip"));
|
|
9
|
-
|
|
10
7
|
var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
|
|
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 _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); }
|
|
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 TooltippedTypography = (0, _withDeferredTooltip.default)(_react.default.forwardRef(function (wrapperProps, ref) {
|
|
35
25
|
return /*#__PURE__*/_react.default.createElement(_Typography.default, _extends({}, wrapperProps, {
|
|
36
26
|
ref: ref
|
|
@@ -41,40 +31,29 @@ var _default2 = _default;
|
|
|
41
31
|
var _default3 = _default2;
|
|
42
32
|
exports.default = _default3;
|
|
43
33
|
;
|
|
44
|
-
|
|
45
34
|
(function () {
|
|
46
35
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
47
|
-
|
|
48
36
|
if (!reactHotLoader) {
|
|
49
37
|
return;
|
|
50
38
|
}
|
|
51
|
-
|
|
52
39
|
reactHotLoader.register(TooltippedTypography, "TooltippedTypography", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js");
|
|
53
40
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js");
|
|
54
41
|
})();
|
|
55
|
-
|
|
56
42
|
;
|
|
57
|
-
|
|
58
43
|
(function () {
|
|
59
44
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
60
45
|
leaveModule && leaveModule(module);
|
|
61
46
|
})();
|
|
62
|
-
|
|
63
47
|
;
|
|
64
|
-
|
|
65
48
|
(function () {
|
|
66
49
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
67
|
-
|
|
68
50
|
if (!reactHotLoader) {
|
|
69
51
|
return;
|
|
70
52
|
}
|
|
71
|
-
|
|
72
53
|
reactHotLoader.register(TooltippedTypography, "TooltippedTypography", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js");
|
|
73
54
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js");
|
|
74
55
|
})();
|
|
75
|
-
|
|
76
56
|
;
|
|
77
|
-
|
|
78
57
|
(function () {
|
|
79
58
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
80
59
|
leaveModule && leaveModule(module);
|
|
@@ -2,73 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.ScrollableCustomList = exports.CustomList = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _reactIntl = require("react-intl");
|
|
9
|
-
|
|
10
7
|
var _styles = require("@material-ui/core/styles");
|
|
11
|
-
|
|
12
8
|
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
13
|
-
|
|
14
9
|
var _List = _interopRequireDefault(require("@material-ui/core/List"));
|
|
15
|
-
|
|
16
10
|
var _ListItem = _interopRequireDefault(require("@material-ui/core/ListItem"));
|
|
17
|
-
|
|
18
11
|
var _ListItemText = _interopRequireDefault(require("@material-ui/core/ListItemText"));
|
|
19
|
-
|
|
20
12
|
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
21
|
-
|
|
22
13
|
var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
|
|
23
|
-
|
|
24
14
|
var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
|
|
25
|
-
|
|
26
15
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
|
-
|
|
28
16
|
var _propertyValidator = require("../../../utils/propertyValidator");
|
|
29
|
-
|
|
30
17
|
var _sharedMessages = _interopRequireDefault(require("../../../sharedMessages"));
|
|
31
|
-
|
|
32
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
|
-
|
|
34
19
|
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); }
|
|
35
|
-
|
|
36
20
|
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; }
|
|
37
|
-
|
|
38
21
|
(function () {
|
|
39
22
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
40
23
|
enterModule && enterModule(module);
|
|
41
24
|
})();
|
|
42
|
-
|
|
43
25
|
(function () {
|
|
44
26
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
45
27
|
enterModule && enterModule(module);
|
|
46
28
|
})();
|
|
47
|
-
|
|
48
29
|
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); }
|
|
49
|
-
|
|
50
30
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
51
|
-
|
|
52
31
|
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."); }
|
|
53
|
-
|
|
54
32
|
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); }
|
|
55
|
-
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
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; }
|
|
59
|
-
|
|
33
|
+
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; }
|
|
34
|
+
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; } }
|
|
60
35
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61
|
-
|
|
62
|
-
function
|
|
63
|
-
|
|
36
|
+
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; }
|
|
37
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
38
|
+
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); }
|
|
64
39
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
65
40
|
return a;
|
|
66
41
|
};
|
|
67
|
-
|
|
68
42
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
69
43
|
return a;
|
|
70
44
|
};
|
|
71
|
-
|
|
72
45
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
73
46
|
return {
|
|
74
47
|
title: {
|
|
@@ -130,10 +103,8 @@ var useListStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
130
103
|
}
|
|
131
104
|
};
|
|
132
105
|
});
|
|
133
|
-
|
|
134
106
|
var formatState = function formatState(state, checked, from, to) {
|
|
135
107
|
var _ref3;
|
|
136
|
-
|
|
137
108
|
var fromSelectedItems = state[from].filter(function (_ref) {
|
|
138
109
|
var id = _ref.id;
|
|
139
110
|
return checked.includes(id);
|
|
@@ -143,16 +114,13 @@ var formatState = function formatState(state, checked, from, to) {
|
|
|
143
114
|
return !checked.includes(id);
|
|
144
115
|
})), _ref3;
|
|
145
116
|
};
|
|
146
|
-
|
|
147
117
|
var ScrollableCustomList = _react.default.forwardRef(function (props, ref) {
|
|
148
118
|
var scrollEvent = function scrollEvent(evt) {
|
|
149
119
|
if (!props.onScroll) return;
|
|
150
|
-
|
|
151
120
|
if (evt.target.scrollHeight - (evt.target.scrollTop + evt.target.offsetHeight) < 50 && props.currentTotal === props.currentPage * props.pageSize) {
|
|
152
121
|
props.onScroll(props.currentPage + 1);
|
|
153
122
|
}
|
|
154
123
|
};
|
|
155
|
-
|
|
156
124
|
return /*#__PURE__*/_react.default.createElement(_Paper.default, {
|
|
157
125
|
ref: ref,
|
|
158
126
|
onScroll: scrollEvent,
|
|
@@ -166,19 +134,16 @@ var ScrollableCustomList = _react.default.forwardRef(function (props, ref) {
|
|
|
166
134
|
onChange: props.onChange
|
|
167
135
|
}));
|
|
168
136
|
});
|
|
169
|
-
|
|
170
137
|
exports.ScrollableCustomList = ScrollableCustomList;
|
|
171
|
-
|
|
172
138
|
var compareListItem = function compareListItem(prev, next) {
|
|
173
139
|
return prev.item.id === next.item.id && prev.isChecked === next.isChecked && prev.item.subtitle === next.item.subtitle && prev.item.title === next.item.title;
|
|
174
140
|
};
|
|
175
|
-
|
|
176
141
|
var ListItemWrapper = function ListItemWrapper(_ref4) {
|
|
177
142
|
var isChecked = _ref4.isChecked,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
143
|
+
item = _ref4.item,
|
|
144
|
+
handleToggle = _ref4.handleToggle,
|
|
145
|
+
listItemFormatter = _ref4.listItemFormatter,
|
|
146
|
+
classes = _ref4.classes;
|
|
182
147
|
return /*#__PURE__*/_react.default.createElement(_ListItem.default, {
|
|
183
148
|
className: (0, _classnames.default)(classes.item, isChecked && classes.selectedItem),
|
|
184
149
|
role: "listitem",
|
|
@@ -197,23 +162,20 @@ var ListItemWrapper = function ListItemWrapper(_ref4) {
|
|
|
197
162
|
}, item.subtitle)
|
|
198
163
|
}));
|
|
199
164
|
};
|
|
200
|
-
|
|
201
165
|
var MemoListItem = _react.default.memo(ListItemWrapper, compareListItem);
|
|
202
|
-
|
|
203
166
|
var CustomList = function CustomList(_ref5) {
|
|
204
167
|
var items = _ref5.items,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
168
|
+
checked = _ref5.checked,
|
|
169
|
+
setChecked = _ref5.setChecked,
|
|
170
|
+
listItemFormatter = _ref5.listItemFormatter,
|
|
171
|
+
_ref5$multiSelect = _ref5.multiSelect,
|
|
172
|
+
multiSelect = _ref5$multiSelect === void 0 ? true : _ref5$multiSelect,
|
|
173
|
+
onChange = _ref5.onChange;
|
|
211
174
|
var classes = useListStyles();
|
|
212
175
|
var handleToggle = (0, _react.useCallback)(function (value) {
|
|
213
176
|
return setChecked(function (state) {
|
|
214
177
|
var currentIndex = state.indexOf(value);
|
|
215
178
|
var newChecked = [].concat(state);
|
|
216
|
-
|
|
217
179
|
if (!multiSelect) {
|
|
218
180
|
newChecked = [value];
|
|
219
181
|
} else {
|
|
@@ -223,7 +185,6 @@ var CustomList = function CustomList(_ref5) {
|
|
|
223
185
|
newChecked.splice(currentIndex, 1);
|
|
224
186
|
}
|
|
225
187
|
}
|
|
226
|
-
|
|
227
188
|
return newChecked;
|
|
228
189
|
});
|
|
229
190
|
}, [setChecked, multiSelect]);
|
|
@@ -244,46 +205,38 @@ var CustomList = function CustomList(_ref5) {
|
|
|
244
205
|
});
|
|
245
206
|
}));
|
|
246
207
|
};
|
|
247
|
-
|
|
248
208
|
exports.CustomList = CustomList;
|
|
249
|
-
|
|
250
209
|
__signature__(CustomList, "useListStyles{classes}\nuseCallback{handleToggle}\nuseEffect{}", function () {
|
|
251
210
|
return [useListStyles];
|
|
252
211
|
});
|
|
253
|
-
|
|
254
212
|
__signature__(CustomList, "useListStyles{classes}\nuseCallback{handleToggle}\nuseEffect{}", function () {
|
|
255
213
|
return [useListStyles];
|
|
256
214
|
});
|
|
257
|
-
|
|
258
215
|
var TransferList = function TransferList(_ref6) {
|
|
259
216
|
var _rightListData$data2, _leftListData$data2;
|
|
260
|
-
|
|
261
217
|
var rightListData = _ref6.rightListData,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
218
|
+
leftListData = _ref6.leftListData,
|
|
219
|
+
onChange = _ref6.onChange,
|
|
220
|
+
addButtonTitle = _ref6.addButtonTitle,
|
|
221
|
+
removeButtonTitle = _ref6.removeButtonTitle,
|
|
222
|
+
customLeftComponent = _ref6.customLeftComponent,
|
|
223
|
+
listItemFormatter = _ref6.listItemFormatter,
|
|
224
|
+
onScroll = _ref6.onScroll,
|
|
225
|
+
currentTotal = _ref6.currentTotal,
|
|
226
|
+
_ref6$currentPage = _ref6.currentPage,
|
|
227
|
+
currentPage = _ref6$currentPage === void 0 ? 1 : _ref6$currentPage,
|
|
228
|
+
_ref6$pageSize = _ref6.pageSize,
|
|
229
|
+
pageSize = _ref6$pageSize === void 0 ? 20 : _ref6$pageSize,
|
|
230
|
+
_ref6$height = _ref6.height,
|
|
231
|
+
height = _ref6$height === void 0 ? 48 : _ref6$height;
|
|
276
232
|
var classes = useStyles({
|
|
277
233
|
height: height
|
|
278
234
|
});
|
|
279
|
-
|
|
280
235
|
var _useState = (0, _react.useState)([]),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
236
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
237
|
+
checked = _useState2[0],
|
|
238
|
+
setChecked = _useState2[1];
|
|
285
239
|
var refScrollableList = _react.default.useRef();
|
|
286
|
-
|
|
287
240
|
var onAddButtonClick = function onAddButtonClick() {
|
|
288
241
|
onChange(formatState({
|
|
289
242
|
right: rightListData.data,
|
|
@@ -291,14 +244,12 @@ var TransferList = function TransferList(_ref6) {
|
|
|
291
244
|
}, checked, "left", "right"));
|
|
292
245
|
setChecked(checked.filter(function (check) {
|
|
293
246
|
var _leftListData$data;
|
|
294
|
-
|
|
295
247
|
return !((_leftListData$data = leftListData.data) != null && _leftListData$data.some(function (_ref7) {
|
|
296
248
|
var id = _ref7.id;
|
|
297
249
|
return id === check;
|
|
298
250
|
}));
|
|
299
251
|
}));
|
|
300
252
|
};
|
|
301
|
-
|
|
302
253
|
var onRemoveButtonClick = function onRemoveButtonClick() {
|
|
303
254
|
onChange(formatState({
|
|
304
255
|
right: rightListData.data,
|
|
@@ -306,14 +257,12 @@ var TransferList = function TransferList(_ref6) {
|
|
|
306
257
|
}, checked, "right", "left"));
|
|
307
258
|
setChecked(checked.filter(function (check) {
|
|
308
259
|
var _rightListData$data;
|
|
309
|
-
|
|
310
260
|
return !((_rightListData$data = rightListData.data) != null && _rightListData$data.some(function (_ref8) {
|
|
311
261
|
var id = _ref8.id;
|
|
312
262
|
return id === check;
|
|
313
263
|
}));
|
|
314
264
|
}));
|
|
315
265
|
};
|
|
316
|
-
|
|
317
266
|
var rightSelected = (_rightListData$data2 = rightListData.data) == null ? void 0 : _rightListData$data2.some(function (_ref9) {
|
|
318
267
|
var id = _ref9.id;
|
|
319
268
|
return checked.includes(id);
|
|
@@ -385,28 +334,22 @@ var TransferList = function TransferList(_ref6) {
|
|
|
385
334
|
listItemFormatter: listItemFormatter
|
|
386
335
|
}))));
|
|
387
336
|
};
|
|
388
|
-
|
|
389
337
|
__signature__(TransferList, "useStyles{classes}\nuseState{[checked, setChecked]([])}\nuseRef{refScrollableList}", function () {
|
|
390
338
|
return [useStyles];
|
|
391
339
|
});
|
|
392
|
-
|
|
393
340
|
__signature__(TransferList, "useStyles{classes}\nuseState{[checked, setChecked]([])}\nuseRef{refScrollableList}", function () {
|
|
394
341
|
return [useStyles];
|
|
395
342
|
});
|
|
396
|
-
|
|
397
343
|
var _default = TransferList;
|
|
398
344
|
var _default2 = _default;
|
|
399
345
|
var _default3 = _default2;
|
|
400
346
|
exports.default = _default3;
|
|
401
347
|
;
|
|
402
|
-
|
|
403
348
|
(function () {
|
|
404
349
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
405
|
-
|
|
406
350
|
if (!reactHotLoader) {
|
|
407
351
|
return;
|
|
408
352
|
}
|
|
409
|
-
|
|
410
353
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
411
354
|
reactHotLoader.register(useListStyles, "useListStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
412
355
|
reactHotLoader.register(formatState, "formatState", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
@@ -418,23 +361,17 @@ exports.default = _default3;
|
|
|
418
361
|
reactHotLoader.register(TransferList, "TransferList", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
419
362
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
420
363
|
})();
|
|
421
|
-
|
|
422
364
|
;
|
|
423
|
-
|
|
424
365
|
(function () {
|
|
425
366
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
426
367
|
leaveModule && leaveModule(module);
|
|
427
368
|
})();
|
|
428
|
-
|
|
429
369
|
;
|
|
430
|
-
|
|
431
370
|
(function () {
|
|
432
371
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
433
|
-
|
|
434
372
|
if (!reactHotLoader) {
|
|
435
373
|
return;
|
|
436
374
|
}
|
|
437
|
-
|
|
438
375
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
439
376
|
reactHotLoader.register(useListStyles, "useListStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
440
377
|
reactHotLoader.register(formatState, "formatState", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
@@ -446,9 +383,7 @@ exports.default = _default3;
|
|
|
446
383
|
reactHotLoader.register(TransferList, "TransferList", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
447
384
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/TransferList.js");
|
|
448
385
|
})();
|
|
449
|
-
|
|
450
386
|
;
|
|
451
|
-
|
|
452
387
|
(function () {
|
|
453
388
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
454
389
|
leaveModule && leaveModule(module);
|
|
@@ -2,70 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isChipProps = 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 ChipProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
27
|
_inheritsLoose(ChipProps, _ComponentProps);
|
|
36
|
-
|
|
37
28
|
function ChipProps() {
|
|
38
29
|
var _this;
|
|
39
|
-
|
|
40
30
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
31
|
_this.componentProps.set(_this.constructor.propNames.avatar, null);
|
|
43
|
-
|
|
44
32
|
_this.componentProps.set(_this.constructor.propNames.clickable, null);
|
|
45
|
-
|
|
46
33
|
_this.componentProps.set(_this.constructor.propNames.disabled, null);
|
|
47
|
-
|
|
48
34
|
_this.componentProps.set(_this.constructor.propNames.onDelete, null);
|
|
49
|
-
|
|
50
35
|
_this.componentProps.set(_this.constructor.propNames.variant, null);
|
|
51
|
-
|
|
52
36
|
_this.componentClasses.set(_this.constructor.ruleNames.root, null);
|
|
53
|
-
|
|
54
37
|
_this._isChipProps = true;
|
|
55
38
|
return _this;
|
|
56
39
|
}
|
|
57
|
-
|
|
58
40
|
var _proto = ChipProps.prototype;
|
|
59
|
-
|
|
60
41
|
// @ts-ignore
|
|
61
42
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
62
43
|
// @ts-ignore
|
|
63
44
|
this[key] = eval(code);
|
|
64
45
|
};
|
|
65
|
-
|
|
66
46
|
return ChipProps;
|
|
67
47
|
}(_componentProps.default);
|
|
68
|
-
|
|
69
48
|
_defineProperty(ChipProps, "propNames", {
|
|
70
49
|
avatar: "avatar",
|
|
71
50
|
clickable: "clickable",
|
|
@@ -73,58 +52,44 @@ _defineProperty(ChipProps, "propNames", {
|
|
|
73
52
|
onDelete: "onDelete",
|
|
74
53
|
variant: "variant"
|
|
75
54
|
});
|
|
76
|
-
|
|
77
55
|
_defineProperty(ChipProps, "ruleNames", {
|
|
78
56
|
root: "root"
|
|
79
57
|
});
|
|
80
|
-
|
|
81
58
|
var isChipProps = function isChipProps(value) {
|
|
82
59
|
if (value == null) return true;
|
|
83
60
|
return typeof value === "object" && (value instanceof ChipProps || value._isChipProps === true);
|
|
84
61
|
};
|
|
85
|
-
|
|
86
62
|
exports.isChipProps = isChipProps;
|
|
87
63
|
var _default = ChipProps;
|
|
88
64
|
var _default2 = _default;
|
|
89
65
|
var _default3 = _default2;
|
|
90
66
|
exports.default = _default3;
|
|
91
67
|
;
|
|
92
|
-
|
|
93
68
|
(function () {
|
|
94
69
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
95
|
-
|
|
96
70
|
if (!reactHotLoader) {
|
|
97
71
|
return;
|
|
98
72
|
}
|
|
99
|
-
|
|
100
73
|
reactHotLoader.register(ChipProps, "ChipProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/chipProps.js");
|
|
101
74
|
reactHotLoader.register(isChipProps, "isChipProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/chipProps.js");
|
|
102
75
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/chipProps.js");
|
|
103
76
|
})();
|
|
104
|
-
|
|
105
77
|
;
|
|
106
|
-
|
|
107
78
|
(function () {
|
|
108
79
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
109
80
|
leaveModule && leaveModule(module);
|
|
110
81
|
})();
|
|
111
|
-
|
|
112
82
|
;
|
|
113
|
-
|
|
114
83
|
(function () {
|
|
115
84
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
116
|
-
|
|
117
85
|
if (!reactHotLoader) {
|
|
118
86
|
return;
|
|
119
87
|
}
|
|
120
|
-
|
|
121
88
|
reactHotLoader.register(ChipProps, "ChipProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/chipProps.js");
|
|
122
89
|
reactHotLoader.register(isChipProps, "isChipProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/chipProps.js");
|
|
123
90
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/chipProps.js");
|
|
124
91
|
})();
|
|
125
|
-
|
|
126
92
|
;
|
|
127
|
-
|
|
128
93
|
(function () {
|
|
129
94
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
130
95
|
leaveModule && leaveModule(module);
|
|
@@ -2,70 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isCollapsableListProps = 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 CollapsableListProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
27
|
_inheritsLoose(CollapsableListProps, _ComponentProps);
|
|
36
|
-
|
|
37
28
|
function CollapsableListProps() {
|
|
38
29
|
var _this;
|
|
39
|
-
|
|
40
30
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
31
|
_this.componentProps.set(_this.constructor.propNames.isExpanded, null);
|
|
43
|
-
|
|
44
32
|
_this.componentProps.set(_this.constructor.propNames.hasMessage, null);
|
|
45
|
-
|
|
46
33
|
_this.componentProps.set(_this.constructor.propNames.openMessage, null);
|
|
47
|
-
|
|
48
34
|
_this.componentProps.set(_this.constructor.propNames.closeMessage, null);
|
|
49
|
-
|
|
50
35
|
_this.componentProps.set(_this.constructor.propNames.expandPosition, null);
|
|
51
|
-
|
|
52
36
|
_this.componentProps.set(_this.constructor.propNames.containerWidth, null);
|
|
53
|
-
|
|
54
37
|
_this._isCollapsableListProps = true;
|
|
55
38
|
return _this;
|
|
56
39
|
}
|
|
57
|
-
|
|
58
40
|
var _proto = CollapsableListProps.prototype;
|
|
59
|
-
|
|
60
41
|
// @ts-ignore
|
|
61
42
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
62
43
|
// @ts-ignore
|
|
63
44
|
this[key] = eval(code);
|
|
64
45
|
};
|
|
65
|
-
|
|
66
46
|
return CollapsableListProps;
|
|
67
47
|
}(_componentProps.default);
|
|
68
|
-
|
|
69
48
|
_defineProperty(CollapsableListProps, "propNames", {
|
|
70
49
|
isExpanded: "isExpanded",
|
|
71
50
|
hasMessage: "hasMessage",
|
|
@@ -74,54 +53,41 @@ _defineProperty(CollapsableListProps, "propNames", {
|
|
|
74
53
|
expandPosition: "expandPosition",
|
|
75
54
|
containerWidth: "containerWidth"
|
|
76
55
|
});
|
|
77
|
-
|
|
78
56
|
var isCollapsableListProps = function isCollapsableListProps(value) {
|
|
79
57
|
if (value == null) return true;
|
|
80
58
|
return typeof value === "object" && (value instanceof CollapsableListProps || value._isCollapsableListProps === true);
|
|
81
59
|
};
|
|
82
|
-
|
|
83
60
|
exports.isCollapsableListProps = isCollapsableListProps;
|
|
84
61
|
var _default = CollapsableListProps;
|
|
85
62
|
var _default2 = _default;
|
|
86
63
|
var _default3 = _default2;
|
|
87
64
|
exports.default = _default3;
|
|
88
65
|
;
|
|
89
|
-
|
|
90
66
|
(function () {
|
|
91
67
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
92
|
-
|
|
93
68
|
if (!reactHotLoader) {
|
|
94
69
|
return;
|
|
95
70
|
}
|
|
96
|
-
|
|
97
71
|
reactHotLoader.register(CollapsableListProps, "CollapsableListProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/collapsableListProps.js");
|
|
98
72
|
reactHotLoader.register(isCollapsableListProps, "isCollapsableListProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/collapsableListProps.js");
|
|
99
73
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/collapsableListProps.js");
|
|
100
74
|
})();
|
|
101
|
-
|
|
102
75
|
;
|
|
103
|
-
|
|
104
76
|
(function () {
|
|
105
77
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
106
78
|
leaveModule && leaveModule(module);
|
|
107
79
|
})();
|
|
108
|
-
|
|
109
80
|
;
|
|
110
|
-
|
|
111
81
|
(function () {
|
|
112
82
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
113
|
-
|
|
114
83
|
if (!reactHotLoader) {
|
|
115
84
|
return;
|
|
116
85
|
}
|
|
117
|
-
|
|
118
86
|
reactHotLoader.register(CollapsableListProps, "CollapsableListProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/collapsableListProps.js");
|
|
119
87
|
reactHotLoader.register(isCollapsableListProps, "isCollapsableListProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/collapsableListProps.js");
|
|
120
88
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/collapsableListProps.js");
|
|
121
89
|
})();
|
|
122
|
-
|
|
123
90
|
;
|
|
124
|
-
|
|
125
91
|
(function () {
|
|
126
92
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
127
93
|
leaveModule && leaveModule(module);
|