@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
|
@@ -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.templateWidgetSettings.hideEdit)
|
|
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.templateWidgetSettings.hideCopy)
|
|
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.templateWidgetSettings.hideMove)
|
|
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.templateWidgetSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
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.templateWidgetSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
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.templateWidgetSettings.hideDelete) {
|
|
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;
|
|
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);
|
|
@@ -4841,8 +4841,8 @@
|
|
|
4841
4841
|
GridsterItemComponent.prototype.updateItemSize = function () {
|
|
4842
4842
|
var top = this.$item.y * this.gridster.curRowHeight;
|
|
4843
4843
|
var left = this.$item.x * this.gridster.curColWidth;
|
|
4844
|
-
var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin
|
|
4845
|
-
var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin
|
|
4844
|
+
var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin;
|
|
4845
|
+
var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin;
|
|
4846
4846
|
if (!this.init && width > 0 && height > 0) {
|
|
4847
4847
|
this.init = true;
|
|
4848
4848
|
if (this.item.initCallback) {
|