@schneideress/dashboardframework 0.0.232 → 0.0.234
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 +88 -19
- 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 +60 -12
- package/esm2015/lib/ra.base.dashboard.filter.js +25 -9
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +63 -12
- package/esm5/lib/ra.base.dashboard.filter.js +25 -9
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +85 -19
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +88 -19
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +3 -0
- package/lib/ra.base.dashboard.filter.d.ts +3 -1
- package/lib/ra.event.enum.d.ts +3 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -405,6 +405,8 @@ var RAEvent = {
|
|
|
405
405
|
LaunchCustomWidgetFlyout: "LaunchCustomWidgetFlyout",
|
|
406
406
|
/**update applied filter badge for inaplicable filters */
|
|
407
407
|
UpdateAppledFiterForInapplicableFilter: "UpdateAppledFiterForInapplicableFilter",
|
|
408
|
+
/**show inapplicable filter message in global filter flyout */
|
|
409
|
+
ShowInapplicableFilterMessage: "ShowInapplicableFilterMessage",
|
|
408
410
|
};
|
|
409
411
|
/** @enum {string} */
|
|
410
412
|
var RAEventKey = {
|
|
@@ -751,6 +753,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
751
753
|
this.gridheight = 300;
|
|
752
754
|
this.gridcellHeight = 0;
|
|
753
755
|
this.userWidgets = [];
|
|
756
|
+
this.PAMWidgets = [];
|
|
754
757
|
this.isWidgetLoaded = false;
|
|
755
758
|
this.domResized = false;
|
|
756
759
|
this.showEmptyDashboard = false;
|
|
@@ -769,22 +772,14 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
769
772
|
var _this = this;
|
|
770
773
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
771
774
|
this.initiateGridsterConfig();
|
|
775
|
+
this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
|
|
772
776
|
this.responsiveService.resized.subscribe((/**
|
|
773
777
|
* @param {?} isDesktop
|
|
774
778
|
* @return {?}
|
|
775
779
|
*/
|
|
776
780
|
function (isDesktop) {
|
|
777
|
-
if (isDesktop) {
|
|
778
|
-
|
|
779
|
-
* @return {?}
|
|
780
|
-
*/
|
|
781
|
-
function () {
|
|
782
|
-
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
783
|
-
_this.domResized = !_this.domResized;
|
|
784
|
-
_this.setAreaHeight();
|
|
785
|
-
}), 100);
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
781
|
+
if (_this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
|
|
782
|
+
_this.lastViewType = (isDesktop ? 'desktop' : 'mobile');
|
|
788
783
|
_this.widgetList = [];
|
|
789
784
|
setTimeout((/**
|
|
790
785
|
* @return {?}
|
|
@@ -807,6 +802,16 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
807
802
|
_this.domResized = !_this.domResized;
|
|
808
803
|
}));
|
|
809
804
|
}
|
|
805
|
+
else {
|
|
806
|
+
setTimeout((/**
|
|
807
|
+
* @return {?}
|
|
808
|
+
*/
|
|
809
|
+
function () {
|
|
810
|
+
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
811
|
+
_this.domResized = !_this.domResized;
|
|
812
|
+
_this.setAreaHeight();
|
|
813
|
+
}), 100);
|
|
814
|
+
}
|
|
810
815
|
}));
|
|
811
816
|
};
|
|
812
817
|
/**
|
|
@@ -1105,6 +1110,21 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1105
1110
|
*/
|
|
1106
1111
|
function (widgets) {
|
|
1107
1112
|
_this.userWidgets = widgets;
|
|
1113
|
+
_this.PAMWidgets = [];
|
|
1114
|
+
widgets.forEach((/**
|
|
1115
|
+
* @param {?} element
|
|
1116
|
+
* @return {?}
|
|
1117
|
+
*/
|
|
1118
|
+
function (element) {
|
|
1119
|
+
/** @type {?} */
|
|
1120
|
+
var settings = undefined;
|
|
1121
|
+
if (element.widgetSettings) {
|
|
1122
|
+
settings = JSON.parse(element.widgetSettings);
|
|
1123
|
+
if (settings && settings.isPAMWidget)
|
|
1124
|
+
_this.PAMWidgets.push(element.widgetInstanceId);
|
|
1125
|
+
}
|
|
1126
|
+
}));
|
|
1127
|
+
_this.checkPAMWidgets();
|
|
1108
1128
|
if (widgets && widgets.length > 0) {
|
|
1109
1129
|
_this.widgetList = _this.mapObjectListToGridsterItemList(widgets);
|
|
1110
1130
|
_this.setAreaHeight();
|
|
@@ -1212,6 +1232,13 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1212
1232
|
if (widget.length > 0) {
|
|
1213
1233
|
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
1214
1234
|
}
|
|
1235
|
+
if (this.PAMWidgets.length > 0) {
|
|
1236
|
+
/** @type {?} */
|
|
1237
|
+
var indx = this.PAMWidgets.indexOf(widgetInstanceId);
|
|
1238
|
+
if (indx > -1)
|
|
1239
|
+
this.PAMWidgets.splice(indx, 1);
|
|
1240
|
+
this.checkPAMWidgets();
|
|
1241
|
+
}
|
|
1215
1242
|
this.widgetList.splice(this.widgetList.indexOf(gridsterItem[0]), 1);
|
|
1216
1243
|
this.setAreaHeight();
|
|
1217
1244
|
if (!isalertDisabled) {
|
|
@@ -1316,6 +1343,10 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1316
1343
|
}));
|
|
1317
1344
|
}
|
|
1318
1345
|
}
|
|
1346
|
+
if (widget.settings && widget.settings.isPAMWidget) {
|
|
1347
|
+
_this.PAMWidgets.push(widget.widgetInstanceId);
|
|
1348
|
+
_this.checkPAMWidgets();
|
|
1349
|
+
}
|
|
1319
1350
|
_this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
|
|
1320
1351
|
}));
|
|
1321
1352
|
};
|
|
@@ -1373,6 +1404,10 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1373
1404
|
var gridsterItem = this.responsiveService.getGridsterItem(data);
|
|
1374
1405
|
this.widgetList.push(gridsterItem);
|
|
1375
1406
|
this.setAreaHeight();
|
|
1407
|
+
if (data.settings && data.settings.isPAMWidget) {
|
|
1408
|
+
this.PAMWidgets.push(data.widgetInstanceId);
|
|
1409
|
+
this.checkPAMWidgets();
|
|
1410
|
+
}
|
|
1376
1411
|
};
|
|
1377
1412
|
/**
|
|
1378
1413
|
* @param {?} widgetList
|
|
@@ -1455,6 +1490,20 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1455
1490
|
function (data) {
|
|
1456
1491
|
this.raDashboardEventBus.publish(RAEvent.UpdateAppledFiterForInapplicableFilter, data);
|
|
1457
1492
|
};
|
|
1493
|
+
/**
|
|
1494
|
+
* @return {?}
|
|
1495
|
+
*/
|
|
1496
|
+
RADashboardArea.prototype.checkPAMWidgets = /**
|
|
1497
|
+
* @return {?}
|
|
1498
|
+
*/
|
|
1499
|
+
function () {
|
|
1500
|
+
if (this.PAMWidgets.length > 0) {
|
|
1501
|
+
this.raDashboardEventBus.publish(RAEvent.ShowInapplicableFilterMessage, true);
|
|
1502
|
+
}
|
|
1503
|
+
else {
|
|
1504
|
+
this.raDashboardEventBus.publish(RAEvent.ShowInapplicableFilterMessage, false);
|
|
1505
|
+
}
|
|
1506
|
+
};
|
|
1458
1507
|
RADashboardArea.decorators = [
|
|
1459
1508
|
{ type: Component, args: [{
|
|
1460
1509
|
selector: 'ra-dashboard-area',
|
|
@@ -1496,6 +1545,8 @@ if (false) {
|
|
|
1496
1545
|
RADashboardArea.prototype.gridcellHeight;
|
|
1497
1546
|
/** @type {?} */
|
|
1498
1547
|
RADashboardArea.prototype.userWidgets;
|
|
1548
|
+
/** @type {?} */
|
|
1549
|
+
RADashboardArea.prototype.PAMWidgets;
|
|
1499
1550
|
/**
|
|
1500
1551
|
* @type {?}
|
|
1501
1552
|
* @private
|
|
@@ -1533,6 +1584,8 @@ if (false) {
|
|
|
1533
1584
|
/** @type {?} */
|
|
1534
1585
|
RADashboardArea.prototype.isWidgetMgmnt;
|
|
1535
1586
|
/** @type {?} */
|
|
1587
|
+
RADashboardArea.prototype.lastViewType;
|
|
1588
|
+
/** @type {?} */
|
|
1536
1589
|
RADashboardArea.prototype.userDashboardId;
|
|
1537
1590
|
/** @type {?} */
|
|
1538
1591
|
RADashboardArea.prototype.areaKey;
|
|
@@ -8316,13 +8369,12 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
8316
8369
|
function (async) {
|
|
8317
8370
|
return _this.getFilterConfig();
|
|
8318
8371
|
});
|
|
8319
|
-
this.
|
|
8320
|
-
* @param {?}
|
|
8321
|
-
* @param {?} appConfig
|
|
8372
|
+
this.setInapplicableFilterMsg = (/**
|
|
8373
|
+
* @param {?} status
|
|
8322
8374
|
* @return {?}
|
|
8323
8375
|
*/
|
|
8324
|
-
function (
|
|
8325
|
-
_this.
|
|
8376
|
+
function (status) {
|
|
8377
|
+
_this.showHideInapplicableMsg(status);
|
|
8326
8378
|
});
|
|
8327
8379
|
this.isValidEntry = (/**
|
|
8328
8380
|
* @return {?}
|
|
@@ -8336,6 +8388,14 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
8336
8388
|
function () {
|
|
8337
8389
|
_this.clearData();
|
|
8338
8390
|
});
|
|
8391
|
+
this.setAllFilterConfig = (/**
|
|
8392
|
+
* @param {?} globalFilter
|
|
8393
|
+
* @param {?} appConfig
|
|
8394
|
+
* @return {?}
|
|
8395
|
+
*/
|
|
8396
|
+
function (globalFilter, appConfig) {
|
|
8397
|
+
_this.setFilterConfig(globalFilter, appConfig);
|
|
8398
|
+
});
|
|
8339
8399
|
}
|
|
8340
8400
|
/**
|
|
8341
8401
|
* @return {?}
|
|
@@ -8350,9 +8410,10 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
8350
8410
|
};
|
|
8351
8411
|
RaBaseDashboardFilter.propDecorators = {
|
|
8352
8412
|
getAllFilterConfig: [{ type: Input }],
|
|
8353
|
-
|
|
8413
|
+
setInapplicableFilterMsg: [{ type: Input }],
|
|
8354
8414
|
isValidEntry: [{ type: Input }],
|
|
8355
|
-
clearAllData: [{ type: Input }]
|
|
8415
|
+
clearAllData: [{ type: Input }],
|
|
8416
|
+
setAllFilterConfig: [{ type: Input }]
|
|
8356
8417
|
};
|
|
8357
8418
|
return RaBaseDashboardFilter;
|
|
8358
8419
|
}());
|
|
@@ -8363,11 +8424,13 @@ if (false) {
|
|
|
8363
8424
|
*/
|
|
8364
8425
|
RaBaseDashboardFilter.prototype.getAllFilterConfig;
|
|
8365
8426
|
/** @type {?} */
|
|
8366
|
-
RaBaseDashboardFilter.prototype.
|
|
8427
|
+
RaBaseDashboardFilter.prototype.setInapplicableFilterMsg;
|
|
8367
8428
|
/** @type {?} */
|
|
8368
8429
|
RaBaseDashboardFilter.prototype.isValidEntry;
|
|
8369
8430
|
/** @type {?} */
|
|
8370
8431
|
RaBaseDashboardFilter.prototype.clearAllData;
|
|
8432
|
+
/** @type {?} */
|
|
8433
|
+
RaBaseDashboardFilter.prototype.setAllFilterConfig;
|
|
8371
8434
|
/**
|
|
8372
8435
|
* @abstract
|
|
8373
8436
|
* @return {?}
|
|
@@ -8390,6 +8453,12 @@ if (false) {
|
|
|
8390
8453
|
* @return {?}
|
|
8391
8454
|
*/
|
|
8392
8455
|
RaBaseDashboardFilter.prototype.isValid = function () { };
|
|
8456
|
+
/**
|
|
8457
|
+
* @abstract
|
|
8458
|
+
* @param {?} status
|
|
8459
|
+
* @return {?}
|
|
8460
|
+
*/
|
|
8461
|
+
RaBaseDashboardFilter.prototype.showHideInapplicableMsg = function (status) { };
|
|
8393
8462
|
}
|
|
8394
8463
|
|
|
8395
8464
|
/**
|