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,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);
|
|
@@ -2,51 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.createFormat = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
|
|
10
7
|
var _Icon = _interopRequireDefault(require("../DataDisplay/Icon"));
|
|
11
|
-
|
|
12
8
|
var _reactDatepicker = _interopRequireDefault(require("react-datepicker"));
|
|
13
|
-
|
|
14
9
|
require("react-datepicker/dist/react-datepicker.css");
|
|
15
|
-
|
|
16
10
|
var _TimePicker = _interopRequireDefault(require("./TimePicker"));
|
|
17
|
-
|
|
18
11
|
var _styles = require("@material-ui/core/styles");
|
|
19
|
-
|
|
20
12
|
var _excluded = ["value", "useTime", "useDate", "onChange", "dateFormat", "showTimeZone", "timeInputLabel", "readOnly", "showTimeSelectOnly", "metadata", "timePickerTimeZone", "error"];
|
|
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
22
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
23
|
+
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; }
|
|
24
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
25
|
+
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); }
|
|
38
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
39
|
-
|
|
40
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
41
|
-
|
|
42
28
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
43
29
|
return a;
|
|
44
30
|
};
|
|
45
|
-
|
|
46
31
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
47
32
|
return a;
|
|
48
33
|
};
|
|
49
|
-
|
|
50
34
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
51
35
|
return {
|
|
52
36
|
container: {
|
|
@@ -153,7 +137,6 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
153
137
|
}
|
|
154
138
|
};
|
|
155
139
|
});
|
|
156
|
-
|
|
157
140
|
var createFormat = function createFormat(useDate, useTime) {
|
|
158
141
|
if (useDate && !useTime) {
|
|
159
142
|
return "P";
|
|
@@ -163,37 +146,32 @@ var createFormat = function createFormat(useDate, useTime) {
|
|
|
163
146
|
return "P p";
|
|
164
147
|
}
|
|
165
148
|
};
|
|
166
|
-
|
|
167
149
|
exports.createFormat = createFormat;
|
|
168
|
-
|
|
169
150
|
var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
170
151
|
var value = _ref.value,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
152
|
+
useTime = _ref.useTime,
|
|
153
|
+
_ref$useDate = _ref.useDate,
|
|
154
|
+
useDate = _ref$useDate === void 0 ? true : _ref$useDate,
|
|
155
|
+
onChange = _ref.onChange,
|
|
156
|
+
dateFormat = _ref.dateFormat,
|
|
157
|
+
showTimeZone = _ref.showTimeZone,
|
|
158
|
+
timeInputLabel = _ref.timeInputLabel,
|
|
159
|
+
readOnly = _ref.readOnly,
|
|
160
|
+
showTimeSelectOnly = _ref.showTimeSelectOnly,
|
|
161
|
+
metadata = _ref.metadata,
|
|
162
|
+
timePickerTimeZone = _ref.timePickerTimeZone,
|
|
163
|
+
error = _ref.error,
|
|
164
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
185
165
|
var classes = useStyles({
|
|
186
166
|
readOnly: readOnly
|
|
187
167
|
});
|
|
188
168
|
var startDate = value ? new Date(value) : null;
|
|
189
169
|
var disabledCls = (0, _classnames.default)(_defineProperty({}, classes.disabled, props.disabled));
|
|
190
|
-
|
|
191
170
|
var updateDate = function updateDate(date, metadata) {
|
|
192
171
|
if (onChange) {
|
|
193
172
|
onChange(date, metadata);
|
|
194
173
|
}
|
|
195
174
|
};
|
|
196
|
-
|
|
197
175
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
198
176
|
className: classes.container
|
|
199
177
|
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
@@ -224,58 +202,44 @@ var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
|
224
202
|
className: classes.errorText
|
|
225
203
|
}, error));
|
|
226
204
|
};
|
|
227
|
-
|
|
228
205
|
__signature__(WrappedDatePicker, "useStyles{classes}", function () {
|
|
229
206
|
return [useStyles];
|
|
230
207
|
});
|
|
231
|
-
|
|
232
208
|
__signature__(WrappedDatePicker, "useStyles{classes}", function () {
|
|
233
209
|
return [useStyles];
|
|
234
210
|
});
|
|
235
|
-
|
|
236
211
|
var _default = WrappedDatePicker;
|
|
237
212
|
var _default2 = _default;
|
|
238
213
|
var _default3 = _default2;
|
|
239
214
|
exports.default = _default3;
|
|
240
215
|
;
|
|
241
|
-
|
|
242
216
|
(function () {
|
|
243
217
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
244
|
-
|
|
245
218
|
if (!reactHotLoader) {
|
|
246
219
|
return;
|
|
247
220
|
}
|
|
248
|
-
|
|
249
221
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
250
222
|
reactHotLoader.register(createFormat, "createFormat", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
251
223
|
reactHotLoader.register(WrappedDatePicker, "WrappedDatePicker", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
252
224
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
253
225
|
})();
|
|
254
|
-
|
|
255
226
|
;
|
|
256
|
-
|
|
257
227
|
(function () {
|
|
258
228
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
259
229
|
leaveModule && leaveModule(module);
|
|
260
230
|
})();
|
|
261
|
-
|
|
262
231
|
;
|
|
263
|
-
|
|
264
232
|
(function () {
|
|
265
233
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
266
|
-
|
|
267
234
|
if (!reactHotLoader) {
|
|
268
235
|
return;
|
|
269
236
|
}
|
|
270
|
-
|
|
271
237
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
272
238
|
reactHotLoader.register(createFormat, "createFormat", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
273
239
|
reactHotLoader.register(WrappedDatePicker, "WrappedDatePicker", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
274
240
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
275
241
|
})();
|
|
276
|
-
|
|
277
242
|
;
|
|
278
|
-
|
|
279
243
|
(function () {
|
|
280
244
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
281
245
|
leaveModule && leaveModule(module);
|
|
@@ -2,53 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.useStyles = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _styles = require("@material-ui/core/styles");
|
|
9
|
-
|
|
10
7
|
var _InputBase = _interopRequireDefault(require("@material-ui/core/InputBase"));
|
|
11
|
-
|
|
12
8
|
var _InputBaseProps = _interopRequireWildcard(require("./InputBaseProps"));
|
|
13
|
-
|
|
14
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
13
|
(function () {
|
|
23
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
24
15
|
enterModule && enterModule(module);
|
|
25
16
|
})();
|
|
26
|
-
|
|
27
17
|
(function () {
|
|
28
18
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
29
19
|
enterModule && enterModule(module);
|
|
30
20
|
})();
|
|
31
|
-
|
|
32
21
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
-
|
|
34
22
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
-
|
|
36
23
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
|
-
|
|
24
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
42
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
-
|
|
44
27
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
45
28
|
return a;
|
|
46
29
|
};
|
|
47
|
-
|
|
48
30
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
49
31
|
return a;
|
|
50
32
|
};
|
|
51
|
-
|
|
52
33
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
53
34
|
return {
|
|
54
35
|
container: {
|
|
@@ -131,16 +112,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
131
112
|
};
|
|
132
113
|
});
|
|
133
114
|
exports.useStyles = useStyles;
|
|
134
|
-
|
|
135
115
|
var InputBase = function InputBase(_ref) {
|
|
136
116
|
var _inputProps$get;
|
|
137
|
-
|
|
138
117
|
var inputProps = _ref.inputProps;
|
|
139
|
-
|
|
140
118
|
if ((0, _InputBaseProps.isInputProps)(inputProps) === false) {
|
|
141
119
|
throw new TypeError("inputProps property is not of type InputBaseProps");
|
|
142
120
|
}
|
|
143
|
-
|
|
144
121
|
var multiline = (inputProps == null ? void 0 : inputProps.get(_InputBaseProps.default.propNames.multiline)) || false;
|
|
145
122
|
var update = inputProps == null ? void 0 : inputProps.get(_InputBaseProps.default.propNames.update);
|
|
146
123
|
var value = (_inputProps$get = inputProps == null ? void 0 : inputProps.get(_InputBaseProps.default.propNames.value)) != null ? _inputProps$get : "";
|
|
@@ -157,38 +134,29 @@ var InputBase = function InputBase(_ref) {
|
|
|
157
134
|
var metadata = inputProps == null ? void 0 : inputProps.get(_InputBaseProps.default.propNames.metadata);
|
|
158
135
|
var autoComplete = inputProps == null ? void 0 : inputProps.get(_InputBaseProps.default.propNames.autoComplete);
|
|
159
136
|
var tooltipText = type === "text" ? value : "";
|
|
160
|
-
|
|
161
137
|
var onClick = function onClick(item) {
|
|
162
138
|
// Fixes FireFox issue, where the input number buttons do not focus on input control,
|
|
163
139
|
// causing onBlur to never fire
|
|
164
140
|
item.target.focus();
|
|
165
141
|
};
|
|
166
|
-
|
|
167
142
|
var classes = useStyles({
|
|
168
143
|
label: label,
|
|
169
144
|
errorPosition: errorPosition
|
|
170
145
|
});
|
|
171
|
-
|
|
172
146
|
var onChangeHandler = function onChangeHandler(event) {
|
|
173
147
|
event.persist();
|
|
174
|
-
|
|
175
148
|
if (!event.target.value || window.bypassDebounce === true) {
|
|
176
149
|
update(event.target.value, metadata);
|
|
177
150
|
}
|
|
178
|
-
|
|
179
151
|
setInputText(event.target.value);
|
|
180
152
|
};
|
|
181
|
-
|
|
182
153
|
var inputBaseInputStyle = inputProps == null ? void 0 : inputProps.getStyle(_InputBaseProps.default.ruleNames.input);
|
|
183
154
|
var errorTextStyle = inputProps == null ? void 0 : inputProps.getStyle(_InputBaseProps.default.ruleNames.errorText);
|
|
184
|
-
|
|
185
155
|
var _React$useState = _react.default.useState(null),
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
156
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
157
|
+
inputText = _React$useState2[0],
|
|
158
|
+
setInputText = _React$useState2[1];
|
|
190
159
|
var textToDisplay = inputText != null ? inputText : value;
|
|
191
|
-
|
|
192
160
|
_react.default.useEffect(function () {
|
|
193
161
|
if (inputText !== value && inputText != null && window.bypassDebounce !== true) {
|
|
194
162
|
var timeOutId = setTimeout(function () {
|
|
@@ -199,10 +167,9 @@ var InputBase = function InputBase(_ref) {
|
|
|
199
167
|
return function () {
|
|
200
168
|
return clearTimeout(timeOutId);
|
|
201
169
|
};
|
|
202
|
-
}
|
|
203
|
-
|
|
170
|
+
}
|
|
171
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
204
172
|
}, [inputText, value]);
|
|
205
|
-
|
|
206
173
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
207
174
|
className: classes.container
|
|
208
175
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -239,63 +206,47 @@ var InputBase = function InputBase(_ref) {
|
|
|
239
206
|
className: (0, _classnames.default)(classes.errorText, errorTextStyle)
|
|
240
207
|
}, error));
|
|
241
208
|
};
|
|
242
|
-
|
|
243
209
|
__signature__(InputBase, "useStyles{classes}\nuseState{[inputText, setInputText](null)}\nuseEffect{}", function () {
|
|
244
210
|
return [useStyles];
|
|
245
211
|
});
|
|
246
|
-
|
|
247
212
|
__signature__(InputBase, "useStyles{classes}\nuseState{[inputText, setInputText](null)}\nuseEffect{}", function () {
|
|
248
213
|
return [useStyles];
|
|
249
214
|
});
|
|
250
|
-
|
|
251
215
|
var compareInputBase = function compareInputBase(prev, next) {
|
|
252
216
|
return prev.inputProps.get(_InputBaseProps.default.propNames.value) === next.inputProps.get(_InputBaseProps.default.propNames.value) && prev.inputProps.get(_InputBaseProps.default.propNames.error) === next.inputProps.get(_InputBaseProps.default.propNames.error) && prev.inputProps.get(_InputBaseProps.default.propNames.update) === next.inputProps.get(_InputBaseProps.default.propNames.update) && prev.inputProps.get(_InputBaseProps.default.propNames.disabled) === next.inputProps.get(_InputBaseProps.default.propNames.disabled);
|
|
253
217
|
};
|
|
254
|
-
|
|
255
218
|
var _default = _react.default.memo(InputBase, compareInputBase);
|
|
256
|
-
|
|
257
219
|
var _default2 = _default;
|
|
258
220
|
var _default3 = _default2;
|
|
259
221
|
exports.default = _default3;
|
|
260
222
|
;
|
|
261
|
-
|
|
262
223
|
(function () {
|
|
263
224
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
264
|
-
|
|
265
225
|
if (!reactHotLoader) {
|
|
266
226
|
return;
|
|
267
227
|
}
|
|
268
|
-
|
|
269
228
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
270
229
|
reactHotLoader.register(InputBase, "InputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
271
230
|
reactHotLoader.register(compareInputBase, "compareInputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
272
231
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
273
232
|
})();
|
|
274
|
-
|
|
275
233
|
;
|
|
276
|
-
|
|
277
234
|
(function () {
|
|
278
235
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
279
236
|
leaveModule && leaveModule(module);
|
|
280
237
|
})();
|
|
281
|
-
|
|
282
238
|
;
|
|
283
|
-
|
|
284
239
|
(function () {
|
|
285
240
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
286
|
-
|
|
287
241
|
if (!reactHotLoader) {
|
|
288
242
|
return;
|
|
289
243
|
}
|
|
290
|
-
|
|
291
244
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
292
245
|
reactHotLoader.register(InputBase, "InputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
293
246
|
reactHotLoader.register(compareInputBase, "compareInputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
294
247
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
295
248
|
})();
|
|
296
|
-
|
|
297
249
|
;
|
|
298
|
-
|
|
299
250
|
(function () {
|
|
300
251
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
301
252
|
leaveModule && leaveModule(module);
|