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 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
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.5.40",
7
+ "version": "2.5.41",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -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
@@ -0,0 +1,7 @@
1
+ **спецификация:**
2
+
3
+ входные параметры:
4
+
5
+ - exportFileFormat [xls/pdf]
6
+ - allowUserSelectColumnsToUpload
7
+ - addToSearchButton добавить в кнопку "поиск", в этом случае в качестве параметра отправляем текущие параметры из FilterPanel(useRawFilterParams: true)
@@ -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
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.5.40',
3
+ number: '2.5.41',
4
4
  });