You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/08/07 15:51:51 UTC

[incubator-streampipes] 03/04: [STREAMPIPES-79] Improve grid layout of data explorer

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-145
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 2376a17d11ecccbe1a6af741cfa37f6852c378e8
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Fri Aug 7 17:51:09 2020 +0200

    [STREAMPIPES-79] Improve grid layout of data explorer
---
 .../data-explorer-dashboard-grid.component.html    |   2 +-
 ...=> data-explorer-dashboard-grid.component.scss} |  18 +++-
 .../grid/data-explorer-dashboard-grid.component.ts |  36 +++++--
 .../data-explorer-dashboard-panel.component.html   |  14 +--
 .../data-explorer-dashboard-panel.component.ts     |  31 ++++--
 .../time-selector/timeRangeSelector.component.html |   2 -
 .../app/data-explorer/data-explorer.component.css  |   4 +
 .../app/data-explorer/data-explorer.component.html |  18 +++-
 .../app/data-explorer/data-explorer.component.ts   |  19 +++-
 ui/src/app/data-explorer/data-explorer.module.ts   | 117 +++++++++++----------
 10 files changed, 166 insertions(+), 95 deletions(-)

diff --git a/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.html b/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.html
index 22e1557..86ba2ed 100644
--- a/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.html
+++ b/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.html
@@ -20,7 +20,7 @@
     <h2>{{dashboard.name}}</h2>
     <h3>{{dashboard.description}}</h3>
 </div>
-<gridster [options]="options" [ngClass]="editMode ? 'edit' : ''">
+<gridster [options]="options" [ngClass]="editMode ? 'edit' : ''" class="custom-gridster-style">
     <ng-container *ngFor="let item of dashboard.widgets;let i=index">
         <gridster-item [item]="item" #gridsterItemComponent>
             <sp-data-explorer-dashboard-widget
diff --git a/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.css b/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.scss
similarity index 71%
rename from ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.css
rename to ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.scss
index 791a047..cfa6fbc 100644
--- a/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.css
+++ b/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.scss
@@ -16,16 +16,26 @@
  *
  */
 
