@schneideress/dashboardframework 0.0.257 → 0.0.258
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.
- package/bundles/schneideress-dashboardframework.umd.js +9 -9
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/gridster/lib/gridsterRenderer.service.js +2 -2
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +7 -7
- package/esm2015/lib/ra.dashboard.responsive.service.js +2 -2
- package/esm2015/lib/ra.gridster.config.js +2 -2
- package/esm5/gridster/lib/gridsterRenderer.service.js +2 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +7 -7
- package/esm5/lib/ra.dashboard.responsive.service.js +2 -2
- package/esm5/lib/ra.gridster.config.js +2 -2
- package/fesm2015/schneideress-dashboardframework.js +9 -9
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +9 -9
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
var GridsterConfigDefaultSettings = {
|
|
414
414
|
gridType: 'scrollVertical',
|
|
415
415
|
compactType: 'none',
|
|
416
|
-
margin:
|
|
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.
|
|
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.
|
|
1811
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !this.data.widgetInfo.templateWidgetSettings.hideEdit)
|
|
1812
1812
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
1813
|
-
if (!this.data.widgetInfo.
|
|
1813
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !this.data.widgetInfo.templateWidgetSettings.hideCopy)
|
|
1814
1814
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1815
|
-
if (!this.data.widgetInfo.
|
|
1815
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !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.
|
|
1825
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !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.
|
|
1832
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !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.
|
|
1864
|
+
if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings && !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 - 7;
|
|
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);
|