@schneideress/dashboardframework 0.0.200 → 0.0.202
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 +69 -50
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +11 -11
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/gridster/index.js +1 -1
- package/esm2015/gridster/lib/gridster.component.js +1 -1
- package/esm2015/gridster/lib/gridster.interface.js +1 -1
- package/esm2015/gridster/lib/gridster.module.js +1 -1
- package/esm2015/gridster/lib/gridsterCompact.service.js +1 -1
- package/esm2015/gridster/lib/gridsterConfig.constant.js +1 -1
- package/esm2015/gridster/lib/gridsterConfig.interface.js +1 -1
- package/esm2015/gridster/lib/gridsterConfigS.interface.js +1 -1
- package/esm2015/gridster/lib/gridsterDraggable.service.js +1 -1
- package/esm2015/gridster/lib/gridsterEmptyCell.service.js +1 -1
- package/esm2015/gridster/lib/gridsterItem.component.js +1 -1
- package/esm2015/gridster/lib/gridsterItem.interface.js +1 -1
- package/esm2015/gridster/lib/gridsterItemComponent.interface.js +1 -1
- package/esm2015/gridster/lib/gridsterPreview.component.js +1 -1
- package/esm2015/gridster/lib/gridsterPush.service.js +1 -1
- package/esm2015/gridster/lib/gridsterPushResize.service.js +1 -1
- package/esm2015/gridster/lib/gridsterRenderer.service.js +1 -1
- package/esm2015/gridster/lib/gridsterResizable.service.js +1 -1
- package/esm2015/gridster/lib/gridsterResizeEventType.interface.js +1 -1
- package/esm2015/gridster/lib/gridsterScroll.service.js +1 -1
- package/esm2015/gridster/lib/gridsterSwap.service.js +1 -1
- package/esm2015/gridster/lib/gridsterUtils.service.js +1 -1
- package/esm2015/lib/custom.notifier.options.js +1 -1
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +19 -6
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +13 -4
- package/esm2015/lib/ra.base.dashboard.filter.js +1 -1
- package/esm2015/lib/ra.base.dashboard.template.js +1 -1
- package/esm2015/lib/ra.dashbard.event.bus.js +1 -1
- package/esm2015/lib/ra.dashboard.module.js +1 -1
- package/esm2015/lib/ra.dashboard.responsive.service.js +1 -1
- package/esm2015/lib/ra.dashboard.service.js +1 -1
- package/esm2015/lib/ra.event.enum.js +1 -1
- package/esm2015/lib/ra.gridster.config.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/esm2015/schneideress-dashboardframework.js +1 -1
- package/esm5/gridster/index.js +1 -1
- package/esm5/gridster/lib/gridster.component.js +1 -1
- package/esm5/gridster/lib/gridster.interface.js +1 -1
- package/esm5/gridster/lib/gridster.module.js +1 -1
- package/esm5/gridster/lib/gridsterCompact.service.js +1 -1
- package/esm5/gridster/lib/gridsterConfig.constant.js +1 -1
- package/esm5/gridster/lib/gridsterConfig.interface.js +1 -1
- package/esm5/gridster/lib/gridsterConfigS.interface.js +1 -1
- package/esm5/gridster/lib/gridsterDraggable.service.js +1 -1
- package/esm5/gridster/lib/gridsterEmptyCell.service.js +1 -1
- package/esm5/gridster/lib/gridsterItem.component.js +1 -1
- package/esm5/gridster/lib/gridsterItem.interface.js +1 -1
- package/esm5/gridster/lib/gridsterItemComponent.interface.js +1 -1
- package/esm5/gridster/lib/gridsterPreview.component.js +1 -1
- package/esm5/gridster/lib/gridsterPush.service.js +1 -1
- package/esm5/gridster/lib/gridsterPushResize.service.js +1 -1
- package/esm5/gridster/lib/gridsterRenderer.service.js +1 -1
- package/esm5/gridster/lib/gridsterResizable.service.js +1 -1
- package/esm5/gridster/lib/gridsterResizeEventType.interface.js +1 -1
- package/esm5/gridster/lib/gridsterScroll.service.js +1 -1
- package/esm5/gridster/lib/gridsterSwap.service.js +1 -1
- package/esm5/gridster/lib/gridsterUtils.service.js +1 -1
- package/esm5/lib/custom.notifier.options.js +1 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +18 -6
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +16 -4
- package/esm5/lib/ra.base.dashboard.filter.js +1 -1
- package/esm5/lib/ra.base.dashboard.template.js +1 -1
- package/esm5/lib/ra.dashbard.event.bus.js +1 -1
- package/esm5/lib/ra.dashboard.module.js +1 -1
- package/esm5/lib/ra.dashboard.responsive.service.js +1 -1
- package/esm5/lib/ra.dashboard.service.js +1 -1
- package/esm5/lib/ra.event.enum.js +1 -1
- package/esm5/lib/ra.gridster.config.js +1 -1
- package/esm5/public-api.js +1 -1
- package/esm5/schneideress-dashboardframework.js +1 -1
- package/fesm2015/schneideress-dashboardframework.js +58 -36
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +60 -36
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +4 -2
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +4 -2
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
}(this, (function (exports, core, rxjs, raCommon, operators, ngxUiLoader, angularNotifier, widgetframework, platformBrowser, http, common, userControls, commonControls) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
10
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
11
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
15
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
12
17
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
|
+
and limitations under the License.
|
|
20
20
|
***************************************************************************** */
|
|
21
21
|
/* global Reflect, Promise */
|
|
22
22
|
|
|
@@ -109,13 +109,8 @@
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
function __createBinding(o, m, k, k2) {
|
|
113
|
-
if (k2 === undefined) k2 = k;
|
|
114
|
-
o[k2] = m[k];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
112
|
function __exportStar(m, exports) {
|
|
118
|
-
for (var p in m) if (
|
|
113
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
119
114
|
}
|
|
120
115
|
|
|
121
116
|
function __values(o) {
|
|
@@ -226,7 +221,7 @@
|
|
|
226
221
|
/**
|
|
227
222
|
* @fileoverview added by tsickle
|
|
228
223
|
* Generated from: lib/ra.dashboard.service.ts
|
|
229
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
224
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
230
225
|
*/
|
|
231
226
|
var RaDashboardService = /** @class */ (function (_super) {
|
|
232
227
|
__extends(RaDashboardService, _super);
|
|
@@ -442,7 +437,7 @@
|
|
|
442
437
|
/**
|
|
443
438
|
* @fileoverview added by tsickle
|
|
444
439
|
* Generated from: lib/ra.dashbard.event.bus.ts
|
|
445
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
440
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
446
441
|
*/
|
|
447
442
|
var RADashboardEventBus = /** @class */ (function () {
|
|
448
443
|
function RADashboardEventBus() {
|
|
@@ -563,7 +558,7 @@
|
|
|
563
558
|
/**
|
|
564
559
|
* @fileoverview added by tsickle
|
|
565
560
|
* Generated from: lib/ra.event.enum.ts
|
|
566
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
561
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
567
562
|
*/
|
|
568
563
|
/** @enum {string} */
|
|
569
564
|
var RAEvent = {
|
|
@@ -622,7 +617,7 @@
|
|
|
622
617
|
/**
|
|
623
618
|
* @fileoverview added by tsickle
|
|
624
619
|
* Generated from: lib/ra.gridster.config.ts
|
|
625
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
620
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
626
621
|
*/
|
|
627
622
|
/** @type {?} */
|
|
628
623
|
var GridsterConfigDefaultSettings = {
|
|
@@ -684,7 +679,7 @@
|
|
|
684
679
|
/**
|
|
685
680
|
* @fileoverview added by tsickle
|
|
686
681
|
* Generated from: lib/ra.dashboard.responsive.service.ts
|
|
687
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
682
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
688
683
|
*/
|
|
689
684
|
var RADashboardResponsiveService = /** @class */ (function () {
|
|
690
685
|
function RADashboardResponsiveService() {
|
|
@@ -927,16 +922,17 @@
|
|
|
927
922
|
/**
|
|
928
923
|
* @fileoverview added by tsickle
|
|
929
924
|
* Generated from: lib/ra-dashboard-area/ra.dashboard.area.ts
|
|
930
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
925
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
931
926
|
*/
|
|
932
927
|
var RADashboardArea = /** @class */ (function () {
|
|
933
|
-
function RADashboardArea(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService) {
|
|
928
|
+
function RADashboardArea(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService) {
|
|
934
929
|
this.dashboardService = dashboardService;
|
|
935
930
|
this.ngZone = ngZone;
|
|
936
931
|
this.ngxService = ngxService;
|
|
937
932
|
this.translateService = translateService;
|
|
938
933
|
this.notifier = notifier;
|
|
939
934
|
this.responsiveService = responsiveService;
|
|
935
|
+
this.permissionService = permissionService;
|
|
940
936
|
this.widgetList = Array();
|
|
941
937
|
this.gridheight = 300;
|
|
942
938
|
this.gridcellHeight = 0;
|
|
@@ -944,6 +940,7 @@
|
|
|
944
940
|
this.isWidgetLoaded = false;
|
|
945
941
|
this.domResized = false;
|
|
946
942
|
this.showEmptyDashboard = false;
|
|
943
|
+
this.isDashboardMgmnt = false;
|
|
947
944
|
this.widgetHeight = 2;
|
|
948
945
|
this.widgetWidth = 4;
|
|
949
946
|
this.hideDashboardBanner = new core.EventEmitter();
|
|
@@ -993,6 +990,7 @@
|
|
|
993
990
|
* @return {?}
|
|
994
991
|
*/
|
|
995
992
|
function (changes) {
|
|
993
|
+
this.isDashboardMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
996
994
|
if (this.raDashboardEventBus && this.appConfig && !this.isWidgetLoaded) {
|
|
997
995
|
this.isWidgetLoaded = true;
|
|
998
996
|
this.loadWidgets(this.userDashboardId, this.areaKey);
|
|
@@ -1319,6 +1317,7 @@
|
|
|
1319
1317
|
if (_this.options.api) {
|
|
1320
1318
|
curRowHeight = _this.options.api.getCurrentRowHeight();
|
|
1321
1319
|
}
|
|
1320
|
+
_this.showEmptyDashboard = _this.userWidgets.length > 0 ? false : true;
|
|
1322
1321
|
_this.widgetList.forEach((/**
|
|
1323
1322
|
* @param {?} t
|
|
1324
1323
|
* @return {?}
|
|
@@ -1618,7 +1617,7 @@
|
|
|
1618
1617
|
RADashboardArea.decorators = [
|
|
1619
1618
|
{ type: core.Component, args: [{
|
|
1620
1619
|
selector: 'ra-dashboard-area',
|
|
1621
|
-
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [ngStyle]=\"{'height': userWidgets.length > 0 ? (gridheight + 'px') : 'unset'}\">\r\n <!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\" *ngIf=\"userWidgets.length > 0\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\"\r\n (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\" [global-filter]=\"globalFilter\"\r\n [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\" [widget-width]=\"item.cols\"\r\n [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\" [dom-resized]=\"domResized\">\r\n </ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n\r\n <div class=\"empty-padding kiosk-hide\" *ngIf=\"showEmptyDashboard\">\r\n <div class=\"empty-wrapper\">\r\n <div></div>\r\n <div class=\"m-1 empty-prefix\">\r\n <i class=\"fal fa-edit edit-icon\"></i>\r\n <span class=\"empty-title\">{{'dashboard.emptydashboard'|translate}}</span>\r\n </div>\r\n <div class=\"empty-content light\">\r\n <div>\r\n <div class=\"col-sm-12 empty-msg\">\r\n {{'dashboard.emptydashboardmessage'|translate}} <br />\r\n {{'dashboard.emptydashboardmessage2'|translate}}\r\n </div>\r\n <button class=\"btn btnLib btn-sm m-1 dashboard-button light\" (click)=\"addNewWidget()\">\r\n <i class=\"fal fa-plus m-1\"></i>{{'dashboard.addawidgets'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <notifier-container></notifier-container>\r\n</div>",
|
|
1620
|
+
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [ngStyle]=\"{'height': userWidgets.length > 0 ? (gridheight + 'px') : 'unset'}\">\r\n <!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\" *ngIf=\"userWidgets.length > 0\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\"\r\n (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\" [global-filter]=\"globalFilter\"\r\n [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\" [widget-width]=\"item.cols\"\r\n [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\" [dom-resized]=\"domResized\">\r\n </ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n\r\n <div class=\"empty-padding kiosk-hide\" *ngIf=\"showEmptyDashboard\">\r\n <div class=\"empty-wrapper\">\r\n <div></div>\r\n <div class=\"m-1 empty-prefix\">\r\n <i class=\"fal fa-edit edit-icon\"></i>\r\n <span class=\"empty-title\">{{'dashboard.emptydashboard'|translate}}</span>\r\n </div>\r\n <div class=\"empty-content light\">\r\n <div>\r\n <div class=\"col-sm-12 empty-msg\">\r\n {{'dashboard.emptydashboardmessage'|translate}} <br />\r\n {{'dashboard.emptydashboardmessage2'|translate}}\r\n </div>\r\n <button *ngIf=\"isDashboardMgmnt\" class=\"btn btnLib btn-sm m-1 dashboard-button light\" (click)=\"addNewWidget()\">\r\n <i class=\"fal fa-plus m-1\"></i>{{'dashboard.addawidgets'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <notifier-container></notifier-container>\r\n</div>",
|
|
1622
1621
|
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#ededed;overflow-y:hidden!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;box-shadow:0 1px 10px rgba(0,0,0,.05)}gridster-item:hover{box-shadow:0 1px 10px rgba(0,0,0,.15)}@media screen and (max-width:685px){.gridster-mobile{height:auto!important;margin-bottom:50px!important}}@media screen and (max-width:350px){.gridster-mobile{min-height:330px!important;margin-bottom:0!important}}.empty-padding{padding:40px 20px 20px;background-color:#ededed;display:flex;justify-content:center;align-content:center}.empty-wrapper{display:flex;background-color:#fff;border-radius:8px;min-height:125px;width:72%}.empty-prefix{color:#32ad3c;font-size:18px;display:flex;align-items:center;padding:10px 30px;min-width:-webkit-max-content;min-width:max-content;min-width:-moz-max-content}.empty-content{color:#333;border-left:1px solid #a9afb1;width:100%;display:flex;align-items:center;padding:15px 30px 10px 40px}.empty-msg{padding:0 0 5px;font-size:16px}.dashboard-button{padding:5px 10px 5px 5px!important}.btnLib{background-color:#ededed;color:#333!important}.btn-group-sm>.btn,.btn-sm{padding:5px 20px 5px 5px}.edit-icon{color:#32ad3c;font-size:24px;margin-right:15px}.empty-title{margin-top:10px}@media screen and (max-width:600px){.empty-padding{padding:10px;background-color:#ededed;width:100%;display:block}.empty-wrapper{display:flex;background-color:#fff;border-radius:8px;min-height:125px;width:100%}.empty-prefix{color:#32ad3c;font-size:16px;display:flex;height:40px;padding:6px 10px 8px}.empty-content{color:#333;display:flex;padding:5px 10px 10px;margin-top:44px;margin-left:-185px;border-left:none}.empty-msg{padding:12px 10px 10px 5px;font-size:14px;border-top:1px solid #a9afb1}.edit-icon{color:#32ad3c;font-size:20px;margin-right:6px}.empty-title{margin-top:6px}}"]
|
|
1623
1622
|
}] }
|
|
1624
1623
|
];
|
|
@@ -1629,7 +1628,8 @@
|
|
|
1629
1628
|
{ type: ngxUiLoader.NgxUiLoaderService },
|
|
1630
1629
|
{ type: raCommon.RATranslateService },
|
|
1631
1630
|
{ type: angularNotifier.NotifierService },
|
|
1632
|
-
{ type: RADashboardResponsiveService }
|
|
1631
|
+
{ type: RADashboardResponsiveService },
|
|
1632
|
+
{ type: raCommon.RAPermissionService }
|
|
1633
1633
|
]; };
|
|
1634
1634
|
RADashboardArea.propDecorators = {
|
|
1635
1635
|
userDashboardId: [{ type: core.Input, args: ['user-dashboard-id',] }],
|
|
@@ -1690,6 +1690,8 @@
|
|
|
1690
1690
|
/** @type {?} */
|
|
1691
1691
|
RADashboardArea.prototype.showEmptyDashboard;
|
|
1692
1692
|
/** @type {?} */
|
|
1693
|
+
RADashboardArea.prototype.isDashboardMgmnt;
|
|
1694
|
+
/** @type {?} */
|
|
1693
1695
|
RADashboardArea.prototype.userDashboardId;
|
|
1694
1696
|
/** @type {?} */
|
|
1695
1697
|
RADashboardArea.prototype.areaKey;
|
|
@@ -1737,12 +1739,17 @@
|
|
|
1737
1739
|
* @private
|
|
1738
1740
|
*/
|
|
1739
1741
|
RADashboardArea.prototype.responsiveService;
|
|
1742
|
+
/**
|
|
1743
|
+
* @type {?}
|
|
1744
|
+
* @private
|
|
1745
|
+
*/
|
|
1746
|
+
RADashboardArea.prototype.permissionService;
|
|
1740
1747
|
}
|
|
1741
1748
|
|
|
1742
1749
|
/**
|
|
1743
1750
|
* @fileoverview added by tsickle
|
|
1744
1751
|
* Generated from: lib/ra-widget-container/ra.widget.container.component.ts
|
|
1745
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
1752
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1746
1753
|
*/
|
|
1747
1754
|
var RAWidgetContainer = /** @class */ (function () {
|
|
1748
1755
|
function RAWidgetContainer(dashboardService, ngxService, translateService, ngZone, notifier, renderer, raPermissionService) {
|
|
@@ -1813,6 +1820,15 @@
|
|
|
1813
1820
|
enumerable: true,
|
|
1814
1821
|
configurable: true
|
|
1815
1822
|
});
|
|
1823
|
+
/**
|
|
1824
|
+
* @return {?}
|
|
1825
|
+
*/
|
|
1826
|
+
RAWidgetContainer.prototype.ngOnInit = /**
|
|
1827
|
+
* @return {?}
|
|
1828
|
+
*/
|
|
1829
|
+
function () {
|
|
1830
|
+
this.WidgetDisplayName = this.translateService.translate('Common.' + this.data.widgetInfo.widgetTitle, true);
|
|
1831
|
+
};
|
|
1816
1832
|
Object.defineProperty(RAWidgetContainer.prototype, "widgetViewState", {
|
|
1817
1833
|
get: /**
|
|
1818
1834
|
* @return {?}
|
|
@@ -2008,7 +2024,7 @@
|
|
|
2008
2024
|
widgetContainerContext.widgetDeleted.emit(_this.data.widgetInfo.widgetInstanceId);
|
|
2009
2025
|
}
|
|
2010
2026
|
else {
|
|
2011
|
-
widgetContainerContext.notifier.notify('error', " " + _this.translateService.translate('FailedToRemoveWidget') + " (" + _this.data.widgetInfo.widgetTitle + ")!");
|
|
2027
|
+
widgetContainerContext.notifier.notify('error', " " + _this.translateService.translate('FailedToRemoveWidget') + " (" + _this.translateService.translate('Common.' + _this.data.widgetInfo.widgetTitle, true) + ")!");
|
|
2012
2028
|
}
|
|
2013
2029
|
}));
|
|
2014
2030
|
};
|
|
@@ -2340,6 +2356,7 @@
|
|
|
2340
2356
|
return __generator(this, function (_a) {
|
|
2341
2357
|
switch (_a.label) {
|
|
2342
2358
|
case 0:
|
|
2359
|
+
this.WidgetDisplayName = this.translateService.translate('Common.' + this.data.widgetInfo.widgetTitle, true);
|
|
2343
2360
|
widgetInfo.rowHeight = this.gridCellHeight;
|
|
2344
2361
|
this.setNotConfiguredState(widgetInfo);
|
|
2345
2362
|
widgetContainerContext = this;
|
|
@@ -2726,7 +2743,7 @@
|
|
|
2726
2743
|
RAWidgetContainer.decorators = [
|
|
2727
2744
|
{ type: core.Component, args: [{
|
|
2728
2745
|
selector: 'ra-widget-container',
|
|
2729
|
-
template: "<div #wcWrapper class=\"wc-wrapper\" (mouseenter)=\"mouseHover(true)\" (mouseleave)=\"mouseHover(false)\"\r\n [ngStyle]=\"{'margin-left': noPadding?'0px':'15px','margin-right': noPadding?'0px':'15px'}\">\r\n <div class=\"wcheader widget-move\" [ngClass]=\"{'underLine': enableTitleLine || isWidgetStateApplicable}\">\r\n <div class=\"col-md-12 wc-mover\" style=\"padding-left: 0px;height:inherit;padding-right: 0px;\">\r\n <div style=\"display:flex;margin-top:10px;\"\r\n [ngStyle]=\"{'margin-left': noPadding?'15px':'0px','margin-right': noPadding?'15px':'0px'}\">\r\n <div class=\"col-md-10 float-left title-label\">\r\n <ra-tooltip [value]=\"toolTipValue\" [width]=\"toolTipWidth\">\r\n <div style=\"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;\" (mouseover)=\"mouseOver($event)\"\r\n #searchInput>{{
|
|
2746
|
+
template: "<div #wcWrapper class=\"wc-wrapper\" (mouseenter)=\"mouseHover(true)\" (mouseleave)=\"mouseHover(false)\"\r\n [ngStyle]=\"{'margin-left': noPadding?'0px':'15px','margin-right': noPadding?'0px':'15px'}\">\r\n <div class=\"wcheader widget-move\" [ngClass]=\"{'underLine': enableTitleLine || isWidgetStateApplicable}\">\r\n <div class=\"col-md-12 wc-mover\" style=\"padding-left: 0px;height:inherit;padding-right: 0px;\">\r\n <div style=\"display:flex;margin-top:10px;\"\r\n [ngStyle]=\"{'margin-left': noPadding?'15px':'0px','margin-right': noPadding?'15px':'0px'}\">\r\n <div class=\"col-md-10 float-left title-label\">\r\n <ra-tooltip [value]=\"toolTipValue\" [width]=\"toolTipWidth\">\r\n <div style=\"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;\" (mouseover)=\"mouseOver($event)\"\r\n #searchInput>{{WidgetDisplayName}}</div>\r\n </ra-tooltip>\r\n </div>\r\n <div class=\"col-md-2\" style=\"cursor:default;padding-right: 0px;\">\r\n <div class=\"float-right\" style=\"display: flex;\">\r\n <div class=\"title-bar-lock-icon lock-dropdown\" [hidden]=\"!lockDetails && !lockTemplateInfo\">\r\n <i class=\"fal fa-lock lock\"></i>\r\n <div class=\"lock-dropdown-content light widget-config-item\">\r\n <div *ngIf=\"lockDetails && !lockTemplateInfo\">\r\n <label style=\"color: #D9F0FA;\">\r\n {{'Common.lockedfields'|translate}}\r\n </label>\r\n <div style=\"color: white;\">\r\n <label class=\"bold\" style=\"margin-bottom: 0px;width: 100%;\" *ngFor=\"let item of lockDetails\">\r\n {{item}}\r\n </label>\r\n </div>\r\n <hr>\r\n <div style=\"color: #D9F0FA;\">\r\n <label>{{'Common.lockedfieldseditinfo'|translate}}</label>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!lockDetails && lockTemplateInfo\">\r\n <ng-container *ngTemplateOutlet=\"lockTemplateInfo\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"widget-menu\" style=\"width:10px;\" [ngClass]=\"{'widget-menu-show': isMouseHover}\">\r\n <div class=\"dropbtn title-bar-icon\">\r\n <i (click)=\"showDropDown($event)\" #widgetDropdown class=\"fal fa-ellipsis-v widget-menu-ellipse\"></i>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"wcBody\" [ngStyle]=\"{'bottom': noPadding?'0px':'10px'}\">\r\n <div [hidden]=\"isWidgetStateApplicable\" class=\"m-fadeOut widget-overlay\" [ngClass]=\"{'m-fadeIn': showPanel}\">\r\n <div class=\"lds-roller\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n </div>\r\n <div class=\"wc\" [hidden]=\"isWidgetStateApplicable\">\r\n <div #ctlWidget></div>\r\n </div>\r\n <div *ngIf=\"isWidgetStateApplicable\" class=\"defaultConfig\">\r\n <ra-widget-state style=\"width: 100%;\" [isWidgetStateApplicable]=\"isWidgetStateApplicable\" [isGlobalFilterApplied]=\"isGlobalFilterApplied\"\r\n [widgetEmptyState]=\"widgetEmptyState\" (editWidgetClicked)=editWidget()>\r\n </ra-widget-state>\r\n </div>\r\n <div>\r\n </div>\r\n </div>\r\n</div>"
|
|
2730
2747
|
}] }
|
|
2731
2748
|
];
|
|
2732
2749
|
/** @nocollapse */
|
|
@@ -2881,6 +2898,8 @@
|
|
|
2881
2898
|
RAWidgetContainer.prototype.baseUrl;
|
|
2882
2899
|
/** @type {?} */
|
|
2883
2900
|
RAWidgetContainer.prototype.isWidgetMgmnt;
|
|
2901
|
+
/** @type {?} */
|
|
2902
|
+
RAWidgetContainer.prototype.WidgetDisplayName;
|
|
2884
2903
|
/**
|
|
2885
2904
|
* @type {?}
|
|
2886
2905
|
* @private
|
|
@@ -2921,7 +2940,7 @@
|
|
|
2921
2940
|
/**
|
|
2922
2941
|
* @fileoverview added by tsickle
|
|
2923
2942
|
* Generated from: lib/custom.notifier.options.ts
|
|
2924
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
2943
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2925
2944
|
*/
|
|
2926
2945
|
/** @type {?} */
|
|
2927
2946
|
var customNotifierOptions = {
|
|
@@ -2968,7 +2987,7 @@
|
|
|
2968
2987
|
/**
|
|
2969
2988
|
* @fileoverview added by tsickle
|
|
2970
2989
|
* Generated from: gridster/lib/gridsterConfig.interface.ts
|
|
2971
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
2990
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2972
2991
|
*/
|
|
2973
2992
|
/** @enum {string} */
|
|
2974
2993
|
var GridType = {
|
|
@@ -3185,7 +3204,7 @@
|
|
|
3185
3204
|
/**
|
|
3186
3205
|
* @fileoverview added by tsickle
|
|
3187
3206
|
* Generated from: gridster/lib/gridsterConfig.constant.ts
|
|
3188
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
3207
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3189
3208
|
*/
|
|
3190
3209
|
/** @type {?} */
|
|
3191
3210
|
var GridsterConfigService = {
|
|
@@ -3364,7 +3383,7 @@
|
|
|
3364
3383
|
/**
|
|
3365
3384
|
* @fileoverview added by tsickle
|
|
3366
3385
|
* Generated from: gridster/lib/gridsterUtils.service.ts
|
|
3367
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
3386
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3368
3387
|
*/
|
|
3369
3388
|
var GridsterUtils = /** @class */ (function () {
|
|
3370
3389
|
function GridsterUtils() {
|
|
@@ -3540,7 +3559,7 @@
|
|
|
3540
3559
|
/**
|
|
3541
3560
|
* @fileoverview added by tsickle
|
|
3542
3561
|
* Generated from: gridster/lib/gridster.interface.ts
|
|
3543
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
3562
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3544
3563
|
*/
|
|
3545
3564
|
/**
|
|
3546
3565
|
* @abstract
|
|
@@ -3631,7 +3650,7 @@
|
|
|
3631
3650
|
/**
|
|
3632
3651
|
* @fileoverview added by tsickle
|
|
3633
3652
|
* Generated from: gridster/lib/gridsterEmptyCell.service.ts
|
|
3634
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
3653
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3635
3654
|
*/
|
|
3636
3655
|
var GridsterEmptyCell = /** @class */ (function () {
|
|
3637
3656
|
function GridsterEmptyCell(gridster) {
|
|
@@ -3986,7 +4005,7 @@
|
|
|
3986
4005
|
/**
|
|
3987
4006
|
* @fileoverview added by tsickle
|
|
3988
4007
|
* Generated from: gridster/lib/gridsterCompact.service.ts
|
|
3989
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
4008
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3990
4009
|
*/
|
|
3991
4010
|
var GridsterCompact = /** @class */ (function () {
|
|
3992
4011
|
function GridsterCompact(gridster) {
|
|
@@ -4236,7 +4255,7 @@
|
|
|
4236
4255
|
/**
|
|
4237
4256
|
* @fileoverview added by tsickle
|
|
4238
4257
|
* Generated from: gridster/lib/gridsterRenderer.service.ts
|
|
4239
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
4258
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4240
4259
|
*/
|
|
4241
4260
|
var GridsterRenderer = /** @class */ (function () {
|
|
4242
4261
|
function GridsterRenderer(gridster) {
|
|
@@ -4555,7 +4574,7 @@
|
|
|
4555
4574
|
/**
|
|
4556
4575
|
* @fileoverview added by tsickle
|
|
4557
4576
|
* Generated from: gridster/lib/gridster.component.ts
|
|
4558
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
4577
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4559
4578
|
*/
|
|
4560
4579
|
var GridsterComponent = /** @class */ (function () {
|
|
4561
4580
|
function GridsterComponent(el, renderer, cdRef, zone) {
|
|
@@ -5352,7 +5371,7 @@
|
|
|
5352
5371
|
/**
|
|
5353
5372
|
* @fileoverview added by tsickle
|
|
5354
5373
|
* Generated from: gridster/lib/gridsterItemComponent.interface.ts
|
|
5355
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
5374
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5356
5375
|
*/
|
|
5357
5376
|
/**
|
|
5358
5377
|
* @abstract
|
|
@@ -5407,7 +5426,7 @@
|
|
|
5407
5426
|
/**
|
|
5408
5427
|
* @fileoverview added by tsickle
|
|
5409
5428
|
* Generated from: gridster/lib/gridsterSwap.service.ts
|
|
5410
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
5429
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5411
5430
|
*/
|
|
5412
5431
|
var GridsterSwap = /** @class */ (function () {
|
|
5413
5432
|
function GridsterSwap(gridsterItem) {
|
|
@@ -5557,7 +5576,7 @@
|
|
|
5557
5576
|
/**
|
|
5558
5577
|
* @fileoverview added by tsickle
|
|
5559
5578
|
* Generated from: gridster/lib/gridsterScroll.service.ts
|
|
5560
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
5579
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5561
5580
|
*/
|
|
5562
5581
|
/** @type {?} */
|
|
5563
5582
|
var scrollSensitivity;
|
|
@@ -5753,7 +5772,7 @@
|
|
|
5753
5772
|
/**
|
|
5754
5773
|
* @fileoverview added by tsickle
|
|
5755
5774
|
* Generated from: gridster/lib/gridsterPush.service.ts
|
|
5756
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
5775
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5757
5776
|
*/
|
|
5758
5777
|
var GridsterPush = /** @class */ (function () {
|
|
5759
5778
|
function GridsterPush(gridsterItem) {
|
|
@@ -6298,7 +6317,7 @@
|
|
|
6298
6317
|
/**
|
|
6299
6318
|
* @fileoverview added by tsickle
|
|
6300
6319
|
* Generated from: gridster/lib/gridsterDraggable.service.ts
|
|
6301
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
6320
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6302
6321
|
*/
|
|
6303
6322
|
var GridsterDraggable = /** @class */ (function () {
|
|
6304
6323
|
function GridsterDraggable(gridsterItem, gridster, zone) {
|
|
@@ -6840,7 +6859,7 @@
|
|
|
6840
6859
|
/**
|
|
6841
6860
|
* @fileoverview added by tsickle
|
|
6842
6861
|
* Generated from: gridster/lib/gridsterPushResize.service.ts
|
|
6843
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
6862
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6844
6863
|
*/
|
|
6845
6864
|
var GridsterPushResize = /** @class */ (function () {
|
|
6846
6865
|
function GridsterPushResize(gridsterItem) {
|
|
@@ -7260,7 +7279,7 @@
|
|
|
7260
7279
|
/**
|
|
7261
7280
|
* @fileoverview added by tsickle
|
|
7262
7281
|
* Generated from: gridster/lib/gridsterResizable.service.ts
|
|
7263
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
7282
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7264
7283
|
*/
|
|
7265
7284
|
var GridsterResizable = /** @class */ (function () {
|
|
7266
7285
|
function GridsterResizable(gridsterItem, gridster, zone) {
|
|
@@ -7882,7 +7901,7 @@
|
|
|
7882
7901
|
/**
|
|
7883
7902
|
* @fileoverview added by tsickle
|
|
7884
7903
|
* Generated from: gridster/lib/gridsterItem.component.ts
|
|
7885
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
7904
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7886
7905
|
*/
|
|
7887
7906
|
var GridsterItemComponent = /** @class */ (function () {
|
|
7888
7907
|
function GridsterItemComponent(el, gridster, renderer, zone) {
|
|
@@ -8115,7 +8134,7 @@
|
|
|
8115
8134
|
/**
|
|
8116
8135
|
* @fileoverview added by tsickle
|
|
8117
8136
|
* Generated from: gridster/lib/gridsterPreview.component.ts
|
|
8118
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
8137
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8119
8138
|
*/
|
|
8120
8139
|
var GridsterPreviewComponent = /** @class */ (function () {
|
|
8121
8140
|
function GridsterPreviewComponent(el, gridster, renderer) {
|
|
@@ -8183,7 +8202,7 @@
|
|
|
8183
8202
|
/**
|
|
8184
8203
|
* @fileoverview added by tsickle
|
|
8185
8204
|
* Generated from: gridster/lib/gridster.module.ts
|
|
8186
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
8205
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8187
8206
|
*/
|
|
8188
8207
|
var GridsterModule = /** @class */ (function () {
|
|
8189
8208
|
function GridsterModule() {
|
|
@@ -8209,7 +8228,7 @@
|
|
|
8209
8228
|
/**
|
|
8210
8229
|
* @fileoverview added by tsickle
|
|
8211
8230
|
* Generated from: lib/ra.dashboard.module.ts
|
|
8212
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
8231
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8213
8232
|
*/
|
|
8214
8233
|
var DashboardFrameworkModule = /** @class */ (function () {
|
|
8215
8234
|
function DashboardFrameworkModule() {
|
|
@@ -8242,7 +8261,7 @@
|
|
|
8242
8261
|
/**
|
|
8243
8262
|
* @fileoverview added by tsickle
|
|
8244
8263
|
* Generated from: lib/ra.base.dashboard.template.ts
|
|
8245
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
8264
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8246
8265
|
*/
|
|
8247
8266
|
/**
|
|
8248
8267
|
* @abstract
|
|
@@ -8315,7 +8334,7 @@
|
|
|
8315
8334
|
/**
|
|
8316
8335
|
* @fileoverview added by tsickle
|
|
8317
8336
|
* Generated from: lib/ra.base.dashboard.filter.ts
|
|
8318
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,
|
|
8337
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8319
8338
|
*/
|
|
8320
8339
|
/**
|
|
8321
8340
|
* @abstract
|