@schneideress/dashboardframework 0.0.232 → 0.0.233
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 +73 -8
- 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 +45 -1
- 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 +48 -1
- package/esm5/lib/ra.base.dashboard.filter.js +25 -9
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +70 -8
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +73 -8
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +2 -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;
|
|
@@ -1316,6 +1319,21 @@
|
|
|
1316
1319
|
*/
|
|
1317
1320
|
function (widgets) {
|
|
1318
1321
|
_this.userWidgets = widgets;
|
|
1322
|
+
_this.PAMWidgets = [];
|
|
1323
|
+
widgets.forEach((/**
|
|
1324
|
+
* @param {?} element
|
|
1325
|
+
* @return {?}
|
|
1326
|
+
*/
|
|
1327
|
+
function (element) {
|
|
1328
|
+
/** @type {?} */
|
|
1329
|
+
var settings = undefined;
|
|
1330
|
+
if (element.widgetSettings) {
|
|
1331
|
+
settings = JSON.parse(element.widgetSettings);
|
|
1332
|
+
if (settings && settings.isPAMWidget)
|
|
1333
|
+
_this.PAMWidgets.push(element.widgetInstanceId);
|
|
1334
|
+
}
|
|
1335
|
+
}));
|
|
1336
|
+
_this.checkPAMWidgets();
|
|
1319
1337
|
if (widgets && widgets.length > 0) {
|
|
1320
1338
|
_this.widgetList = _this.mapObjectListToGridsterItemList(widgets);
|
|
1321
1339
|
_this.setAreaHeight();
|
|
@@ -1423,6 +1441,13 @@
|
|
|
1423
1441
|
if (widget.length > 0) {
|
|
1424
1442
|
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
1425
1443
|
}
|
|
1444
|
+
if (this.PAMWidgets.length > 0) {
|
|
1445
|
+
/** @type {?} */
|
|
1446
|
+
var indx = this.PAMWidgets.indexOf(widgetInstanceId);
|
|
1447
|
+
if (indx > -1)
|
|
1448
|
+
this.PAMWidgets.splice(indx, 1);
|
|
1449
|
+
this.checkPAMWidgets();
|
|
1450
|
+
}
|
|
1426
1451
|
this.widgetList.splice(this.widgetList.indexOf(gridsterItem[0]), 1);
|
|
1427
1452
|
this.setAreaHeight();
|
|
1428
1453
|
if (!isalertDisabled) {
|
|
@@ -1527,6 +1552,10 @@
|
|
|
1527
1552
|
}));
|
|
1528
1553
|
}
|
|
1529
1554
|
}
|
|
1555
|
+
if (widget.settings && widget.settings.isPAMWidget) {
|
|
1556
|
+
_this.PAMWidgets.push(widget.widgetInstanceId);
|
|
1557
|
+
_this.checkPAMWidgets();
|
|
1558
|
+
}
|
|
1530
1559
|
_this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
|
|
1531
1560
|
}));
|
|
1532
1561
|
};
|
|
@@ -1584,6 +1613,10 @@
|
|
|
1584
1613
|
var gridsterItem = this.responsiveService.getGridsterItem(data);
|
|
1585
1614
|
this.widgetList.push(gridsterItem);
|
|
1586
1615
|
this.setAreaHeight();
|
|
1616
|
+
if (data.settings && data.settings.isPAMWidget) {
|
|
1617
|
+
this.PAMWidgets.push(data.widgetInstanceId);
|
|
1618
|
+
this.checkPAMWidgets();
|
|
1619
|
+
}
|
|
1587
1620
|
};
|
|
1588
1621
|
/**
|
|
1589
1622
|
* @param {?} widgetList
|
|
@@ -1666,6 +1699,20 @@
|
|
|
1666
1699
|
function (data) {
|
|
1667
1700
|
this.raDashboardEventBus.publish(RAEvent.UpdateAppledFiterForInapplicableFilter, data);
|
|
1668
1701
|
};
|
|
1702
|
+
/**
|
|
1703
|
+
* @return {?}
|
|
1704
|
+
*/
|
|
1705
|
+
RADashboardArea.prototype.checkPAMWidgets = /**
|
|
1706
|
+
* @return {?}
|
|
1707
|
+
*/
|
|
1708
|
+
function () {
|
|
1709
|
+
if (this.PAMWidgets.length > 0) {
|
|
1710
|
+
this.raDashboardEventBus.publish(RAEvent.ShowInapplicableFilterMessage, true);
|
|
1711
|
+
}
|
|
1712
|
+
else {
|
|
1713
|
+
this.raDashboardEventBus.publish(RAEvent.ShowInapplicableFilterMessage, false);
|
|
1714
|
+
}
|
|
1715
|
+
};
|
|
1669
1716
|
RADashboardArea.decorators = [
|
|
1670
1717
|
{ type: core.Component, args: [{
|
|
1671
1718
|
selector: 'ra-dashboard-area',
|
|
@@ -1707,6 +1754,8 @@
|
|
|
1707
1754
|
RADashboardArea.prototype.gridcellHeight;
|
|
1708
1755
|
/** @type {?} */
|
|
1709
1756
|
RADashboardArea.prototype.userWidgets;
|
|
1757
|
+
/** @type {?} */
|
|
1758
|
+
RADashboardArea.prototype.PAMWidgets;
|
|
1710
1759
|
/**
|
|
1711
1760
|
* @type {?}
|
|
1712
1761
|
* @private
|
|
@@ -8527,13 +8576,12 @@
|
|
|
8527
8576
|
function (async) {
|
|
8528
8577
|
return _this.getFilterConfig();
|
|
8529
8578
|
});
|
|
8530
|
-
this.
|
|
8531
|
-
* @param {?}
|
|
8532
|
-
* @param {?} appConfig
|
|
8579
|
+
this.setInapplicableFilterMsg = (/**
|
|
8580
|
+
* @param {?} status
|
|
8533
8581
|
* @return {?}
|
|
8534
8582
|
*/
|
|
8535
|
-
function (
|
|
8536
|
-
_this.
|
|
8583
|
+
function (status) {
|
|
8584
|
+
_this.showHideInapplicableMsg(status);
|
|
8537
8585
|
});
|
|
8538
8586
|
this.isValidEntry = (/**
|
|
8539
8587
|
* @return {?}
|
|
@@ -8547,6 +8595,14 @@
|
|
|
8547
8595
|
function () {
|
|
8548
8596
|
_this.clearData();
|
|
8549
8597
|
});
|
|
8598
|
+
this.setAllFilterConfig = (/**
|
|
8599
|
+
* @param {?} globalFilter
|
|
8600
|
+
* @param {?} appConfig
|
|
8601
|
+
* @return {?}
|
|
8602
|
+
*/
|
|
8603
|
+
function (globalFilter, appConfig) {
|
|
8604
|
+
_this.setFilterConfig(globalFilter, appConfig);
|
|
8605
|
+
});
|
|
8550
8606
|
}
|
|
8551
8607
|
/**
|
|
8552
8608
|
* @return {?}
|
|
@@ -8561,9 +8617,10 @@
|
|
|
8561
8617
|
};
|
|
8562
8618
|
RaBaseDashboardFilter.propDecorators = {
|
|
8563
8619
|
getAllFilterConfig: [{ type: core.Input }],
|
|
8564
|
-
|
|
8620
|
+
setInapplicableFilterMsg: [{ type: core.Input }],
|
|
8565
8621
|
isValidEntry: [{ type: core.Input }],
|
|
8566
|
-
clearAllData: [{ type: core.Input }]
|
|
8622
|
+
clearAllData: [{ type: core.Input }],
|
|
8623
|
+
setAllFilterConfig: [{ type: core.Input }]
|
|
8567
8624
|
};
|
|
8568
8625
|
return RaBaseDashboardFilter;
|
|
8569
8626
|
}());
|
|
@@ -8574,11 +8631,13 @@
|
|
|
8574
8631
|
*/
|
|
8575
8632
|
RaBaseDashboardFilter.prototype.getAllFilterConfig;
|
|
8576
8633
|
/** @type {?} */
|
|
8577
|
-
RaBaseDashboardFilter.prototype.
|
|
8634
|
+
RaBaseDashboardFilter.prototype.setInapplicableFilterMsg;
|
|
8578
8635
|
/** @type {?} */
|
|
8579
8636
|
RaBaseDashboardFilter.prototype.isValidEntry;
|
|
8580
8637
|
/** @type {?} */
|
|
8581
8638
|
RaBaseDashboardFilter.prototype.clearAllData;
|
|
8639
|
+
/** @type {?} */
|
|
8640
|
+
RaBaseDashboardFilter.prototype.setAllFilterConfig;
|
|
8582
8641
|
/**
|
|
8583
8642
|
* @abstract
|
|
8584
8643
|
* @return {?}
|
|
@@ -8601,6 +8660,12 @@
|
|
|
8601
8660
|
* @return {?}
|
|
8602
8661
|
*/
|
|
8603
8662
|
RaBaseDashboardFilter.prototype.isValid = function () { };
|
|
8663
|
+
/**
|
|
8664
|
+
* @abstract
|
|
8665
|
+
* @param {?} status
|
|
8666
|
+
* @return {?}
|
|
8667
|
+
*/
|
|
8668
|
+
RaBaseDashboardFilter.prototype.showHideInapplicableMsg = function (status) { };
|
|
8604
8669
|
}
|
|
8605
8670
|
|
|
8606
8671
|
exports.DashboardFrameworkModule = DashboardFrameworkModule;
|