@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
|
@@ -202,7 +202,7 @@ var RAEventKey;
|
|
|
202
202
|
var GridsterConfigDefaultSettings = {
|
|
203
203
|
gridType: 'scrollVertical',
|
|
204
204
|
compactType: 'none',
|
|
205
|
-
margin:
|
|
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.
|
|
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.
|
|
1600
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !this.data.widgetInfo.templateWidgetSettings.hideEdit)
|
|
1601
1601
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
1602
|
-
if (!this.data.widgetInfo.
|
|
1602
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !this.data.widgetInfo.templateWidgetSettings.hideCopy)
|
|
1603
1603
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1604
|
-
if (!this.data.widgetInfo.
|
|
1604
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !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.
|
|
1614
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !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.
|
|
1621
|
+
if (!this.data.widgetInfo.templateWidgetSettings && !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.
|
|
1653
|
+
if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings && !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 - 7;
|
|
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);
|