@schneideress/dashboardframework 0.0.28 → 0.0.29
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 +49 -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 +36 -9
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +2 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +49 -9
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +2 -1
- package/fesm2015/schneideress-dashboardframework.js +36 -8
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +49 -8
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +7 -0
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +2 -2
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -626,17 +626,57 @@
|
|
|
626
626
|
*/
|
|
627
627
|
function () {
|
|
628
628
|
if (widgetList) {
|
|
629
|
-
widgetList.forEach(
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
function (widgetInfo) {
|
|
634
|
-
_this.addWidget(widgetInfo);
|
|
635
|
-
}));
|
|
629
|
+
// widgetList.forEach(widgetInfo => {
|
|
630
|
+
// this.addWidget(widgetInfo);
|
|
631
|
+
// });
|
|
632
|
+
_this.addWidgetListToGridster(widgetList, 0);
|
|
636
633
|
}
|
|
637
634
|
}));
|
|
638
635
|
}));
|
|
639
636
|
};
|
|
637
|
+
/**
|
|
638
|
+
* temp fix- recursive method to iterate over the list of items
|
|
639
|
+
* and add them to gridster in the given order
|
|
640
|
+
* @param widgetList -list of widgets
|
|
641
|
+
* @param index -index of the current value to be added
|
|
642
|
+
*/
|
|
643
|
+
/**
|
|
644
|
+
* temp fix- recursive method to iterate over the list of items
|
|
645
|
+
* and add them to gridster in the given order
|
|
646
|
+
* @param {?} widgetList -list of widgets
|
|
647
|
+
* @param {?} index -index of the current value to be added
|
|
648
|
+
* @return {?}
|
|
649
|
+
*/
|
|
650
|
+
RADashboardArea.prototype.addWidgetListToGridster = /**
|
|
651
|
+
* temp fix- recursive method to iterate over the list of items
|
|
652
|
+
* and add them to gridster in the given order
|
|
653
|
+
* @param {?} widgetList -list of widgets
|
|
654
|
+
* @param {?} index -index of the current value to be added
|
|
655
|
+
* @return {?}
|
|
656
|
+
*/
|
|
657
|
+
function (widgetList, index) {
|
|
658
|
+
/** @type {?} */
|
|
659
|
+
var areaContext = this;
|
|
660
|
+
/** @type {?} */
|
|
661
|
+
var indexVal = index + 1;
|
|
662
|
+
if (index > widgetList.length - 1)
|
|
663
|
+
return;
|
|
664
|
+
else {
|
|
665
|
+
if (index == 0) {
|
|
666
|
+
areaContext.addWidget(widgetList[index]);
|
|
667
|
+
areaContext.addWidgetListToGridster(widgetList, indexVal);
|
|
668
|
+
}
|
|
669
|
+
else {
|
|
670
|
+
setTimeout((/**
|
|
671
|
+
* @return {?}
|
|
672
|
+
*/
|
|
673
|
+
function () {
|
|
674
|
+
areaContext.addWidget(widgetList[index]);
|
|
675
|
+
areaContext.addWidgetListToGridster(widgetList, indexVal);
|
|
676
|
+
}), 1000);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
};
|
|
640
680
|
/**
|
|
641
681
|
* @return {?}
|
|
642
682
|
*/
|
|
@@ -764,7 +804,7 @@
|
|
|
764
804
|
this.widgetList.splice(this.widgetList.indexOf(widget[0]), 1);
|
|
765
805
|
this.setAreaHeight();
|
|
766
806
|
if (!isalertDisabled) {
|
|
767
|
-
this.notifier.notify('success', " " + this.translateService.translate('
|
|
807
|
+
this.notifier.notify('success', " " + this.translateService.translate('Widget') + " [" + widget[0].widgetInfo.widgetTitle + "] " + this.translateService.translate('DeletedSuccesfully') + " ");
|
|
768
808
|
}
|
|
769
809
|
}
|
|
770
810
|
};
|
|
@@ -1120,6 +1160,7 @@
|
|
|
1120
1160
|
* @return {?}
|
|
1121
1161
|
*/
|
|
1122
1162
|
function () {
|
|
1163
|
+
console.log('widget initialized ' + widgetInfo.widgetInstanceId);
|
|
1123
1164
|
widgetConfigFilter.appConfig = _this.appConfig;
|
|
1124
1165
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1125
1166
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|