@schneideress/dashboardframework 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -815,18 +815,18 @@
815
815
  // outerMarginLeft: 10,
816
816
  useTransformPositioning: true,
817
817
  mobileBreakpoint: 640,
818
- minCols: 100,
819
- maxCols: 100,
820
- minRows: 20,
821
- maxRows: 2000,
822
- maxItemCols: 100,
823
- minItemCols: 20,
824
- maxItemRows: 100,
825
- minItemRows: 20,
826
- maxItemArea: 250000,
827
- minItemArea: 400,
828
- defaultItemCols: 20,
829
- defaultItemRows: 20,
818
+ minCols: 10,
819
+ maxCols: 10,
820
+ minRows: 2,
821
+ maxRows: 100,
822
+ maxItemCols: 10,
823
+ minItemCols: 2,
824
+ maxItemRows: 1000,
825
+ minItemRows: 2,
826
+ maxItemArea: 1000,
827
+ minItemArea: 4,
828
+ defaultItemCols: 2,
829
+ defaultItemRows: 2,
830
830
  // fixedColWidth: 105,
831
831
  // fixedRowHeight: 105,
832
832
  keepFixedHeightInMobile: false,
@@ -875,8 +875,8 @@
875
875
  this.widgetList = Array();
876
876
  this.gridheight = 300;
877
877
  this.isWidgetLoaded = false;
878
- this.widgetHeight = 30;
879
- this.widgetWidth = 50;
878
+ this.widgetHeight = 3;
879
+ this.widgetWidth = 5;
880
880
  }
881
881
  /**
882
882
  * @return {?}
@@ -926,6 +926,8 @@
926
926
  areaContext.setAreaHeight();
927
927
  areaContext.updateWidgets();
928
928
  });
929
+ console.log('gridster options are');
930
+ console.log(this.options);
929
931
  };
930
932
  /** To initiate eventbus subsctiptions */
