@schneideress/dashboardframework 0.0.152 → 0.0.153
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 +30 -20
- 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/lib/ra-dashboard-area/ra.dashboard.area.js +19 -6
- package/esm2015/lib/ra.dashboard.responsive.service.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +18 -5
- package/esm5/lib/ra.dashboard.responsive.service.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +20 -5
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +19 -4
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.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) {
|
|
@@ -1005,6 +1000,8 @@
|
|
|
1005
1000
|
function (widget) {
|
|
1006
1001
|
/** @type {?} */
|
|
1007
1002
|
var gridsterItem = (/** @type {?} */ ({
|
|
1003
|
+
actCols: widget.width,
|
|
1004
|
+
actRows: widget.height,
|
|
1008
1005
|
cols: this.getWidth(widget.width),
|
|
1009
1006
|
rows: this.getHeight(widget.height),
|
|
1010
1007
|
x: this.IsDesktopView ? widget.position_x : 0,
|
|
@@ -1516,18 +1513,29 @@
|
|
|
1516
1513
|
function (widgetInstanceId, isalertDisabled) {
|
|
1517
1514
|
if (isalertDisabled === void 0) { isalertDisabled = false; }
|
|
1518
1515
|
/** @type {?} */
|
|
1519
|
-
var
|
|
1516
|
+
var gridsterItem = this.widgetList.filter((/**
|
|
1520
1517
|
* @param {?} item
|
|
1521
1518
|
* @return {?}
|
|
1522
1519
|
*/
|
|
1523
1520
|
function (item) {
|
|
1524
1521
|
return item.widgetInfo.widgetInstanceId === widgetInstanceId;
|
|
1525
1522
|
}));
|
|
1526
|
-
if (
|
|
1527
|
-
|
|
1523
|
+
if (gridsterItem.length > 0) {
|
|
1524
|
+
/** @type {?} */
|
|
1525
|
+
var widget = this.userWidgets.filter((/**
|
|
1526
|
+
* @param {?} item
|
|
1527
|
+
* @return {?}
|
|
1528
|
+
*/
|
|
1529
|
+
function (item) {
|
|
1530
|
+
return item.widgetInstanceId === widgetInstanceId;
|
|
1531
|
+
}));
|
|
1532
|
+
if (widget.length > 0) {
|
|
1533
|
+
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
1534
|
+
}
|
|
1535
|
+
this.widgetList.splice(this.widgetList.indexOf(gridsterItem[0]), 1);
|
|
1528
1536
|
this.setAreaHeight();
|
|
1529
1537
|
if (!isalertDisabled) {
|
|
1530
|
-
this.notifier.notify('success', " " + this.translateService.translate('Common.Widgettext') + " " +
|
|
1538
|
+
this.notifier.notify('success', " " + this.translateService.translate('Common.Widgettext') + " " + gridsterItem[0].widgetInfo.widgetTitle + " " + this.translateService.translate('Common.deletedSuccesfully') + " ");
|
|
1531
1539
|
}
|
|
1532
1540
|
}
|
|
1533
1541
|
};
|
|
@@ -1575,6 +1583,7 @@
|
|
|
1575
1583
|
* @return {?}
|
|
1576
1584
|
*/
|
|
1577
1585
|
function (widget) {
|
|
1586
|
+
_this.userWidgets.push(widget);
|
|
1578
1587
|
/** @type {?} */
|
|
1579
1588
|
var gridsterItem = _this.responsiveService.getGridsterItem(widget);
|
|
1580
1589
|
_this.widgetList.push(gridsterItem);
|
|
@@ -1651,6 +1660,7 @@
|
|
|
1651
1660
|
function (widgets) {
|
|
1652
1661
|
}));
|
|
1653
1662
|
}
|
|
1663
|
+
this.userWidgets.push(data);
|
|
1654
1664
|
/** @type {?} */
|
|
1655
1665
|
var gridsterItem = this.responsiveService.getGridsterItem(data);
|
|
1656
1666
|
this.widgetList.push(gridsterItem);
|