orc-shared 1.2.2-dev.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,74 +2,49 @@
|
|
|
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
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
17
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var CheckboxProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
25
|
_inheritsLoose(CheckboxProps, _ComponentProps);
|
|
36
|
-
|
|
37
26
|
function CheckboxProps() {
|
|
38
27
|
var _this;
|
|
39
|
-
|
|
40
28
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
29
|
_this.componentProps.set(_this.constructor.propNames.onChange, null);
|
|
43
|
-
|
|
44
30
|
_this.componentProps.set(_this.constructor.propNames.indeterminate, null);
|
|
45
|
-
|
|
46
31
|
_this.componentProps.set(_this.constructor.propNames.update, null);
|
|
47
|
-
|
|
48
32
|
_this.componentProps.set(_this.constructor.propNames.value, null);
|
|
49
|
-
|
|
50
33
|
_this.componentProps.set(_this.constructor.propNames.label, null);
|
|
51
|
-
|
|
52
34
|
_this.componentProps.set(_this.constructor.propNames.readOnly, null);
|
|
53
|
-
|
|
54
35
|
_this.componentProps.set(_this.constructor.propNames.disabled, null);
|
|
55
|
-
|
|
56
36
|
_this.componentProps.set(_this.constructor.propNames.metadata, null);
|
|
57
|
-
|
|
58
37
|
_this._isCheckboxProps = true;
|
|
59
38
|
return _this;
|
|
60
39
|
}
|
|
61
|
-
|
|
62
40
|
var _proto = CheckboxProps.prototype;
|
|
63
|
-
|
|
64
41
|
// @ts-ignore
|
|
65
42
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
66
43
|
// @ts-ignore
|
|
67
44
|
this[key] = eval(code);
|
|
68
45
|
};
|
|
69
|
-
|
|
70
46
|
return CheckboxProps;
|
|
71
47
|
}(_componentProps.default);
|
|
72
|
-
|
|
73
48
|
_defineProperty(CheckboxProps, "propNames", {
|
|
74
49
|
onChange: "onChange",
|
|
75
50
|
indeterminate: "indeterminate",
|
|
@@ -80,54 +55,41 @@ _defineProperty(CheckboxProps, "propNames", {
|
|
|
80
55
|
disabled: "disabled",
|
|
81
56
|
metadata: "metadata"
|
|
82
57
|
});
|
|
83
|
-
|
|
84
58
|
var isCheckboxProps = function isCheckboxProps(value) {
|
|
85
59
|
if (value == null) return true;
|
|
86
60
|
return typeof value === "object" && (value instanceof CheckboxProps || value._isCheckboxProps === true);
|
|
87
61
|
};
|
|
88
|
-
|
|
89
62
|
exports.isCheckboxProps = isCheckboxProps;
|
|
90
63
|
var _default = CheckboxProps;
|
|
91
64
|
var _default2 = _default;
|
|
92
65
|
var _default3 = _default2;
|
|
93
66
|
exports.default = _default3;
|
|
94
67
|
;
|
|
95
|
-
|
|
96
68
|
(function () {
|
|
97
69
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
98
|
-
|
|
99
70
|
if (!reactHotLoader) {
|
|
100
71
|
return;
|
|
101
72
|
}
|
|
102
|
-
|
|
103
73
|
reactHotLoader.register(CheckboxProps, "CheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
104
74
|
reactHotLoader.register(isCheckboxProps, "isCheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
105
75
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
106
76
|
})();
|
|
107
|
-
|
|
108
77
|
;
|
|
109
|
-
|
|
110
78
|
(function () {
|
|
111
79
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
112
80
|
leaveModule && leaveModule(module);
|
|
113
81
|
})();
|
|
114
|
-
|
|
115
82
|
;
|
|
116
|
-
|
|
117
83
|
(function () {
|
|
118
84
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
119
|
-
|
|
120
85
|
if (!reactHotLoader) {
|
|
121
86
|
return;
|
|
122
87
|
}
|
|
123
|
-
|
|
124
88
|
reactHotLoader.register(CheckboxProps, "CheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
125
89
|
reactHotLoader.register(isCheckboxProps, "isCheckboxProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
126
90
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/CheckboxProps.js");
|
|
127
91
|
})();
|
|
128
|
-
|
|
129
92
|
;
|
|
130
|
-
|
|
131
93
|
(function () {
|
|
132
94
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
133
95
|
leaveModule && leaveModule(module);
|
|
@@ -2,51 +2,33 @@
|
|
|
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
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
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); }
|
|
36
23
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
37
|
-
|
|
38
24
|
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
25
|
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
26
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
43
27
|
return a;
|
|
44
28
|
};
|
|
45
|
-
|
|
46
29
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
47
30
|
return a;
|
|
48
31
|
};
|
|
49
|
-
|
|
50
32
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
51
33
|
return {
|
|
52
34
|
container: {
|
|
@@ -153,7 +135,6 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
153
135
|
}
|
|
154
136
|
};
|
|
155
137
|
});
|
|
156
|
-
|
|
157
138
|
var createFormat = function createFormat(useDate, useTime) {
|
|
158
139
|
if (useDate && !useTime) {
|
|
159
140
|
return "P";
|
|
@@ -163,37 +144,32 @@ var createFormat = function createFormat(useDate, useTime) {
|
|
|
163
144
|
return "P p";
|
|
164
145
|
}
|
|
165
146
|
};
|
|
166
|
-
|
|
167
147
|
exports.createFormat = createFormat;
|
|
168
|
-
|
|
169
148
|
var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
170
149
|
var value = _ref.value,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
150
|
+
useTime = _ref.useTime,
|
|
151
|
+
_ref$useDate = _ref.useDate,
|
|
152
|
+
useDate = _ref$useDate === void 0 ? true : _ref$useDate,
|
|
153
|
+
onChange = _ref.onChange,
|
|
154
|
+
dateFormat = _ref.dateFormat,
|
|
155
|
+
showTimeZone = _ref.showTimeZone,
|
|
156
|
+
timeInputLabel = _ref.timeInputLabel,
|
|
157
|
+
readOnly = _ref.readOnly,
|
|
158
|
+
showTimeSelectOnly = _ref.showTimeSelectOnly,
|
|
159
|
+
metadata = _ref.metadata,
|
|
160
|
+
timePickerTimeZone = _ref.timePickerTimeZone,
|
|
161
|
+
error = _ref.error,
|
|
162
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
185
163
|
var classes = useStyles({
|
|
186
164
|
readOnly: readOnly
|
|
187
165
|
});
|
|
188
166
|
var startDate = value ? new Date(value) : null;
|
|
189
167
|
var disabledCls = (0, _classnames.default)(_defineProperty({}, classes.disabled, props.disabled));
|
|
190
|
-
|
|
191
168
|
var updateDate = function updateDate(date, metadata) {
|
|
192
169
|
if (onChange) {
|
|
193
170
|
onChange(date, metadata);
|
|
194
171
|
}
|
|
195
172
|
};
|
|
196
|
-
|
|
197
173
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
198
174
|
className: classes.container
|
|
199
175
|
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
@@ -224,58 +200,44 @@ var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
|
224
200
|
className: classes.errorText
|
|
225
201
|
}, error));
|
|
226
202
|
};
|
|
227
|
-
|
|
228
203
|
__signature__(WrappedDatePicker, "useStyles{classes}", function () {
|
|
229
204
|
return [useStyles];
|
|
230
205
|
});
|
|
231
|
-
|
|
232
206
|
__signature__(WrappedDatePicker, "useStyles{classes}", function () {
|
|
233
207
|
return [useStyles];
|
|
234
208
|
});
|
|
235
|
-
|
|
236
209
|
var _default = WrappedDatePicker;
|
|
237
210
|
var _default2 = _default;
|
|
238
211
|
var _default3 = _default2;
|
|
239
212
|
exports.default = _default3;
|
|
240
213
|
;
|
|
241
|
-
|
|
242
214
|
(function () {
|
|
243
215
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
244
|
-
|
|
245
216
|
if (!reactHotLoader) {
|
|
246
217
|
return;
|
|
247
218
|
}
|
|
248
|
-
|
|
249
219
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
250
220
|
reactHotLoader.register(createFormat, "createFormat", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
251
221
|
reactHotLoader.register(WrappedDatePicker, "WrappedDatePicker", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
252
222
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
253
223
|
})();
|
|
254
|
-
|
|
255
224
|
;
|
|
256
|
-
|
|
257
225
|
(function () {
|
|
258
226
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
259
227
|
leaveModule && leaveModule(module);
|
|
260
228
|
})();
|
|
261
|
-
|
|
262
229
|
;
|
|
263
|
-
|
|
264
230
|
(function () {
|
|
265
231
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
266
|
-
|
|
267
232
|
if (!reactHotLoader) {
|
|
268
233
|
return;
|
|
269
234
|
}
|
|
270
|
-
|
|
271
235
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
272
236
|
reactHotLoader.register(createFormat, "createFormat", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
273
237
|
reactHotLoader.register(WrappedDatePicker, "WrappedDatePicker", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
274
238
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
275
239
|
})();
|
|
276
|
-
|
|
277
240
|
;
|
|
278
|
-
|
|
279
241
|
(function () {
|
|
280
242
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
281
243
|
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
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; }
|
|
39
|
-
|
|
40
25
|
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
|
-
|
|
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);
|
|
@@ -2,92 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isInputProps = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _componentProps = _interopRequireDefault(require("../componentProps"));
|
|
7
|
-
|
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
7
|
(function () {
|
|
11
8
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
9
|
enterModule && enterModule(module);
|
|
13
10
|
})();
|
|
14
|
-
|
|
15
11
|
(function () {
|
|
16
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
17
13
|
enterModule && enterModule(module);
|
|
18
14
|
})();
|
|
19
|
-
|
|
20
15
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
21
|
-
|
|
22
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
17
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var InputBaseProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
25
|
_inheritsLoose(InputBaseProps, _ComponentProps);
|
|
36
|
-
|
|
37
26
|
function InputBaseProps() {
|
|
38
27
|
var _this;
|
|
39
|
-
|
|
40
28
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
29
|
_this.componentProps.set(_this.constructor.propNames.update, null);
|
|
43
|
-
|
|
44
30
|
_this.componentProps.set(_this.constructor.propNames.value, null);
|
|
45
|
-
|
|
46
31
|
_this.componentProps.set(_this.constructor.propNames.placeholder, null);
|
|
47
|
-
|
|
48
32
|
_this.componentProps.set(_this.constructor.propNames.type, null);
|
|
49
|
-
|
|
50
33
|
_this.componentProps.set(_this.constructor.propNames.label, null);
|
|
51
|
-
|
|
52
34
|
_this.componentProps.set(_this.constructor.propNames.error, null);
|
|
53
|
-
|
|
54
35
|
_this.componentProps.set(_this.constructor.propNames.errorPosition, null);
|
|
55
|
-
|
|
56
36
|
_this.componentProps.set(_this.constructor.propNames.inputAttributes, null);
|
|
57
|
-
|
|
58
37
|
_this.componentProps.set(_this.constructor.propNames.disabled, null);
|
|
59
|
-
|
|
60
38
|
_this.componentProps.set(_this.constructor.propNames.multiline, null);
|
|
61
|
-
|
|
62
39
|
_this.componentProps.set(_this.constructor.propNames.onBlur, null);
|
|
63
|
-
|
|
64
40
|
_this.componentProps.set(_this.constructor.propNames.startAdornment, null);
|
|
65
|
-
|
|
66
41
|
_this.componentProps.set(_this.constructor.propNames.endAdornment, null);
|
|
67
|
-
|
|
68
42
|
_this.componentProps.set(_this.constructor.propNames.metadata, null);
|
|
69
|
-
|
|
70
43
|
_this.componentProps.set(_this.constructor.propNames.autoComplete, null);
|
|
71
|
-
|
|
72
44
|
_this.componentClasses.set(_this.constructor.ruleNames.input, null);
|
|
73
|
-
|
|
74
45
|
_this.componentClasses.set(_this.constructor.ruleNames.errorText, null);
|
|
75
|
-
|
|
76
46
|
_this._isInputProps = true;
|
|
77
47
|
return _this;
|
|
78
48
|
}
|
|
79
|
-
|
|
80
49
|
var _proto = InputBaseProps.prototype;
|
|
81
|
-
|
|
82
50
|
// @ts-ignore
|
|
83
51
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
84
52
|
// @ts-ignore
|
|
85
53
|
this[key] = eval(code);
|
|
86
54
|
};
|
|
87
|
-
|
|
88
55
|
return InputBaseProps;
|
|
89
56
|
}(_componentProps.default);
|
|
90
|
-
|
|
91
57
|
_defineProperty(InputBaseProps, "propNames", {
|
|
92
58
|
update: "update",
|
|
93
59
|
value: "value",
|
|
@@ -105,59 +71,45 @@ _defineProperty(InputBaseProps, "propNames", {
|
|
|
105
71
|
metadata: "metadata",
|
|
106
72
|
autoComplete: "autoComplete"
|
|
107
73
|
});
|
|
108
|
-
|
|
109
74
|
_defineProperty(InputBaseProps, "ruleNames", {
|
|
110
75
|
input: "input",
|
|
111
76
|
errorText: "errorText"
|
|
112
77
|
});
|
|
113
|
-
|
|
114
78
|
var isInputProps = function isInputProps(value) {
|
|
115
79
|
if (value == null) return true;
|
|
116
80
|
return typeof value === "object" && (value instanceof InputBaseProps || value._isInputProps === true);
|
|
117
81
|
};
|
|
118
|
-
|
|
119
82
|
exports.isInputProps = isInputProps;
|
|
120
83
|
var _default = InputBaseProps;
|
|
121
84
|
var _default2 = _default;
|
|
122
85
|
var _default3 = _default2;
|
|
123
86
|
exports.default = _default3;
|
|
124
87
|
;
|
|
125
|
-
|
|
126
88
|
(function () {
|
|
127
89
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
128
|
-
|
|
129
90
|
if (!reactHotLoader) {
|
|
130
91
|
return;
|
|
131
92
|
}
|
|
132
|
-
|
|
133
93
|
reactHotLoader.register(InputBaseProps, "InputBaseProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
134
94
|
reactHotLoader.register(isInputProps, "isInputProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
135
95
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
136
96
|
})();
|
|
137
|
-
|
|
138
97
|
;
|
|
139
|
-
|
|
140
98
|
(function () {
|
|
141
99
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
142
100
|
leaveModule && leaveModule(module);
|
|
143
101
|
})();
|
|
144
|
-
|
|
145
102
|
;
|
|
146
|
-
|
|
147
103
|
(function () {
|
|
148
104
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
149
|
-
|
|
150
105
|
if (!reactHotLoader) {
|
|
151
106
|
return;
|
|
152
107
|
}
|
|
153
|
-
|
|
154
108
|
reactHotLoader.register(InputBaseProps, "InputBaseProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
155
109
|
reactHotLoader.register(isInputProps, "isInputProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
156
110
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
157
111
|
})();
|
|
158
|
-
|
|
159
112
|
;
|
|
160
|
-
|
|
161
113
|
(function () {
|
|
162
114
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
163
115
|
leaveModule && leaveModule(module);
|