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/09 11:50:12 UTC

[incubator-streampipes] branch STREAMPIPES-145 updated (8f8b5bf -> a49b053)

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

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


    from 8f8b5bf  Merge branch 'STREAMPIPES-145' of github.com:apache/incubator-streampipes into STREAMPIPES-145
     new 84ab957  [STREAMPIPES-79] Modify gridster item layout
     new 6e393f1  [STREAMPIPES-79] Improve layout of data explorer widget settings
     new a49b053  [STREAMPIPES-79] Automatically resize data explorer widgets

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../data-explorer-dashboard-panel.component.ts     |  15 +--
 .../time-selector/timeRangeSelector.component.scss |  29 -----
 .../data-explorer-dashboard-widget.component.html  |  14 ++-
 ... data-explorer-dashboard-widget.component.scss} |   6 +-
 .../data-explorer-dashboard-widget.component.ts    |  11 +-
 .../widgets/base/base-data-explorer-widget.ts      |  10 --
 .../widgets/image/image-widget.component.css       |   6 +
 .../widgets/image/image-widget.component.html      |   6 -
 .../line-chart/line-chart-widget.component.css     |  14 +--
 .../line-chart/line-chart-widget.component.html    | 140 ++++++++++-----------
 .../line-chart/line-chart-widget.component.ts      |  27 ++--
 .../widgets/table/table-widget.component.html      |  27 ++--
 ...t.component.css => table-widget.component.scss} |   9 +-
 .../widgets/table/table-widget.component.ts        |   2 +-
 .../aggregate-configuration.component.html         |   8 +-
 .../load-data-spinner.component.html               |  10 +-
 .../select-properties.component.html               |   2 +-
 ui/src/scss/main.scss                              |   2 +
 .../sp/forms.scss}                                 |  38 +++---
 .../sp/{pipeline-element.scss => widgets.scss}     |  32 ++---
 20 files changed, 191 insertions(+), 217 deletions(-)
 rename ui/src/app/data-explorer/components/widget/{data-explorer-dashboard-widget.component.css => data-explorer-dashboard-widget.component.scss} (91%)
 rename ui/src/app/data-explorer/components/widgets/table/{table-widget.component.css => table-widget.component.scss} (88%)
 copy ui/src/{app/connect/static-properties/static-property.component.css => scss/sp/forms.scss} (63%)
 copy ui/src/scss/sp/{pipeline-element.scss => widgets.scss} (69%)


[incubator-streampipes] 01/03: [STREAMPIPES-79] Modify gridster item layout

Posted by ri...@apache.org.
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 84ab9571bdc14c830e16b7374333a3c842e8a4de
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Fri Aug 7 18:43:48 2020 +0200

    [STREAMPIPES-79] Modify gridster item layout
---
 .../widget/data-explorer-dashboard-widget.component.html    | 13 ++++++++++++-
 ...nt.css => data-explorer-dashboard-widget.component.scss} |  4 +++-
 .../widget/data-explorer-dashboard-widget.component.ts      | 11 ++++++++++-
 .../components/widgets/base/base-data-explorer-widget.ts    | 10 ----------
 .../components/widgets/image/image-widget.component.css     |  6 ++++++
 .../components/widgets/image/image-widget.component.html    |  6 ------
 .../widgets/line-chart/line-chart-widget.component.css      |  6 ++++++
 .../widgets/line-chart/line-chart-widget.component.html     | 12 +-----------
 .../components/widgets/table/table-widget.component.css     |  3 ++-
 .../components/widgets/table/table-widget.component.html    |  7 -------
 10 files changed, 40 insertions(+), 38 deletions(-)

diff --git a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html
index ca8c803..5a00b39 100644
--- a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html
+++ b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html
@@ -18,7 +18,18 @@
 
 <div style="height:100%;">
     <div class="box">
-        <div class="h-100 p-0 row content" style="margin-left: 0px;margin-right: 0px;">
+        <div class="assemblyOptions sp-blue-bg m-0 row header h-40" *ngIf="editMode">
+            <div fxFlex="100" layout="row" fxLayoutAlign="end center">
+                <button mat-icon-button matTooltip="Download data" class="icon" (click)="downloadDataAsFile()" color="white">
+                    <i class="material-icons">get_app</i>
+                </button>
+                <button mat-button mat-icon-button color="white" (click)="removeWidget()">
+                    <i class="material-icons">clear</i>
+                </button>
+            </div>
+
+        </div>
+        <div class="h-100 p-0 row content gridster-item-content" style="margin-left: 0px;margin-right: 0px;">
             <!--        <div *ngIf="widget."></div>-->
             <div *ngIf="widgetLoaded" class="h-100">
                 <div *ngIf="widget.widgetType === 'table'" class="h-100 p-0">
diff --git a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.css b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
similarity index 92%
rename from ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.css
rename to ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
index dea206d..10dbc83 100644
--- a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.css
+++ b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
@@ -16,6 +16,8 @@
  *
  */
 
+@import '../../../../scss/variables';
+
 .h-100 {
     height:100%;
 }
@@ -40,7 +42,7 @@
     display: flex;
     flex-flow: column;
     height: 100%;
