orc-shared 1.5.0-dev.1 → 1.5.0-dev.11
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 +0 -17
- package/dist/actions/scopes.js +14 -56
- package/dist/actions/tasks.js +190 -0
- 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 +6 -54
- 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 +12 -61
- 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 +27 -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 +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +17 -57
- 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 +18 -57
- package/dist/components/MaterialUI/Inputs/InputBase.js +7 -56
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +3 -51
- 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 +8 -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 +2 -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 +22 -59
- package/dist/components/Routing/withWaypointing.js +5 -36
- 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/TaskDetailsModal.js +193 -0
- 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 +21 -19
- package/dist/content/iconsSheet.svg +22 -0
- package/dist/content/orckestra-logo-white.png +0 -0
- 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 +10 -105
- 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 +4 -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/tasks.js +99 -0
- 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 +17 -41
- 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/tasks.js +66 -0
- 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 +17 -18
- 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 +36 -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 +8 -46
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +3 -28
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +3 -3
- package/src/actions/tasks.js +77 -0
- package/src/actions/tasks.test.js +169 -0
- package/src/buildStore.js +2 -0
- package/src/components/AppFrame/About.test.js +3 -3
- package/src/components/AppFrame/Sidebar.js +4 -3
- package/src/components/Routing/SubPage.js +17 -2
- package/src/components/Routing/SubPage.test.js +168 -1
- package/src/components/TaskDetailsModal.js +132 -0
- package/src/components/TaskDetailsModal.test.js +317 -0
- package/src/components/Text.test.js +44 -59
- package/src/constants.js +15 -0
- package/src/content/iconsSheet.svg +22 -0
- package/src/content/orckestra-logo-white.png +0 -0
- package/src/hooks/useEditState.js +12 -2
- package/src/hooks/useEditState.test.js +1 -1
- package/src/hooks/useLabelMessage.test.js +16 -10
- package/src/reducers/request.js +4 -0
- package/src/reducers/request.test.js +11 -0
- package/src/reducers/tasks.js +56 -0
- package/src/reducers/tasks.test.js +404 -0
- package/src/selectors/authentication.js +13 -0
- package/src/selectors/authentication.test.js +322 -0
- package/src/selectors/tasks.js +16 -0
- package/src/selectors/tasks.test.js +60 -0
- package/src/sharedMessages.js +17 -1
- package/src/translations/en-US.json +16 -12
- package/src/translations/fr-CA.json +16 -12
- package/src/utils/propertyHelper.js +38 -0
- package/src/utils/propertyHelper.test.js +160 -0
- package/src/utils/timezoneHelper.test.js +4 -2
|
@@ -2,45 +2,32 @@
|
|
|
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 _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox"));
|
|
9
|
-
|
|
10
7
|
var _FormControlLabel = _interopRequireDefault(require("@material-ui/core/FormControlLabel"));
|
|
11
|
-
|
|
12
8
|
var _CheckboxProps = _interopRequireWildcard(require("./CheckboxProps"));
|
|
13
|
-
|
|
14
9
|
var _styles = require("@material-ui/core/styles");
|
|
15
|
-
|
|
16
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
-
|
|
18
11
|
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); }
|
|
19
|
-
|
|
20
12
|
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; }
|
|
21
|
-
|
|
22
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
14
|
(function () {
|
|
25
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26
16
|
enterModule && enterModule(module);
|
|
27
17
|
})();
|
|
28
|
-
|
|
29
18
|
(function () {
|
|
30
19
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
31
20
|
enterModule && enterModule(module);
|
|
32
21
|
})();
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
22
|
+
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; }
|
|
23
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
24
|
+
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); }
|
|
36
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
37
26
|
return a;
|
|
38
27
|
};
|
|
39
|
-
|
|
40
28
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
41
29
|
return a;
|
|
42
30
|
};
|
|
43
|
-
|
|
44
31
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
45
32
|
return {
|
|
46
33
|
/* Checkboxes */
|
|
@@ -160,16 +147,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
160
147
|
}
|
|
161
148
|
};
|
|
162
149
|
});
|
|
163
|
-
|
|
164
150
|
var Checkbox = function Checkbox(_ref) {
|
|
165
151
|
var _classNames, _classNames2, _classNames3;
|
|
166
|
-
|
|
167
152
|
var checkboxProps = _ref.checkboxProps;
|
|
168
|
-
|
|
169
153
|
if ((0, _CheckboxProps.isCheckboxProps)(checkboxProps) === false) {
|
|
170
154
|
throw new TypeError("checkboxProps property is not of type CheckboxProps");
|
|
171
155
|
}
|
|
172
|
-
|
|
173
156
|
var onChange = checkboxProps == null ? void 0 : checkboxProps.get(_CheckboxProps.default.propNames.onChange);
|
|
174
157
|
var indeterminate = (checkboxProps == null ? void 0 : checkboxProps.get(_CheckboxProps.default.propNames.indeterminate)) || false;
|
|
175
158
|
var update = checkboxProps == null ? void 0 : checkboxProps.get(_CheckboxProps.default.propNames.update);
|
|
@@ -178,11 +161,9 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
178
161
|
var readOnly = (checkboxProps == null ? void 0 : checkboxProps.get(_CheckboxProps.default.propNames.readOnly)) || false;
|
|
179
162
|
var disabled = (checkboxProps == null ? void 0 : checkboxProps.get(_CheckboxProps.default.propNames.disabled)) || false;
|
|
180
163
|
var metadata = checkboxProps == null ? void 0 : checkboxProps.get(_CheckboxProps.default.propNames.metadata);
|
|
181
|
-
|
|
182
164
|
var handleChange = function handleChange(event) {
|
|
183
165
|
update(event.target.checked, metadata);
|
|
184
166
|
};
|
|
185
|
-
|
|
186
167
|
var onUseChange = function onUseChange(event) {
|
|
187
168
|
if (onChange) {
|
|
188
169
|
onChange(event);
|
|
@@ -190,9 +171,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
190
171
|
handleChange(event);
|
|
191
172
|
}
|
|
192
173
|
};
|
|
193
|
-
|
|
194
174
|
var classes = useStyles();
|
|
195
|
-
|
|
196
175
|
var checkBoxMui = /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
|
|
197
176
|
checked: value,
|
|
198
177
|
onChange: !readOnly ? onUseChange : null,
|
|
@@ -209,63 +188,47 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
209
188
|
className: (0, _classnames.default)((_classNames3 = {}, _defineProperty(_classNames3, "".concat(classes.checkBoxIcon), !readOnly), _defineProperty(_classNames3, "".concat(classes.indeterminateIconChecked), !readOnly && indeterminate), _defineProperty(_classNames3, "".concat(classes.indeterminateIconReadOnly), readOnly && indeterminate), _classNames3))
|
|
210
189
|
})
|
|
211
190
|
});
|
|
212
|
-
|
|
213
191
|
return label == null ? checkBoxMui : /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
|
|
214
192
|
control: checkBoxMui,
|
|
215
193
|
label: label
|
|
216
194
|
});
|
|
217
195
|
};
|
|
218
|
-
|
|
219
196
|
__signature__(Checkbox, "useStyles{classes}", function () {
|
|
220
197
|
return [useStyles];
|
|
221
198
|
});
|
|
222
|
-
|
|
223
199
|
__signature__(Checkbox, "useStyles{classes}", function () {
|
|
224
200
|
return [useStyles];
|
|
225
201
|
});
|
|
226
|
-
|
|
227
202
|
var _default = _react.default.memo(Checkbox);
|
|
228
|
-
|
|
229
203
|
var _default2 = _default;
|
|
230
204
|
var _default3 = _default2;
|
|
231
205
|
exports.default = _default3;
|
|
232
206
|
;
|
|
233
|
-
|
|
234
207
|
(function () {
|
|
235
208
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
236
|
-
|
|
237
209
|
if (!reactHotLoader) {
|
|
238
210
|
return;
|
|
239
211
|
}
|
|
240
|
-
|
|
241
212
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Checkbox.js");
|
|
242
213
|
reactHotLoader.register(Checkbox, "Checkbox", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Checkbox.js");
|
|
243
214
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Checkbox.js");
|
|
244
215
|
})();
|
|
245
|
-
|
|
246
216
|
;
|
|
247
|
-
|
|
248
217
|
(function () {
|
|
249
218
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
250
219
|
leaveModule && leaveModule(module);
|
|
251
220
|
})();
|
|
252
|
-
|
|
253
221
|
;
|
|
254
|
-
|
|
255
222
|
(function () {
|
|
256
223
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
257
|
-
|
|
258
224
|
if (!reactHotLoader) {
|
|
259
225
|
return;
|
|
260
226
|
}
|
|
261
|
-
|
|
262
227
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Checkbox.js");
|
|
263
228
|
reactHotLoader.register(Checkbox, "Checkbox", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Checkbox.js");
|
|
264
229
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/Checkbox.js");
|
|
265
230
|
})();
|
|
266
|
-
|
|
267
231
|
;
|
|
268
|
-
|
|
269
232
|
(function () {
|
|
270
233
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
271
234
|
leaveModule && leaveModule(module);
|
|
@@ -2,48 +2,34 @@
|
|
|
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 _FormControlLabel = _interopRequireDefault(require("@material-ui/core/FormControlLabel"));
|
|
9
|
-
|
|
10
7
|
var _CheckboxGroupProps = _interopRequireWildcard(require("./CheckboxGroupProps"));
|
|
11
|
-
|
|
12
8
|
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
13
|
-
|
|
14
9
|
var _CheckboxProps = _interopRequireDefault(require("./CheckboxProps"));
|
|
15
|
-
|
|
16
10
|
var _styles = require("@material-ui/core/styles");
|
|
17
|
-
|
|
18
11
|
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); }
|
|
19
|
-
|
|
20
12
|
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; }
|
|
21
|
-
|
|
22
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
14
|
(function () {
|
|
25
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26
16
|
enterModule && enterModule(module);
|
|
27
17
|
})();
|
|
28
|
-
|
|
29
18
|
(function () {
|
|
30
19
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
31
20
|
enterModule && enterModule(module);
|
|
32
21
|
})();
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
22
|
+
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; }
|
|
23
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
24
|
+
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); }
|
|
36
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
37
26
|
return a;
|
|
38
27
|
};
|
|
39
|
-
|
|
40
28
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
41
29
|
return a;
|
|
42
30
|
};
|
|
43
|
-
|
|
44
31
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
45
32
|
var _MuiFormControlLab;
|
|
46
|
-
|
|
47
33
|
return {
|
|
48
34
|
container: {
|
|
49
35
|
display: "flex",
|
|
@@ -71,17 +57,13 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
71
57
|
}
|
|
72
58
|
};
|
|
73
59
|
});
|
|
74
|
-
|
|
75
60
|
var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
76
61
|
var _checkboxGroupProps$g;
|
|
77
|
-
|
|
78
62
|
var checkboxGroupProps = _ref.checkboxGroupProps;
|
|
79
63
|
var classes = useStyles();
|
|
80
|
-
|
|
81
64
|
if ((0, _CheckboxGroupProps.isCheckboxGroupProps)(checkboxGroupProps) === false) {
|
|
82
65
|
throw new TypeError("checkboxGroupProps property is not of type CheckboxGroupProps");
|
|
83
66
|
}
|
|
84
|
-
|
|
85
67
|
var update = checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.update);
|
|
86
68
|
var value = checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.value);
|
|
87
69
|
var label = checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.label);
|
|
@@ -89,29 +71,23 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
89
71
|
var readOnly = (checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.readOnly)) || false;
|
|
90
72
|
var disabled = (checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.disabled)) || false;
|
|
91
73
|
var options = (_checkboxGroupProps$g = checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.options)) != null ? _checkboxGroupProps$g : [];
|
|
92
|
-
|
|
93
74
|
var handleGroupUpdate = function handleGroupUpdate(checked, value, newValue) {
|
|
94
75
|
var values = value ? value.split("|") : [];
|
|
95
76
|
var position = values.indexOf(newValue);
|
|
96
|
-
|
|
97
77
|
if (checked && position === -1) {
|
|
98
78
|
values.push(newValue);
|
|
99
79
|
}
|
|
100
|
-
|
|
101
80
|
if (!checked && position !== -1) {
|
|
102
81
|
values.splice(position, 1);
|
|
103
82
|
}
|
|
104
|
-
|
|
105
83
|
update(values.join("|"));
|
|
106
84
|
};
|
|
107
|
-
|
|
108
85
|
var checkBoxGroup = /*#__PURE__*/_react.default.createElement("div", {
|
|
109
86
|
className: classes.container
|
|
110
87
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
111
88
|
className: classes.checkBoxContainer
|
|
112
89
|
}, options.map(function (option, index) {
|
|
113
90
|
var _option$label;
|
|
114
|
-
|
|
115
91
|
var checkboxProps = new _CheckboxProps.default();
|
|
116
92
|
checkboxProps.set(_CheckboxProps.default.propNames.update, function (checked) {
|
|
117
93
|
return handleGroupUpdate(checked, value, option.value);
|
|
@@ -127,63 +103,47 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
127
103
|
})), error && /*#__PURE__*/_react.default.createElement("div", {
|
|
128
104
|
className: classes.errorText
|
|
129
105
|
}, error));
|
|
130
|
-
|
|
131
106
|
return label == null ? checkBoxGroup : /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
|
|
132
107
|
control: checkBoxGroup,
|
|
133
108
|
label: label
|
|
134
109
|
});
|
|
135
110
|
};
|
|
136
|
-
|
|
137
111
|
__signature__(CheckboxGroup, "useStyles{classes}", function () {
|
|
138
112
|
return [useStyles];
|
|
139
113
|
});
|
|
140
|
-
|
|
141
114
|
__signature__(CheckboxGroup, "useStyles{classes}", function () {
|
|
142
115
|
return [useStyles];
|
|
143
116
|
});
|
|
144
|
-
|
|
145
117
|
var _default = _react.default.memo(CheckboxGroup);
|
|
146
|
-
|
|
147
118
|
var _default2 = _default;
|
|
148
119
|
var _default3 = _default2;
|
|
149
120
|
exports.default = _default3;
|
|
150
121
|
;
|
|
151
|
-
|
|
152
122
|
(function () {
|
|
153
123
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
154
|
-
|
|
155
124
|
if (!reactHotLoader) {
|
|
156
125
|
return;
|
|
157
126
|
}
|
|
158
|
-
|
|
159
127
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroup.js");
|
|
160
128
|
reactHotLoader.register(CheckboxGroup, "CheckboxGroup", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroup.js");
|
|
161
129
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroup.js");
|
|
162
130
|
})();
|
|
163
|
-
|
|
164
131
|
;
|
|
165
|
-
|
|
166
132
|
(function () {
|
|
167
133
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
168
134
|
leaveModule && leaveModule(module);
|
|
169
135
|
})();
|
|
170
|
-
|
|
171
136
|
;
|
|
172
|
-
|
|
173
137
|
(function () {
|
|
174
138
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
175
|
-
|
|
176
139
|
if (!reactHotLoader) {
|
|
177
140
|
return;
|
|
178
141
|
}
|
|
179
|
-
|
|
180
142
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroup.js");
|
|
181
143
|
reactHotLoader.register(CheckboxGroup, "CheckboxGroup", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroup.js");
|
|
182
144
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroup.js");
|
|
183
145
|
})();
|
|
184
|
-
|
|
185
146
|
;
|
|
186
|
-
|
|
187
147
|
(function () {
|
|
188
148
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
189
149
|
leaveModule && leaveModule(module);
|
|
@@ -2,72 +2,50 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isCheckboxGroupProps = 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 CheckboxGroupProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
27
|
_inheritsLoose(CheckboxGroupProps, _ComponentProps);
|
|
36
|
-
|
|
37
28
|
function CheckboxGroupProps() {
|
|
38
29
|
var _this;
|
|
39
|
-
|
|
40
30
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
31
|
_this.componentProps.set(_this.constructor.propNames.update, null);
|
|
43
|
-
|
|
44
32
|
_this.componentProps.set(_this.constructor.propNames.value, null);
|
|
45
|
-
|
|
46
33
|
_this.componentProps.set(_this.constructor.propNames.label, null);
|
|
47
|
-
|
|
48
34
|
_this.componentProps.set(_this.constructor.propNames.readOnly, null);
|
|
49
|
-
|
|
50
35
|
_this.componentProps.set(_this.constructor.propNames.disabled, null);
|
|
51
|
-
|
|
52
36
|
_this.componentProps.set(_this.constructor.propNames.options, null);
|
|
53
|
-
|
|
54
37
|
_this.componentProps.set(_this.constructor.propNames.error, null);
|
|
55
|
-
|
|
56
38
|
_this._isCheckboxGroupProps = true;
|
|
57
39
|
return _this;
|
|
58
40
|
}
|
|
59
|
-
|
|
60
41
|
var _proto = CheckboxGroupProps.prototype;
|
|
61
|
-
|
|
62
42
|
// @ts-ignore
|
|
63
43
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
64
44
|
// @ts-ignore
|
|
65
45
|
this[key] = eval(code);
|
|
66
46
|
};
|
|
67
|
-
|
|
68
47
|
return CheckboxGroupProps;
|
|
69
48
|
}(_componentProps.default);
|
|
70
|
-
|
|
71
49
|
_defineProperty(CheckboxGroupProps, "propNames", {
|
|
72
50
|
update: "update",
|
|
73
51
|
value: "value",
|
|
@@ -77,54 +55,41 @@ _defineProperty(CheckboxGroupProps, "propNames", {
|
|
|
77
55
|
disabled: "disabled",
|
|
78
56
|
error: "error"
|
|
79
57
|
});
|
|
80
|
-
|
|
81
58
|
var isCheckboxGroupProps = function isCheckboxGroupProps(value) {
|
|
82
59
|
if (value == null) return true;
|
|
83
60
|
return typeof value === "object" && (value instanceof CheckboxGroupProps || value._isCheckboxGroupProps === true);
|
|
84
61
|
};
|
|
85
|
-
|
|
86
62
|
exports.isCheckboxGroupProps = isCheckboxGroupProps;
|
|
87
63
|
var _default = CheckboxGroupProps;
|
|
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(CheckboxGroupProps, "CheckboxGroupProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroupProps.js");
|
|
101
74
|
reactHotLoader.register(isCheckboxGroupProps, "isCheckboxGroupProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroupProps.js");
|
|
102
75
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroupProps.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(CheckboxGroupProps, "CheckboxGroupProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroupProps.js");
|
|
122
89
|
reactHotLoader.register(isCheckboxGroupProps, "isCheckboxGroupProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroupProps.js");
|
|
123
90
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxGroupProps.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,74 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isCheckboxProps = 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 CheckboxProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
27
|
_inheritsLoose(CheckboxProps, _ComponentProps);
|
|
36
|
-
|
|
37
28
|
function CheckboxProps() {
|
|
38
29
|
var _this;
|
|
39
|
-
|
|
40
30
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
31
|
_this.componentProps.set(_this.constructor.propNames.onChange, null);
|
|
43
|
-
|
|
44
32
|
_this.componentProps.set(_this.constructor.propNames.indeterminate, null);
|
|
45
|
-
|
|
46
33
|
_this.componentProps.set(_this.constructor.propNames.update, null);
|
|
47
|
-
|
|
48
34
|
_this.componentProps.set(_this.constructor.propNames.value, null);
|
|
49
|
-
|
|
50
35
|
_this.componentProps.set(_this.constructor.propNames.label, null);
|
|
51
|
-
|
|
52
36
|
_this.componentProps.set(_this.constructor.propNames.readOnly, null);
|
|
53
|
-
|
|
54
37
|
_this.componentProps.set(_this.constructor.propNames.disabled, null);
|
|
55
|
-
|
|
56
38
|
_this.componentProps.set(_this.constructor.propNames.metadata, null);
|
|
57
|
-
|
|
58
39
|
_this._isCheckboxProps = true;
|
|
59
40
|
return _this;
|
|
60
41
|
}
|
|
61
|
-
|
|
62
42
|
var _proto = CheckboxProps.prototype;
|
|
63
|
-
|
|
64
43
|
// @ts-ignore
|
|
65
44
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
66
45
|
// @ts-ignore
|
|
67
46
|
this[key] = eval(code);
|
|
68
47
|
};
|
|
69
|
-
|
|
70
48
|
return CheckboxProps;
|
|
71
49
|
}(_componentProps.default);
|
|
72
|
-
|
|
73
50
|
_defineProperty(CheckboxProps, "propNames", {
|
|
74
51
|
onChange: "onChange",
|
|
75
52
|
indeterminate: "indeterminate",
|
|
@@ -80,54 +57,41 @@ _defineProperty(CheckboxProps, "propNames", {
|
|
|
80
57
|
disabled: "disabled",
|
|
81
58
|
metadata: "metadata"
|
|
82
59
|
});
|
|
83
|
-
|
|
84
60
|
var isCheckboxProps = function isCheckboxProps(value) {
|
|
85
61
|
if (value == null) return true;
|
|
86
62
|
return typeof value === "object" && (value instanceof CheckboxProps || value._isCheckboxProps === true);
|
|
87
63
|
};
|
|
88
|
-
|
|
89
64
|
exports.isCheckboxProps = isCheckboxProps;
|
|
90
65
|
var _default = CheckboxProps;
|
|
91
66
|
var _default2 = _default;
|
|
92
67
|
var _default3 = _default2;
|
|
93
68
|
exports.default = _default3;
|
|
94
69
|
;
|
|
95
|
-
|
|
96
70
|
(function () {
|
|
97
71
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
98
|
-
|
|
99
72
|
if (!reactHotLoader) {
|
|
100
73
|
return;
|
|
101
74
|
}
|
|
102
|
-
|
|
103
75
|
reactHotLoader.register(CheckboxProps, "CheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
104
76
|
reactHotLoader.register(isCheckboxProps, "isCheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
105
77
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
106
78
|
})();
|
|
107
|
-
|
|
108
79
|
;
|
|
109
|
-
|
|
110
80
|
(function () {
|
|
111
81
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
112
82
|
leaveModule && leaveModule(module);
|
|
113
83
|
})();
|
|
114
|
-
|
|
115
84
|
;
|
|
116
|
-
|
|
117
85
|
(function () {
|
|
118
86
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
119
|
-
|
|
120
87
|
if (!reactHotLoader) {
|
|
121
88
|
return;
|
|
122
89
|
}
|
|
123
|
-
|
|
124
90
|
reactHotLoader.register(CheckboxProps, "CheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
125
91
|
reactHotLoader.register(isCheckboxProps, "isCheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
126
92
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
127
93
|
})();
|
|
128
|
-
|
|
129
94
|
;
|
|
130
|
-
|
|
131
95
|
(function () {
|
|
132
96
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
133
97
|
leaveModule && leaveModule(module);
|