@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
|
@@ -616,6 +616,8 @@
|
|
|
616
616
|
LaunchCustomWidgetFlyout: "LaunchCustomWidgetFlyout",
|
|
617
617
|
/**update applied filter badge for inaplicable filters */
|
|
618
618
|
UpdateAppledFiterForInapplicableFilter: "UpdateAppledFiterForInapplicableFilter",
|
|
619
|
+
/**show inapplicable filter message in global filter flyout */
|
|
620
|
+
ShowInapplicableFilterMessage: "ShowInapplicableFilterMessage",
|
|
619
621
|
};
|
|
620
622
|
/** @enum {string} */
|
|
621
623
|
var RAEventKey = {
|
|
@@ -962,6 +964,7 @@
|
|
|
962
964
|
this.gridheight = 300;
|
|
963
965
|
this.gridcellHeight = 0;
|
|
964
966
|
this.userWidgets = [];
|
|
967
|
+
this.PAMWidgets = [];
|
|
965
968
|
this.isWidgetLoaded = false;
|
|
966
969
|
this.domResized = false;
|
|
967
970
|
this.showEmptyDashboard = false;
|
|
@@ -980,22 +983,14 @@
|
|
|
980
983
|
var _this = this;
|
|
981
984
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
982
985
|
this.initiateGridsterConfig();
|
|
986
|
+
this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
|
|
983
987
|
this.responsiveService.resized.subscribe((/**
|
|
984
988
|
* @param {?} isDesktop
|
|
985
989
|
* @return {?}
|
|
986
990
|
*/
|
|
987
991
|
function (isDesktop) {
|
|
988
|
-
if (isDesktop) {
|
|
989
|
-
|
|
990
|
-
* @return {?}
|
|
991
|
-
*/
|
|
992
|
-
function () {
|
|
993
|
-
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
994
|
-
_this.domResized = !_this.domResized;
|
|
995
|
-
_this.setAreaHeight();
|
|
996
|
-
}), 100);
|
|
997
|
-
}
|
|
998
|
-
else {
|
|
992
|
+
if (_this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
|
|
993
|
+
_this.lastViewType = (isDesktop ? 'desktop' : 'mobile');
|
|
999
994
|
_this.widgetList = [];
|
|
1000
995
|
setTimeout((/**
|
|
1001
996
|
* @return {?}
|
|
@@ -1018,6 +1013,16 @@
|
|
|
1018
1013
|
_this.domResized = !_this.domResized;
|
|
1019
1014
|
}));
|
|
1020
1015
|
}
|
|
1016
|
+
else {
|
|
1017
|
+
setTimeout((/**
|
|
1018
|
+
* @return {?}
|
|
1019
|
+
*/
|
|
1020
|
+
function () {
|
|
1021
|
+
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
1022
|
+
_this.domResized = !_this.domResized;
|
|
1023
|
+
_this.setAreaHeight();
|
|
1024
|
+
}), 100);
|
|
1025
|
+
}
|
|
1021
1026
|
}));
|
|
1022
1027
|
};
|
|
1023
1028
|
/**
|
|
@@ -1316,6 +1321,21 @@
|
|
|
1316
1321
|
*/
|
|
1317
1322
|
function (widgets) {
|
|
1318
1323
|
_this.userWidgets = widgets;
|
|
1324
|
+
_this.PAMWidgets = [];
|
|
1325
|
+
widgets.forEach((/**
|
|
1326
|
+
* @param {?} element
|
|
1327
|
+
* @return {?}
|
|
1328
|
+
*/
|
|
1329
|
+
function (element) {
|
|
1330
|
+
/** @type {?} */
|
|
1331
|
+
var settings = undefined;
|
|
1332
|
+
if (element.widgetSettings) {
|
|
1333
|
+
settings = JSON.parse(element.widgetSettings);
|
|
1334
|
+
if (settings && settings.isPAMWidget)
|
|
1335
|
+
_this.PAMWidgets.push(element.widgetInstanceId);
|
|
1336
|
+
}
|
|
1337
|
+
}));
|
|
1338
|
+
_this.checkPAMWidgets();
|
|
1319
1339
|
if (widgets && widgets.length > 0) {
|
|
1320
1340
|
_this.widgetList = _this.mapObjectListToGridsterItemList(widgets);
|
|
1321
1341
|
_this.setAreaHeight();
|
|
@@ -1423,6 +1443,13 @@
|
|
|
1423
1443
|
if (widget.length > 0) {
|
|
1424
1444
|
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
1425
1445
|
}
|
|
1446
|
+
if (this.PAMWidgets.length > 0) {
|
|
1447
|
+
/** @type {?} */
|
|
1448
|
+
var indx = this.PAMWidgets.indexOf(widgetInstanceId);
|
|
1449
|
+
if (indx > -1)
|
|
1450
|
+
this.PAMWidgets.splice(indx, 1);
|
|
1451
|
+
this.checkPAMWidgets();
|
|
1452
|
+
}
|
|
1426
1453
|
this.widgetList.splice(this.widgetList.indexOf(gridsterItem[0]), 1);
|
|
1427
1454
|
this.setAreaHeight();
|
|
1428
1455
|
if (!isalertDisabled) {
|
|
@@ -1527,6 +1554,10 @@
|
|
|
1527
1554
|
}));
|
|
1528
1555
|
}
|
|
1529
1556
|
}
|
|
1557
|
+
if (widget.settings && widget.settings.isPAMWidget) {
|
|
1558
|
+
_this.PAMWidgets.push(widget.widgetInstanceId);
|
|
1559
|
+
_this.checkPAMWidgets();
|
|
1560
|
+
}
|
|
1530
1561
|
_this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
|
|
1531
1562
|
}));
|
|
1532
1563
|
};
|
|
@@ -1584,6 +1615,10 @@
|
|
|
1584
1615
|
var gridsterItem = this.responsiveService.getGridsterItem(data);
|
|
1585
1616
|
this.widgetList.push(gridsterItem);
|
|
1586
1617
|
this.setAreaHeight();
|
|
1618
|
+
if (data.settings && data.settings.isPAMWidget) {
|
|
1619
|
+
this.PAMWidgets.push(data.widgetInstanceId);
|
|
1620
|
+
this.checkPAMWidgets();
|
|
1621
|
+
}
|
|
1587
1622
|
};
|
|
1588
1623
|
/**
|
|
1589
1624
|
* @param {?} widgetList
|
|
@@ -1666,6 +1701,20 @@
|
|
|
1666
1701
|
function (data) {
|
|
1667
1702
|
this.raDashboardEventBus.publish(RAEvent.UpdateAppledFiterForInapplicableFilter, data);
|
|
1668
1703
|
};
|
|
1704
|
+
/**
|
|
1705
|
+
* @return {?}
|
|
1706
|
+
*/
|
|
1707
|
+
RADashboardArea.prototype.checkPAMWidgets = /**
|
|
1708
|
+
* @return {?}
|
|
1709
|
+
*/
|
|
1710
|
+
function () {
|
|
1711
|
+
if (this.PAMWidgets.length > 0) {
|
|
1712
|
+
this.raDashboardEventBus.publish(RAEvent.ShowInapplicableFilterMessage, true);
|
|
1713
|
+
}
|
|
1714
|
+
else {
|
|
1715
|
+
this.raDashboardEventBus.publish(RAEvent.ShowInapplicableFilterMessage, false);
|
|
1716
|
+
}
|
|
1717
|
+
};
|
|
1669
1718
|
RADashboardArea.decorators = [
|
|
1670
1719
|
{ type: core.Component, args: [{
|
|
1671
1720
|
selector: 'ra-dashboard-area',
|
|
@@ -1707,6 +1756,8 @@
|
|
|
1707
1756
|
RADashboardArea.prototype.gridcellHeight;
|
|
1708
1757
|
/** @type {?} */
|
|
1709
1758
|
RADashboardArea.prototype.userWidgets;
|
|
1759
|
+
/** @type {?} */
|
|
1760
|
+
RADashboardArea.prototype.PAMWidgets;
|
|
1710
1761
|
/**
|
|
1711
1762
|
* @type {?}
|
|
1712
1763
|
* @private
|
|
@@ -1744,6 +1795,8 @@
|
|
|
1744
1795
|
/** @type {?} */
|
|
1745
1796
|
RADashboardArea.prototype.isWidgetMgmnt;
|
|
1746
1797
|
/** @type {?} */
|
|
1798
|
+
RADashboardArea.prototype.lastViewType;
|
|
1799
|
+
/** @type {?} */
|
|
1747
1800
|
RADashboardArea.prototype.userDashboardId;
|
|
1748
1801
|
/** @type {?} */
|
|
1749
1802
|
RADashboardArea.prototype.areaKey;
|
|
@@ -8527,13 +8580,12 @@
|
|
|
8527
8580
|
function (async) {
|
|
8528
8581
|
return _this.getFilterConfig();
|
|
8529
8582
|
});
|
|
8530
|
-
this.
|
|
8531
|
-
* @param {?}
|
|
8532
|
-
* @param {?} appConfig
|
|
8583
|
+
this.setInapplicableFilterMsg = (/**
|
|
8584
|
+
* @param {?} status
|
|
8533
8585
|
* @return {?}
|
|
8534
8586
|
*/
|
|
8535
|
-
function (
|
|
8536
|
-
_this.
|
|
8587
|
+
function (status) {
|
|
8588
|
+
_this.showHideInapplicableMsg(status);
|
|
8537
8589
|
});
|
|
8538
8590
|
this.isValidEntry = (/**
|
|
8539
8591
|
* @return {?}
|
|
@@ -8547,6 +8599,14 @@
|
|
|
8547
8599
|
function () {
|
|
8548
8600
|
_this.clearData();
|
|
8549
8601
|
});
|
|
8602
|
+
this.setAllFilterConfig = (/**
|
|
8603
|
+
* @param {?} globalFilter
|
|
8604
|
+
* @param {?} appConfig
|
|
8605
|
+
* @return {?}
|
|
8606
|
+
*/
|
|
8607
|
+
function (globalFilter, appConfig) {
|
|
8608
|
+
_this.setFilterConfig(globalFilter, appConfig);
|
|
8609
|
+
});
|
|
8550
8610
|
}
|
|
8551
8611
|
/**
|
|
8552
8612
|
* @return {?}
|
|
@@ -8561,9 +8621,10 @@
|
|
|
8561
8621
|
};
|
|
8562
8622
|
RaBaseDashboardFilter.propDecorators = {
|
|
8563
8623
|
getAllFilterConfig: [{ type: core.Input }],
|
|
8564
|
-
|
|
8624
|
+
setInapplicableFilterMsg: [{ type: core.Input }],
|
|
8565
8625
|
isValidEntry: [{ type: core.Input }],
|
|
8566
|
-
clearAllData: [{ type: core.Input }]
|
|
8626
|
+
clearAllData: [{ type: core.Input }],
|
|
8627
|
+
setAllFilterConfig: [{ type: core.Input }]
|
|
8567
8628
|
};
|
|
8568
8629
|
return RaBaseDashboardFilter;
|
|
8569
8630
|
}());
|
|
@@ -8574,11 +8635,13 @@
|
|
|
8574
8635
|
*/
|
|
8575
8636
|
RaBaseDashboardFilter.prototype.getAllFilterConfig;
|
|
8576
8637
|
/** @type {?} */
|
|
8577
|
-
RaBaseDashboardFilter.prototype.
|
|
8638
|
+
RaBaseDashboardFilter.prototype.setInapplicableFilterMsg;
|
|
8578
8639
|
/** @type {?} */
|
|
8579
8640
|
RaBaseDashboardFilter.prototype.isValidEntry;
|
|
8580
8641
|
/** @type {?} */
|
|
8581
8642
|
RaBaseDashboardFilter.prototype.clearAllData;
|
|
8643
|
+
/** @type {?} */
|
|
8644
|
+
RaBaseDashboardFilter.prototype.setAllFilterConfig;
|
|
8582
8645
|
/**
|
|
8583
8646
|
* @abstract
|
|
8584
8647
|
* @return {?}
|
|
@@ -8601,6 +8664,12 @@
|
|
|
8601
8664
|
* @return {?}
|
|
8602
8665
|
*/
|
|
8603
8666
|
RaBaseDashboardFilter.prototype.isValid = function () { };
|
|
8667
|
+
/**
|
|
8668
|
+
* @abstract
|
|
8669
|
+
* @param {?} status
|
|
8670
|
+
* @return {?}
|
|
8671
|
+
*/
|
|
8672
|
+
RaBaseDashboardFilter.prototype.showHideInapplicableMsg = function (status) { };
|
|
8604
8673
|
}
|
|
8605
8674
|
|
|
8606
8675
|
exports.DashboardFrameworkModule = DashboardFrameworkModule;
|