ru.coon 2.5.40 → 2.5.41
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/.husky/pre-commit +0 -0
- package/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/src/common/component/ExternalFrame.js +3 -1
- package/src/common/field/FieldsHelper.js +0 -0
- package/src/common/panel/WindowWrap.js +0 -0
- package/src/report/plugin/grid/ExportReportDataToFilePlugin.md +7 -0
- package/src/report/plugin/report/BindCustomPanelPlugin.js +3 -4
- package/src/uielement/component/settings/FrameView.js +1 -1
- package/src/uielement/component/settings/FrameViewController.js +1 -1
- package/src/uielement/component/settings/UiCustomPanelEditorController.js +3 -3
- package/src/version.js +1 -1
package/.husky/pre-commit
CHANGED
|
File without changes
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# Version 2.5.41, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/612fb7573419ad9857649f7211c8d7a56e52cdb4)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: BFL-9521: init dependent form params anytime</span> ([2e5aa1], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2e5aa16eeace7205cff9e01295f43d0f4ce956c6))
|
|
4
|
+
|
|
5
|
+
* ## Fixes
|
|
6
|
+
* <span style='color:red'> BFL-9515 исправления по проверке безопасности фронтенда в части взаимодействия с iswe в iframe</span> ([f34b8f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f34b8fdf31285fd53f932dfe277e961ffa275fd0))
|
|
7
|
+
* <span style='color:red'> postMessage origin fix. Closes BFL-9515.</span> ([21ab56], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/21ab56a1998efe4b6cd4e4d35337c8fbc5b47729))
|
|
8
|
+
|
|
9
|
+
* ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update src/uielement/component/settings/UiCustomPanelEditorController.js9987a0e79de3a1fa5fa93216f0ffd4bdb50c59fc))
|
|
10
|
+
* update: CHANGELOG.md ([958f76], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/958f76b4fca9844ca6bae88260580ff2340843e5))
|
|
11
|
+
|
|
1
12
|
# Version 2.5.40, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5b5d783b6007d6cf16d9f3fb48e203818a0b9c47)
|
|
2
13
|
* ## Fixes
|
|
3
14
|
* <span style='color:red'>fix</span> ([5400c1], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5400c17b624f78acfa1dbe8c27742e7a1f4b1cc1))
|
package/package.json
CHANGED
|
@@ -130,8 +130,10 @@ Ext.define('Coon.uielement.component.ExternalFrame', {
|
|
|
130
130
|
if (this.showFrameTitle === true) {
|
|
131
131
|
showFrameTitleParam = '&showFrameTitle=1';
|
|
132
132
|
}
|
|
133
|
+
const wbTargetOrigin = `&wbTargetOrigin=` + window.origin;
|
|
134
|
+
|
|
133
135
|
const req = await fetch(
|
|
134
|
-
`${this.pathResolver}/${this.type.toUpperCase()}/${this.path}${themeParam}${ext7frameParam}${showFrameTitleParam}`
|
|
136
|
+
`${this.pathResolver}/${this.type.toUpperCase()}/${this.path}${themeParam}${ext7frameParam}${showFrameTitleParam}${wbTargetOrigin}`
|
|
135
137
|
);
|
|
136
138
|
const redirectedUrl = await req.text();
|
|
137
139
|
Coon.log.debug(redirectedUrl, 'Redirecting to:');
|
|
File without changes
|
|
File without changes
|
|
@@ -100,13 +100,12 @@ Ext.define('Coon.report.plugin.report.BindCustomPanelPlugin', {
|
|
|
100
100
|
|
|
101
101
|
initHandler: function() {
|
|
102
102
|
const rows = this.component.getSelectionModel().getSelection();
|
|
103
|
+
const gridContextPlugin = this.component.getContextManager();
|
|
103
104
|
if (this.dependOnGridRow && rows.length !== 1) {
|
|
104
105
|
this.clearDependForm();
|
|
105
|
-
} else {
|
|
106
|
-
const gridContextPlugin = this.component.getContextManager();
|
|
107
|
-
gridContextPlugin.resetContext();
|
|
108
|
-
this.component.getContextManager().executeFunction(Ext.bind(this.doInitDependForm, this), this.parameters);
|
|
109
106
|
}
|
|
107
|
+
gridContextPlugin.resetContext();
|
|
108
|
+
this.component.getContextManager().executeFunction(Ext.bind(this.doInitDependForm, this), this.parameters);
|
|
110
109
|
},
|
|
111
110
|
|
|
112
111
|
doInitDependForm: function(params) {
|
|
@@ -104,7 +104,7 @@ Ext.define('Coon.uielement.component.settings.FrameView', {
|
|
|
104
104
|
this.on('afterrender', function() {
|
|
105
105
|
const frameOrPage = new URLSearchParams(window.location.search).get('customForm');
|
|
106
106
|
const target = frameOrPage === 'page' ? window.parentPage : window.parent;
|
|
107
|
-
target.postMessage('give me elements',
|
|
107
|
+
target.postMessage('give me elements', location.origin);
|
|
108
108
|
}, this);
|
|
109
109
|
this.callParent();
|
|
110
110
|
},
|
|
@@ -46,7 +46,7 @@ Ext.define('Coon.uielement.component.settings.FrameViewController', {
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
showPanel: function() {
|
|
49
|
-
window.parent.postMessage('give me elements',
|
|
49
|
+
window.parent.postMessage('give me elements', location.origin);
|
|
50
50
|
},
|
|
51
51
|
refreshPanel: function() {
|
|
52
52
|
const uiContainer = this.lookup('uiContainer');
|
|
@@ -38,7 +38,7 @@ Ext.define('Coon.uielement.component.settings.UiCustomPanelEditorController', {
|
|
|
38
38
|
document.getElementById(event.source.frameElement.id).contentWindow :
|
|
39
39
|
this.newPageRef;
|
|
40
40
|
sender.autoload = vm.get('autoload');
|
|
41
|
-
sender.postMessage(JSON.stringify(settings),
|
|
41
|
+
sender.postMessage(JSON.stringify(settings), location.origin);
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
|
|
@@ -383,7 +383,7 @@ Ext.define('Coon.uielement.component.settings.UiCustomPanelEditorController', {
|
|
|
383
383
|
const isFrame = !vm.get('formEditorIsPage');
|
|
384
384
|
const target = isFrame ? this.lookup('frame').getFrame().contentWindow : this.newPageRef;
|
|
385
385
|
if (target) {
|
|
386
|
-
target.postMessage(JSON.stringify(settings),
|
|
386
|
+
target.postMessage(JSON.stringify(settings), location.origin);
|
|
387
387
|
} else {
|
|
388
388
|
this.openNewPage();
|
|
389
389
|
}
|
|
@@ -394,7 +394,7 @@ Ext.define('Coon.uielement.component.settings.UiCustomPanelEditorController', {
|
|
|
394
394
|
const isFrame = !vm.get('formEditorIsPage');
|
|
395
395
|
const target = isFrame ? this.lookup('frame').getFrame().contentWindow : this.newPageRef;
|
|
396
396
|
if (target) {
|
|
397
|
-
target.postMessage(JSON.stringify(msg),
|
|
397
|
+
target.postMessage(JSON.stringify(msg), location.origin);
|
|
398
398
|
}
|
|
399
399
|
},
|
|
400
400
|
|
package/src/version.js
CHANGED