/* * Copyright (C) 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import {CdkVirtualScrollViewport} from '@angular/cdk/scrolling'; import { Component, ElementRef, EventEmitter, HostListener, Inject, Input, Output, ViewChild, } from '@angular/core'; import {MatSelectChange} from '@angular/material/select'; import {DOMUtils} from 'common/dom_utils'; import {Timestamp, TimestampFormatType} from 'common/time/time'; import {TimeUtils} from 'common/time/time_utils'; import {TraceType} from 'trace/trace_type'; import {TextFilter} from 'viewers/common/text_filter'; import {LogEntry, LogField, LogHeader} from 'viewers/common/ui_data_log'; import { LogFilterChangeDetail, LogTextFilterChangeDetail, TimestampClickDetail, ViewerEvents, } from 'viewers/common/viewer_events'; import { inlineButtonStyle, timeButtonStyle, } from 'viewers/components/styles/clickable_property.styles'; import {currentElementStyle} from 'viewers/components/styles/current_element.styles'; import {logComponentStyles} from 'viewers/components/styles/log_component.styles'; import {selectedElementStyle} from 'viewers/components/styles/selected_element.styles'; import { viewerCardInnerStyle, viewerCardStyle, } from 'viewers/components/styles/viewer_card.styles'; @Component({ selector: 'log-view', template: `