-    border:0px solid black;
+    border:3px solid $sp-color-accent-light;
 }
 
 .box .row.content {
diff --git a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.ts b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.ts
index 9aa4f2c..b72abdb 100644
--- a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.ts
+++ b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.ts
@@ -24,11 +24,12 @@ import { DataExplorerAddVisualizationDialogComponent } from '../../dialogs/add-w
 import { IDataViewDashboardItem } from '../../models/dataview-dashboard.model';
 import { DataViewDataExplorerService } from '../../services/data-view-data-explorer.service';
 import {DataExplorerWidgetModel} from "../../../core-model/gen/streampipes-model";
+import {DataDownloadDialog} from "../datadownloadDialog/dataDownload.dialog";
 
 @Component({
   selector: 'sp-data-explorer-dashboard-widget',
   templateUrl: './data-explorer-dashboard-widget.component.html',
-  styleUrls: ['./data-explorer-dashboard-widget.component.css']
+  styleUrls: ['./data-explorer-dashboard-widget.component.scss']
 })
 export class DataExplorerDashboardWidgetComponent implements OnInit {
 
@@ -88,4 +89,12 @@ export class DataExplorerDashboardWidgetComponent implements OnInit {
       }
     });
   }
+
+  downloadDataAsFile() {
+    const dialogRef = this.dialog.open(DataDownloadDialog, {
+      width: '600px',
+      data: { index: this.configuredWidget.dataLakeMeasure.measureName, date: this.viewDateRange },
+      panelClass: 'custom-dialog-container'
+    });
+  }
 }
diff --git a/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts b/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts
index 122c8a9..ed848e8 100644
--- a/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts
+++ b/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts
@@ -158,14 +158,4 @@ export abstract class BaseDataExplorerWidget implements OnChanges {
 
     return result;
   }
-
-  downloadDataAsFile() {
-    const dialogRef = this.dialog.open(DataDownloadDialog, {
-      width: '600px',
-      data: { index: this.dataExplorerWidget.dataLakeMeasure.measureName, date: this.viewDateRange },
-      panelClass: 'custom-dialog-container'
-
-    });
-  }
-
 }
diff --git a/ui/src/app/data-explorer/components/widgets/image/image-widget.component.css b/ui/src/app/data-explorer/components/widgets/image/image-widget.component.css
index 1986fe3..84e0b73 100644
--- a/ui/src/app/data-explorer/components/widgets/image/image-widget.component.css
+++ b/ui/src/app/data-explorer/components/widgets/image/image-widget.component.css
@@ -34,4 +34,10 @@
 
 ::ng-deep .mat-form-field-wrapper {
     padding: 0px !important;
+}
+
+.assemblyOptionsDataExplorer {
+    background: #f6f6f6;
+    border-bottom: 1px solid #ccc;
+    padding: 5px;
 }
\ No newline at end of file
diff --git a/ui/src/app/data-explorer/components/widgets/image/image-widget.component.html b/ui/src/app/data-explorer/components/widgets/image/image-widget.component.html
index b84b9f1..37f9add 100644
--- a/ui/src/app/data-explorer/components/widgets/image/image-widget.component.html
+++ b/ui/src/app/data-explorer/components/widgets/image/image-widget.component.html
@@ -21,12 +21,6 @@
     <div class="assemblyOptionsDataExplorer sp-blue-bg m-0 row header h-40" style="margin-left: 0px;margin-right: 0px;">
         <div fxFlex="100" layout="row" fxLayoutAlign="end center" style="margin-left: 0px;margin-right: 0px;">
             <sp-select-properties (changeSelectedProperties)="setSelectedColumn($event)" [availableProperties]="availableColumns" [selectedProperties]="selectedColumns"></sp-select-properties>
-            <button mat-icon-button matTooltip="Download data" class="icon" (click)="downloadDataAsFile()" color="white">
-                <i class="material-icons">get_app</i>
-            </button>
-            <button mat-button mat-icon-button color="white" (click)="removeWidget()">
-                <i class="material-icons">clear</i>
-            </button>
         </div>
     </div>
 
diff --git a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css
index eaf8444..9e2ee17 100644
--- a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css
+++ b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css
@@ -33,4 +33,10 @@
 
 .title-panel {
     font-size:20px;
+}
+
+.assemblyOptionsDataExplorer {
+    background: #f6f6f6;
+    border-bottom: 1px solid #ccc;
+    padding: 5px;
 }
\ No newline at end of file
diff --git a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
index 3a47cb2..761e667 100644
--- a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
+++ b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
@@ -17,7 +17,7 @@
   -->
 
 <div fxLayout="column" fxLayoutAlign="stretch">
-    <div class="assemblyOptions sp-blue-bg m-0 row header h-40" style="margin-left: 0px;margin-right: 0px;margin-top: 0px;">
+    <div class="assemblyOptionsDataExplorer sp-blue-bg m-0 row header h-40" style="margin-left: 0px;margin-right: 0px;margin-top: 0px;">
 
         <div fxFlex="100" layout="row" fxLayoutAlign="end center" style="margin-left: 0px;margin-right: 0px;">
             <sp-select-properties
@@ -59,16 +59,6 @@
                     (click)="updateData()" mat-button mat-icon-button color="white">
                 <i class="material-icons">autorenew</i>
             </button>
