orc-shared 1.5.0-dev.1 → 1.5.0-dev.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 +3 -51
- 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 +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 +12 -76
- 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 +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 +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 +10 -48
- 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 +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 +15 -64
- 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 +16 -75
- 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 +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 +2 -28
- 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 +0 -33
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +0 -22
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +17 -57
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +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 +32 -121
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +0 -48
- 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 +5 -44
- 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 +27 -94
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +0 -37
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +0 -36
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +0 -40
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +0 -35
- 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 +2 -43
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +0 -36
- 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 +0 -37
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +0 -38
- package/dist/components/MaterialUI/Inputs/DatePicker.js +15 -56
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +0 -50
- 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 +0 -40
- package/dist/components/MaterialUI/Inputs/Select.js +5 -69
- package/dist/components/MaterialUI/Inputs/SelectProps.js +0 -45
- 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 +0 -39
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +2 -29
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +0 -40
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +0 -32
- 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 +20 -101
- 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 +0 -54
- package/dist/components/MaterialUI/Surfaces/paperProps.js +0 -35
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +8 -57
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +6 -42
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +0 -32
- 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 +17 -89
- package/dist/components/MultiSelector.js +19 -72
- 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 -170
- 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 +12 -49
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +24 -104
- package/dist/components/Routing/SubPage.js +6 -57
- package/dist/components/Routing/withWaypointing.js +2 -35
- 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 +8 -73
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +13 -74
- 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 +4 -48
- 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 +14 -54
- 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 +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 +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +2 -31
- 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 +7 -104
- 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 +12 -89
- package/dist/utils/timezoneHelper.js +4 -42
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +3 -3
- package/src/hooks/useEditState.js +12 -2
- package/src/hooks/useEditState.test.js +1 -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
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
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,57 +2,36 @@
|
|
|
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 _timezoneHelper = require("../../../utils/timezoneHelper");
|
|
21
|
-
|
|
22
13
|
var _metadata = require("../../../selectors/metadata");
|
|
23
|
-
|
|
24
14
|
var _reactRedux = require("react-redux");
|
|
25
|
-
|
|
26
15
|
var _excluded = ["value", "useTime", "useDate", "onChange", "useTimeZone", "dateFormat", "showTimeZone", "timeInputLabel", "readOnly", "showTimeSelectOnly", "metadata", "timePickerTimeZone", "error"];
|
|
27
|
-
|
|
28
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
17
|
(function () {
|
|
31
18
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
32
19
|
enterModule && enterModule(module);
|
|
33
20
|
})();
|
|
34
|
-
|
|
35
21
|
(function () {
|
|
36
22
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
37
23
|
enterModule && enterModule(module);
|
|
38
24
|
})();
|
|
39
|
-
|
|
40
25
|
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); }
|
|
41
|
-
|
|
42
26
|
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; }
|
|
43
|
-
|
|
44
27
|
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; }
|
|
45
|
-
|
|
46
28
|
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; }
|
|
47
|
-
|
|
48
29
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
49
30
|
return a;
|
|
50
31
|
};
|
|
51
|
-
|
|
52
32
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
53
33
|
return a;
|
|
54
34
|
};
|
|
55
|
-
|
|
56
35
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
57
36
|
return {
|
|
58
37
|
container: {
|
|
@@ -159,7 +138,6 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
159
138
|
}
|
|
160
139
|
};
|
|
161
140
|
});
|
|
162
|
-
|
|
163
141
|
var createFormat = function createFormat(useDate, useTime) {
|
|
164
142
|
if (useDate && !useTime) {
|
|
165
143
|
return "P";
|
|
@@ -169,27 +147,24 @@ var createFormat = function createFormat(useDate, useTime) {
|
|
|
169
147
|
return "P p";
|
|
170
148
|
}
|
|
171
149
|
};
|
|
172
|
-
|
|
173
150
|
exports.createFormat = createFormat;
|
|
174
|
-
|
|
175
151
|
var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
176
152
|
var value = _ref.value,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
153
|
+
useTime = _ref.useTime,
|
|
154
|
+
_ref$useDate = _ref.useDate,
|
|
155
|
+
useDate = _ref$useDate === void 0 ? true : _ref$useDate,
|
|
156
|
+
onChange = _ref.onChange,
|
|
157
|
+
_ref$useTimeZone = _ref.useTimeZone,
|
|
158
|
+
useTimeZone = _ref$useTimeZone === void 0 ? false : _ref$useTimeZone,
|
|
159
|
+
dateFormat = _ref.dateFormat,
|
|
160
|
+
showTimeZone = _ref.showTimeZone,
|
|
161
|
+
timeInputLabel = _ref.timeInputLabel,
|
|
162
|
+
readOnly = _ref.readOnly,
|
|
163
|
+
showTimeSelectOnly = _ref.showTimeSelectOnly,
|
|
164
|
+
metadata = _ref.metadata,
|
|
165
|
+
timePickerTimeZone = _ref.timePickerTimeZone,
|
|
166
|
+
error = _ref.error,
|
|
167
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
193
168
|
var classes = useStyles({
|
|
194
169
|
readOnly: readOnly
|
|
195
170
|
});
|
|
@@ -197,13 +172,11 @@ var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
|
197
172
|
var startDate = value ? timePickerTimeZone && useTimeZone ? (0, _timezoneHelper.convertTimeToLocalTimeZone)(new Date(value), timeZoneName) : new Date(value) : null;
|
|
198
173
|
var disabledCls = (0, _classnames.default)(_defineProperty({}, classes.disabled, props.disabled));
|
|
199
174
|
var localizedTimeZoneName = (0, _reactRedux.useSelector)((0, _metadata.namedLookupLocalizedSelector)("customer", "TimeZone", timePickerTimeZone));
|
|
200
|
-
|
|
201
175
|
var updateDate = function updateDate(date, metadata) {
|
|
202
176
|
if (onChange) {
|
|
203
177
|
onChange(useTimeZone && timePickerTimeZone ? (0, _timezoneHelper.convertTimeToOtherTimeZone)(date, timeZoneName) : date, metadata);
|
|
204
178
|
}
|
|
205
179
|
};
|
|
206
|
-
|
|
207
180
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
208
181
|
className: classes.container
|
|
209
182
|
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
@@ -234,58 +207,44 @@ var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
|
234
207
|
className: classes.errorText
|
|
235
208
|
}, error));
|
|
236
209
|
};
|
|
237
|
-
|
|
238
210
|
__signature__(WrappedDatePicker, "useStyles{classes}\nuseSelector{localizedTimeZoneName}", function () {
|
|
239
211
|
return [useStyles, _reactRedux.useSelector];
|
|
240
212
|
});
|
|
241
|
-
|
|
242
213
|
__signature__(WrappedDatePicker, "useStyles{classes}\nuseSelector{localizedTimeZoneName}", function () {
|
|
243
214
|
return [useStyles, _reactRedux.useSelector];
|
|
244
215
|
});
|
|
245
|
-
|
|
246
216
|
var _default = WrappedDatePicker;
|
|
247
217
|
var _default2 = _default;
|
|
248
218
|
var _default3 = _default2;
|
|
249
219
|
exports.default = _default3;
|
|
250
220
|
;
|
|
251
|
-
|
|
252
221
|
(function () {
|
|
253
222
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
254
|
-
|
|
255
223
|
if (!reactHotLoader) {
|
|
256
224
|
return;
|
|
257
225
|
}
|
|
258
|
-
|
|
259
226
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
260
227
|
reactHotLoader.register(createFormat, "createFormat", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
261
228
|
reactHotLoader.register(WrappedDatePicker, "WrappedDatePicker", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
262
229
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
263
230
|
})();
|
|
264
|
-
|
|
265
231
|
;
|
|
266
|
-
|
|
267
232
|
(function () {
|
|
268
233
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
269
234
|
leaveModule && leaveModule(module);
|
|
270
235
|
})();
|
|
271
|
-
|
|
272
236
|
;
|
|
273
|
-
|
|
274
237
|
(function () {
|
|
275
238
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
276
|
-
|
|
277
239
|
if (!reactHotLoader) {
|
|
278
240
|
return;
|
|
279
241
|
}
|
|
280
|
-
|
|
281
242
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
282
243
|
reactHotLoader.register(createFormat, "createFormat", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
283
244
|
reactHotLoader.register(WrappedDatePicker, "WrappedDatePicker", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
284
245
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/DatePicker.js");
|
|
285
246
|
})();
|
|
286
|
-
|
|
287
247
|
;
|
|
288
|
-
|
|
289
248
|
(function () {
|
|
290
249
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
291
250
|
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 : "";
|
|
@@ -162,38 +139,29 @@ var InputBase = function InputBase(_ref) {
|
|
|
162
139
|
var rows = rowsProps;
|
|
163
140
|
if (rows === null || rows === undefined) rows = defaultRows;
|
|
164
141
|
var tooltipText = type === "text" ? value : "";
|
|
165
|
-
|
|
166
142
|
var onClick = function onClick(item) {
|
|
167
143
|
// Fixes FireFox issue, where the input number buttons do not focus on input control,
|
|
168
144
|
// causing onBlur to never fire
|
|
169
145
|
item.target.focus();
|
|
170
146
|
};
|
|
171
|
-
|
|
172
147
|
var classes = useStyles({
|
|
173
148
|
label: label,
|
|
174
149
|
errorPosition: errorPosition
|
|
175
150
|
});
|
|
176
|
-
|
|
177
151
|
var onChangeHandler = function onChangeHandler(event) {
|
|
178
152
|
event.persist();
|
|
179
|
-
|
|
180
153
|
if (!event.target.value || window.bypassDebounce === true) {
|
|
181
154
|
update(event.target.value, metadata);
|
|
182
155
|
}
|
|
183
|
-
|
|
184
156
|
setInputText(event.target.value);
|
|
185
157
|
};
|
|
186
|
-
|
|
187
158
|
var inputBaseInputStyle = inputProps == null ? void 0 : inputProps.getStyle(_InputBaseProps.default.ruleNames.input);
|
|
188
159
|
var errorTextStyle = inputProps == null ? void 0 : inputProps.getStyle(_InputBaseProps.default.ruleNames.errorText);
|
|
189
|
-
|
|
190
160
|
var _React$useState = _react.default.useState(null),
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
161
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
162
|
+
inputText = _React$useState2[0],
|
|
163
|
+
setInputText = _React$useState2[1];
|
|
195
164
|
var textToDisplay = inputText != null ? inputText : value;
|
|
196
|
-
|
|
197
165
|
_react.default.useEffect(function () {
|
|
198
166
|
if (inputText !== value && inputText != null && window.bypassDebounce !== true) {
|
|
199
167
|
var timeOutId = setTimeout(function () {
|
|
@@ -204,10 +172,9 @@ var InputBase = function InputBase(_ref) {
|
|
|
204
172
|
return function () {
|
|
205
173
|
return clearTimeout(timeOutId);
|
|
206
174
|
};
|
|
207
|
-
}
|
|
208
|
-
|
|
175
|
+
}
|
|
176
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
209
177
|
}, [inputText, value]);
|
|
210
|
-
|
|
211
178
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
212
179
|
className: classes.container
|
|
213
180
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -244,63 +211,47 @@ var InputBase = function InputBase(_ref) {
|
|
|
244
211
|
className: (0, _classnames.default)(classes.errorText, errorTextStyle)
|
|
245
212
|
}, error));
|
|
246
213
|
};
|
|
247
|
-
|
|
248
214
|
__signature__(InputBase, "useStyles{classes}\nuseState{[inputText, setInputText](null)}\nuseEffect{}", function () {
|
|
249
215
|
return [useStyles];
|
|
250
216
|
});
|
|
251
|
-
|
|
252
217
|
__signature__(InputBase, "useStyles{classes}\nuseState{[inputText, setInputText](null)}\nuseEffect{}", function () {
|
|
253
218
|
return [useStyles];
|
|
254
219
|
});
|
|
255
|
-
|
|
256
220
|
var compareInputBase = function compareInputBase(prev, next) {
|
|
257
221
|
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);
|
|
258
222
|
};
|
|
259
|
-
|
|
260
223
|
var _default = _react.default.memo(InputBase, compareInputBase);
|
|
261
|
-
|
|
262
224
|
var _default2 = _default;
|
|
263
225
|
var _default3 = _default2;
|
|
264
226
|
exports.default = _default3;
|
|
265
227
|
;
|
|
266
|
-
|
|
267
228
|
(function () {
|
|
268
229
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
269
|
-
|
|
270
230
|
if (!reactHotLoader) {
|
|
271
231
|
return;
|
|
272
232
|
}
|
|
273
|
-
|
|
274
233
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
275
234
|
reactHotLoader.register(InputBase, "InputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
276
235
|
reactHotLoader.register(compareInputBase, "compareInputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
277
236
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
278
237
|
})();
|
|
279
|
-
|
|
280
238
|
;
|
|
281
|
-
|
|
282
239
|
(function () {
|
|
283
240
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
284
241
|
leaveModule && leaveModule(module);
|
|
285
242
|
})();
|
|
286
|
-
|
|
287
243
|
;
|
|
288
|
-
|
|
289
244
|
(function () {
|
|
290
245
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
291
|
-
|
|
292
246
|
if (!reactHotLoader) {
|
|
293
247
|
return;
|
|
294
248
|
}
|
|
295
|
-
|
|
296
249
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
297
250
|
reactHotLoader.register(InputBase, "InputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
298
251
|
reactHotLoader.register(compareInputBase, "compareInputBase", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
299
252
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBase.js");
|
|
300
253
|
})();
|
|
301
|
-
|
|
302
254
|
;
|
|
303
|
-
|
|
304
255
|
(function () {
|
|
305
256
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
306
257
|
leaveModule && leaveModule(module);
|
|
@@ -2,96 +2,60 @@
|
|
|
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
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
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.componentProps.set(_this.constructor.propNames.timeoutDelay, null);
|
|
73
|
-
|
|
74
45
|
_this.componentProps.set(_this.constructor.propNames.rows, null);
|
|
75
|
-
|
|
76
46
|
_this.componentClasses.set(_this.constructor.ruleNames.input, null);
|
|
77
|
-
|
|
78
47
|
_this.componentClasses.set(_this.constructor.ruleNames.errorText, null);
|
|
79
|
-
|
|
80
48
|
_this._isInputProps = true;
|
|
81
49
|
return _this;
|
|
82
50
|
}
|
|
83
|
-
|
|
84
51
|
var _proto = InputBaseProps.prototype;
|
|
85
|
-
|
|
86
52
|
// @ts-ignore
|
|
87
53
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
88
54
|
// @ts-ignore
|
|
89
55
|
this[key] = eval(code);
|
|
90
56
|
};
|
|
91
|
-
|
|
92
57
|
return InputBaseProps;
|
|
93
58
|
}(_componentProps.default);
|
|
94
|
-
|
|
95
59
|
_defineProperty(InputBaseProps, "propNames", {
|
|
96
60
|
update: "update",
|
|
97
61
|
value: "value",
|
|
@@ -111,59 +75,45 @@ _defineProperty(InputBaseProps, "propNames", {
|
|
|
111
75
|
timeoutDelay: "timeoutDelay",
|
|
112
76
|
rows: "rows"
|
|
113
77
|
});
|
|
114
|
-
|
|
115
78
|
_defineProperty(InputBaseProps, "ruleNames", {
|
|
116
79
|
input: "input",
|
|
117
80
|
errorText: "errorText"
|
|
118
81
|
});
|
|
119
|
-
|
|
120
82
|
var isInputProps = function isInputProps(value) {
|
|
121
83
|
if (value == null) return true;
|
|
122
84
|
return typeof value === "object" && (value instanceof InputBaseProps || value._isInputProps === true);
|
|
123
85
|
};
|
|
124
|
-
|
|
125
86
|
exports.isInputProps = isInputProps;
|
|
126
87
|
var _default = InputBaseProps;
|
|
127
88
|
var _default2 = _default;
|
|
128
89
|
var _default3 = _default2;
|
|
129
90
|
exports.default = _default3;
|
|
130
91
|
;
|
|
131
|
-
|
|
132
92
|
(function () {
|
|
133
93
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
134
|
-
|
|
135
94
|
if (!reactHotLoader) {
|
|
136
95
|
return;
|
|
137
96
|
}
|
|
138
|
-
|
|
139
97
|
reactHotLoader.register(InputBaseProps, "InputBaseProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
140
98
|
reactHotLoader.register(isInputProps, "isInputProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
141
99
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
142
100
|
})();
|
|
143
|
-
|
|
144
101
|
;
|
|
145
|
-
|
|
146
102
|
(function () {
|
|
147
103
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
148
104
|
leaveModule && leaveModule(module);
|
|
149
105
|
})();
|
|
150
|
-
|
|
151
106
|
;
|
|
152
|
-
|
|
153
107
|
(function () {
|
|
154
108
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
155
|
-
|
|
156
109
|
if (!reactHotLoader) {
|
|
157
110
|
return;
|
|
158
111
|
}
|
|
159
|
-
|
|
160
112
|
reactHotLoader.register(InputBaseProps, "InputBaseProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
161
113
|
reactHotLoader.register(isInputProps, "isInputProps", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
162
114
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Inputs/InputBaseProps.js");
|
|
163
115
|
})();
|
|
164
|
-
|
|
165
116
|
;
|
|
166
|
-
|
|
167
117
|
(function () {
|
|
168
118
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
169
119
|
leaveModule && leaveModule(module);
|