@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.
@@ -202,7 +202,7 @@ var RAEventKey;
202
202
  var GridsterConfigDefaultSettings = {
203
203
  gridType: 'scrollVertical',
204
204
  compactType: 'none',
205
- margin: 0,
205
+ margin: 10,
206
206
  outerMargin: true,
207
207
  outerMarginTop: 10,
208
208
  outerMarginRight: 0,
@@ -359,7 +359,7 @@ var RADashboardResponsiveService = /** @class */ (function () {
359
359
  widget.settings = JSON.parse(widget.widgetSettings);
360
360
  }
361
361
  if (widget.templateSettings) {
362
- widget.templateSettings = JSON.parse(widget.templateSettings);
362
+ widget.templateWidgetSettings = JSON.parse(widget.templateSettings);
363
363
  }
364
364
  var gridsterItem = {
365
365
  cols: this.getWidth(widget.width),
@@ -1597,11 +1597,11 @@ var RAWidgetContainer = /** @class */ (function () {
1597
1597
  var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
1598
1598
  var settings = '';
1599
1599
  if (this.isWidgetMgmnt) {
1600
- if (!this.data.widgetInfo.templateSettings.hideEdit)
1600
+ if (!this.data.widgetInfo.templateWidgetSettings.hideEdit)
1601
1601
  settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
1602
- if (!this.data.widgetInfo.templateSettings.hideCopy)
1602
+ if (!this.data.widgetInfo.templateWidgetSettings.hideCopy)
1603
1603
  settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
1604
- if (!this.data.widgetInfo.templateSettings.hideMove)
1604
+ if (!this.data.widgetInfo.templateWidgetSettings.hideMove)
1605
1605
  settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
1606
1606
  }
1607
1607
  var customPageParams = false;
@@ -1611,14 +1611,14 @@ var RAWidgetContainer = /** @class */ (function () {
1611
1611
  customPageParams = true;
1612
1612
  }
1613
1613
  }
1614
- if (!this.data.widgetInfo.templateSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
1614
+ if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
1615
1615
  settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
1616
1616
  settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
1617
1617
  settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
1618
1618
  settings += this.translateService.translate('Common.visitpage');
1619
1619
  settings += '</span></a>';
1620
1620
  }
1621
- if (!this.data.widgetInfo.templateSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
1621
+ if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
1622
1622
  html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
1623
1623
  html += this.translateService.translate('Common.settings') + '</div>';
1624
1624
  html += settings;
@@ -1650,7 +1650,7 @@ var RAWidgetContainer = /** @class */ (function () {
1650
1650
  if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
1651
1651
  html += this.getHr();
1652
1652
  }
1653
- if (this.isWidgetMgmnt && !this.data.widgetInfo.templateSettings.hideDelete) {
1653
+ if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings.hideDelete) {
1654
1654
  html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
1655
1655
  html += this.deleteText;
1656
1656
  html += '</span></a>';
@@ -2503,7 +2503,7 @@ var GridsterRenderer = /** @class */ (function () {
2503
2503
  else {
2504
2504
  var x = Math.round(this.gridster.curColWidth * item.x);
2505
2505
  var y = Math.round(this.gridster.curRowHeight * item.y);
2506
- var width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin;
2506
+ var width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin - 5;
2507
2507
  var height = (this.gridster.curRowHeight * item.rows - this.gridster.$options.margin);
2508
2508
  // set the cell style
2509
2509
  this.setCellPosition(renderer, el, x, y);
@@ -4630,8 +4630,8 @@ var GridsterItemComponent = /** @class */ (function () {
4630
4630
  GridsterItemComponent.prototype.updateItemSize = function () {
4631
4631
  var top = this.$item.y * this.gridster.curRowHeight;
4632
4632
  var left = this.$item.x * this.gridster.curColWidth;
4633
- var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin;
4634
- var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin;
4633
+ var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin - 5;
4634
+ var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin - 5;
4635
4635
  if (!this.init && width > 0 && height > 0) {
4636
4636
  this.init = true;
4637
4637
  if (this.item.initCallback) {