931
933
  /**
@@ -1139,7 +1141,7 @@
1139
1141
  t.widgetInfo.rowHeight = curRowHeight;
1140
1142
  }));
1141
1143
  if (this.options.api) {
1142
- areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 2;
1144
+ areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 5;
1143
1145
  }
1144
1146
  if (areaHeight < 600) {
1145
1147
  areaHeight = 600;
@@ -1173,7 +1175,7 @@
1173
1175
  this.widgetList.splice(this.widgetList.indexOf(widget[0]), 1);
1174
1176
  this.setAreaHeight();
1175
1177
  if (!isalertDisabled) {
1176
- this.notifier.notify('success', " " + this.translateService.translate('Widget') + " [" + widget[0].widgetInfo.widgetTitle + "] " + this.translateService.translate('DeletedSuccesfully') + " ");
1178
+ this.notifier.notify('success', " " + this.translateService.translate('Widget') + " " + widget[0].widgetInfo.widgetTitle + " " + this.translateService.translate('DeletedSuccesfully') + " ");
1177
1179
  }
1178
1180
  this.options.compactType = 'compactLeft&Up';
1179
1181
  this.options.api.optionsChanged();
@@ -1773,7 +1775,7 @@
1773
1775
  { type: core.Component, args: [{
1774
1776
  selector: 'ra-widget-container',
1775
1777
  template: "<div class=\"wc-wrapper\">\r\n <div class=\"wcheader\">\r\n <div class=\"col-md-12 wc-mover\" style=\"padding-left: 0px;\">\r\n <div style=\"display:flex\">\r\n <div class=\"col-md-11 float-left widget-move\" style=\"width:96%;padding-left: 0px;\">{{data.widgetInfo.widgetTitle}}\r\n </div>\r\n <div class=\"col-md-1\" style=\"cursor:default;\">\r\n <div class=\"float-right\" style=\"display: flex;\">\r\n <div *ngIf=\"isDownloadIconVisible\"> <i class=\"far fa-download\" (click)=\"downloadClicked\"></i></div>\r\n <div class=\"pr-3\"><i [ngClass]=\"lockClass\"\r\n [attr.title]=\"lockStatus=='lock' ? 'Locked' : 'Partially Locked'\"></i></div>\r\n <div class=\"dropdown\">\r\n <div class=\"dropbtn gearIcon\"> <i class=\"fal fa-cog\"></i></div>\r\n <div class=\"dropdown-content widget-config-item\">\r\n <a (click)=\"editWidget()\">\r\n <i class=\"fal fa-edit\"></i>\r\n <span>{{'Edit'|translate}}</span>\r\n </a>\r\n <a (click)=\"copyWidget()\">\r\n <i class=\"fal fa-copy\"></i>\r\n <span>{{'Copy'|translate}}</span>\r\n </a>\r\n <a (click)=\"moveWidget()\">\r\n <i class=\"fal fa-arrows-alt\"></i>\r\n <span>{{'Move'|translate}}</span>\r\n </a>\r\n <hr class=\"hr\">\r\n <a (click)=\"deleteWidget()\">\r\n <i class=\"fal fa-times\" style=\"padding-left: 3px;\"></i>\r\n <span>{{'Delete'|translate}}</span>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"wcBody\" >\r\n <perfect-scrollbar [scrollIndicators]=\"true\">\r\n <div #ctlWidget></div>\r\n </perfect-scrollbar>\r\n </div>\r\n</div>",
1776
- styles: [".wcheader{width:100%;height:46px;background:#fff;color:#3dcd58;font-family:\"Arial Rounded MT\";font-size:16px;position:absolute;left:0;top:0;padding:15px 0 0}.wc-wrapper{height:100%;position:relative;margin:auto 15px}.wc-mover{cursor:all-scroll}.wcBody{width:100%;position:absolute;top:46px;left:0;bottom:0}.wcBodyBorder{border:1px dashed #e6e2e2}.sp_icon{float:left;margin:0 15% 0 0}.dropbtn{cursor:pointer;color:#42b4e6}.dropdown{visibility:hidden;opacity:0;transition:visibility,opacity .5s linear;position:relative}.dropdown hr{margin:0!important}.dropdown-content{display:none;position:absolute;right:0;background-color:#f9f9f9;min-width:100px;box-shadow:0 8px 16px 8px rgba(0,0,0,.2);z-index:2;font-size:12px;font-family:\"Arial Rounded MT\"}.dropdown-content a{color:#000;padding:5px 16px;text-decoration:none;display:block;cursor:pointer}.dropdown-content a:hover{background-color:#f1f1f1}.dropdown:hover .dropdown-content{display:block;-webkit-animation:.3s ease-out slide-down;animation:.3s ease-out slide-down}.wc-wrapper:hover .dropdown{visibility:visible;opacity:1}.dropdown:hover .dropbtn{color:#2b7797}.gearIcon{color:#42b4e6}.hr{border:0;border-top:1px solid rgba(0,0,0,.1)}@keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0)}}.widget-config-item i{font-size:17px;color:#42b4e6}.widget-config-item span{font-size:12px;font:inherit;padding-left:12px;color:#42b4e6}.locked{color:#42b4e6}.partiallocked{color:#a0d9f2}.unlocked{display:none}"]
1778
+ styles: [".wcheader{width:100%;height:46px;background:#fff;color:#3dcd58;font-family:\"Arial Rounded MT\";font-size:16px;position:absolute;left:0;top:0;padding:15px 0 0}.wc-wrapper{height:100%;position:relative;margin:10px}.wc-mover{cursor:all-scroll}.wcBody{width:100%;position:absolute;top:46px;left:0;bottom:0}.wcBodyBorder{border:1px dashed #e6e2e2}.sp_icon{float:left;margin:0 15% 0 0}.dropbtn{cursor:pointer;color:#42b4e6}.dropdown{visibility:hidden;opacity:0;transition:visibility,opacity .5s linear;position:relative}.dropdown hr{margin:0!important}.dropdown-content{display:none;position:absolute;right:0;background-color:#f9f9f9;min-width:100px;box-shadow:0 8px 16px 8px rgba(0,0,0,.2);z-index:2;font-size:12px;font-family:\"Arial Rounded MT\"}.dropdown-content a{color:#000;padding:5px 16px;text-decoration:none;display:block;cursor:pointer}.dropdown-content a:hover{background-color:#f1f1f1}.dropdown:hover .dropdown-content{display:block;-webkit-animation:.3s ease-out slide-down;animation:.3s ease-out slide-down}.wc-wrapper:hover .dropdown{visibility:visible;opacity:1}.dropdown:hover .dropbtn{color:#2b7797}.gearIcon{color:#42b4e6}.hr{border:0;border-top:1px solid rgba(0,0,0,.1)}@keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0)}}.widget-config-item i{font-size:17px;color:#42b4e6}.widget-config-item span{font-size:12px;font:inherit;padding-left:12px;color:#42b4e6}.locked{color:#42b4e6}.partiallocked{color:#a0d9f2}.unlocked{display:none}"]
1777
1779
  }] }
1778
1780
  ];
1779
1781
  /** @nocollapse */
@@ -6879,7 +6881,7 @@
6879
6881
  selector: 'gridster-preview',
6880
6882
  template: '',
6881
6883
  encapsulation: core.ViewEncapsulation.None,
6882
- styles: ["gridster-preview{position:absolute;display:none;background:#ccc}"]
6884
+ styles: ["gridster-preview{position:absolute;display:none;background:#42b4e6}"]
6883
6885
  }] }
6884
6886
  ];
6885
6887
  /** @nocollapse */