orc-shared 1.2.2-dev.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,70 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.toolComponents = exports.default = exports.ToolbarRadioWrapper = exports.ToolbarRadio = exports.ToolbarLabel = exports.ToolbarInput = exports.ToolbarButton = exports.Toolbar = exports.ToolGroup = exports.Spacer = exports.Separator = exports.Bar = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
-
|
|
12
8
|
var _utils = require("../utils");
|
|
13
|
-
|
|
14
9
|
var _IconButton = _interopRequireDefault(require("./IconButton"));
|
|
15
|
-
|
|
16
10
|
var _Input = _interopRequireDefault(require("./Input"));
|
|
17
|
-
|
|
18
11
|
var _Text = _interopRequireWildcard(require("./Text"));
|
|
19
|
-
|
|
20
12
|
var _Radio = _interopRequireDefault(require("./MaterialUI/Inputs/Radio"));
|
|
21
|
-
|
|
22
13
|
var _RadioProps = _interopRequireDefault(require("./MaterialUI/Inputs/RadioProps"));
|
|
23
|
-
|
|
24
14
|
var _excluded = ["key", "type", "subType"],
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
_excluded2 = ["label"];
|
|
27
16
|
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); }
|
|
28
|
-
|
|
29
17
|
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; }
|
|
30
|
-
|
|
31
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32
|
-
|
|
33
19
|
(function () {
|
|
34
20
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
35
21
|
enterModule && enterModule(module);
|
|
36
22
|
})();
|
|
37
|
-
|
|
38
23
|
(function () {
|
|
39
24
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
40
25
|
enterModule && enterModule(module);
|
|
41
26
|
})();
|
|
42
|
-
|
|
43
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
44
|
-
|
|
27
|
+
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); }
|
|
45
28
|
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; }
|
|
46
|
-
|
|
47
29
|
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; }
|
|
48
|
-
|
|
49
30
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
50
31
|
return a;
|
|
51
32
|
};
|
|
52
|
-
|
|
53
33
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
54
34
|
return a;
|
|
55
35
|
};
|
|
56
|
-
|
|
57
36
|
var Bar = _styledComponents.default.div.withConfig({
|
|
58
37
|
displayName: "Toolbar__Bar",
|
|
59
38
|
componentId: "sc-1appttk-0"
|
|
60
39
|
})(["flex:0 0 auto;min-height:64px;border-bottom:1px solid ", ";display:flex;align-items:center;padding:5px 24px;box-sizing:border-box;"], (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"));
|
|
61
|
-
|
|
62
40
|
exports.Bar = Bar;
|
|
63
|
-
|
|
64
41
|
var ToolGroup = _styledComponents.default.div.withConfig({
|
|
65
42
|
displayName: "Toolbar__ToolGroup",
|
|
66
43
|
componentId: "sc-1appttk-1"
|
|
67
44
|
})(["flex:0 0 auto;display:flex;& > *:not(:last-child){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;}& > *:not(:first-child){margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"]);
|
|
68
|
-
|
|
69
45
|
exports.ToolGroup = ToolGroup;
|
|
70
46
|
var ToolbarButton = (0, _styledComponents.default)(_IconButton.default).withConfig({
|
|
71
47
|
displayName: "Toolbar__ToolbarButton",
|
|
@@ -77,74 +53,62 @@ var ToolbarInput = (0, _styledComponents.default)(_Input.default).withConfig({
|
|
|
77
53
|
componentId: "sc-1appttk-3"
|
|
78
54
|
})(["height:30px;flex:0 0 auto;margin:0 5px;&:focus{z-index:10;}"]);
|
|
79
55
|
exports.ToolbarInput = ToolbarInput;
|
|
80
|
-
|
|
81
56
|
var ToolbarRadioWrapper = _styledComponents.default.div.withConfig({
|
|
82
57
|
displayName: "Toolbar__ToolbarRadioWrapper",
|
|
83
58
|
componentId: "sc-1appttk-4"
|
|
84
59
|
})(["min-width:250px;padding-left:10px;"]);
|
|
85
|
-
|
|
86
60
|
exports.ToolbarRadioWrapper = ToolbarRadioWrapper;
|
|
87
61
|
var ToolbarRadio = (0, _styledComponents.default)(_Radio.default).withConfig({
|
|
88
62
|
displayName: "Toolbar__ToolbarRadio",
|
|
89
63
|
componentId: "sc-1appttk-5"
|
|
90
64
|
})(["height:30px;flex:0 0 auto;margin:0 5px;&:focus{z-index:10;}"]);
|
|
91
65
|
exports.ToolbarRadio = ToolbarRadio;
|
|
92
|
-
|
|
93
66
|
var Separator = _styledComponents.default.div.withConfig({
|
|
94
67
|
displayName: "Toolbar__Separator",
|
|
95
68
|
componentId: "sc-1appttk-6"
|
|
96
69
|
})(["flex:0 0 1px;height:30px;margin:0 16px;background-color:", ";"], (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"));
|
|
97
|
-
|
|
98
70
|
exports.Separator = Separator;
|
|
99
|
-
|
|
100
71
|
var Spacer = _styledComponents.default.div.withConfig({
|
|
101
72
|
displayName: "Toolbar__Spacer",
|
|
102
73
|
componentId: "sc-1appttk-7"
|
|
103
74
|
})(["flex:100%;"]);
|
|
104
|
-
|
|
105
75
|
exports.Spacer = Spacer;
|
|
106
|
-
|
|
107
76
|
var ToolbarLabel = _styledComponents.default.div.withConfig({
|
|
108
77
|
displayName: "Toolbar__ToolbarLabel",
|
|
109
78
|
componentId: "sc-1appttk-8"
|
|
110
|
-
})(["font-family:", ";font-size:14px;color:", ";"], (0, _utils.getThemeProp)(["fonts", "base"], "sans-serif"), (0, _utils.getThemeProp)(["colors", "application", "base"], "#999999"));
|
|
111
|
-
|
|
79
|
+
})(["font-family:", ";font-size:14px;color:", ";"], (0, _utils.getThemeProp)(["fonts", "base"], "sans-serif"), (0, _utils.getThemeProp)(["colors", "application", "base"], "#999999"));
|
|
112
80
|
|
|
81
|
+
// Define the dictionary so we can use it below
|
|
113
82
|
exports.ToolbarLabel = ToolbarLabel;
|
|
114
|
-
var toolComponents = {};
|
|
83
|
+
var toolComponents = {};
|
|
115
84
|
|
|
85
|
+
// Turns a tool definition into a rendered React element
|
|
116
86
|
exports.toolComponents = toolComponents;
|
|
117
|
-
|
|
118
87
|
var renderToolComponent = function renderToolComponent(_ref) {
|
|
119
88
|
var key = _ref.key,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
89
|
+
type = _ref.type,
|
|
90
|
+
subType = _ref.subType,
|
|
91
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
124
92
|
var Comp = toolComponents[type];
|
|
125
93
|
return /*#__PURE__*/_react.default.createElement(Comp, _extends({
|
|
126
94
|
key: key,
|
|
127
95
|
type: subType
|
|
128
96
|
}, props));
|
|
129
|
-
};
|
|
130
|
-
|
|
97
|
+
};
|
|
131
98
|
|
|
99
|
+
// Fill in the tool types
|
|
132
100
|
toolComponents.input = ToolbarInput;
|
|
133
101
|
toolComponents.input.displayName = "ToolInput";
|
|
134
|
-
|
|
135
102
|
toolComponents.button = function (_ref2) {
|
|
136
103
|
var _ref2$label = _ref2.label,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
104
|
+
label = _ref2$label === void 0 ? {} : _ref2$label,
|
|
105
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
140
106
|
return /*#__PURE__*/_react.default.createElement(ToolbarButton, _extends({}, props, {
|
|
141
107
|
icon: label.icon,
|
|
142
108
|
label: label.text
|
|
143
109
|
}));
|
|
144
110
|
};
|
|
145
|
-
|
|
146
111
|
toolComponents.button.displayName = "ToolButton";
|
|
147
|
-
|
|
148
112
|
toolComponents.radio = function (props) {
|
|
149
113
|
var radioProps = new _RadioProps.default();
|
|
150
114
|
radioProps.set(_RadioProps.default.propNames.name, props == null ? void 0 : props.name);
|
|
@@ -159,44 +123,34 @@ toolComponents.radio = function (props) {
|
|
|
159
123
|
radioProps: radioProps
|
|
160
124
|
}));
|
|
161
125
|
};
|
|
162
|
-
|
|
163
126
|
toolComponents.radio.displayName = "ToolRadio";
|
|
164
|
-
|
|
165
127
|
toolComponents.group = function (_ref3) {
|
|
166
128
|
var tools = _ref3.tools;
|
|
167
129
|
return /*#__PURE__*/_react.default.createElement(ToolGroup, null, tools.map(renderToolComponent));
|
|
168
130
|
};
|
|
169
|
-
|
|
170
131
|
toolComponents.group.displayName = "ToolGroup";
|
|
171
|
-
|
|
172
132
|
toolComponents.spacer = function () {
|
|
173
133
|
return /*#__PURE__*/_react.default.createElement(Spacer, null);
|
|
174
134
|
};
|
|
175
|
-
|
|
176
135
|
toolComponents.spacer.displayName = "ToolSpacer";
|
|
177
|
-
|
|
178
136
|
toolComponents.separator = function () {
|
|
179
137
|
return /*#__PURE__*/_react.default.createElement(Separator, null);
|
|
180
138
|
};
|
|
181
|
-
|
|
182
139
|
toolComponents.separator.displayName = "ToolSeparator";
|
|
183
|
-
|
|
184
140
|
var Toolbar = function Toolbar(_ref4) {
|
|
185
141
|
var tools = _ref4.tools;
|
|
186
142
|
return /*#__PURE__*/_react.default.createElement(Bar, null, tools.map(renderToolComponent));
|
|
187
143
|
};
|
|
188
|
-
|
|
189
144
|
exports.Toolbar = Toolbar;
|
|
190
|
-
|
|
191
145
|
toolComponents.label = function (_ref5) {
|
|
192
146
|
var label = _ref5.label;
|
|
193
147
|
return /*#__PURE__*/_react.default.createElement(ToolbarLabel, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
194
148
|
message: label
|
|
195
149
|
}));
|
|
196
150
|
};
|
|
151
|
+
toolComponents.label.displayName = "ToolLabel";
|
|
197
152
|
|
|
198
|
-
|
|
199
|
-
|
|
153
|
+
// These tools are allowed inside tool groups
|
|
200
154
|
var ptTool = _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
201
155
|
type: _propTypes.default.oneOf(["input"]).isRequired
|
|
202
156
|
}), _propTypes.default.shape({
|
|
@@ -210,9 +164,9 @@ var ptTool = _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
|
210
164
|
icon: _propTypes.default.string,
|
|
211
165
|
text: _Text.ptLabel.isRequired
|
|
212
166
|
})]).isRequired
|
|
213
|
-
})]);
|
|
214
|
-
|
|
167
|
+
})]);
|
|
215
168
|
|
|
169
|
+
// These tools are only allowed outside groups
|
|
216
170
|
var ptToolWithGroup = _propTypes.default.oneOfType([ptTool, _propTypes.default.shape({
|
|
217
171
|
type: _propTypes.default.oneOf(["label"]).isRequired,
|
|
218
172
|
label: _Text.ptLabel.isRequired
|
|
@@ -222,7 +176,6 @@ var ptToolWithGroup = _propTypes.default.oneOfType([ptTool, _propTypes.default.s
|
|
|
222
176
|
type: _propTypes.default.oneOf(["group"]).isRequired,
|
|
223
177
|
tools: _propTypes.default.arrayOf(ptTool)
|
|
224
178
|
})]);
|
|
225
|
-
|
|
226
179
|
Toolbar.propTypes = {
|
|
227
180
|
tools: _propTypes.default.arrayOf(ptToolWithGroup).isRequired
|
|
228
181
|
};
|
|
@@ -231,14 +184,11 @@ var _default2 = _default;
|
|
|
231
184
|
var _default3 = _default2;
|
|
232
185
|
exports.default = _default3;
|
|
233
186
|
;
|
|
234
|
-
|
|
235
187
|
(function () {
|
|
236
188
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
237
|
-
|
|
238
189
|
if (!reactHotLoader) {
|
|
239
190
|
return;
|
|
240
191
|
}
|
|
241
|
-
|
|
242
192
|
reactHotLoader.register(Bar, "Bar", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
243
193
|
reactHotLoader.register(ToolGroup, "ToolGroup", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
244
194
|
reactHotLoader.register(ToolbarButton, "ToolbarButton", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
@@ -255,23 +205,17 @@ exports.default = _default3;
|
|
|
255
205
|
reactHotLoader.register(ptToolWithGroup, "ptToolWithGroup", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
256
206
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
257
207
|
})();
|
|
258
|
-
|
|
259
208
|
;
|
|
260
|
-
|
|
261
209
|
(function () {
|
|
262
210
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
263
211
|
leaveModule && leaveModule(module);
|
|
264
212
|
})();
|
|
265
|
-
|
|
266
213
|
;
|
|
267
|
-
|
|
268
214
|
(function () {
|
|
269
215
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
270
|
-
|
|
271
216
|
if (!reactHotLoader) {
|
|
272
217
|
return;
|
|
273
218
|
}
|
|
274
|
-
|
|
275
219
|
reactHotLoader.register(Bar, "Bar", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
276
220
|
reactHotLoader.register(ToolGroup, "ToolGroup", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
277
221
|
reactHotLoader.register(ToolbarButton, "ToolbarButton", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
@@ -288,9 +232,7 @@ exports.default = _default3;
|
|
|
288
232
|
reactHotLoader.register(ptToolWithGroup, "ptToolWithGroup", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
289
233
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Toolbar.js");
|
|
290
234
|
})();
|
|
291
|
-
|
|
292
235
|
;
|
|
293
|
-
|
|
294
236
|
(function () {
|
|
295
237
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
296
238
|
leaveModule && leaveModule(module);
|
|
@@ -2,90 +2,66 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.TooltipBubble = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
7
|
var _utils = require("../utils");
|
|
11
|
-
|
|
12
8
|
var _Text = _interopRequireDefault(require("./Text"));
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
10
|
(function () {
|
|
17
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
12
|
enterModule && enterModule(module);
|
|
19
13
|
})();
|
|
20
|
-
|
|
21
14
|
(function () {
|
|
22
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
23
16
|
enterModule && enterModule(module);
|
|
24
17
|
})();
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var TooltipBubble = _styledComponents.default.div.withConfig({
|
|
35
25
|
displayName: "Tooltip__TooltipBubble",
|
|
36
26
|
componentId: "sc-1yt5e7a-0"
|
|
37
27
|
})(["position:absolute;top:50%;right:-10px;transform:translate(-99999px,-50%);color:", ";background-color:#fff;border:1px solid ", ";border-radius:3px;padding:0 3px;transition:transform 0s;cursor:default;font-family:", ";text-transform:none;*:hover > &{transform:translate(100%,-50%);transition:transform 1.5s step-end;}&::before{content:\"\";position:absolute;top:4px;left:-10px;border:5px solid transparent;border-right-color:", ";}&::after{content:\"\";position:absolute;top:4px;left:-9px;border:5px solid transparent;border-right-color:#ffffff;}"], (0, _utils.getThemeProp)(["colors", "text"], "#333333"), (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"), (0, _utils.getThemeProp)(["fonts", "base"], "sans-serif"), (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"));
|
|
38
|
-
|
|
39
28
|
exports.TooltipBubble = TooltipBubble;
|
|
40
|
-
|
|
41
29
|
var Tooltip = function Tooltip(_ref) {
|
|
42
30
|
var message = _ref.message;
|
|
43
31
|
return /*#__PURE__*/_react.default.createElement(TooltipBubble, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
44
32
|
message: message
|
|
45
33
|
}));
|
|
46
34
|
};
|
|
47
|
-
|
|
48
35
|
var _default = Tooltip;
|
|
49
36
|
var _default2 = _default;
|
|
50
37
|
var _default3 = _default2;
|
|
51
38
|
exports.default = _default3;
|
|
52
39
|
;
|
|
53
|
-
|
|
54
40
|
(function () {
|
|
55
41
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
56
|
-
|
|
57
42
|
if (!reactHotLoader) {
|
|
58
43
|
return;
|
|
59
44
|
}
|
|
60
|
-
|
|
61
45
|
reactHotLoader.register(TooltipBubble, "TooltipBubble", "/home/vsts/work/1/s/src/components/Tooltip.js");
|
|
62
46
|
reactHotLoader.register(Tooltip, "Tooltip", "/home/vsts/work/1/s/src/components/Tooltip.js");
|
|
63
47
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Tooltip.js");
|
|
64
48
|
})();
|
|
65
|
-
|
|
66
49
|
;
|
|
67
|
-
|
|
68
50
|
(function () {
|
|
69
51
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
70
52
|
leaveModule && leaveModule(module);
|
|
71
53
|
})();
|
|
72
|
-
|
|
73
54
|
;
|
|
74
|
-
|
|
75
55
|
(function () {
|
|
76
56
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
77
|
-
|
|
78
57
|
if (!reactHotLoader) {
|
|
79
58
|
return;
|
|
80
59
|
}
|
|
81
|
-
|
|
82
60
|
reactHotLoader.register(TooltipBubble, "TooltipBubble", "/home/vsts/work/1/s/src/components/Tooltip.js");
|
|
83
61
|
reactHotLoader.register(Tooltip, "Tooltip", "/home/vsts/work/1/s/src/components/Tooltip.js");
|
|
84
62
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Tooltip.js");
|
|
85
63
|
})();
|
|
86
|
-
|
|
87
64
|
;
|
|
88
|
-
|
|
89
65
|
(function () {
|
|
90
66
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
91
67
|
leaveModule && leaveModule(module);
|
|
@@ -2,46 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.Wrapper = exports.Branch = void 0;
|
|
5
|
-
|
|
6
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
|
-
|
|
8
6
|
var _utils = require("../../utils");
|
|
9
|
-
|
|
10
7
|
var _settings = require("./settings");
|
|
11
|
-
|
|
12
8
|
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); }
|
|
13
|
-
|
|
14
9
|
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; }
|
|
15
|
-
|
|
16
10
|
(function () {
|
|
17
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
12
|
enterModule && enterModule(module);
|
|
19
13
|
})();
|
|
20
|
-
|
|
21
14
|
(function () {
|
|
22
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
23
16
|
enterModule && enterModule(module);
|
|
24
17
|
})();
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var baseBranch = (0, _styledComponents.css)(["margin:0;font-size:13px;list-style-type:none;border-width:0;border-style:solid;border-color:#666;position:relative;"]);
|
|
35
|
-
|
|
36
25
|
var Branch = _styledComponents.default.ul.withConfig({
|
|
37
26
|
displayName: "Branch",
|
|
38
27
|
componentId: "sc-17ib2ll-0"
|
|
39
28
|
})(["", " margin-left:", "px;padding:0;padding-left:", "px;border-left-width:1px;&:last-child::after{content:\" \";background-color:", ";position:absolute;left:-", "px;bottom:0;top:-", "px;width:1px;}"], baseBranch, _settings.branchIndent, _settings.branchLength, (0, _utils.ifFlag)("dark", (0, _utils.getThemeProp)(["colors", "bgDark"], "#333333"), "#fff"), function (props) {
|
|
40
29
|
return (0, _settings.branchIndent)(props) + (0, _settings.branchLength)(props) + 2;
|
|
41
30
|
}, _settings.branchHeight);
|
|
42
|
-
|
|
43
31
|
exports.Branch = Branch;
|
|
44
|
-
|
|
45
32
|
var Wrapper = _styledComponents.default.ul.withConfig({
|
|
46
33
|
displayName: "Branch__Wrapper",
|
|
47
34
|
componentId: "sc-17ib2ll-1"
|
|
@@ -50,45 +37,33 @@ var Wrapper = _styledComponents.default.ul.withConfig({
|
|
|
50
37
|
}, Branch, function (props) {
|
|
51
38
|
return 1.5 * (0, _settings.branchIndent)(props);
|
|
52
39
|
});
|
|
53
|
-
|
|
54
40
|
exports.Wrapper = Wrapper;
|
|
55
41
|
;
|
|
56
|
-
|
|
57
42
|
(function () {
|
|
58
43
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
59
|
-
|
|
60
44
|
if (!reactHotLoader) {
|
|
61
45
|
return;
|
|
62
46
|
}
|
|
63
|
-
|
|
64
47
|
reactHotLoader.register(baseBranch, "baseBranch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
|
|
65
48
|
reactHotLoader.register(Branch, "Branch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
|
|
66
49
|
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
|
|
67
50
|
})();
|
|
68
|
-
|
|
69
51
|
;
|
|
70
|
-
|
|
71
52
|
(function () {
|
|
72
53
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
73
54
|
leaveModule && leaveModule(module);
|
|
74
55
|
})();
|
|
75
|
-
|
|
76
56
|
;
|
|
77
|
-
|
|
78
57
|
(function () {
|
|
79
58
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
80
|
-
|
|
81
59
|
if (!reactHotLoader) {
|
|
82
60
|
return;
|
|
83
61
|
}
|
|
84
|
-
|
|
85
62
|
reactHotLoader.register(baseBranch, "baseBranch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
|
|
86
63
|
reactHotLoader.register(Branch, "Branch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
|
|
87
64
|
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
|
|
88
65
|
})();
|
|
89
|
-
|
|
90
66
|
;
|
|
91
|
-
|
|
92
67
|
(function () {
|
|
93
68
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
94
69
|
leaveModule && leaveModule(module);
|
|
@@ -2,39 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.NonIndicator = exports.Label = exports.Indicator = exports.BeforeIndicator = void 0;
|
|
5
|
-
|
|
6
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
|
-
|
|
8
6
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
9
|
-
|
|
10
7
|
var _utils = require("../../utils");
|
|
11
|
-
|
|
12
8
|
var _settings = require("./settings");
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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 () {
|
|
21
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
22
14
|
enterModule && enterModule(module);
|
|
23
15
|
})();
|
|
24
|
-
|
|
25
16
|
(function () {
|
|
26
17
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
27
18
|
enterModule && enterModule(module);
|
|
28
19
|
})();
|
|
29
|
-
|
|
30
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
21
|
return a;
|
|
32
22
|
};
|
|
33
|
-
|
|
34
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
35
24
|
return a;
|
|
36
25
|
};
|
|
37
|
-
|
|
38
26
|
var Indicator = (0, _styledComponents.default)(_Icon.default).attrs(function (props) {
|
|
39
27
|
return {
|
|
40
28
|
id: (0, _utils.ifFlag)("open", (0, _utils.getThemeProp)(["icons", "indicators", "down"], "chevron-down"), (0, _utils.getThemeProp)(["icons", "indicators", "right"], "chevron-right"))(props)
|
|
@@ -44,7 +32,6 @@ var Indicator = (0, _styledComponents.default)(_Icon.default).attrs(function (pr
|
|
|
44
32
|
componentId: "sc-eaonh1-0"
|
|
45
33
|
})(["font-size:10px;padding:10px 0 10px 10px;cursor:pointer;flex:0 0 auto;color:", ";"], (0, _utils.ifFlag)("open", (0, _utils.ifFlag)("dark", (0, _utils.getThemeProp)(["colors", "textLight"], "#cccccc"), (0, _utils.getThemeProp)(["colors", "text"], "#333333")), (0, _utils.getThemeProp)(["colors", "application", "base"], "#ffffff")));
|
|
46
34
|
exports.Indicator = Indicator;
|
|
47
|
-
|
|
48
35
|
var BeforeIndicator = _styledComponents.default.div.withConfig({
|
|
49
36
|
displayName: "Label__BeforeIndicator",
|
|
50
37
|
componentId: "sc-eaonh1-1"
|
|
@@ -53,9 +40,7 @@ var BeforeIndicator = _styledComponents.default.div.withConfig({
|
|
|
53
40
|
}, function (props) {
|
|
54
41
|
return (0, _settings.branchLength)(props) + 1;
|
|
55
42
|
});
|
|
56
|
-
|
|
57
43
|
exports.BeforeIndicator = BeforeIndicator;
|
|
58
|
-
|
|
59
44
|
var NonIndicator = _styledComponents.default.div.withConfig({
|
|
60
45
|
displayName: "Label__NonIndicator",
|
|
61
46
|
componentId: "sc-eaonh1-2"
|
|
@@ -64,54 +49,40 @@ var NonIndicator = _styledComponents.default.div.withConfig({
|
|
|
64
49
|
}, function (props) {
|
|
65
50
|
return (0, _settings.branchLength)(props) + 1;
|
|
66
51
|
});
|
|
67
|
-
|
|
68
52
|
exports.NonIndicator = NonIndicator;
|
|
69
|
-
|
|
70
53
|
var Label = _styledComponents.default.div.withConfig({
|
|
71
54
|
displayName: "Label",
|
|
72
55
|
componentId: "sc-eaonh1-3"
|
|
73
56
|
})(["cursor:pointer;flex-grow:1;width:100%;", ";"], (0, _utils.ifFlag)("isSelectedNode", (0, _styledComponents.css)(["background-color:#222;border:1px solid ", ";"], (0, _utils.getThemeProp)(["colors", "application", "base"], "#0F4E66"))));
|
|
74
|
-
|
|
75
57
|
exports.Label = Label;
|
|
76
58
|
;
|
|
77
|
-
|
|
78
59
|
(function () {
|
|
79
60
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
80
|
-
|
|
81
61
|
if (!reactHotLoader) {
|
|
82
62
|
return;
|
|
83
63
|
}
|
|
84
|
-
|
|
85
64
|
reactHotLoader.register(Indicator, "Indicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
86
65
|
reactHotLoader.register(BeforeIndicator, "BeforeIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
87
66
|
reactHotLoader.register(NonIndicator, "NonIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
88
67
|
reactHotLoader.register(Label, "Label", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
89
68
|
})();
|
|
90
|
-
|
|
91
69
|
;
|
|
92
|
-
|
|
93
70
|
(function () {
|
|
94
71
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
95
72
|
leaveModule && leaveModule(module);
|
|
96
73
|
})();
|
|
97
|
-
|
|
98
74
|
;
|
|
99
|
-
|
|
100
75
|
(function () {
|
|
101
76
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
102
|
-
|
|
103
77
|
if (!reactHotLoader) {
|
|
104
78
|
return;
|
|
105
79
|
}
|
|
106
|
-
|
|
107
80
|
reactHotLoader.register(Indicator, "Indicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
108
81
|
reactHotLoader.register(BeforeIndicator, "BeforeIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
109
82
|
reactHotLoader.register(NonIndicator, "NonIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
110
83
|
reactHotLoader.register(Label, "Label", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
|
|
111
84
|
})();
|
|
112
|
-
|
|
113
85
|
;
|
|
114
|
-
|
|
115
86
|
(function () {
|
|
116
87
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
117
88
|
leaveModule && leaveModule(module);
|
|
@@ -2,38 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.Root = exports.Leaf = void 0;
|
|
5
|
-
|
|
6
5
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
-
|
|
8
6
|
var _utils = require("../../utils");
|
|
9
|
-
|
|
10
7
|
var _settings = require("./settings");
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
9
|
(function () {
|
|
15
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
11
|
enterModule && enterModule(module);
|
|
17
12
|
})();
|
|
18
|
-
|
|
19
13
|
(function () {
|
|
20
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
15
|
enterModule && enterModule(module);
|
|
22
16
|
})();
|
|
23
|
-
|
|
24
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
18
|
return a;
|
|
26
19
|
};
|
|
27
|
-
|
|
28
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
21
|
return a;
|
|
30
22
|
};
|
|
31
|
-
|
|
32
23
|
var Root = _styledComponents.default.li.withConfig({
|
|
33
24
|
displayName: "Leaf__Root",
|
|
34
25
|
componentId: "sc-1vcyrj3-0"
|
|
35
26
|
})(["position:relative;display:flex;align-items:center;"]);
|
|
36
|
-
|
|
37
27
|
exports.Root = Root;
|
|
38
28
|
var Leaf = (0, _styledComponents.default)(Root).withConfig({
|
|
39
29
|
displayName: "Leaf",
|
|
@@ -43,40 +33,29 @@ var Leaf = (0, _styledComponents.default)(Root).withConfig({
|
|
|
43
33
|
}, _settings.branchHeight);
|
|
44
34
|
exports.Leaf = Leaf;
|
|
45
35
|
;
|
|
46
|
-
|
|
47
36
|
(function () {
|
|
48
37
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
49
|
-
|
|
50
38
|
if (!reactHotLoader) {
|
|
51
39
|
return;
|
|
52
40
|
}
|
|
53
|
-
|
|
54
41
|
reactHotLoader.register(Root, "Root", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
|
|
55
42
|
reactHotLoader.register(Leaf, "Leaf", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
|
|
56
43
|
})();
|
|
57
|
-
|
|
58
44
|
;
|
|
59
|
-
|
|
60
45
|
(function () {
|
|
61
46
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
62
47
|
leaveModule && leaveModule(module);
|
|
63
48
|
})();
|
|
64
|
-
|
|
65
49
|
;
|
|
66
|
-
|
|
67
50
|
(function () {
|
|
68
51
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
69
|
-
|
|
70
52
|
if (!reactHotLoader) {
|
|
71
53
|
return;
|
|
72
54
|
}
|
|
73
|
-
|
|
74
55
|
reactHotLoader.register(Root, "Root", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
|
|
75
56
|
reactHotLoader.register(Leaf, "Leaf", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
|
|
76
57
|
})();
|
|
77
|
-
|
|
78
58
|
;
|
|
79
|
-
|
|
80
59
|
(function () {
|
|
81
60
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
82
61
|
leaveModule && leaveModule(module);
|