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