@schneideress/dashboardframework 0.0.257 → 0.0.259

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.
@@ -413,7 +413,7 @@
413
413
  var GridsterConfigDefaultSettings = {
414
414
  gridType: 'scrollVertical',
415
415
  compactType: 'none',
416
- margin: 0,
416
+ margin: 10,
417
417
  outerMargin: true,
418
418
  outerMarginTop: 10,
419
419
  outerMarginRight: 0,
@@ -570,7 +570,7 @@
570
570
  widget.settings = JSON.parse(widget.widgetSettings);
571
571
  }
572
572
  if (widget.templateSettings) {
573
- widget.templateSettings = JSON.parse(widget.templateSettings);
573
+ widget.templateWidgetSettings = JSON.parse(widget.templateSettings);
574
574
  }
575
575
  var gridsterItem = {
576
576
  cols: this.getWidth(widget.width),
@@ -1808,11 +1808,11 @@
1808
1808
  var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
1809
1809
  var settings = '';
1810
1810
  if (this.isWidgetMgmnt) {
1811
- if (!this.data.widgetInfo.templateSettings.hideEdit)
1811
+ if (!this.data.widgetInfo.templateWidgetSettings.hideEdit)
1812
1812
  settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
1813
- if (!this.data.widgetInfo.templateSettings.hideCopy)
1813
+ if (!this.data.widgetInfo.templateWidgetSettings.hideCopy)
1814
1814
  settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
1815
- if (!this.data.widgetInfo.templateSettings.hideMove)
1815
+ if (!this.data.widgetInfo.templateWidgetSettings.hideMove)
1816
1816
  settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
1817
1817
  }
1818
1818
  var customPageParams = false;
@@ -1822,14 +1822,14 @@
1822
1822
  customPageParams = true;
1823
1823
  }
1824
1824
  }
1825
- if (!this.data.widgetInfo.templateSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
1825
+ if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
1826
1826
  settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
1827
1827
  settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
1828
1828
  settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
1829
1829
  settings += this.translateService.translate('Common.visitpage');
1830
1830
  settings += '</span></a>';
1831
1831
  }
1832
- if (!this.data.widgetInfo.templateSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
1832
+ if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
1833
1833
  html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
1834
1834
  html += this.translateService.translate('Common.settings') + '</div>';
1835
1835
  html += settings;
@@ -1861,7 +1861,7 @@
1861
1861
  if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
1862
1862
  html += this.getHr();
1863
1863
  }
1864
- if (this.isWidgetMgmnt && !this.data.widgetInfo.templateSettings.hideDelete) {
1864
+ if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings.hideDelete) {
1865
1865
  html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
1866
1866
  html += this.deleteText;
1867
1867
  html += '</span></a>';
@@ -2714,7 +2714,7 @@
2714
2714
  else {
2715
2715
  var x = Math.round(this.gridster.curColWidth * item.x);
2716
2716
  var y = Math.round(this.gridster.curRowHeight * item.y);
2717
- var width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin;
2717
+ var width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin - 5;
2718
2718
  var height = (this.gridster.curRowHeight * item.rows - this.gridster.$options.margin);
2719
2719
  // set the cell style
2720
2720
  this.setCellPosition(renderer, el, x, y);
@@ -4841,8 +4841,8 @@
4841
4841
  GridsterItemComponent.prototype.updateItemSize = function () {
4842
4842
  var top = this.$item.y * this.gridster.curRowHeight;
4843
4843
  var left = this.$item.x * this.gridster.curColWidth;
4844
- var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin;
4845
- var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin;
4844
+ var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin - 5;
4845
+ var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin - 5;
4846
4846
  if (!this.init && width > 0 && height > 0) {
4847
4847
  this.init = true;
4848
4848
  if (this.item.initCallback) {