@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.
@@ -198,7 +198,7 @@ var RAEventKey;
198
198
  const GridsterConfigDefaultSettings = {
199
199
  gridType: 'scrollVertical',
200
200
  compactType: 'none',
201
- margin: 0,
201
+ margin: 10,
202
202
  outerMargin: true,
203
203
  outerMarginTop: 10,
204
204
  outerMarginRight: 0,
@@ -345,7 +345,7 @@ let RADashboardResponsiveService = class RADashboardResponsiveService {
345
345
  widget.settings = JSON.parse(widget.widgetSettings);
346
346
  }
347
347
  if (widget.templateSettings) {
348
- widget.templateSettings = JSON.parse(widget.templateSettings);
348
+ widget.templateWidgetSettings = JSON.parse(widget.templateSettings);
349
349
  }
350
350
  let gridsterItem = {
351
351
  cols: this.getWidth(widget.width),
@@ -1510,11 +1510,11 @@ let RAWidgetContainer = class RAWidgetContainer {
1510
1510
  let html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
1511
1511
  let settings = '';
1512
1512
  if (this.isWidgetMgmnt) {
1513
- if (!this.data.widgetInfo.templateSettings.hideEdit)
1513
+ if (!this.data.widgetInfo.templateWidgetSettings.hideEdit)
1514
1514
  settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
1515
- if (!this.data.widgetInfo.templateSettings.hideCopy)
1515
+ if (!this.data.widgetInfo.templateWidgetSettings.hideCopy)
1516
1516
  settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
1517
- if (!this.data.widgetInfo.templateSettings.hideMove)
1517
+ if (!this.data.widgetInfo.templateWidgetSettings.hideMove)
1518
1518
  settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
1519
1519
  }
1520
1520
  let customPageParams = false;
@@ -1524,14 +1524,14 @@ let RAWidgetContainer = class RAWidgetContainer {
1524
1524
  customPageParams = true;
1525
1525
  }
1526
1526
  }
1527
- if (!this.data.widgetInfo.templateSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
1527
+ if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
1528
1528
  settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
1529
1529
  settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
1530
1530
  settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
1531
1531
  settings += this.translateService.translate('Common.visitpage');
1532
1532
  settings += '</span></a>';
1533
1533
  }
1534
- if (!this.data.widgetInfo.templateSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
1534
+ if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
1535
1535
  html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
1536
1536
  html += this.translateService.translate('Common.settings') + '</div>';
1537
1537
  html += settings;
@@ -1563,7 +1563,7 @@ let RAWidgetContainer = class RAWidgetContainer {
1563
1563
  if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
1564
1564
  html += this.getHr();
1565
1565
  }
1566
- if (this.isWidgetMgmnt && !this.data.widgetInfo.templateSettings.hideDelete) {
1566
+ if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings.hideDelete) {
1567
1567
  html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
1568
1568
  html += this.deleteText;
1569
1569
  html += '</span></a>';
@@ -2401,7 +2401,7 @@ let GridsterRenderer = class GridsterRenderer {
2401
2401
  else {
2402
2402
  const x = Math.round(this.gridster.curColWidth * item.x);
2403
2403
  const y = Math.round(this.gridster.curRowHeight * item.y);
2404
- const width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin;
2404
+ const width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin - 5;
2405
2405
  const height = (this.gridster.curRowHeight * item.rows - this.gridster.$options.margin);
2406
2406
  // set the cell style
2407
2407
  this.setCellPosition(renderer, el, x, y);
@@ -4508,8 +4508,8 @@ let GridsterItemComponent = class GridsterItemComponent {
4508
4508
  updateItemSize() {
4509
4509
  const top = this.$item.y * this.gridster.curRowHeight;
4510
4510
  const left = this.$item.x * this.gridster.curColWidth;
4511
- const width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin;
4512
- const height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin;
4511
+ const width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin - 5;
4512
+ const height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin - 5;
4513
4513
  if (!this.init && width > 0 && height > 0) {
4514
4514
  this.init = true;
4515
4515
  if (this.item.initCallback) {