@schneideress/dashboardframework 0.0.259 → 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 +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/gridsterItem.component.js +3 -3
- 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 +3 -3
- 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 +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
|
@@ -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.templateWidgetSettings.hideEdit)
|
|
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.templateWidgetSettings.hideCopy)
|
|
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.templateWidgetSettings.hideMove)
|
|
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.templateWidgetSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
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.templateWidgetSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
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.templateWidgetSettings.hideDelete) {
|
|
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;
|
|
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;
|
|
4634
|
+
var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin;
|
|
4635
4635
|
if (!this.init && width > 0 && height > 0) {
|
|
4636
4636
|
this.init = true;
|
|
4637
4637
|
if (this.item.initCallback) {
|