-
-            <button mat-icon-button matTooltip="Download data" class="icon" (click)="downloadDataAsFile()" color="white">
-                <i class="material-icons">get_app</i>
-            </button>
-<!--            <button mat-button mat-icon-button color="white" (click)="changeResolution()">-->
-<!--                <i class="material-icons">autorenew</i>-->
-<!--            </button>-->
-            <button mat-button mat-icon-button color="white" (click)="removeWidget()">
-                <i class="material-icons">clear</i>
-            </button>
         </div>
     </div>
 
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css
index e4606e1..b7ed4ce 100644
--- a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css
+++ b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css
@@ -30,6 +30,7 @@
 }
 
 .assemblyOptionsDataExplorer {
-    color: white;
+    background: #f6f6f6;
+    border-bottom: 1px solid #ccc;
     padding: 5px;
 }
\ No newline at end of file
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
index ff56778..0dd2ab7 100644
--- a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
+++ b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
@@ -33,13 +33,6 @@
                     [availableProperties]="availableColumns"
                     [selectedProperties]="selectedColumns">
             </sp-select-properties>
-
-            <button mat-icon-button matTooltip="Download data" class="icon" (click)="downloadDataAsFile()" color="white">
-                <i class="material-icons">get_app</i>
-            </button>
-            <button mat-button mat-icon-button color="white" (click)="removeWidget()">
-                <i class="material-icons">clear</i>
-            </button>
         </div>
     </div>
 


[incubator-streampipes] 02/03: [STREAMPIPES-79] Improve layout of data explorer widget settings

Posted by ri...@apache.org.
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 6e393f1d893b8c26f03b02327adb90f8ecb37f93
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Sun Aug 9 10:37:31 2020 +0200

    [STREAMPIPES-79] Improve layout of data explorer widget settings
---
 .../data-explorer-dashboard-panel.component.ts     |  4 +-
 .../time-selector/timeRangeSelector.component.scss | 29 -------
 .../data-explorer-dashboard-widget.component.html  |  1 -
 .../data-explorer-dashboard-widget.component.scss  |  2 +-
 .../line-chart/line-chart-widget.component.html    | 96 ++++++++++------------
 .../widgets/table/table-widget.component.html      |  7 +-
 .../aggregate-configuration.component.html         |  8 +-
 .../load-data-spinner.component.html               | 10 +--
 .../select-properties.component.html               |  2 +-
 ui/src/scss/main.scss                              |  1 +
 .../sp/forms.scss}                                 | 47 +++++------
 11 files changed, 77 insertions(+), 130 deletions(-)

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 8d13144..2ffcba4 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
@@ -87,8 +87,8 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
     dashboardItem.widgetId = widget._id;
     dashboardItem.id = widget._id;
     dashboardItem.widgetType = widget.widgetType;
-    dashboardItem.cols = 2;
-    dashboardItem.rows = 2;
+    dashboardItem.cols = 3;
+    dashboardItem.rows = 4;
     dashboardItem.x = 0;
     dashboardItem.y = 0;
     this.dashboard.widgets.push(dashboardItem);
diff --git a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.scss b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.scss
index e1b1c3d..fb54049 100644
--- a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.scss
+++ b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.scss
@@ -30,19 +30,6 @@
     margin-right: 10px;
 }
 
