@colijnit/sharedcomponents 257.1.0 → 257.1.1
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/colijnit-sharedcomponents.umd.js +22 -4
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +19 -5
- package/fesm2015/colijnit-sharedcomponents.js +18 -4
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3742,22 +3742,40 @@
|
|
|
3742
3742
|
this.requestChange = new i0.EventEmitter();
|
|
3743
3743
|
this.showLayoutList = false;
|
|
3744
3744
|
}
|
|
3745
|
+
Object.defineProperty(LayoutSelectionComponent.prototype, "request", {
|
|
3746
|
+
set: function (value) {
|
|
3747
|
+
this._request = value;
|
|
3748
|
+
if (!this._request.reportId && this.currentLayout) {
|
|
3749
|
+
this._request.reportId = this.currentLayout.reportId;
|
|
3750
|
+
this.requestChange.emit(this._request);
|
|
3751
|
+
}
|
|
3752
|
+
},
|
|
3753
|
+
enumerable: false,
|
|
3754
|
+
configurable: true
|
|
3755
|
+
});
|
|
3745
3756
|
LayoutSelectionComponent.prototype.showClass = function () {
|
|
3746
3757
|
return true;
|
|
3747
3758
|
};
|
|
3748
3759
|
LayoutSelectionComponent.prototype.ngOnInit = function () {
|
|
3749
3760
|
var _this = this;
|
|
3750
3761
|
if (this.layouts && this.layouts.length > 0) {
|
|
3751
|
-
|
|
3752
|
-
|
|
3762
|
+
if (this._request) {
|
|
3763
|
+
this.currentLayout = this.layouts.find(function (l) { return l.reportId === _this._request.reportId; });
|
|
3764
|
+
if (!this.currentLayout) {
|
|
3765
|
+
this.currentLayout = this.layouts[0];
|
|
3766
|
+
this._request.reportId = this.currentLayout.reportId;
|
|
3767
|
+
this.requestChange.emit(this._request);
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3770
|
+
else {
|
|
3753
3771
|
this.currentLayout = this.layouts[0];
|
|
3754
3772
|
}
|
|
3755
3773
|
}
|
|
3756
3774
|
};
|
|
3757
3775
|
LayoutSelectionComponent.prototype.handleSelectLayout = function (reportLayout) {
|
|
3758
3776
|
this.currentLayout = reportLayout;
|
|
3759
|
-
this.
|
|
3760
|
-
this.requestChange.emit(this.
|
|
3777
|
+
this._request.reportId = this.currentLayout.reportId;
|
|
3778
|
+
this.requestChange.emit(this._request);
|
|
3761
3779
|
this.showLayoutList = false;
|
|
3762
3780
|
};
|
|
3763
3781
|
LayoutSelectionComponent.prototype.closeSelectLayout = function () {
|