@schneideress/dashboardframework 0.0.258 → 0.0.260
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 +7 -7
- 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/gridsterItem.component.js +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/esm5/gridster/lib/gridsterItem.component.js +1 -1
- package/esm5/gridster/lib/gridsterRenderer.service.js +2 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +7 -7
- package/fesm2015/schneideress-dashboardframework.js +7 -7
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +7 -7
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.templateWidgetSettings
|
|
1513
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideEdit)
|
|
1514
1514
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
1515
|
-
if (!this.data.widgetInfo.templateWidgetSettings
|
|
1515
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideCopy)
|
|
1516
1516
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1517
|
-
if (!this.data.widgetInfo.templateWidgetSettings
|
|
1517
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !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.templateWidgetSettings
|
|
1527
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !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.templateWidgetSettings
|
|
1534
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !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.templateWidgetSettings
|
|
1566
|
+
if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings || !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;
|
|
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);
|