@schneideress/dashboardframework 0.0.173 → 0.0.174
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 +15 -1
- 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/lib/ra-dashboard-area/ra.dashboard.area.js +14 -2
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +14 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +15 -1
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +15 -1
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -977,6 +977,18 @@
|
|
|
977
977
|
var _this = this;
|
|
978
978
|
/**To override default configuration values to the gridster control */
|
|
979
979
|
this.options = this.responsiveService.GridsterConfig;
|
|
980
|
+
this.options.initCallback = (/**
|
|
981
|
+
* @param {?} gridster
|
|
982
|
+
* @return {?}
|
|
983
|
+
*/
|
|
984
|
+
function (gridster) {
|
|
985
|
+
console.log('grid inititalized');
|
|
986
|
+
console.log(_this.options.api);
|
|
987
|
+
if (_this.options.api) {
|
|
988
|
+
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
989
|
+
console.log('cell height is' + _this.gridcellHeight);
|
|
990
|
+
}
|
|
991
|
+
});
|
|
980
992
|
this.options.itemChangeCallback = (/**
|
|
981
993
|
* @param {?} item
|
|
982
994
|
* @return {?}
|
|
@@ -1529,7 +1541,7 @@
|
|
|
1529
1541
|
RADashboardArea.decorators = [
|
|
1530
1542
|
{ type: core.Component, args: [{
|
|
1531
1543
|
selector: 'ra-dashboard-area',
|
|
1532
|
-
template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\"
|
|
1544
|
+
template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\">\r\n <!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\"\r\n (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\" [global-filter]=\"globalFilter\"\r\n [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\" [widget-width]=\"item.cols\"\r\n [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\" [dom-resized]=\"domResized\">\r\n </ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n",
|
|
1533
1545
|
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#ededed;overflow-y:hidden!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;box-shadow:0 1px 10px rgba(0,0,0,.05)}gridster-item:hover{box-shadow:0 1px 10px rgba(0,0,0,.15)}"]
|
|
1534
1546
|
}] }
|
|
1535
1547
|
];
|
|
@@ -1963,6 +1975,7 @@
|
|
|
1963
1975
|
var widgetConfigFilter, widgetContainer;
|
|
1964
1976
|
var _this = this;
|
|
1965
1977
|
return __generator(this, function (_a) {
|
|
1978
|
+
widgetInfo.rowHeight = this.gridCellHeight;
|
|
1966
1979
|
widgetConfigFilter = (/** @type {?} */ ({
|
|
1967
1980
|
config: widgetInfo.widgetConfigInfo.config,
|
|
1968
1981
|
globalFilter: this.globalFilter
|
|
@@ -2154,6 +2167,7 @@
|
|
|
2154
2167
|
return __generator(this, function (_a) {
|
|
2155
2168
|
switch (_a.label) {
|
|
2156
2169
|
case 0:
|
|
2170
|
+
widgetInfo.rowHeight = this.gridCellHeight;
|
|
2157
2171
|
this.setNotConfiguredState(widgetInfo);
|
|
2158
2172
|
widgetContainerContext = this;
|
|
2159
2173
|
widgetConfigFilter = (/** @type {?} */ ({
|