Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
set opened(value: boolean) {
if (value === this._opened) {
return;
}
this._opened = value;
this.openedChange.emit(this._opened);
}
private _opened = true;
@Input() zoomAuto = false;
public icon = 'menu';
public actionStore = new ActionStore([]);
public actionbarMode = ActionbarMode.Overlay;
private multiple$ = new BehaviorSubject(false);
private isResultSelected$ = new BehaviorSubject(false);
private initialized = true;
private format = new olFormatGeoJSON();
public withZoomButton = true;
@Output() openedChange = new EventEmitter();
@Output() zoomAutoEvent = new EventEmitter();
resultSelected$ = new BehaviorSubject>(undefined);
@HostBinding('class.app-toast-panel-opened')
get hasOpenedClass() {
get actionbarMode(): ActionbarMode {
const media = this.mediaService.media$.value;
const orientation = this.mediaService.orientation$.value;
if (media === Media.Desktop && orientation === MediaOrientation.Landscape) {
return ActionbarMode.Dock;
}
return ActionbarMode.Overlay;
}