@schneideress/dashboardframework 0.0.4 → 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.
- package/bundles/schneideress-dashboardframework.umd.js +15 -21
- 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/gridster.component.js +1 -1
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +3 -4
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +6 -3
- package/esm2015/lib/ra.dashboard.service.js +6 -16
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/gridster/lib/gridster.component.js +1 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +3 -4
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +6 -3
- package/esm5/lib/ra.dashboard.service.js +6 -16
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +15 -21
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +15 -21
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra.event.enum.d.ts +3 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -77,9 +77,7 @@ var RaDashboardService = /** @class */ (function (_super) {
|
|
|
77
77
|
*/
|
|
78
78
|
function (widgetInfo, appConfig) {
|
|
79
79
|
this.baseUrl = appConfig.apiBaseUrl;
|
|
80
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
/**
|
|
@@ -375,6 +365,8 @@ var RAEvent = {
|
|
|
375
365
|
DashboardChanged: "dashboardChanged",
|
|
376
366
|
/** triggers when user clicks the close button on library */
|
|
377
367
|
WidgetLibraryCloseBtnClicked: "WidgetLibraryCloseBtnClicked",
|
|
368
|
+
/** triggers when user clicks on view dashboard*/
|
|
369
|
+
LoadDashboard: "LoadDashboard",
|
|
378
370
|
};
|
|
379
371
|
/** @enum {string} */
|
|
380
372
|
var RAEventKey = {
|
|
@@ -584,8 +576,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
584
576
|
dashboardId: userDashboarId.toString(),
|
|
585
577
|
dashboardAreaKey: areaKey
|
|
586
578
|
}));
|
|
587
|
-
/**
|
|
588
|
-
var widgets = this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe((/**
|
|
579
|
+
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe((/**
|
|
589
580
|
* @param {?} widgets
|
|
590
581
|
* @return {?}
|
|
591
582
|
*/
|
|
@@ -778,7 +769,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
778
769
|
{ type: Component, args: [{
|
|
779
770
|
selector: 'ra-dashboard-area',
|
|
780
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",
|
|
781
|
-
styles: ["gridster{width:inherit;
|
|
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}"]
|
|
782
773
|
}] }
|
|
783
774
|
];
|
|
784
775
|
/** @nocollapse */
|
|
@@ -975,7 +966,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
975
966
|
globalFilter: this.globalFilter
|
|
976
967
|
}));
|
|
977
968
|
/** @type {?} */
|
|
978
|
-
var
|
|
969
|
+
var widgetContainer = this;
|
|
979
970
|
this.dashboardService.loadExternalScript(widgetInfo.scriptUrl, (/**
|
|
980
971
|
* @return {?}
|
|
981
972
|
*/
|
|
@@ -986,7 +977,10 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
986
977
|
* @return {?}
|
|
987
978
|
*/
|
|
988
979
|
function () {
|
|
989
|
-
|
|
980
|
+
widgetConfigFilter.appConfig = _this.appConfig;
|
|
981
|
+
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
982
|
+
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
983
|
+
widgetContainer.widgetElement.loadContent(widgetConfigFilter, _this.appConfig);
|
|
990
984
|
}), 2000);
|
|
991
985
|
}));
|
|
992
986
|
};
|
|
@@ -3000,7 +2994,7 @@ var GridsterComponent = /** @class */ (function () {
|
|
|
3000
2994
|
selector: 'gridster',
|
|
3001
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",
|
|
3002
2996
|
encapsulation: ViewEncapsulation.None,
|
|
3003
|
-
styles: ["gridster{clear:both;position:relative;box-sizing:border-box;background
|
|
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}"]
|
|
3004
2998
|
}] }
|
|
3005
2999
|
];
|
|
3006
3000
|
/** @nocollapse */
|