-mat-form-field.mat-form-field.form-field-size {
-    font-size: 12px;
-}
-
-mat-form-field.mat-form-field.form-field-size-smaller {
-    font-size: 10px;
-}
-
-.form-field-margin .mat-form-field-wrapper{
-    margin-bottom: -1.25em;
-    padding-bottom: 1.25em;
-}
-
 .button-margin {
     border-radius: 0;
     padding-left: 4px;
@@ -63,19 +50,3 @@ mat-form-field.mat-form-field.form-field-size-smaller {
     border: 1px solid $sp-color-accent;
     background: white;
 }
-
-.smaller-button-font-size.mat-raised-button {
-    font-size: 0.8em;
-    letter-spacing: 0.05em;
-}
-
-.icon-button-font-size.mat-button {
-    font-size: 0.8em;
-    letter-spacing: 0.05em;
-}
-
-.button-icon.mat-button {
-    min-width:0;
-    border-radius: 0;
-    padding: 0 4px;
-}
diff --git a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html
index 5a00b39..6202b08 100644
--- a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html
+++ b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.html
@@ -30,7 +30,6 @@
 
         </div>
         <div class="h-100 p-0 row content gridster-item-content" style="margin-left: 0px;margin-right: 0px;">
-            <!--        <div *ngIf="widget."></div>-->
             <div *ngIf="widgetLoaded" class="h-100">
                 <div *ngIf="widget.widgetType === 'table'" class="h-100 p-0">
                     <sp-data-explorer-table-widget
diff --git a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
index 10dbc83..64ce696 100644
--- a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
+++ b/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
@@ -23,7 +23,7 @@
 }
 
 .h-40 {
-    height:40px;
+    height:35px;
 }
 
 .p-0 {
diff --git a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
index 761e667..fba2b4b 100644
--- a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
+++ b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
@@ -19,58 +19,53 @@
 <div fxLayout="column" fxLayoutAlign="stretch">
     <div class="assemblyOptionsDataExplorer sp-blue-bg m-0 row header h-40" style="margin-left: 0px;margin-right: 0px;margin-top: 0px;">
 
-        <div fxFlex="100" layout="row" fxLayoutAlign="end center" style="margin-left: 0px;margin-right: 0px;">
-            <sp-select-properties
-                    label="Select Properties"
-                    multiple = true
-                    style="margin-right: 10px;"
-                    (changeSelectedProperties)="setSelectedColumn($event)"
-                    [availableProperties]="availableColumns"
-                    [selectedProperties]="selectedColumns">
-            </sp-select-properties>
-
-            <sp-select-properties
-                    label="Select Label Column"
-                    multiple = false
-                    style="margin-right: 10px;"
-                    *ngIf="showLabelColumnSelection"
-                    (changeSelectedProperties)="setSelectedLabelColumn($event)"
-                    [availableProperties]="availableNonNumericColumns"
-                    [selectedProperties]="selectedNonNumericColumn">
-            </sp-select-properties>
-
-            <mat-slide-toggle [(ngModel)]="advancedSettingsActive" (change)="handlingAdvancedToggleChange()">Advanced</mat-slide-toggle>
-            <sp-aggregate-configuration
-                    *ngIf="advancedSettingsActive"
-                    [(aggregationValue)]="aggregationValue"
-                    [(aggregationTimeUnit)]="aggregationTimeUnit">
-            </sp-aggregate-configuration>
-
-            <sp-group-configuration
-                    [dimensionProperties]="dimensionProperties"
-                    *ngIf="advancedSettingsActive"
-                    [(groupValue)]="groupValue"
-                    [(showCountValue)]="showCountValue">
-            </sp-group-configuration>
-
-
-            <button
-                    *ngIf="advancedSettingsActive"
-                    (click)="updateData()" mat-button mat-icon-button color="white">
-                <i class="material-icons">autorenew</i>
-            </button>
+        <div fxFlex="100" fxLayout="row">
+            <div fxFlex="100" layout="row" fxLayoutAlign="start center" style="margin-left: 0px;margin-right: 0px;">
+                <sp-select-properties
+                        label="Select Properties"
+                        multiple = true
+                        style="margin-right: 10px;"
+                        (changeSelectedProperties)="setSelectedColumn($event)"
+                        [availableProperties]="availableColumns"
+                        [selectedProperties]="selectedColumns">
+                </sp-select-properties>
+
+                <sp-select-properties
+                        label="Select Label Column"
+                        multiple = false
+                        style="margin-right: 10px;"
+                        *ngIf="showLabelColumnSelection"
+                        (changeSelectedProperties)="setSelectedLabelColumn($event)"
+                        [availableProperties]="availableNonNumericColumns"
+                        [selectedProperties]="selectedNonNumericColumn">
+                </sp-select-properties>
+                <sp-aggregate-configuration
+                        *ngIf="advancedSettingsActive"
+                        [(aggregationValue)]="aggregationValue"
+                        [(aggregationTimeUnit)]="aggregationTimeUnit">
+                </sp-aggregate-configuration>
+
+                <sp-group-configuration
+                        [dimensionProperties]="dimensionProperties"
+                        *ngIf="advancedSettingsActive"
+                        [(groupValue)]="groupValue"
+                        [(showCountValue)]="showCountValue">
+                </sp-group-configuration>
+                <button
+                        *ngIf="advancedSettingsActive"
+                        (click)="updateData()" mat-button mat-icon-button color="primary">
+                    <mat-icon>autorenew</mat-icon>
+                </button>
+            </div>
+            <div fxFlex fxLayoutAlign="end center">
+                <mat-slide-toggle color="primary" [(ngModel)]="advancedSettingsActive" (change)="handlingAdvancedToggleChange()">Aggregate</mat-slide-toggle>
+            </div>
         </div>
     </div>
-
-
-    <div style="width: 100%; height: 500px">
-
-
-        <div fxLayout="row">
+    <div fxFlex="100" fxLayout="column" style="width: 100%;">
+        <div fxLayout="column" fxFlex="100" fxLayoutAlign="center center">
             <sp-load-data-spinner *ngIf="showIsLoadingData"></sp-load-data-spinner>
-
             <sp-no-data-in-date-range *ngIf="showNoDataInDateRange" [viewDateRange]="viewDateRange"></sp-no-data-in-date-range>
-
             <!-- Chart -->
             <plotly-plot fxFlex
                          *ngIf="data !== undefined && !showNoDataInDateRange"
@@ -81,12 +76,7 @@
                          (relayout)="handleDefaultModeBarButtonClicks($event)"
                          (selecting)="selectDataPoints($event)">
             </plotly-plot>
-
         </div>
-
-
     </div>
-
-
 </div>
 
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
index 0dd2ab7..5cf8d1f 100644
--- a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
+++ b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
@@ -19,11 +19,10 @@
 <div fxLayout="column" fxLayoutAlign="stretch">
     <div class="assemblyOptionsDataExplorer sp-blue-bg m-0 row header h-40" style="margin-left: 0px;margin-right: 0px;">
 
-        <div fxFlex="100" layout="row" fxLayoutAlign="end center" style="margin-left: 0px;margin-right: 0px;">
-            <mat-form-field appearance="outline" class="sp_form_field_wrapper" style="margin-right: 5px;">
-                <mat-label>Search</mat-label>
+        <div fxFlex="100" layout="row" fxLayoutAlign="start center" style="margin-left: 0px;margin-right: 0px;">
+            <mat-form-field appearance="standard" class="form-field-margin form-field-size-smaller" style="margin-right: 5px;">
+                <mat-label><mat-icon>search</mat-icon><span>&nbsp;Search</span></mat-label>
                 <input matInput (input)="onFilterChange($event.target.value)" >
-
             </mat-form-field>
 
             <sp-select-properties
diff --git a/ui/src/app/data-explorer/components/widgets/utils/aggregate-configuration/aggregate-configuration.component.html b/ui/src/app/data-explorer/components/widgets/utils/aggregate-configuration/aggregate-configuration.component.html
index a4c5ea7..94e8adc 100644
--- a/ui/src/app/data-explorer/components/widgets/utils/aggregate-configuration/aggregate-configuration.component.html
+++ b/ui/src/app/data-explorer/components/widgets/utils/aggregate-configuration/aggregate-configuration.component.html
@@ -18,10 +18,10 @@
 
 
 <div fxLayout="column" fxLayoutAlign="stretch">
-    <div fxFlex="100" layout="row" fxLayoutAlign="end center" style="margin-left: 0px;margin-right: 0px;">
-        <div   class="option" style="margin-left: 5px">
+    <div fxFlex="100" layout="row" fxLayoutAlign="start center" style="margin-left: 0px;margin-right: 0px;">
+        <div class="option" style="margin-left: 5px">
 
-            <mat-form-field style="width: 100px">
+            <mat-form-field class="form-field-margin form-field-size-smaller">
                 <mat-select [(ngModel)]="aggregationTimeUnit" (ngModelChange)="onModelChange($event,'aggregationTimeUnit')">
                     <mat-option style="background-color: #FFFFFF" value="ms">Milliseconds</mat-option>
                     <mat-option style="background-color: #FFFFFF" value="s">Second</mat-option>
@@ -34,7 +34,7 @@
                 </mat-select>
                 <mat-label>Unit</mat-label>
             </mat-form-field>
-            <mat-form-field style="width: 80px; margin-left: 5px">
+            <mat-form-field class="form-field-margin form-field-size-smaller">
                 <input matInput type="number" [(ngModel)]="aggregationValue" (ngModelChange)="onModelChange($event,'aggregationValue')">
                 <mat-label>Value</mat-label>
             </mat-form-field>
diff --git a/ui/src/app/data-explorer/components/widgets/utils/load-data-spinner/load-data-spinner.component.html b/ui/src/app/data-explorer/components/widgets/utils/load-data-spinner/load-data-spinner.component.html
index 4dbe713..571e11f 100644
--- a/ui/src/app/data-explorer/components/widgets/utils/load-data-spinner/load-data-spinner.component.html
+++ b/ui/src/app/data-explorer/components/widgets/utils/load-data-spinner/load-data-spinner.component.html
@@ -16,11 +16,7 @@
   ~
   -->
 
-<div fxLayout="column" fxLayoutAlign="space-around center" >
-    <div  fxLayout="row" fxLayoutAlign="center center" style="margin-top: 30px">
-        <mat-spinner></mat-spinner>
-    </div>
-    <div  fxLayout="row" fxLayoutAlign="center center" style="margin-top: 30px">
-        <h3>Loading Data</h3>
-    </div>
+<div fxFlex="100" fxLayout="column" fxLayoutAlign="center center">
+    <mat-spinner [diameter]="50"></mat-spinner>
+    <h3>Loading Data</h3>
 </div>
diff --git a/ui/src/app/data-explorer/components/widgets/utils/select-properties/select-properties.component.html b/ui/src/app/data-explorer/components/widgets/utils/select-properties/select-properties.component.html
index 8d346f4..d926c27 100644
--- a/ui/src/app/data-explorer/components/widgets/utils/select-properties/select-properties.component.html
+++ b/ui/src/app/data-explorer/components/widgets/utils/select-properties/select-properties.component.html
@@ -16,7 +16,7 @@
   ~
   -->
 
-<mat-form-field appearance="outline" class="sp_form_field_wrapper">
+<mat-form-field appearance="standard" class="form-field-margin form-field-size-smaller">
     <mat-label>{{this.label}}</mat-label>
     <mat-select [ngModel]="this.selectedProperties" (selectionChange)="triggerSelectedProperties($event.value)" [multiple]="multiple">
         <mat-option *ngFor="let column of availableProperties" [value]="column" style="background-color: #FFFFFF">
diff --git a/ui/src/scss/main.scss b/ui/src/scss/main.scss
index eb3c486..b5299d1 100644
--- a/ui/src/scss/main.scss
+++ b/ui/src/scss/main.scss
@@ -50,6 +50,7 @@
 @import './sp/buttons';
 @import './sp/buttons.ng1';
 @import './sp/spinner';
+@import './sp/forms';
 @import './sp/dialog';
 @import './sp/pipeline-element-options';
 @import './sp/pipeline-element-loading';
diff --git a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss b/ui/src/scss/sp/forms.scss
similarity index 62%
copy from ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
copy to ui/src/scss/sp/forms.scss
index 10dbc83..dee3437 100644
--- a/ui/src/app/data-explorer/components/widget/data-explorer-dashboard-widget.component.scss
+++ b/ui/src/scss/sp/forms.scss
@@ -1,4 +1,4 @@
-/*
+/*!
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
@@ -16,40 +16,31 @@
  *
  */
 
-@import '../../../../scss/variables';
-
-.h-100 {
-    height:100%;
-}
-
-.h-40 {
-    height:40px;
-}
-
-.p-0 {
-    padding:0;
-}
-
-.p-20 {
-    padding: 20px;
+mat-form-field.mat-form-field.form-field-size {
+  font-size: 12px;
 }
 
-.m-0 {
-    margin:0;
+mat-form-field.mat-form-field.form-field-size-smaller {
+  font-size: 10px;
 }
 
-.box {
-    display: flex;
-    flex-flow: column;
-    height: 100%;
-    border:3px solid $sp-color-accent-light;
+.form-field-margin .mat-form-field-wrapper{
+  margin-bottom: -1.25em;
+  padding-bottom: 1.25em;
 }
 
-.box .row.content {
-    flex: 1 1 auto;
+.smaller-button-font-size.mat-raised-button {
+  font-size: 0.8em;
+  letter-spacing: 0.05em;
 }
 
-.box .row.header {
-    flex: 0 1 auto;
+.icon-button-font-size.mat-button {
+  font-size: 0.8em;
+  letter-spacing: 0.05em;
 }
 
+.button-icon.mat-button {
+  min-width:0;
+  border-radius: 0;
+  padding: 0 4px;
+}
\ No newline at end of file


[incubator-streampipes] 03/03: [STREAMPIPES-79] Automatically resize data explorer widgets

Posted by ri...@apache.org.
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 a49b053f50d029974082a2ae772c8a4bd0865c0e
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Sun Aug 9 13:49:55 2020 +0200

    [STREAMPIPES-79] Automatically resize data explorer widgets
---
 .../data-explorer-dashboard-panel.component.ts     | 11 ++----
 .../line-chart/line-chart-widget.component.css     | 16 +++------
 .../line-chart/line-chart-widget.component.html    | 42 ++++++++++++----------
 .../line-chart/line-chart-widget.component.ts      | 27 ++++++++++----
 .../widgets/table/table-widget.component.html      | 13 ++++---
 ...t.component.css => table-widget.component.scss} | 10 +++---
 .../widgets/table/table-widget.component.ts        |  2 +-
 ui/src/scss/main.scss                              |  1 +
 .../sp/widgets.scss}                               | 32 +++++++++--------
 9 files changed, 82 insertions(+), 72 deletions(-)

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 2ffcba4..32da684 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
@@ -98,19 +98,13 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
     this.dataViewDataExplorerService.updateDashboard(this.dashboard).subscribe(result => {
         if (this.widgetsToUpdate.size > 0) {
             forkJoin(this.prepareWidgetUpdates()).subscribe(result => {
-                if (closeEditMode) {
-                  this.closeEditModeAndReloadDashboard(false);
-                }
+                  this.closeEditModeAndReloadDashboard(closeEditMode);
             });
         } else {
             this.deleteWidgets();
-            if (closeEditMode) {
-              this.closeEditModeAndReloadDashboard(false);
-            }
+            this.closeEditModeAndReloadDashboard(false);
         }
     });
-
-    this.closeEditModeAndReloadDashboard(false);
   }
 
   closeEditModeAndReloadDashboard(closeEditMode: boolean) {
@@ -150,7 +144,6 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
   }
 
   toggleGrid(gridVisible: boolean) {
-    console.log(this.dashboardGrid);
     this.dashboardGrid.toggleGrid();
   }
 }
diff --git a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css
index 9e2ee17..644d91a 100644
--- a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css
+++ b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.css
@@ -16,14 +16,6 @@
  *
  */
 
-.circleNumber {
-    width:100%;
-    height: 100%;
-    text-align: center;
-    left: 50%;
-    display:inline-grid;
-    align-content: center;
-}
 
 
 .numberItem {
@@ -35,8 +27,8 @@
     font-size:20px;
 }
 
-.assemblyOptionsDataExplorer {
-    background: #f6f6f6;
-    border-bottom: 1px solid #ccc;
-    padding: 5px;
+.plotly-container {
+    width: 100%;
+    align-self:start;
+    height: calc(100% - 40px);
 }
\ No newline at end of file
diff --git a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
index fba2b4b..c56025a 100644
--- a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
+++ b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.html
@@ -16,9 +16,8 @@
   ~
   -->
 
-<div fxLayout="column" fxLayoutAlign="stretch">
-    <div class="assemblyOptionsDataExplorer sp-blue-bg m-0 row header h-40" style="margin-left: 0px;margin-right: 0px;margin-top: 0px;">
-
+<div class="widget-content">
+    <div class="widget-inner-options" style="margin-left: 0;margin-right: 0;margin-top: 0;">
         <div fxFlex="100" fxLayout="row">
             <div fxFlex="100" layout="row" fxLayoutAlign="start center" style="margin-left: 0px;margin-right: 0px;">
                 <sp-select-properties
@@ -62,21 +61,28 @@
             </div>
         </div>
     </div>
-    <div fxFlex="100" fxLayout="column" style="width: 100%;">
-        <div fxLayout="column" fxFlex="100" fxLayoutAlign="center center">
-            <sp-load-data-spinner *ngIf="showIsLoadingData"></sp-load-data-spinner>
-            <sp-no-data-in-date-range *ngIf="showNoDataInDateRange" [viewDateRange]="viewDateRange"></sp-no-data-in-date-range>
-            <!-- Chart -->
-            <plotly-plot fxFlex
-                         *ngIf="data !== undefined && !showNoDataInDateRange"
-                         flex
-                         [data]="data"
-                         [layout]="graph.layout"
-                         [config]="graph.config"
-                         (relayout)="handleDefaultModeBarButtonClicks($event)"
-                         (selecting)="selectDataPoints($event)">
-            </plotly-plot>
-        </div>
+    <div class="widget-inner-content" style="height: 100%;overflow-y:hidden;">
+        <sp-load-data-spinner *ngIf="showIsLoadingData"></sp-load-data-spinner>
+        <sp-no-data-in-date-range *ngIf="showNoDataInDateRange" [viewDateRange]="viewDateRange"></sp-no-data-in-date-range>
+        <plotly-plot *ngIf="data !== undefined && !showNoDataInDateRange && !showIsLoadingData"
+                     class="plotly-container"
+                     [data]="data"
+                     [layout]="graph.layout"
+                     [config]="graph.config"
+                     (relayout)="handleDefaultModeBarButtonClicks($event)"
+                     (selecting)="selectDataPoints($event)">
+        </plotly-plot>
     </div>
 </div>
+<!--<div fxLayout="column" fxLayoutAlign="stretch">-->
+
+<!--    <div fxFlex="100" fxLayout="column" style="width: 100%;">-->
+<!--        <div fxLayout="column" fxFlex="100" fxLayoutAlign="center center">-->
+<!--            -->
+
+            <!-- Chart -->
+
+<!--        </div>-->
+<!--    </div>-->
+<!--</div>-->
 
diff --git a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts
index 892333f..55dedda 100644
--- a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts
+++ b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts
@@ -16,7 +16,7 @@
  *
  */
 
-import { Component, OnInit, Renderer2 } from '@angular/core';
+import {AfterViewInit, Component, OnInit, Renderer2} from '@angular/core';
 import { MatDialog } from '@angular/material/dialog';
 import { PlotlyService } from 'angular-plotly.js';
 import { DataResult } from '../../../../core-model/datalake/DataResult';
@@ -27,6 +27,7 @@ import { LabelingDialog } from '../../../../core-ui/linechart/labeling-tool/dial
 import { ColorService } from '../../../../core-ui/linechart/labeling-tool/services/color.service';
 import { BaseDataExplorerWidget } from '../base/base-data-explorer-widget';
 import {EventPropertyUnion} from "../../../../core-model/gen/streampipes-model";
+import {ResizeService} from "../../../services/resize.service";
 
 @Component({
   selector: 'sp-data-explorer-line-chart-widget',
@@ -62,8 +63,12 @@ export class LineChartWidgetComponent extends BaseDataExplorerWidget implements
   showCountValue = false;
 
 
-  constructor(public dialog: MatDialog, public plotlyService: PlotlyService, public colorService: ColorService,
-              public renderer: Renderer2, protected dataLakeRestService: DatalakeRestService) {
+  constructor(public dialog: MatDialog,
+              public plotlyService: PlotlyService,
+              public colorService: ColorService,
+              public renderer: Renderer2,
+              protected dataLakeRestService: DatalakeRestService,
+              private resizeService: ResizeService) {
     super(dataLakeRestService, dialog);
   }
 
@@ -109,8 +114,8 @@ export class LineChartWidgetComponent extends BaseDataExplorerWidget implements
   graph = {
     layout: {
       autosize: true,
-      plot_bgcolor: '#fafafa',
-      paper_bgcolor: '#fafafa',
+      plot_bgcolor: '#fff',
+      paper_bgcolor: '#fff',
       xaxis: {
         type: 'date',
       },
@@ -141,7 +146,6 @@ export class LineChartWidgetComponent extends BaseDataExplorerWidget implements
 
 
   ngOnInit(): void {
-
     this.availableColumns = this.getNumericProperty(this.dataExplorerWidget.dataLakeMeasure.eventSchema);
     this.dimensionProperties = this.getDimensionProperties(this.dataExplorerWidget.dataLakeMeasure.eventSchema);
     this.availableNonNumericColumns = this.getNonNumericProperties(this.dataExplorerWidget.dataLakeMeasure.eventSchema);
@@ -153,8 +157,17 @@ export class LineChartWidgetComponent extends BaseDataExplorerWidget implements
     }
     this.xKey = this.getTimestampProperty(this.dataExplorerWidget.dataLakeMeasure.eventSchema).runtimeName;
     this.yKeys = this.getRuntimeNames(this.selectedColumns);
-    this.nonNumericKey = this.selectedNonNumericColumn.runtimeName;
+    //this.nonNumericKey = this.selectedNonNumericColumn.runtimeName;
     this.updateData();
+    this.resizeService.resizeSubject.subscribe(info => {
+      if (info.gridsterItem.id === this.gridsterItem.id) {
+        setTimeout(() => {
+          this.graph.layout.autosize = false;
+          (this.graph.layout as any).width = (info.gridsterItemComponent.width - 10);
+          (this.graph.layout as any).height = (info.gridsterItemComponent.height - 80);
+        }, 100)
+      }
+    });
   }
 
   updateData() {
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
index 5cf8d1f..0b2f044 100644
--- a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
+++ b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.html
@@ -16,9 +16,8 @@
   ~
   -->
 
-<div fxLayout="column" fxLayoutAlign="stretch">
-    <div class="assemblyOptionsDataExplorer sp-blue-bg m-0 row header h-40" style="margin-left: 0px;margin-right: 0px;">
-
+<div class="widget-content">
+    <div class="widget-inner-options" style="margin-left: 0;margin-right: 0;margin-top: 0;">
         <div fxFlex="100" layout="row" fxLayoutAlign="start center" style="margin-left: 0px;margin-right: 0px;">
             <mat-form-field appearance="standard" class="form-field-margin form-field-size-smaller" style="margin-right: 5px;">
                 <mat-label><mat-icon>search</mat-icon><span>&nbsp;Search</span></mat-label>
@@ -34,8 +33,8 @@
             </sp-select-properties>
         </div>
     </div>
-
-    <div style=" overflow-y: auto;" [style.max-height.px]="gridsterItem.rows * 100 - 40">
+    <div class="widget-inner-content" style="overflow-y: auto;">
+<!--    <div style=" overflow-y: auto;" [style.max-height.px]="gridsterItem.rows * 100 - 40">-->
 
         <sp-load-data-spinner *ngIf="showIsLoadingData"></sp-load-data-spinner>
 
@@ -53,11 +52,11 @@
                     *ngFor="let element of this.selectedColumns"
                     [cdkColumnDef]="element.runtimeName">
                 <div *ngIf="!isTimestamp(element)">
-                    <th mat-header-cell mat-sort-header *matHeaderCellDef mat-sort-header><label style="font-size: large">{{element.runtimeName}}</label></th>
+                    <th mat-header-cell mat-sort-header *matHeaderCellDef mat-sort-header><label class="column-header">{{element.runtimeName}}</label></th>
                     <td mat-cell *matCellDef="let row"style="text-align: center;">{{row[element.runtimeName]}}</td>
                 </div>
                 <div *ngIf="isTimestamp(element)">
-                    <th mat-header-cell mat-sort-header *matHeaderCellDef mat-sort-header><label style="font-size: large">{{element.runtimeName}}</label></th>
+                    <th mat-header-cell mat-sort-header *matHeaderCellDef mat-sort-header><label class="column-header">{{element.runtimeName}}</label></th>
                     <td mat-cell  *matCellDef="let row"style="text-align: left;">{{row[element.runtimeName]| date:'yyyy-MM-dd HH:mm:ss'}}</td>
                 </div>
             </ng-container>
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.scss
similarity index 88%
copy from ui/src/app/data-explorer/components/widgets/table/table-widget.component.css
copy to ui/src/app/data-explorer/components/widgets/table/table-widget.component.scss
index b7ed4ce..1a94e78 100644
--- a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css
+++ b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.scss
@@ -16,6 +16,8 @@
  *
  */
 
+@import '../../../../../scss/variables';
+
 .table {
     width: 100%;
 }
@@ -29,8 +31,8 @@
     font-size:20px;
 }
 
-.assemblyOptionsDataExplorer {
-    background: #f6f6f6;
-    border-bottom: 1px solid #ccc;
-    padding: 5px;
+.column-header {
+    font-size:14px;
+    font-weight: bold;
+    color: #393939;
 }
\ No newline at end of file
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.ts b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.ts
index a52d8a1..101ff85 100644
--- a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.ts
+++ b/ui/src/app/data-explorer/components/widgets/table/table-widget.component.ts
@@ -28,7 +28,7 @@ import {EventPropertyUnion} from "../../../../core-model/gen/streampipes-model";
 @Component({
   selector: 'sp-data-explorer-table-widget',
   templateUrl: './table-widget.component.html',
-  styleUrls: ['./table-widget.component.css']
+  styleUrls: ['./table-widget.component.scss']
 })
 export class TableWidgetComponent extends BaseDataExplorerWidget implements OnInit, OnDestroy {
 
diff --git a/ui/src/scss/main.scss b/ui/src/scss/main.scss
index b5299d1..1468335 100644
--- a/ui/src/scss/main.scss
+++ b/ui/src/scss/main.scss
@@ -61,6 +61,7 @@
 @import './sp/dialog.ng5';
 @import './sp/feedback.ng1';
 @import './sp/pipeline-assembly.scss';
+@import './sp/widgets.scss';
 
 @import './sp/input.ng1';
 @import './sp/documentation.ng1';
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css b/ui/src/scss/sp/widgets.scss
similarity index 68%
rename from ui/src/app/data-explorer/components/widgets/table/table-widget.component.css
rename to ui/src/scss/sp/widgets.scss
index b7ed4ce..1f4164b 100644
--- a/ui/src/app/data-explorer/components/widgets/table/table-widget.component.css
+++ b/ui/src/scss/sp/widgets.scss
@@ -1,4 +1,4 @@
-/*
+/*!
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
@@ -16,21 +16,25 @@
  *
  */
 
-.table {
-    width: 100%;
+.widget-content {
+  width:100%;
+  height: calc(100% - 40px);
 }
 
-.numberItem {
-    font-size:60px;
-    font-weight:bold;
+.widget-inner-options {
+  background: #f6f6f6;
+  border-bottom: 1px solid #ccc;
+  padding: 5px;
+  height: 40px;
 }
 
-.title-panel {
-    font-size:20px;
+.widget-inner-content {
+  width: 100%;
+  height: calc(100% - 40px);
+  align-content: center;
+  align-items: center;
+  display:flex;
+  justify-content: center;
+  overflow-y: auto;
+  overflow-x: auto;
 }
-
-.assemblyOptionsDataExplorer {
-    background: #f6f6f6;
-    border-bottom: 1px solid #ccc;
-    padding: 5px;
-}
\ No newline at end of file