@schneideress/dashboardframework 0.0.59 → 0.0.61

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.
@@ -386,6 +386,8 @@ var RAEvent = {
386
386
  favoriteIconRefresh: "favoriteIconRefresh",
387
387
  /**to refresh menu content */
388
388
  QuickLinkRefresh: "QuickLinkRefresh",
389
+ /**To raise widget added event */
390
+ WidgetAdded: "WidgetAdded",
389
391
  };
390
392
  /** @enum {string} */
391
393
  var RAEventKey = {
@@ -660,7 +662,7 @@ var GridsterConfigDefaultSettings = {
660
662
  },
661
663
  swap: true,
662
664
  pushItems: true,
663
- disablePushOnDrag: true,
665
+ disablePushOnDrag: false,
664
666
  disablePushOnResize: false,
665
667
  pushDirections: { north: true, east: true, south: true, west: true },
666
668
  pushResizeItems: true,
@@ -669,6 +671,10 @@ var GridsterConfigDefaultSettings = {
669
671
  disableWarnings: false,
670
672
  scrollToNewItems: true,
671
673
  autoResizeonDrag: false,
674
+ setGridSize: true
675
+ //itemResizeCallback: (item) => this.itemResize(item),
676
+ //itemChangeCallback: (item) => this.itemCallBack(item),
677
+ //itemInitCallback: (item) => this.itemInitCallback(item)
672
678
  };
673
679
 
674
680
  /**
@@ -736,8 +742,6 @@ var RADashboardArea = /** @class */ (function () {
736
742
  areaContext.setAreaHeight();
737
743
  areaContext.updateWidgets();
738
744
  });
739
- console.log('gridster options are');
740
- console.log(this.options);
741
745
  };
742
746
  /** To initiate eventbus subsctiptions */
743
747
  /**
@@ -1042,6 +1046,7 @@ var RADashboardArea = /** @class */ (function () {
1042
1046
  function () {
1043
1047
  _this.updateWidgets();
1044
1048
  }), 1000);
1049
+ _this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
1045
1050
  }));
1046
1051
  };
1047
1052
  /** To add widget to current widget list ,invoked from copy widget window*/
@@ -1153,8 +1158,8 @@ var RADashboardArea = /** @class */ (function () {
1153
1158
  RADashboardArea.decorators = [
1154
1159
  { type: Component, args: [{
1155
1160
  selector: 'ra-dashboard-area',
1156
- 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\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-width]=\"item.cols\" [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n\r\n",
1157
- styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#fcfcfc}.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)}"]
1161
+ template: "<div #gridWrapper class=\"wrap gridster\" >\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\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-width]=\"item.cols\" [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n\r\n",
1162
+ styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#fcfcfc;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)}"]
1158
1163
  }] }
1159
1164
  ];
1160
1165
  /** @nocollapse */