@schneideress/dashboardframework 0.0.5 → 0.0.6

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.
@@ -77,9 +77,7 @@ var RaDashboardService = /** @class */ (function (_super) {
77
77
  */
78
78
  function (widgetInfo, appConfig) {
79
79
  this.baseUrl = appConfig.apiBaseUrl;
80
- /** @type {?} */
81
- var url = 'widget/GetWidgetByArea';
82
- return this.post(url, widgetInfo);
80
+ return this.post('widget/GetWidgetByArea', widgetInfo);
83
81
  };
84
82
  /**
85
83
  * @param {?} widgetList
@@ -93,9 +91,7 @@ var RaDashboardService = /** @class */ (function (_super) {
93
91
  */
94
92
  function (widgetList, appConfig) {
95
93
  this.baseUrl = appConfig.apiBaseUrl;
96
- /** @type {?} */
97
- var url = 'widget/UpdateAreaWidgets';
98
- return this.post(url, widgetList);
94
+ return this.post('widget/UpdateAreaWidgets', widgetList);
99
95
  };
100
96
  /**
101
97
  * @param {?} widgetInfo
@@ -144,9 +140,7 @@ var RaDashboardService = /** @class */ (function (_super) {
144
140
  */
145
141
  function (widgetInfo, appConfig) {
146
142
  this.baseUrl = appConfig.apiBaseUrl;
147
- /** @type {?} */
148
- var url = 'widget/AddWidgetUser';
149
- return this.post(url, widgetInfo);
143
+ return this.post('widget/AddWidgetUser', widgetInfo);
150
144
  };
151
145
  /** To Delete current widget from DOM*/
152
146
  /**
@@ -163,9 +157,7 @@ var RaDashboardService = /** @class */ (function (_super) {
163
157
  */
164
158
  function (widgetInfo, appConfig) {
165
159
  this.baseUrl = appConfig.apiBaseUrl;
166
- /** @type {?} */
167
- var url = 'widget/DeleteWidgetUser';
168
- return this.post(url, widgetInfo);
160
+ return this.post('widget/DeleteWidgetUser', widgetInfo);
169
161
  };
170
162
  /**To Update widgetInfo in database */
171
163
  /**
@@ -182,9 +174,7 @@ var RaDashboardService = /** @class */ (function (_super) {
182
174
  */
183
175
  function (widgetInfo, appConfig) {
184
176
  this.baseUrl = appConfig.apiBaseUrl;
185
- /** @type {?} */
186
- var url = 'widget/UpdateUserWidget';
187
- return this.post(url, widgetInfo);
177
+ return this.post('widget/UpdateUserWidget', widgetInfo);
188
178
  };
189
179
  /** To Move or change position if current widget container*/
190
180
  /**
@@ -586,8 +576,7 @@ var RADashboardArea = /** @class */ (function () {
586
576
  dashboardId: userDashboarId.toString(),
587
577
  dashboardAreaKey: areaKey
588
578
  }));
589
- /** @type {?} */
590
- var widgets = this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe((/**
579
+ this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe((/**
591
580
  * @param {?} widgets
592
581
  * @return {?}
593
582
  */
@@ -780,7 +769,7 @@ var RADashboardArea = /** @class */ (function () {
780
769
  { type: Component, args: [{
781
770
  selector: 'ra-dashboard-area',
782
771
  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-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n</div>\r\n",
783
- styles: ["gridster{width:inherit;background:#f1f1f1;border:1px solid #ccc;resize:height;display:flex;min-height:300px}gridster-item{border:1px solid #ccc;background:#fff!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}"]
772
+ styles: ["gridster{width:inherit;resize:height;display:flex;min-height:300px}gridster-item{border:1px solid #ccc;background:#fff!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}"]
784
773
  }] }
785
774
  ];
786
775
  /** @nocollapse */
@@ -977,7 +966,7 @@ var RAWidgetContainer = /** @class */ (function () {
977
966
  globalFilter: this.globalFilter
978
967
  }));
979
968
  /** @type {?} */
980
- var widgetCOntainer = this;
969
+ var widgetContainer = this;
981
970
  this.dashboardService.loadExternalScript(widgetInfo.scriptUrl, (/**
982
971
  * @return {?}
983
972
  */
@@ -988,7 +977,10 @@ var RAWidgetContainer = /** @class */ (function () {
988
977
  * @return {?}
989
978
  */
990
979
  function () {
991
- widgetCOntainer.widgetElement.loadContent(widgetConfigFilter, _this.appConfig);
980
+ widgetConfigFilter.appConfig = _this.appConfig;
981
+ widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
982
+ widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
983
+ widgetContainer.widgetElement.loadContent(widgetConfigFilter, _this.appConfig);
992
984
  }), 2000);
993
985
  }));
994
986
  };
@@ -3002,7 +2994,7 @@ var GridsterComponent = /** @class */ (function () {
3002
2994
  selector: 'gridster',
3003
2995
  template: "<div class=\"gridster-column\" *ngFor=\"let column of gridColumns; let i = index;\"\r\n [ngStyle]=\"gridRenderer.getGridColumnStyle(i)\"></div>\r\n<div class=\"gridster-row\" *ngFor=\"let row of gridRows; let i = index;\"\r\n [ngStyle]=\"gridRenderer.getGridRowStyle(i)\"></div>\r\n<ng-content></ng-content>\r\n<gridster-preview class=\"gridster-preview\"></gridster-preview>\r\n",
3004
2996
  encapsulation: ViewEncapsulation.None,
3005
- styles: ["gridster{clear:both;position:relative;box-sizing:border-box;background:grey;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;overflow:auto}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid #ccc;border-right:1px solid #ccc}gridster .gridster-row{border-top:1px solid #ccc;border-bottom:1px solid #ccc}"]
2997
+ styles: ["gridster{clear:both;position:relative;box-sizing:border-box;background:#fff;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;overflow:auto}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid #ccc;border-right:1px solid #ccc}gridster .gridster-row{border-top:1px solid #ccc;border-bottom:1px solid #ccc}"]
3006
2998
  }] }
3007
2999
  ];
3008
3000
  /** @nocollapse */