-gridster ::ng-deep {
+gridster.custom-gridster-style ::ng-deep {
     background: white;
 }
 
-gridster.edit ::ng-deep {
-    background: #d3d3d3;
+gridster.custom-gridster-style.edit ::ng-deep {
+    background: white;
 }
 
 gridster.scrollVertical ::ng-deep {
     min-height: 100%;
     display: flex;
     flex: 1 1 100%;
-}
\ No newline at end of file
+}
+
+::ng-deep gridster.custom-gridster-style>.gridster-row {
+    border-bottom: 1px solid #ccc;
+    border-top: 1px solid #ccc;
+}
+
+::ng-deep gridster.custom-gridster-style>div.gridster-column {
+    border-left: 1px solid #ccc;
+    border-right: 1px solid #ccc;
+}
diff --git a/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.ts b/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.ts
index 1b6f702..d983610 100644
--- a/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.ts
+++ b/ui/src/app/data-explorer/components/grid/data-explorer-dashboard-grid.component.ts
@@ -17,27 +17,34 @@
  */
 
 import {
-  Component, EventEmitter,
+  Component,
+  EventEmitter,
   Input,
   OnChanges,
-  OnInit, Output,
+  OnInit,
+  Output,
   QueryList,
   SimpleChanges,
-  ViewChildren
+  ViewChildren,
+  ViewEncapsulation
 } from '@angular/core';
-import { GridsterItemComponent, GridType } from 'angular-gridster2';
-import { DateRange } from '../../../core-model/datalake/DateRange';
-import { GridsterInfo } from '../../../dashboard/models/gridster-info.model';
-import { IDataViewDashboard, IDataViewDashboardConfig, IDataViewDashboardItem } from '../../models/dataview-dashboard.model';
-import { DataViewDataExplorerService } from '../../services/data-view-data-explorer.service';
-import { RefreshDashboardService } from '../../services/refresh-dashboard.service';
-import { ResizeService } from '../../services/resize.service';
+import {GridsterItemComponent, GridType} from 'angular-gridster2';
+import {DateRange} from '../../../core-model/datalake/DateRange';
+import {GridsterInfo} from '../../../dashboard/models/gridster-info.model';
+import {
+  IDataViewDashboard,
+  IDataViewDashboardConfig,
+  IDataViewDashboardItem
+} from '../../models/dataview-dashboard.model';
+import {DataViewDataExplorerService} from '../../services/data-view-data-explorer.service';
+import {RefreshDashboardService} from '../../services/refresh-dashboard.service';
+import {ResizeService} from '../../services/resize.service';
 import {DataExplorerWidgetModel} from "../../../core-model/gen/streampipes-model";
 
 @Component({
   selector: 'sp-data-explorer-dashboard-grid',
   templateUrl: './data-explorer-dashboard-grid.component.html',
-  styleUrls: ['./data-explorer-dashboard-grid.component.css']
+  styleUrls: ['./data-explorer-dashboard-grid.component.scss'],
 })
 export class DataExplorerDashboardGridComponent implements OnInit, OnChanges {
 
@@ -77,6 +84,8 @@ export class DataExplorerDashboardGridComponent implements OnInit, OnChanges {
       minRows: 4,
       fixedRowHeight: 100,
       fixedColWidth: 100,
+      margin: 5,
+      displayGrid: "always",
       resizable: { enabled: this.editMode },
       itemResizeCallback: ((item, itemComponent) => {
         this.resizeService.notify({gridsterItem: item, gridsterItemComponent: itemComponent} as GridsterInfo);
@@ -104,4 +113,9 @@ export class DataExplorerDashboardGridComponent implements OnInit, OnChanges {
     this.updateCallback.emit(dashboardWidget);
   }
 
+  toggleGrid() {
+    this.options.displayGrid = this.options.displayGrid === "none" ? "always" : "none";
+    this.options.api.optionsChanged();
+  }
+
 }
diff --git a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
index 76ba569..2890ba4 100644
--- a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
+++ b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
@@ -16,19 +16,9 @@
   ~
   -->
 
-<div fxFlex="100" fxLayout="column" class="m-20">
-    <div fxLayout="row wrap" style="margin-bottom:20px;" *ngIf="editMode">
-        <button mat-button mat-raised-button color="primary" (click)="updateDashboardAndCloseEditMode()"
-                style="margin-right:10px;">Save
-        </button>
-        <button mat-button mat-raised-button class="mat-basic" (click)="discardChanges()"
-                style="margin-right:10px;">Discard
-        </button>
-        <button mat-button mat-raised-button color="primary" (click)="addWidget()" [disabled]="!editMode">Add
-            visualization</button>
-    </div>
-
+<div fxFlex="100" fxLayout="column">
     <sp-data-explorer-dashboard-grid
+            #dashboardGrid
             [editMode]="editMode"
             [dashboard]="dashboard"
             [viewDateRange]="viewDateRange"
diff --git a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
index 0c02b07..8d13144 100644
--- a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
+++ b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
@@ -16,7 +16,7 @@
  *
  */
 
-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
 import { MatDialog } from '@angular/material/dialog';
 import { Observable, Subscription } from 'rxjs';
 import { forkJoin } from 'rxjs/internal/observable/forkJoin';
@@ -26,6 +26,7 @@ import { IDataViewDashboard, IDataViewDashboardItem } from '../../models/datavie
 import { DataViewDataExplorerService } from '../../services/data-view-data-explorer.service';
 import { RefreshDashboardService } from '../../services/refresh-dashboard.service';
 import {DataExplorerWidgetModel} from "../../../core-model/gen/streampipes-model";
+import {DataExplorerDashboardGridComponent} from "../grid/data-explorer-dashboard-grid.component";
 
 @Component({
   selector: 'sp-data-explorer-dashboard-panel',
@@ -49,6 +50,8 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
   @Output('editModeChange')
   editModeChange: EventEmitter<boolean> = new EventEmitter();
 
+  @ViewChild('dashboardGrid') dashboardGrid: DataExplorerDashboardGridComponent;
+
   public items: IDataViewDashboardItem[];
 
   protected subscription: Subscription;
@@ -91,26 +94,29 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
     this.dashboard.widgets.push(dashboardItem);
   }
 
-  updateDashboardAndCloseEditMode() {
+  updateDashboard(closeEditMode?: boolean) {
     this.dataViewDataExplorerService.updateDashboard(this.dashboard).subscribe(result => {
         if (this.widgetsToUpdate.size > 0) {
             forkJoin(this.prepareWidgetUpdates()).subscribe(result => {
-                this.closeEditModeAndReloadDashboard();
+                if (closeEditMode) {
+                  this.closeEditModeAndReloadDashboard(false);
+                }
             });
         } else {
             this.deleteWidgets();
-            this.closeEditModeAndReloadDashboard();
+            if (closeEditMode) {
+              this.closeEditModeAndReloadDashboard(false);
+            }
         }
     });
 
-    this.editModeChange.emit(!(this.editMode));
-    this.refreshDashboardService.notify(this.dashboard._id);
-    this.closeEditModeAndReloadDashboard();
-
+    this.closeEditModeAndReloadDashboard(false);
   }
 
-  closeEditModeAndReloadDashboard() {
-    this.editModeChange.emit(!(this.editMode));
+  closeEditModeAndReloadDashboard(closeEditMode: boolean) {
+    if (closeEditMode) {
+      this.editModeChange.emit(!(this.editMode));
+    }
     this.refreshDashboardService.notify(this.dashboard._id);
   }
 
@@ -142,4 +148,9 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
       this.dataViewDataExplorerService.deleteWidget(widgetId).subscribe();
     });
   }
+
+  toggleGrid(gridVisible: boolean) {
+    console.log(this.dashboardGrid);
+    this.dashboardGrid.toggleGrid();
+  }
 }
diff --git a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.html b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.html
index ff6ef00..9d9375d 100644
--- a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.html
+++ b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.html
@@ -38,7 +38,6 @@
                    [owlDateTime]="dt1"
                    [owlDateTimeTrigger]="dt1"
                    [(ngModel)]="dateRange.startDate"
-                   [disabled]="selectedTimeButton.value !== 'custom'"
                    (dateTimeChange)="changeCustomDateRange()">
             <owl-date-time #dt1></owl-date-time>
         </mat-form-field>
@@ -48,7 +47,6 @@
                    [owlDateTime]="dt2"
                    [owlDateTimeTrigger]="dt2"
                    [(ngModel)]="dateRange.endDate"
-                   [disabled]="selectedTimeButton.value !== 'custom'"
                    (dateTimeChange)="changeCustomDateRange()">
             <owl-date-time #dt2></owl-date-time>
         </mat-form-field>
diff --git a/ui/src/app/data-explorer/data-explorer.component.css b/ui/src/app/data-explorer/data-explorer.component.css
index 23e7afa..e7ecf3a 100644
--- a/ui/src/app/data-explorer/data-explorer.component.css
+++ b/ui/src/app/data-explorer/data-explorer.component.css
@@ -86,3 +86,7 @@
     display: inline;
     margin-right: 10px;
 }
+
+.pl-10 {
+    padding-left: 10px;
+}
diff --git a/ui/src/app/data-explorer/data-explorer.component.html b/ui/src/app/data-explorer/data-explorer.component.html
index 3030e90..cc4bc54 100644
--- a/ui/src/app/data-explorer/data-explorer.component.html
+++ b/ui/src/app/data-explorer/data-explorer.component.html
@@ -29,7 +29,22 @@
             </div>
         </div>
     </div>
-    <div class="fixed-height data-explorer-options" fxLayout="column" *ngIf="selectedIndex > 0">
+    <div class="fixed-height data-explorer-options" fxLayout="row" *ngIf="selectedIndex > 0">
+        <div class="data-explorer-options-item pl-10" fxLayoutAlign="start center" fxLayout="row">
+            <button mat-button color="primary" matTooltip="Save" [matTooltipPosition]="'above'" (click)="saveDashboard()">
+                <mat-icon>save</mat-icon>&nbsp;<span>Save</span>
+            </button>
+        </div>
+        <div class="data-explorer-options-item" fxLayoutAlign="start center" fxLayout="row">
+            <button mat-button color="primary" matTooltip="Add visualization" [matTooltipPosition]="'above'" (click)="addVisualization()">
+                <mat-icon>add</mat-icon>&nbsp;<span>Add visualization</span>
+            </button>
+        </div>
+        <div class="data-explorer-options-item" fxLayoutAlign="start center" fxLayout="row">
+            <mat-slide-toggle color="primary" [(ngModel)]="gridVisible" (ngModelChange)="toggleGrid()">
+                <span>Show grid</span>
+            </mat-slide-toggle>
+        </div>
         <div class="data-explorer-options-item" fxLayoutAlign="end center" fxFlex fxLayout="row">
             <sp-time-range-selector *ngIf="selectedIndex" (dateRangeEmitter)="updateDateRange($event)"></sp-time-range-selector>
         </div>
@@ -50,6 +65,7 @@
 
         </sp-data-explorer-dashboard-overview>
         <sp-data-explorer-dashboard-panel fxLayout="column"
+                                          #dashboardPanel
                                           [(editMode)]="editMode"
                                           [dashboard]="selectedDataViewDashboard"
                                           [viewDateRange]="viewDateRange"
diff --git a/ui/src/app/data-explorer/data-explorer.component.ts b/ui/src/app/data-explorer/data-explorer.component.ts
index b046800..c96119c 100644
--- a/ui/src/app/data-explorer/data-explorer.component.ts
+++ b/ui/src/app/data-explorer/data-explorer.component.ts
@@ -16,11 +16,13 @@
  *
  */
 
-import { Component, OnInit } from '@angular/core';
+import {Component, OnInit, ViewChild} from '@angular/core';
 import { DateRange } from '../core-model/datalake/DateRange';
 import { IDataViewDashboard } from './models/dataview-dashboard.model';
 import { DataViewDataExplorerService } from './services/data-view-data-explorer.service';
 import { RefreshDashboardService } from './services/refresh-dashboard.service';
+import {DashboardPanelComponent} from "../dashboard/components/panel/dashboard-panel.component";
+import {DataExplorerDashboardPanelComponent} from "./components/panel/data-explorer-dashboard-panel.component";
 
 @Component({
     selector: 'sp-data-explorer',
@@ -35,9 +37,12 @@ export class DataExplorerComponent implements OnInit {
     dashboardTabSelected = false;
 
     editMode = true;
+    gridVisible: boolean = true;
 
     dataViewDashboards: IDataViewDashboard[];
 
+  @ViewChild('dashboardPanel') dashboardPanel: DataExplorerDashboardPanelComponent;
+
   /**
    * This is the date range (start, end) to view the data
    */
@@ -93,4 +98,16 @@ export class DataExplorerComponent implements OnInit {
     updateDateRange(dateRange: DateRange) {
       this.viewDateRange = dateRange;
     }
+
+    saveDashboard() {
+     this.dashboardPanel.updateDashboard(false);
+    }
+
+    addVisualization() {
+      this.dashboardPanel.addWidget();
+    }
+
+    toggleGrid() {
+      this.dashboardPanel.toggleGrid(this.gridVisible);
+    }
 }
diff --git a/ui/src/app/data-explorer/data-explorer.module.ts b/ui/src/app/data-explorer/data-explorer.module.ts
index 2f4424c..4ccff1a 100644
--- a/ui/src/app/data-explorer/data-explorer.module.ts
+++ b/ui/src/app/data-explorer/data-explorer.module.ts
@@ -16,61 +16,71 @@
  *
  */
 
-import { CdkTableModule } from '@angular/cdk/table';
-import { CommonModule } from '@angular/common';
-import { NgModule } from '@angular/core';
-import { FlexLayoutModule } from '@angular/flex-layout';
-import { FormsModule, ReactiveFormsModule } from '@angular/forms';
-import { MatChipsModule } from '@angular/material/chips';
-import { MatNativeDateModule } from '@angular/material/core';
-import { MatDatepickerModule } from '@angular/material/datepicker';
-import { MatGridListModule } from '@angular/material/grid-list';
-import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
-import { MatSliderModule } from '@angular/material/slider';
-import { MatSnackBarModule } from '@angular/material/snack-bar';
-import { MatTabsModule } from '@angular/material/tabs';
-import { OWL_DATE_TIME_FORMATS, OwlDateTimeModule, OwlNativeDateTimeModule } from '@danielmoncada/angular-datetime-picker';
-import { NgxChartsModule } from '@swimlane/ngx-charts';
-import { GridsterModule } from 'angular-gridster2';
-import { PlotlyViaWindowModule } from 'angular-plotly.js';
-import { DynamicModule } from 'ng-dynamic-component';
-import { ColorPickerModule } from 'ngx-color-picker';
-import { ConnectModule } from '../connect/connect.module';
-import { DatalakeRestService } from '../core-services/datalake/datalake-rest.service';
-import { SemanticTypeUtilsService } from '../core-services/semantic-type/semantic-type-utils.service';
-import { SharedDatalakeRestService } from '../core-services/shared/shared-dashboard.service';
-import { CoreUiModule } from '../core-ui/core-ui.module';
-import { LabelingToolModule } from '../core-ui/linechart/labeling-tool/labeling-tool.module';
-import { CustomMaterialModule } from '../CustomMaterial/custom-material.module';
-import { ElementIconText } from '../services/get-element-icon-text.service';
-import { DataDownloadDialog } from './components/datadownloadDialog/dataDownload.dialog';
-import { DataExplorerDashboardGridComponent } from './components/grid/data-explorer-dashboard-grid.component';
-import { DataExplorerDashboardOverviewComponent } from './components/overview/data-explorer-dashboard-overview.component';
-import { DataExplorerDashboardPanelComponent } from './components/panel/data-explorer-dashboard-panel.component';
-import { TimeRangeSelectorComponent } from './components/time-selector/timeRangeSelector.component';
-import { DataExplorerDashboardWidgetComponent } from './components/widget/data-explorer-dashboard-widget.component';
-import { ImageWidgetComponent } from './components/widgets/image/image-widget.component';
-import { LineChartWidgetComponent } from './components/widgets/line-chart/line-chart-widget.component';
-import { TableWidgetComponent } from './components/widgets/table/table-widget.component';
-import { AggregateConfigurationComponent } from './components/widgets/utils/aggregate-configuration/aggregate-configuration.component';
-import { LoadDataSpinnerComponent } from './components/widgets/utils/load-data-spinner/load-data-spinner.component';
-import { NoDataInDateRangeComponent } from './components/widgets/utils/no-data/no-data-in-date-range.component';
-import { SelectPropertiesComponent } from './components/widgets/utils/select-properties/select-properties.component';
-import { DataExplorerComponent } from './data-explorer.component';
-import { DataExplorerAddVisualizationDialogComponent } from './dialogs/add-widget/data-explorer-add-visualization-dialog.component';
-import { DataExplorerEditDataViewDialogComponent } from './dialogs/edit-dashboard/data-explorer-edit-data-view-dialog.component';
-import { DataLakeService } from './services/data-lake.service';
-import { DataViewDataExplorerService } from './services/data-view-data-explorer.service';
-import { RefreshDashboardService } from './services/refresh-dashboard.service';
-import { ResizeService } from './services/resize.service';
-import { GroupConfigurationComponent } from './components/widgets/utils/group-configuration/group-configuration.component';
+import {CdkTableModule} from '@angular/cdk/table';
+import {CommonModule} from '@angular/common';
+import {NgModule} from '@angular/core';
+import {FlexLayoutModule} from '@angular/flex-layout';
+import {FormsModule, ReactiveFormsModule} from '@angular/forms';
+import {MatChipsModule} from '@angular/material/chips';
+import {MatNativeDateModule} from '@angular/material/core';
+import {MatDatepickerModule} from '@angular/material/datepicker';
+import {MatGridListModule} from '@angular/material/grid-list';
+import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
+import {MatSliderModule} from '@angular/material/slider';
+import {MatSnackBarModule} from '@angular/material/snack-bar';
+import {MatTabsModule} from '@angular/material/tabs';
+import {
+  OWL_DATE_TIME_FORMATS,
+  OwlDateTimeModule,
+  OwlNativeDateTimeModule
+} from '@danielmoncada/angular-datetime-picker';
+import {NgxChartsModule} from '@swimlane/ngx-charts';
+import {GridsterModule} from 'angular-gridster2';
+import {PlotlyViaWindowModule} from 'angular-plotly.js';
+import {DynamicModule} from 'ng-dynamic-component';
+import {ColorPickerModule} from 'ngx-color-picker';
+import {ConnectModule} from '../connect/connect.module';
+import {DatalakeRestService} from '../core-services/datalake/datalake-rest.service';
+import {SemanticTypeUtilsService} from '../core-services/semantic-type/semantic-type-utils.service';
+import {SharedDatalakeRestService} from '../core-services/shared/shared-dashboard.service';
+import {CoreUiModule} from '../core-ui/core-ui.module';
+import {LabelingToolModule} from '../core-ui/linechart/labeling-tool/labeling-tool.module';
+import {CustomMaterialModule} from '../CustomMaterial/custom-material.module';
+import {ElementIconText} from '../services/get-element-icon-text.service';
+import {DataDownloadDialog} from './components/datadownloadDialog/dataDownload.dialog';
+import {DataExplorerDashboardGridComponent} from './components/grid/data-explorer-dashboard-grid.component';
+import {DataExplorerDashboardOverviewComponent} from './components/overview/data-explorer-dashboard-overview.component';
+import {DataExplorerDashboardPanelComponent} from './components/panel/data-explorer-dashboard-panel.component';
+import {TimeRangeSelectorComponent} from './components/time-selector/timeRangeSelector.component';
+import {DataExplorerDashboardWidgetComponent} from './components/widget/data-explorer-dashboard-widget.component';
+import {ImageWidgetComponent} from './components/widgets/image/image-widget.component';
+import {LineChartWidgetComponent} from './components/widgets/line-chart/line-chart-widget.component';
+import {TableWidgetComponent} from './components/widgets/table/table-widget.component';
+import {AggregateConfigurationComponent} from './components/widgets/utils/aggregate-configuration/aggregate-configuration.component';
+import {LoadDataSpinnerComponent} from './components/widgets/utils/load-data-spinner/load-data-spinner.component';
+import {NoDataInDateRangeComponent} from './components/widgets/utils/no-data/no-data-in-date-range.component';
+import {SelectPropertiesComponent} from './components/widgets/utils/select-properties/select-properties.component';
+import {DataExplorerComponent} from './data-explorer.component';
+import {DataExplorerAddVisualizationDialogComponent} from './dialogs/add-widget/data-explorer-add-visualization-dialog.component';
+import {DataExplorerEditDataViewDialogComponent} from './dialogs/edit-dashboard/data-explorer-edit-data-view-dialog.component';
+import {DataLakeService} from './services/data-lake.service';
+import {DataViewDataExplorerService} from './services/data-view-data-explorer.service';
+import {RefreshDashboardService} from './services/refresh-dashboard.service';
+import {ResizeService} from './services/resize.service';
+import {GroupConfigurationComponent} from './components/widgets/utils/group-configuration/group-configuration.component';
+import {MatSlideToggleModule} from "@angular/material/slide-toggle";
 
-const dashboardWidgets = [
-
-];
+const dashboardWidgets = [];
 
 export const MY_NATIVE_FORMATS = {
-  fullPickerInput: {year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric', hour12: false},
+  fullPickerInput: {
+    year: 'numeric',
+    month: 'numeric',
+    day: 'numeric',
+    hour: 'numeric',
+    minute: 'numeric',
+    hour12: false
+  },
   datePickerInput: {year: 'numeric', month: 'numeric', day: 'numeric', hour12: false},
   timePickerInput: {hour: 'numeric', minute: 'numeric', hour12: false},
   monthYearLabel: {year: 'numeric', month: 'short', hour12: false},
@@ -84,7 +94,7 @@ export const MY_NATIVE_FORMATS = {
     CommonModule,
     MatTabsModule,
     DynamicModule.withComponents(
-      dashboardWidgets
+        dashboardWidgets
     ),
     FlexLayoutModule,
     GridsterModule,
@@ -107,6 +117,7 @@ export const MY_NATIVE_FORMATS = {
     MatDatepickerModule,
     MatNativeDateModule,
     MatSliderModule,
+    MatSlideToggleModule,
     MatChipsModule,
     LabelingToolModule
   ],