orc-shared 1.7.0-dev.1 → 1.7.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 +15 -30
- package/dist/actions/authentication.js +10 -20
- package/dist/actions/countries.js +4 -8
- package/dist/actions/globalErrorMessages.js +4 -8
- package/dist/actions/locale.js +17 -34
- package/dist/actions/makeApiAction.js +4 -8
- package/dist/actions/makeOrcApiAction.js +1 -2
- package/dist/actions/metadata.js +73 -146
- package/dist/actions/modules.js +10 -20
- package/dist/actions/navigation.js +14 -28
- package/dist/actions/requestState.js +2 -4
- package/dist/actions/requestsApi.js +703 -1406
- package/dist/actions/scopes.js +18 -36
- package/dist/actions/tasks.js +20 -40
- package/dist/actions/timezones.js +4 -8
- package/dist/actions/toasts.js +4 -8
- package/dist/actions/versionInfo.js +7 -14
- package/dist/actions/view.js +22 -44
- package/dist/buildStore.js +3 -7
- package/dist/components/AppFrame/About.js +8 -16
- package/dist/components/AppFrame/Anchor.js +3 -6
- package/dist/components/AppFrame/AppFrame.js +3 -6
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +2 -4
- package/dist/components/AppFrame/ApplicationSelector/Header.js +3 -6
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -2
- package/dist/components/AppFrame/ConnectedToastList.js +3 -4
- package/dist/components/AppFrame/Help.js +2 -4
- package/dist/components/AppFrame/MenuItem.js +7 -14
- package/dist/components/AppFrame/Preferences.js +11 -22
- package/dist/components/AppFrame/Sidebar.js +5 -10
- package/dist/components/AppFrame/Topbar.js +8 -16
- package/dist/components/AppFrame/index.js +1 -2
- package/dist/components/AppFrame/useApplicationHelpUrl.js +1 -2
- package/dist/components/ApplicationModuleLoader.js +1 -2
- package/dist/components/Authenticate.js +5 -10
- package/dist/components/Button.js +1 -2
- package/dist/components/CategoryList.js +5 -10
- package/dist/components/Checkbox.js +5 -10
- package/dist/components/ColumnWrapper.js +1 -2
- package/dist/components/Culture.js +1 -2
- package/dist/components/DevPages.js +1 -2
- package/dist/components/DropMenu/Menu.js +5 -10
- package/dist/components/DropMenu/index.js +4 -8
- package/dist/components/ErrorPlaceholder.js +2 -4
- package/dist/components/Form/Combination.js +2 -4
- package/dist/components/Form/Field.js +4 -8
- package/dist/components/Form/FieldElements.js +1 -2
- package/dist/components/Form/FieldList.js +4 -8
- package/dist/components/Form/Fieldset.js +3 -6
- package/dist/components/Form/Form.js +4 -8
- package/dist/components/Form/FormElement.js +1 -2
- package/dist/components/Form/InputField.js +2 -4
- package/dist/components/Form/Inputs/Button.js +3 -6
- package/dist/components/Form/Inputs/Date.js +1 -2
- package/dist/components/Form/Inputs/FieldButtons.js +3 -6
- package/dist/components/Form/Inputs/Number.js +2 -4
- package/dist/components/Form/Inputs/ReadOnly.js +5 -10
- package/dist/components/Form/Inputs/SmallButton.js +4 -8
- package/dist/components/Form/Inputs/Text.js +5 -8
- package/dist/components/Form/Inputs/Time.js +3 -6
- package/dist/components/Form/Inputs/Toggles.js +5 -10
- package/dist/components/Form/Inputs/Translation.js +7 -14
- package/dist/components/Form/Inputs/index.js +1 -2
- package/dist/components/Form/index.js +1 -2
- package/dist/components/Head.js +1 -2
- package/dist/components/I18n.js +1 -2
- package/dist/components/Icon.js +1 -2
- package/dist/components/IconButton.js +3 -6
- package/dist/components/Input.js +2 -4
- package/dist/components/InternetExplorerWarningMessage.js +2 -4
- package/dist/components/List/DataCell.js +2 -4
- package/dist/components/List/HeadCell.js +7 -14
- package/dist/components/List/HeadRow.js +2 -4
- package/dist/components/List/List.js +9 -18
- package/dist/components/List/Row.js +4 -8
- package/dist/components/List/enhanceColumnDefs.js +1 -2
- package/dist/components/List/index.js +1 -2
- package/dist/components/Loader.js +2 -4
- package/dist/components/LoadingIcon.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/Badge.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Divider.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Icon.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/List.js +3 -6
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Notification.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +3 -6
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Table.js +4 -8
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +3 -6
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +3 -6
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -6
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +1 -2
- package/dist/components/MaterialUI/Feedback/useNotification.js +2 -4
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +1 -2
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/Checkbox.js +1 -2
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +1 -2
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/DatePicker.js +2 -4
- package/dist/components/MaterialUI/Inputs/InputBase.js +3 -6
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +3 -6
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +1 -2
- package/dist/components/MaterialUI/Inputs/Radio.js +1 -2
- package/dist/components/MaterialUI/Inputs/RadioProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/Select.js +2 -4
- package/dist/components/MaterialUI/Inputs/SelectProps.js +3 -6
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +1 -2
- package/dist/components/MaterialUI/Inputs/Switch.js +2 -4
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/TimePicker.js +5 -10
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -6
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +2 -4
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +1 -2
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +2 -4
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +1 -2
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +1 -2
- package/dist/components/MaterialUI/Navigation/TabBar.js +2 -4
- package/dist/components/MaterialUI/Navigation/TabLabel.js +1 -2
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -2
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +2 -4
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +3 -6
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +1 -2
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -2
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +1 -2
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +1 -2
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +4 -8
- package/dist/components/MaterialUI/Surfaces/paperProps.js +2 -4
- package/dist/components/MaterialUI/componentProps.js +1 -2
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +2 -4
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +1 -2
- package/dist/components/MaterialUI/muiThemes.js +1 -2
- package/dist/components/MaterialUI/textProps.js +2 -4
- package/dist/components/Modal/Background.js +1 -2
- package/dist/components/Modal/Dialog.js +2 -4
- package/dist/components/Modal/Wrapper.js +2 -4
- package/dist/components/Modal/index.js +2 -4
- package/dist/components/Modules.js +3 -6
- package/dist/components/MultiSelector.js +3 -6
- package/dist/components/Navigation/Bar.js +7 -14
- package/dist/components/Navigation/Tab.js +8 -14
- package/dist/components/Navigation/index.js +1 -2
- package/dist/components/Navigation/useNavigationState.js +3 -6
- package/dist/components/Placeholder.js +5 -10
- package/dist/components/Provision.js +1 -2
- package/dist/components/Routing/FullPage.js +1 -2
- package/dist/components/Routing/Page.js +1 -2
- package/dist/components/Routing/Segment.js +1 -2
- package/dist/components/Routing/SegmentPage.js +5 -10
- package/dist/components/Routing/SubPage.js +2 -4
- package/dist/components/Routing/withWaypointing.js +1 -2
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +1 -2
- package/dist/components/Scope/ScopeNode.js +5 -10
- package/dist/components/Scope/Selector.js +6 -12
- package/dist/components/Scope/index.js +5 -10
- package/dist/components/Scope/useScopeConfirmationModalState.js +1 -2
- package/dist/components/Scope/useScopeData.js +1 -2
- package/dist/components/Scope/useScopeSelect.js +2 -4
- package/dist/components/Selector.js +9 -18
- package/dist/components/Sidepanel.js +2 -4
- package/dist/components/Spritesheet.js +3 -6
- package/dist/components/Switch.js +5 -10
- package/dist/components/TaskDetailsModal.js +2 -4
- package/dist/components/Text.js +3 -6
- package/dist/components/ToastList.js +6 -12
- package/dist/components/Toolbar.js +12 -24
- package/dist/components/Tooltip.js +2 -4
- package/dist/components/Treeview/Branch.js +2 -4
- package/dist/components/Treeview/Label.js +4 -8
- package/dist/components/Treeview/Leaf.js +2 -4
- package/dist/components/Treeview/Node.js +5 -10
- package/dist/components/Treeview/index.js +2 -4
- package/dist/components/Treeview/settings.js +3 -6
- package/dist/constants.js +14 -28
- package/dist/content/icons/inventory.svg +4 -0
- package/dist/content/iconsSheet.svg +117 -731
- package/dist/getTheme.js +1 -2
- package/dist/getThemeOverrides.js +1 -2
- package/dist/hocs/routingConnector.js +1 -2
- package/dist/hocs/withAuthentication.js +1 -2
- package/dist/hocs/withClickOutside.js +1 -2
- package/dist/hocs/withErrorBoundary.js +1 -2
- package/dist/hocs/withId.js +1 -2
- package/dist/hocs/withInfiniteScroll.js +3 -6
- package/dist/hocs/withInitialLoad.js +1 -2
- package/dist/hocs/withLocaleSwitch.js +1 -2
- package/dist/hocs/withNavigationLink.js +1 -2
- package/dist/hocs/withRequestActivity.js +1 -2
- package/dist/hocs/withScopeData.js +1 -2
- package/dist/hocs/withScrollBox.js +2 -4
- package/dist/hocs/withToggle.js +1 -2
- package/dist/hocs/withUpdateHandler.js +1 -2
- package/dist/hocs/withViewState.js +1 -2
- package/dist/hooks/useDispatchWithErrorHandling.js +3 -6
- package/dist/hooks/useDispatchWithModulesData.js +2 -4
- package/dist/hooks/useEditState.js +3 -6
- package/dist/hooks/useEntityLoader.js +1 -2
- package/dist/hooks/useFullEntityEditState.js +2 -4
- package/dist/hooks/useInfiniteScroll.js +1 -2
- package/dist/hooks/useLabelMessage.js +2 -4
- package/dist/hooks/useLoader.js +1 -2
- package/dist/hooks/useMultipleFieldEditState.js +1 -2
- package/dist/hooks/useNavigationHandler.js +2 -4
- package/dist/hooks/useNotificationRequestState.js +1 -2
- package/dist/hooks/usePreviousModified.js +1 -2
- package/dist/hooks/useRequestState.js +1 -2
- package/dist/hooks/useSelectorAndUnwrap.js +2 -4
- package/dist/hooks/useToggle.js +1 -2
- package/dist/hooks/useViewState.js +1 -2
- package/dist/reducers/applications.js +1 -2
- package/dist/reducers/authentication.js +1 -2
- package/dist/reducers/countries.js +1 -2
- package/dist/reducers/globalErrorMessages.js +1 -2
- package/dist/reducers/localeFactory.js +2 -4
- package/dist/reducers/metadata.js +4 -8
- package/dist/reducers/modules.js +1 -2
- package/dist/reducers/navigation.js +1 -2
- package/dist/reducers/request.js +3 -6
- package/dist/reducers/requestStates.js +1 -2
- package/dist/reducers/scopes.js +1 -2
- package/dist/reducers/settings.js +1 -2
- package/dist/reducers/tasks.js +1 -2
- package/dist/reducers/timezones.js +1 -2
- package/dist/reducers/toasts.js +1 -2
- package/dist/reducers/versionInfo.js +1 -2
- package/dist/reducers/view.js +1 -2
- package/dist/schemas/countries.js +3 -6
- package/dist/schemas/definitions.js +3 -6
- package/dist/schemas/metadata.js +3 -6
- package/dist/schemas/productDefinitions.js +3 -6
- package/dist/schemas/scopes.js +1 -2
- package/dist/schemas/timezones.js +3 -6
- package/dist/selectors/applications.js +2 -4
- package/dist/selectors/authentication.js +11 -22
- package/dist/selectors/countries.js +2 -4
- package/dist/selectors/globalErrorMessages.js +1 -2
- package/dist/selectors/locale.js +9 -18
- package/dist/selectors/metadata.js +36 -72
- package/dist/selectors/modules.js +2 -4
- package/dist/selectors/navigation.js +16 -32
- package/dist/selectors/requestStates.js +1 -2
- package/dist/selectors/requests.js +3 -6
- package/dist/selectors/route.js +2 -4
- package/dist/selectors/scope.js +8 -16
- package/dist/selectors/settings.js +4 -8
- package/dist/selectors/tasks.js +2 -4
- package/dist/selectors/timezones.js +2 -4
- package/dist/selectors/versionInfo.js +3 -6
- package/dist/selectors/view.js +9 -18
- package/dist/sharedMessages.js +1 -2
- package/dist/spawnerMiddleware.js +2 -4
- package/dist/utils/buildUrl.js +3 -6
- package/dist/utils/countryHelper.js +1 -2
- package/dist/utils/curry.js +1 -2
- package/dist/utils/debounce.js +1 -2
- package/dist/utils/displayModeHelper.js +4 -8
- package/dist/utils/domHelper.js +1 -2
- package/dist/utils/flatten.js +2 -4
- package/dist/utils/insertIcons.js +1 -2
- package/dist/utils/localizationHelper.js +1 -2
- package/dist/utils/logPass.js +1 -2
- package/dist/utils/mapHelper.js +2 -4
- package/dist/utils/memoize.js +1 -2
- package/dist/utils/modelValidationHelper.js +4 -8
- package/dist/utils/normalizeForSearch.js +1 -2
- package/dist/utils/objectHelper.js +1 -2
- package/dist/utils/parseHelper.js +5 -10
- package/dist/utils/profilerHelper.js +1 -2
- package/dist/utils/propertyHelper.js +4 -8
- package/dist/utils/propertyValidator.js +4 -8
- package/dist/utils/requestProcessingHelper.js +2 -4
- package/dist/utils/responseProcessingHelper.js +1 -2
- package/dist/utils/safeGet.js +1 -2
- package/dist/utils/setTranslation.js +1 -2
- package/dist/utils/setTranslationWithFallback.js +2 -4
- package/dist/utils/stripKey.js +1 -2
- package/dist/utils/styledPropFuncs.js +3 -6
- package/dist/utils/testUtils.js +11 -22
- package/dist/utils/timezoneHelper.js +6 -12
- package/dist/utils/unwrapImmutable.js +2 -4
- package/dist/utils/urlHelper.js +4 -8
- package/package.json +1 -1
- package/src/content/icons/inventory.svg +4 -0
- package/src/content/iconsSheet.svg +117 -731
|
@@ -25,29 +25,25 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
25
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
26
|
return a;
|
|
27
27
|
};
|
|
28
|
-
var Drawer = _styledTransitionGroup.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tz-index: 19999;\n\tmargin: 4px 0 0;\n\t", ": 0;\n\n\ttransition: opacity ", "ms ease-out;\n\n\t&:enter {\n\t\topacity: 0.01;\n\t}\n\t&:enter-active {\n\t\topacity: 1;\n\t}\n\t&:exit {\n\t\topacity: 1;\n\t}\n\t&:exit-active {\n\t\topacity: 0.01;\n\t}\n"])), (0, _utils.ifFlag)("alignRight", "right", "left"), function (props) {
|
|
28
|
+
var Drawer = exports.Drawer = _styledTransitionGroup.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tz-index: 19999;\n\tmargin: 4px 0 0;\n\t", ": 0;\n\n\ttransition: opacity ", "ms ease-out;\n\n\t&:enter {\n\t\topacity: 0.01;\n\t}\n\t&:enter-active {\n\t\topacity: 1;\n\t}\n\t&:exit {\n\t\topacity: 1;\n\t}\n\t&:exit-active {\n\t\topacity: 0.01;\n\t}\n"])), (0, _utils.ifFlag)("alignRight", "right", "left"), function (props) {
|
|
29
29
|
return props.timeout;
|
|
30
30
|
});
|
|
31
|
-
exports.Drawer = Drawer;
|
|
32
31
|
Drawer.defaultProps = {
|
|
33
32
|
unmountOnExit: true,
|
|
34
33
|
timeout: 100
|
|
35
34
|
};
|
|
36
|
-
var List = _styledComponents.default.ul.withConfig({
|
|
35
|
+
var List = exports.List = _styledComponents.default.ul.withConfig({
|
|
37
36
|
displayName: "Menu__List",
|
|
38
37
|
componentId: "sc-hgz6l0-0"
|
|
39
38
|
})(["color:", ";background-color:white;border:1px solid ", ";border-radius:5px;list-style-type:none;padding:5px 0;margin:0;font-family:Open Sans,sans-serif;font-size:12px;width:max-content;"], (0, _utils.getThemeProp)(["colors", "text"], "#333333"), (0, _utils.getThemeProp)(["colors", "border"], "#999999"));
|
|
40
|
-
exports.
|
|
41
|
-
var Item = _styledComponents.default.li.withConfig({
|
|
39
|
+
var Item = exports.Item = _styledComponents.default.li.withConfig({
|
|
42
40
|
displayName: "Menu__Item",
|
|
43
41
|
componentId: "sc-hgz6l0-1"
|
|
44
42
|
})(["box-sizing:border-box;height:30px;min-width:178px;padding:9px 12px;display:flex;align-items:center;cursor:pointer;&:hover{background-color:", ";color:white;}"], (0, _utils.getThemeProp)(["colors", "application", "base"], "#ffffff"));
|
|
45
|
-
exports.
|
|
46
|
-
var ItemIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
43
|
+
var ItemIcon = exports.ItemIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
47
44
|
displayName: "Menu__ItemIcon",
|
|
48
45
|
componentId: "sc-hgz6l0-2"
|
|
49
46
|
})(["padding-right:11px;font-size:17px;"]);
|
|
50
|
-
exports.ItemIcon = ItemIcon;
|
|
51
47
|
var Menu = function Menu(_ref) {
|
|
52
48
|
var id = _ref.id,
|
|
53
49
|
open = _ref.open,
|
|
@@ -76,8 +72,7 @@ var Menu = function Menu(_ref) {
|
|
|
76
72
|
};
|
|
77
73
|
var _default = Menu;
|
|
78
74
|
var _default2 = _default;
|
|
79
|
-
var _default3 = _default2;
|
|
80
|
-
exports.default = _default3;
|
|
75
|
+
var _default3 = exports.default = _default2;
|
|
81
76
|
;
|
|
82
77
|
(function () {
|
|
83
78
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -28,21 +28,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
28
28
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
29
|
return a;
|
|
30
30
|
};
|
|
31
|
-
var Wrapper = (0, _withClickOutside.default)(_styledComponents.default.div.withConfig({
|
|
31
|
+
var Wrapper = exports.Wrapper = (0, _withClickOutside.default)(_styledComponents.default.div.withConfig({
|
|
32
32
|
displayName: "DropMenu__Wrapper",
|
|
33
33
|
componentId: "sc-12nvpch-0"
|
|
34
34
|
})(["position:relative;"]));
|
|
35
|
-
exports.
|
|
36
|
-
var AnchorWrapper = _styledComponents.default.div.withConfig({
|
|
35
|
+
var AnchorWrapper = exports.AnchorWrapper = _styledComponents.default.div.withConfig({
|
|
37
36
|
displayName: "DropMenu__AnchorWrapper",
|
|
38
37
|
componentId: "sc-12nvpch-1"
|
|
39
38
|
})([""]);
|
|
40
|
-
exports.
|
|
41
|
-
var Background = _styledComponents.default.div.withConfig({
|
|
39
|
+
var Background = exports.Background = _styledComponents.default.div.withConfig({
|
|
42
40
|
displayName: "DropMenu__Background",
|
|
43
41
|
componentId: "sc-12nvpch-2"
|
|
44
42
|
})(["position:absolute;top:0;left:0;bottom:0;right:0;z-index:19998;"]);
|
|
45
|
-
exports.Background = Background;
|
|
46
43
|
var DropMenu = function DropMenu(_ref) {
|
|
47
44
|
var id = _ref.id,
|
|
48
45
|
initOpen = _ref.initOpen,
|
|
@@ -83,8 +80,7 @@ __signature__(DropMenu, "useToggle{[open, toggle, reset]}", function () {
|
|
|
83
80
|
});
|
|
84
81
|
var _default = DropMenu;
|
|
85
82
|
var _default2 = _default;
|
|
86
|
-
var _default3 = _default2;
|
|
87
|
-
exports.default = _default3;
|
|
83
|
+
var _default3 = exports.default = _default2;
|
|
88
84
|
;
|
|
89
85
|
(function () {
|
|
90
86
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -26,11 +26,10 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
26
26
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
27
|
return a;
|
|
28
28
|
};
|
|
29
|
-
var Wrapper = _styledComponents.default.div.withConfig({
|
|
29
|
+
var Wrapper = exports.Wrapper = _styledComponents.default.div.withConfig({
|
|
30
30
|
displayName: "ErrorPlaceholder__Wrapper",
|
|
31
31
|
componentId: "sc-1qmr4g4-0"
|
|
32
32
|
})(["display:flex;width:60%;height:100%;padding:0 20vw;flex-direction:column;justify-content:center;"]);
|
|
33
|
-
exports.Wrapper = Wrapper;
|
|
34
33
|
var ErrorPlaceholder = (0, _styledComponents.withTheme)(function (_ref) {
|
|
35
34
|
var message = _ref.message,
|
|
36
35
|
description = _ref.description,
|
|
@@ -46,8 +45,7 @@ var ErrorPlaceholder = (0, _styledComponents.withTheme)(function (_ref) {
|
|
|
46
45
|
});
|
|
47
46
|
var _default = ErrorPlaceholder;
|
|
48
47
|
var _default2 = _default;
|
|
49
|
-
var _default3 = _default2;
|
|
50
|
-
exports.default = _default3;
|
|
48
|
+
var _default3 = exports.default = _default2;
|
|
51
49
|
;
|
|
52
50
|
(function () {
|
|
53
51
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -22,7 +22,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
22
22
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
23
|
return a;
|
|
24
24
|
};
|
|
25
|
-
var CombiningRow = _styledComponents.default.div.withConfig({
|
|
25
|
+
var CombiningRow = exports.CombiningRow = _styledComponents.default.div.withConfig({
|
|
26
26
|
displayName: "Combination__CombiningRow",
|
|
27
27
|
componentId: "sc-yii6w9-0"
|
|
28
28
|
})(["display:flex;flex-direction:row;& > ", "{margin-top:0;margin-right:15px;}& > ", ":last-child{margin-right:0;}", ";"], _Field.FieldBox, _Field.FieldBox, function (props) {
|
|
@@ -30,7 +30,6 @@ var CombiningRow = _styledComponents.default.div.withConfig({
|
|
|
30
30
|
return width ? (0, _styledComponents.css)(["& > ", ":nth-child(", "){flex:", ";}"], _Field.FieldBox, index + 1, typeof width === "string" ? "0 0 " + width : "0 1 " + width + "%") : "";
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
|
-
exports.CombiningRow = CombiningRow;
|
|
34
33
|
var CombinationField = function CombinationField(_ref) {
|
|
35
34
|
var label = _ref.label,
|
|
36
35
|
children = _ref.children,
|
|
@@ -44,8 +43,7 @@ var CombinationField = function CombinationField(_ref) {
|
|
|
44
43
|
};
|
|
45
44
|
var _default = CombinationField;
|
|
46
45
|
var _default2 = _default;
|
|
47
|
-
var _default3 = _default2;
|
|
48
|
-
exports.default = _default3;
|
|
46
|
+
var _default3 = exports.default = _default2;
|
|
49
47
|
;
|
|
50
48
|
(function () {
|
|
51
49
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -24,21 +24,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
24
24
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
25
|
return a;
|
|
26
26
|
};
|
|
27
|
-
var FieldBox = _styledComponents.default.div.withConfig({
|
|
27
|
+
var FieldBox = exports.FieldBox = _styledComponents.default.div.withConfig({
|
|
28
28
|
displayName: "Field__FieldBox",
|
|
29
29
|
componentId: "sc-oln5y9-0"
|
|
30
30
|
})(["flex:0 1 auto;display:flex;flex-direction:column;margin-top:20px;position:relative;"]);
|
|
31
|
-
exports.
|
|
32
|
-
var Label = _styledComponents.default.label.withConfig({
|
|
31
|
+
var Label = exports.Label = _styledComponents.default.label.withConfig({
|
|
33
32
|
displayName: "Field__Label",
|
|
34
33
|
componentId: "sc-oln5y9-1"
|
|
35
34
|
})(["", " min-height:17px;", ";", ";", ""], (0, _utils.ifFlag)("invalid", (0, _styledComponents.css)(["color:", ";"], (0, _utils.getThemeProp)(["colors", "error"], "#ce4844")), (0, _styledComponents.css)(["color:", ";"], (0, _utils.getThemeProp)(["colors", "textMedium"], "#999999"))), (0, _utils.ifFlag)("center", (0, _styledComponents.css)(["text-align:center;"])), (0, _utils.ifFlag)("labelOnly", "", (0, _styledComponents.css)(["margin-bottom:10px;"])), (0, _utils.ifFlag)("required", (0, _styledComponents.css)(["&::after{content:\" *\";color:#666;}"])));
|
|
36
|
-
exports.
|
|
37
|
-
var RequiredNotice = _styledComponents.default.div.withConfig({
|
|
35
|
+
var RequiredNotice = exports.RequiredNotice = _styledComponents.default.div.withConfig({
|
|
38
36
|
displayName: "Field__RequiredNotice",
|
|
39
37
|
componentId: "sc-oln5y9-2"
|
|
40
38
|
})(["position:absolute;bottom:-1.6em;right:0;color:", ";"], (0, _utils.getThemeProp)(["colors", "error"], "#ce4844"));
|
|
41
|
-
exports.RequiredNotice = RequiredNotice;
|
|
42
39
|
var Field = function Field(_ref) {
|
|
43
40
|
var id = _ref.id,
|
|
44
41
|
label = _ref.label,
|
|
@@ -64,8 +61,7 @@ var Field = function Field(_ref) {
|
|
|
64
61
|
};
|
|
65
62
|
var _default = Field;
|
|
66
63
|
var _default2 = _default;
|
|
67
|
-
var _default3 = _default2;
|
|
68
|
-
exports.default = _default3;
|
|
64
|
+
var _default3 = exports.default = _default2;
|
|
69
65
|
;
|
|
70
66
|
(function () {
|
|
71
67
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -88,8 +88,7 @@ var FieldElements = function FieldElements(_ref) {
|
|
|
88
88
|
};
|
|
89
89
|
var _default = FieldElements;
|
|
90
90
|
var _default2 = _default;
|
|
91
|
-
var _default3 = _default2;
|
|
92
|
-
exports.default = _default3;
|
|
91
|
+
var _default3 = exports.default = _default2;
|
|
93
92
|
;
|
|
94
93
|
(function () {
|
|
95
94
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -37,8 +37,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
37
37
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
38
38
|
return a;
|
|
39
39
|
};
|
|
40
|
-
var REMOVE_ROW = "__form_list_remove_row";
|
|
41
|
-
exports.REMOVE_ROW = REMOVE_ROW;
|
|
40
|
+
var REMOVE_ROW = exports.REMOVE_ROW = "__form_list_remove_row";
|
|
42
41
|
var generateId = function () {
|
|
43
42
|
var counter = 0;
|
|
44
43
|
return (/* istanbul ignore next */function () {
|
|
@@ -56,12 +55,11 @@ var stripLabelFromTree = function stripLabelFromTree(_ref) {
|
|
|
56
55
|
}
|
|
57
56
|
return tree;
|
|
58
57
|
};
|
|
59
|
-
var List = _styledComponents.default.div.withConfig({
|
|
58
|
+
var List = exports.List = _styledComponents.default.div.withConfig({
|
|
60
59
|
displayName: "FieldList__List",
|
|
61
60
|
componentId: "sc-1v84f9-0"
|
|
62
61
|
})(["display:flex;flex-direction:column;", ""], (0, _utils.ifFlag)("tallRows", (0, _styledComponents.css)(["& > ", "{margin:0;padding:20px 0;border-bottom:1px solid ", ";}& > ", ":first-child{margin-top:15px;}& > ", ":last-child{border-bottom:0 none transparent;}"], _Field.FieldBox, (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"), _Field.FieldBox, _Field.FieldBox), (0, _styledComponents.css)(["margin-top:20px;& > ", "{margin-top:0;}& > ", " + ", "{margin-top:10px;}"], _Field.FieldBox, _Field.FieldBox, _Field.FieldBox)));
|
|
63
|
-
exports.
|
|
64
|
-
var ListControlButton = (0, _styledComponents.default)(_Button.default).attrs(function () {
|
|
62
|
+
var ListControlButton = exports.ListControlButton = (0, _styledComponents.default)(_Button.default).attrs(function () {
|
|
65
63
|
return {
|
|
66
64
|
primary: true
|
|
67
65
|
};
|
|
@@ -69,7 +67,6 @@ var ListControlButton = (0, _styledComponents.default)(_Button.default).attrs(fu
|
|
|
69
67
|
displayName: "FieldList__ListControlButton",
|
|
70
68
|
componentId: "sc-1v84f9-1"
|
|
71
69
|
})(["align-self:flex-start;min-width:100px;"]);
|
|
72
|
-
exports.ListControlButton = ListControlButton;
|
|
73
70
|
var decorateField = function decorateField(field, remove) {
|
|
74
71
|
if (remove === void 0) {
|
|
75
72
|
remove = "[remove]";
|
|
@@ -227,8 +224,7 @@ __signature__(FieldList, "useContext{{ values, listIndex }}\nuseCallback{getRows
|
|
|
227
224
|
__signature__(FieldList, "useContext{{ values, listIndex }}\nuseCallback{getRows}\nuseCallback{listUpdater}");
|
|
228
225
|
var _default = FieldList;
|
|
229
226
|
var _default2 = _default;
|
|
230
|
-
var _default3 = _default2;
|
|
231
|
-
exports.default = _default3;
|
|
227
|
+
var _default3 = exports.default = _default2;
|
|
232
228
|
;
|
|
233
229
|
(function () {
|
|
234
230
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -21,16 +21,14 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
21
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
|
-
var FieldsetBox = _styledComponents.default.fieldset.withConfig({
|
|
24
|
+
var FieldsetBox = exports.FieldsetBox = _styledComponents.default.fieldset.withConfig({
|
|
25
25
|
displayName: "Fieldset__FieldsetBox",
|
|
26
26
|
componentId: "sc-g5pm1u-0"
|
|
27
27
|
})(["position:relative;box-sizing:border-box;display:flex;align-self:stretch;flex-direction:column;flex-wrap:wrap;border:1px solid ", ";border-radius:5px;margin-top:45px;margin-left:0;margin-bottom:0;padding:20px;padding-top:0;background-color:#fafafa;"], (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"));
|
|
28
|
-
exports.
|
|
29
|
-
var Legend = _styledComponents.default.legend.withConfig({
|
|
28
|
+
var Legend = exports.Legend = _styledComponents.default.legend.withConfig({
|
|
30
29
|
displayName: "Fieldset__Legend",
|
|
31
30
|
componentId: "sc-g5pm1u-1"
|
|
32
31
|
})(["position:absolute;top:-2em;left:-4px;font-family:", ";font-style:italic;font-size:13px;text-transform:uppercase;color:", ";"], (0, _utils.getThemeProp)(["fonts", "header"], "sans-serif"), (0, _utils.getThemeProp)(["colors", "application", "base"], "#333333"));
|
|
33
|
-
exports.Legend = Legend;
|
|
34
32
|
var Fieldset = function Fieldset(_ref) {
|
|
35
33
|
var label = _ref.label,
|
|
36
34
|
children = _ref.children;
|
|
@@ -40,8 +38,7 @@ var Fieldset = function Fieldset(_ref) {
|
|
|
40
38
|
};
|
|
41
39
|
var _default = Fieldset;
|
|
42
40
|
var _default2 = _default;
|
|
43
|
-
var _default3 = _default2;
|
|
44
|
-
exports.default = _default3;
|
|
41
|
+
var _default3 = exports.default = _default2;
|
|
45
42
|
;
|
|
46
43
|
(function () {
|
|
47
44
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -25,11 +25,10 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
25
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
26
|
return a;
|
|
27
27
|
};
|
|
28
|
-
var Wrapper = _styledComponents.default.div.withConfig({
|
|
28
|
+
var Wrapper = exports.Wrapper = _styledComponents.default.div.withConfig({
|
|
29
29
|
displayName: "Form__Wrapper",
|
|
30
30
|
componentId: "sc-6q0epb-0"
|
|
31
31
|
})(["display:flex;margin-bottom:20px;"]);
|
|
32
|
-
exports.Wrapper = Wrapper;
|
|
33
32
|
var splitFields = function splitFields(fields, cols) {
|
|
34
33
|
if (cols <= 1) return [fields];
|
|
35
34
|
var elmsPerCol = Math.ceil(fields.length / cols);
|
|
@@ -42,10 +41,9 @@ var splitFields = function splitFields(fields, cols) {
|
|
|
42
41
|
return current;
|
|
43
42
|
}, []);
|
|
44
43
|
};
|
|
45
|
-
var FormContext = (0, _react.createContext)();
|
|
46
|
-
exports.FormContext = FormContext;
|
|
44
|
+
var FormContext = exports.FormContext = (0, _react.createContext)();
|
|
47
45
|
FormContext.displayName = "FormContext";
|
|
48
|
-
var FormPage = function FormPage(_ref) {
|
|
46
|
+
var FormPage = exports.FormPage = function FormPage(_ref) {
|
|
49
47
|
var formName = _ref.formName,
|
|
50
48
|
_ref$cols = _ref.cols,
|
|
51
49
|
cols = _ref$cols === void 0 ? [1, 1, 1] : _ref$cols,
|
|
@@ -70,7 +68,6 @@ var FormPage = function FormPage(_ref) {
|
|
|
70
68
|
}));
|
|
71
69
|
})));
|
|
72
70
|
};
|
|
73
|
-
exports.FormPage = FormPage;
|
|
74
71
|
var WiredForm = (0, _withScrollBox.default)(FormPage);
|
|
75
72
|
WiredForm.propTypes = {
|
|
76
73
|
getUpdater: _propTypes.default.func.isRequired,
|
|
@@ -80,8 +77,7 @@ WiredForm.propTypes = {
|
|
|
80
77
|
};
|
|
81
78
|
var _default = WiredForm;
|
|
82
79
|
var _default2 = _default;
|
|
83
|
-
var _default3 = _default2;
|
|
84
|
-
exports.default = _default3;
|
|
80
|
+
var _default3 = exports.default = _default2;
|
|
85
81
|
;
|
|
86
82
|
(function () {
|
|
87
83
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -28,8 +28,7 @@ var Form = _styledComponents.default.div.withConfig({
|
|
|
28
28
|
});
|
|
29
29
|
var _default = Form;
|
|
30
30
|
var _default2 = _default;
|
|
31
|
-
var _default3 = _default2;
|
|
32
|
-
exports.default = _default3;
|
|
31
|
+
var _default3 = exports.default = _default2;
|
|
33
32
|
;
|
|
34
33
|
(function () {
|
|
35
34
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -35,7 +35,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
35
35
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
36
36
|
return a;
|
|
37
37
|
};
|
|
38
|
-
var InputField = function InputField(_ref) {
|
|
38
|
+
var InputField = exports.InputField = function InputField(_ref) {
|
|
39
39
|
var name = _ref.name,
|
|
40
40
|
_ref$type = _ref.type,
|
|
41
41
|
type = _ref$type === void 0 ? "undefined" : _ref$type,
|
|
@@ -85,7 +85,6 @@ var InputField = function InputField(_ref) {
|
|
|
85
85
|
required: required && wasBlurred
|
|
86
86
|
})));
|
|
87
87
|
};
|
|
88
|
-
exports.InputField = InputField;
|
|
89
88
|
__signature__(InputField, "useContext{{ values, listIndex, formName }}\nuseViewState{[{ wasBlurred }, updateViewState]}\nuseCallback{}\nuseIntl{{ formatMessage }}", function () {
|
|
90
89
|
return [_useViewState3.default, _reactIntl.useIntl];
|
|
91
90
|
});
|
|
@@ -94,8 +93,7 @@ __signature__(InputField, "useContext{{ values, listIndex, formName }}\nuseViewS
|
|
|
94
93
|
});
|
|
95
94
|
var _default = InputField;
|
|
96
95
|
var _default2 = _default;
|
|
97
|
-
var _default3 = _default2;
|
|
98
|
-
exports.default = _default3;
|
|
96
|
+
var _default3 = exports.default = _default2;
|
|
99
97
|
;
|
|
100
98
|
(function () {
|
|
101
99
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -25,12 +25,11 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
25
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
26
|
return a;
|
|
27
27
|
};
|
|
28
|
-
var PositionedButton = (0, _styledComponents.default)(_IconButton.default).withConfig({
|
|
28
|
+
var PositionedButton = exports.PositionedButton = (0, _styledComponents.default)(_IconButton.default).withConfig({
|
|
29
29
|
displayName: "Button__PositionedButton",
|
|
30
30
|
componentId: "sc-1jkhmuf-0"
|
|
31
31
|
})(["width:max-content;position:relative;"]);
|
|
32
|
-
exports.
|
|
33
|
-
var FormButton = function FormButton(_ref) {
|
|
32
|
+
var FormButton = exports.FormButton = function FormButton(_ref) {
|
|
34
33
|
var id = _ref.id,
|
|
35
34
|
icon = _ref.icon,
|
|
36
35
|
buttonText = _ref.buttonText,
|
|
@@ -45,12 +44,10 @@ var FormButton = function FormButton(_ref) {
|
|
|
45
44
|
label: buttonText
|
|
46
45
|
}));
|
|
47
46
|
};
|
|
48
|
-
exports.FormButton = FormButton;
|
|
49
47
|
FormButton.displayName = "FormButton";
|
|
50
48
|
var _default = (0, _withId.default)("formbutton")(FormButton);
|
|
51
49
|
var _default2 = _default;
|
|
52
|
-
var _default3 = _default2;
|
|
53
|
-
exports.default = _default3;
|
|
50
|
+
var _default3 = exports.default = _default2;
|
|
54
51
|
;
|
|
55
52
|
(function () {
|
|
56
53
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -25,7 +25,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
25
25
|
};
|
|
26
26
|
// Component is replaced with DatePicker
|
|
27
27
|
console.warn("Date has been deprecated. Use DatePicker from MaterialUI.");
|
|
28
|
-
var DateInput = function DateInput(_ref) {
|
|
28
|
+
var DateInput = exports.DateInput = function DateInput(_ref) {
|
|
29
29
|
var update = _ref.update,
|
|
30
30
|
value = _ref.value,
|
|
31
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -35,7 +35,6 @@ var DateInput = function DateInput(_ref) {
|
|
|
35
35
|
useTime: false
|
|
36
36
|
}));
|
|
37
37
|
};
|
|
38
|
-
exports.DateInput = DateInput;
|
|
39
38
|
;
|
|
40
39
|
(function () {
|
|
41
40
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -22,21 +22,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
22
22
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
23
|
return a;
|
|
24
24
|
};
|
|
25
|
-
var ButtonWrapper = _styledComponents.default.div.withConfig({
|
|
25
|
+
var ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div.withConfig({
|
|
26
26
|
displayName: "FieldButtons__ButtonWrapper",
|
|
27
27
|
componentId: "sc-19b9124-0"
|
|
28
28
|
})(["box-sizing:border-box;display:flex;align-items:stretch;height:30px;flex:0 1 auto;border-radius:4px;border:1px solid ", ";& > *{box-sizing:border-box;height:28px;border:0 none transparent;border-radius:0;flex:0 1 100%;box-shadow:none;}& >:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;}& >:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;}", ""], (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"), (0, _utils.ifFlag)("invalid", (0, _styledComponents.css)(["border-color:", ";&:hover,&:active{box-shadow:0 0 4px ", ";}"], (0, _utils.getThemeProp)(["colors", "error"], "#ce4844"), (0, _utils.getThemeProp)(["colors", "error"], "#ce4844"))));
|
|
29
|
-
exports.
|
|
30
|
-
var Spinners = _styledComponents.default.div.withConfig({
|
|
29
|
+
var Spinners = exports.Spinners = _styledComponents.default.div.withConfig({
|
|
31
30
|
displayName: "FieldButtons__Spinners",
|
|
32
31
|
componentId: "sc-19b9124-1"
|
|
33
32
|
})(["display:flex;flex-direction:column;height:30px;flex:0 0 auto;margin-top:-1px;margin-bottom:-1px;&:first-child > *{margin-left:-1px;}&:last-child > *{margin-right:-1px;}"]);
|
|
34
|
-
exports.
|
|
35
|
-
var InputButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
33
|
+
var InputButton = exports.InputButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
36
34
|
displayName: "FieldButtons__InputButton",
|
|
37
35
|
componentId: "sc-19b9124-2"
|
|
38
36
|
})(["padding:2px 7px;font-size:8px;border-radius:0;min-width:0;min-height:0;flex:0 0 auto;&:active,&:focus,&:hover{z-index:1;}", " > &{flex:1 1 50%;}", ":last-child > &{margin-top:-1px;&:first-child{margin-top:0;border-top-right-radius:4px;}&:last-child{padding-top:1px;border-bottom-right-radius:4px;}}"], Spinners, Spinners);
|
|
39
|
-
exports.InputButton = InputButton;
|
|
40
37
|
;
|
|
41
38
|
(function () {
|
|
42
39
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -25,7 +25,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
25
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
26
|
return a;
|
|
27
27
|
};
|
|
28
|
-
var roundToStep = function roundToStep(num, step) {
|
|
28
|
+
var roundToStep = exports.roundToStep = function roundToStep(num, step) {
|
|
29
29
|
var parsedNum = parseFloat(num);
|
|
30
30
|
if (Number.isNaN(parsedNum) || Number.isNaN(parseFloat(step))) {
|
|
31
31
|
return "";
|
|
@@ -33,7 +33,6 @@ var roundToStep = function roundToStep(num, step) {
|
|
|
33
33
|
var factor = 1 / parseFloat(step);
|
|
34
34
|
return Math.floor((parsedNum + 0.5 * step) * factor + Number.EPSILON) / factor;
|
|
35
35
|
};
|
|
36
|
-
exports.roundToStep = roundToStep;
|
|
37
36
|
var nullNaN = function nullNaN(num, nil) {
|
|
38
37
|
if (nil === void 0) {
|
|
39
38
|
nil = 0;
|
|
@@ -49,7 +48,7 @@ var containNumber = function containNumber(number, max, min) {
|
|
|
49
48
|
}
|
|
50
49
|
return Number.isFinite(number) ? Math.min(max, Math.max(min, number)) : number;
|
|
51
50
|
};
|
|
52
|
-
var NumberInput = function NumberInput(_ref) {
|
|
51
|
+
var NumberInput = exports.NumberInput = function NumberInput(_ref) {
|
|
53
52
|
var update = _ref.update,
|
|
54
53
|
min = _ref.min,
|
|
55
54
|
max = _ref.max,
|
|
@@ -82,7 +81,6 @@ var NumberInput = function NumberInput(_ref) {
|
|
|
82
81
|
"data-test-id": "down"
|
|
83
82
|
}, "\u2B9F")));
|
|
84
83
|
};
|
|
85
|
-
exports.NumberInput = NumberInput;
|
|
86
84
|
__signature__(NumberInput, "useCallback{onChange}\nuseCallback{increment}\nuseCallback{decrement}");
|
|
87
85
|
__signature__(NumberInput, "useCallback{onChange}\nuseCallback{increment}\nuseCallback{decrement}");
|
|
88
86
|
;
|
|
@@ -20,35 +20,30 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
20
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
|
-
var CenterWrapper = _styledComponents.default.div.withConfig({
|
|
23
|
+
var CenterWrapper = exports.CenterWrapper = _styledComponents.default.div.withConfig({
|
|
24
24
|
displayName: "ReadOnly__CenterWrapper",
|
|
25
25
|
componentId: "sc-48v13b-0"
|
|
26
26
|
})(["min-height:30px;display:flex;align-items:center;"]);
|
|
27
|
-
exports.
|
|
28
|
-
var ReadOnlyBlock = _styledComponents.default.p.withConfig({
|
|
27
|
+
var ReadOnlyBlock = exports.ReadOnlyBlock = _styledComponents.default.p.withConfig({
|
|
29
28
|
displayName: "ReadOnly__ReadOnlyBlock",
|
|
30
29
|
componentId: "sc-48v13b-1"
|
|
31
30
|
})(["margin:0;"]);
|
|
32
|
-
exports.
|
|
33
|
-
var ReadOnly = function ReadOnly(_ref) {
|
|
31
|
+
var ReadOnly = exports.ReadOnly = function ReadOnly(_ref) {
|
|
34
32
|
var value = _ref.value;
|
|
35
33
|
return /*#__PURE__*/_react.default.createElement(CenterWrapper, null, /*#__PURE__*/_react.default.createElement(ReadOnlyBlock, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
36
34
|
message: value
|
|
37
35
|
})));
|
|
38
36
|
};
|
|
39
|
-
exports.
|
|
40
|
-
var Label = _styledComponents.default.p.withConfig({
|
|
37
|
+
var Label = exports.Label = _styledComponents.default.p.withConfig({
|
|
41
38
|
displayName: "ReadOnly__Label",
|
|
42
39
|
componentId: "sc-48v13b-2"
|
|
43
40
|
})(["margin:0;font-size:16px;"]);
|
|
44
|
-
exports.
|
|
45
|
-
var LineLabel = function LineLabel(_ref2) {
|
|
41
|
+
var LineLabel = exports.LineLabel = function LineLabel(_ref2) {
|
|
46
42
|
var value = _ref2.value;
|
|
47
43
|
return /*#__PURE__*/_react.default.createElement(CenterWrapper, null, /*#__PURE__*/_react.default.createElement(Label, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
48
44
|
message: value
|
|
49
45
|
})));
|
|
50
46
|
};
|
|
51
|
-
exports.LineLabel = LineLabel;
|
|
52
47
|
;
|
|
53
48
|
(function () {
|
|
54
49
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -27,17 +27,15 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
27
27
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28
28
|
return a;
|
|
29
29
|
};
|
|
30
|
-
var RoundButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
30
|
+
var RoundButton = exports.RoundButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
31
31
|
displayName: "SmallButton__RoundButton",
|
|
32
32
|
componentId: "sc-vey8bi-0"
|
|
33
33
|
})(["min-width:0;min-height:0;width:30px;height:30px;border-radius:50%;padding:6px;position:relative;"]);
|
|
34
|
-
exports.
|
|
35
|
-
var ButtonIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
34
|
+
var ButtonIcon = exports.ButtonIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
36
35
|
displayName: "SmallButton__ButtonIcon",
|
|
37
36
|
componentId: "sc-vey8bi-1"
|
|
38
37
|
})(["font-size:16px;"]);
|
|
39
|
-
exports.
|
|
40
|
-
var SmallButton = function SmallButton(_ref) {
|
|
38
|
+
var SmallButton = exports.SmallButton = function SmallButton(_ref) {
|
|
41
39
|
var id = _ref.id,
|
|
42
40
|
icon = _ref.icon,
|
|
43
41
|
update = _ref.update,
|
|
@@ -55,12 +53,10 @@ var SmallButton = function SmallButton(_ref) {
|
|
|
55
53
|
message: altText
|
|
56
54
|
}));
|
|
57
55
|
};
|
|
58
|
-
exports.SmallButton = SmallButton;
|
|
59
56
|
SmallButton.displayName = "SmallButton";
|
|
60
57
|
var _default = (0, _withId.default)("smallbutton")(SmallButton);
|
|
61
58
|
var _default2 = _default;
|
|
62
|
-
var _default3 = _default2;
|
|
63
|
-
exports.default = _default3;
|
|
59
|
+
var _default3 = exports.default = _default2;
|
|
64
60
|
;
|
|
65
61
|
(function () {
|
|
66
62
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -26,18 +26,17 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
26
26
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
27
|
return a;
|
|
28
28
|
};
|
|
29
|
-
var FormInput = (0, _styledComponents.default)(_Input.default).withConfig({
|
|
29
|
+
var FormInput = exports.FormInput = (0, _styledComponents.default)(_Input.default).withConfig({
|
|
30
30
|
displayName: "Text__FormInput",
|
|
31
31
|
componentId: "sc-6hq9ty-0"
|
|
32
32
|
})(["box-sizing:border-box;flex:0 0 auto;border-radius:4px;min-width:40px;width:100%;&:active,&:focus{z-index:1;}&:invalid{border-color:", ";box-shadow:0 0 4px ", ";}", " &[type=\"date\"],&[type=\"number\"],&[type=\"time\"]{-webkit-appearance:none;-moz-appearance:textfield;}&::-webkit-clear-button,&::-webkit-calendar-picker-indicator{display:none;}&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"], (0, _utils.getThemeProp)(["colors", "error"], "#ce4844"), (0, _utils.getThemeProp)(["colors", "error"], "#ce4844"), "" /* These are hacks, work only in Chrome, best not used */);
|
|
33
|
-
|
|
34
|
-
var getEventUpdater = (0, _utils.memoize)(function (update) {
|
|
33
|
+
|
|
34
|
+
var getEventUpdater = exports.getEventUpdater = (0, _utils.memoize)(function (update) {
|
|
35
35
|
return function (e) {
|
|
36
36
|
return update(e.target.value);
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
|
-
exports.
|
|
40
|
-
var TextInput = function TextInput(_ref) {
|
|
39
|
+
var TextInput = exports.TextInput = function TextInput(_ref) {
|
|
41
40
|
var update = _ref.update,
|
|
42
41
|
_ref$value = _ref.value,
|
|
43
42
|
value = _ref$value === void 0 ? "" : _ref$value,
|
|
@@ -49,8 +48,7 @@ var TextInput = function TextInput(_ref) {
|
|
|
49
48
|
value: value
|
|
50
49
|
}));
|
|
51
50
|
};
|
|
52
|
-
exports.
|
|
53
|
-
var EmailInput = function EmailInput(_ref2) {
|
|
51
|
+
var EmailInput = exports.EmailInput = function EmailInput(_ref2) {
|
|
54
52
|
var update = _ref2.update,
|
|
55
53
|
_ref2$value = _ref2.value,
|
|
56
54
|
value = _ref2$value === void 0 ? "" : _ref2$value,
|
|
@@ -62,7 +60,6 @@ var EmailInput = function EmailInput(_ref2) {
|
|
|
62
60
|
value: value
|
|
63
61
|
}));
|
|
64
62
|
};
|
|
65
|
-
exports.EmailInput = EmailInput;
|
|
66
63
|
;
|
|
67
64
|
(function () {
|
|
68
65
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -29,7 +29,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
29
29
|
};
|
|
30
30
|
// TODO: Time dialog on focus, prevent default behavior in Edge, Firefox
|
|
31
31
|
|
|
32
|
-
var TimeIcon = (0, _styledComponents.default)(_Icon.default).attrs(function (props) {
|
|
32
|
+
var TimeIcon = exports.TimeIcon = (0, _styledComponents.default)(_Icon.default).attrs(function (props) {
|
|
33
33
|
return {
|
|
34
34
|
id: (0, _utils.getThemeProp)(["icons", "time"], "clock")(props)
|
|
35
35
|
};
|
|
@@ -37,13 +37,11 @@ var TimeIcon = (0, _styledComponents.default)(_Icon.default).attrs(function (pro
|
|
|
37
37
|
displayName: "Time__TimeIcon",
|
|
38
38
|
componentId: "sc-15jtfxc-0"
|
|
39
39
|
})(["font-size:20px;"]);
|
|
40
|
-
exports.
|
|
41
|
-
var TimeButton = (0, _styledComponents.default)(_FieldButtons.InputButton).withConfig({
|
|
40
|
+
var TimeButton = exports.TimeButton = (0, _styledComponents.default)(_FieldButtons.InputButton).withConfig({
|
|
42
41
|
displayName: "Time__TimeButton",
|
|
43
42
|
componentId: "sc-15jtfxc-1"
|
|
44
43
|
})(["margin-top:-1px;margin-right:-1px;min-width:36px;padding:4px 7px;border-left-color:transparent;background-color:#fff;"]);
|
|
45
|
-
exports.
|
|
46
|
-
var TimeInput = function TimeInput(_ref) {
|
|
44
|
+
var TimeInput = exports.TimeInput = function TimeInput(_ref) {
|
|
47
45
|
var update = _ref.update,
|
|
48
46
|
required = _ref.required,
|
|
49
47
|
value = _ref.value,
|
|
@@ -56,7 +54,6 @@ var TimeInput = function TimeInput(_ref) {
|
|
|
56
54
|
value: value
|
|
57
55
|
}, props)), /*#__PURE__*/_react.default.createElement(TimeButton, null, /*#__PURE__*/_react.default.createElement(TimeIcon, null)));
|
|
58
56
|
};
|
|
59
|
-
exports.TimeInput = TimeInput;
|
|
60
57
|
;
|
|
61
58
|
(function () {
|
|
62
59
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -27,23 +27,20 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
27
27
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28
28
|
return a;
|
|
29
29
|
};
|
|
30
|
-
var FormCheckbox = (0, _styledComponents.default)(_Checkbox.default).withConfig({
|
|
30
|
+
var FormCheckbox = exports.FormCheckbox = (0, _styledComponents.default)(_Checkbox.default).withConfig({
|
|
31
31
|
displayName: "Toggles__FormCheckbox",
|
|
32
32
|
componentId: "sc-u47m6y-0"
|
|
33
33
|
})(["height:30px;display:flex;align-self:flex-start;align-items:center;"]);
|
|
34
|
-
exports.
|
|
35
|
-
var getCheckUpdater = (0, _utils.memoize)(function (update) {
|
|
34
|
+
var getCheckUpdater = exports.getCheckUpdater = (0, _utils.memoize)(function (update) {
|
|
36
35
|
return function (e) {
|
|
37
36
|
return update(e.target.checked);
|
|
38
37
|
};
|
|
39
38
|
});
|
|
40
|
-
exports.
|
|
41
|
-
var CenterMiddleWrapper = _styledComponents.default.div.withConfig({
|
|
39
|
+
var CenterMiddleWrapper = exports.CenterMiddleWrapper = _styledComponents.default.div.withConfig({
|
|
42
40
|
displayName: "Toggles__CenterMiddleWrapper",
|
|
43
41
|
componentId: "sc-u47m6y-1"
|
|
44
42
|
})(["min-height:30px;display:flex;justify-content:center;align-items:center;"]);
|
|
45
|
-
exports.
|
|
46
|
-
var CheckboxInput = function CheckboxInput(_ref) {
|
|
43
|
+
var CheckboxInput = exports.CheckboxInput = function CheckboxInput(_ref) {
|
|
47
44
|
var update = _ref.update,
|
|
48
45
|
value = _ref.value,
|
|
49
46
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -52,8 +49,7 @@ var CheckboxInput = function CheckboxInput(_ref) {
|
|
|
52
49
|
value: value
|
|
53
50
|
}, props)));
|
|
54
51
|
};
|
|
55
|
-
exports.
|
|
56
|
-
var SwitchInput = function SwitchInput(_ref2) {
|
|
52
|
+
var SwitchInput = exports.SwitchInput = function SwitchInput(_ref2) {
|
|
57
53
|
var update = _ref2.update,
|
|
58
54
|
value = _ref2.value,
|
|
59
55
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
@@ -62,7 +58,6 @@ var SwitchInput = function SwitchInput(_ref2) {
|
|
|
62
58
|
value: value
|
|
63
59
|
}, props)));
|
|
64
60
|
};
|
|
65
|
-
exports.SwitchInput = SwitchInput;
|
|
66
61
|
;
|
|
67
62
|
(function () {
|
|
68
63
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|