"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledPanel = exports.StyledMapContainer = exports.NodeSubMenu = exports.LimitWarningsEuiCallOut = exports.GraphContainer = void 0; var _eui = require("@elastic/eui"); var _styledComponents = _interopRequireDefault(require("styled-components")); var _submenu = require("./submenu"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ /** * See `NodeSubMenuComponents` */ const NodeSubMenu = (0, _styledComponents.default)(_submenu.NodeSubMenuComponents)` margin: 2px 0 0 0; padding: 0; border: none; display: flex; flex-flow: column; z-index: auto; &.options { font-size: 0.8rem; display: flex; flex-flow: row wrap; background: transparent; position: absolute; top: 4.5em; overflow-x: visible; width: 24ch; z-index: auto; } &.options::after { position: absolute; content: ''; width: 100%; height: 100%; left: 0; top: 0; z-index: 20; backdrop-filter: blur(2px); pointer-events: none; } &.options .item { margin: 0.25ch 0.35ch 0.35ch 0; padding: 0.35em 0.5em; height: fit-content; width: fit-content; border-radius: 2px; line-height: 0.8; z-index: 40; } &.options .item button { appearance: none; height: fit-content; width: fit-content; line-height: 0.8; outline-style: none; border-color: transparent; box-shadow: none; } &.options .item button:focus { outline-style: none; border-color: transparent; box-shadow: none; text-decoration: underline; } &.options .item button:active { transform: scale(0.95); } `; /** * The top level DOM element for Resolver * NB: `styled-components` may be used to wrap this. */ exports.NodeSubMenu = NodeSubMenu; const StyledMapContainer = _styledComponents.default.div` /** * Take up all availble space */ &, .resolver-graph { display: flex; flex-grow: 1; } .loading-container { display: flex; align-items: center; justify-content: center; flex-grow: 1; } /** * Set to force base-height necessary for resolver to show up in timeline. * Was previously set in events_viewer.tsx, but more appropriate here */ min-height: 652px; /** * The placeholder components use absolute positioning. */ position: relative; /** * Prevent partially visible components from showing up outside the bounds of Resolver. */ overflow: hidden; contain: strict; background-color: ${props => props.backgroundColor}; `; /** * The Panel, styled for use in `ResolverMap`. */ exports.StyledMapContainer = StyledMapContainer; const StyledPanel = (0, _styledComponents.default)(_eui.EuiPanel)` position: absolute; left: 0; top: 0; bottom: 0; overflow: auto; width: 25em; max-width: 50%; border-radius: 0; border-top: none; `; /** * Used by ResolverMap to contain the lines and nodes. */ exports.StyledPanel = StyledPanel; const GraphContainer = _styledComponents.default.div` display: flex; flex-grow: 1; contain: layout; position: relative; z-index: 0; `; /** * See `RelatedEventLimitWarning` */ exports.GraphContainer = GraphContainer; const LimitWarningsEuiCallOut = (0, _styledComponents.default)(_eui.EuiCallOut)` flex-flow: row wrap; display: block; align-items: baseline; margin-top: 1em; & .euiCallOutHeader { display: inline; margin-right: 0.25em; } & .euiText { display: inline; } & .euiText p { display: inline; } `; exports.LimitWarningsEuiCallOut = LimitWarningsEuiCallOut;