ru.coon 2.6.16 → 2.6.18

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # Version 2.6.18, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1c189ec63993901ccd4a8045777a19f485c5c065)
2
+ * ## Fixes
3
+ * <span style='color:red'> windowWrap default size for restore when maximized:true CRM-8393</span> ([8eb4a5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8eb4a5586089b2cc8581e0d647e20b8955c8b097))
4
+
5
+ * update: CHANGELOG.md ([4e316a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4e316ac4c2c96cb4de23ff0dfb73ff4db75ea4ec))
6
+
7
+ # Version 2.6.17, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a85820f03c44ab7b35ae02ae88209c435f264807)
8
+ * ## Fixes
9
+ * <span style='color:red'> PrintPdfPlugin.handler call parseProperty on 'string'</span> ([8dec18], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8dec18c777cd4e6f3daf9fb1540726e613639220))
10
+
11
+ * update: CHANGELOG.md ([e7aec8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e7aec82f66947539e462f813c3d8249a6f071b6f))
12
+
1
13
  # Version 2.6.16, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0fda3b6a033bacf1d07829445c44a4fab42b440d)
2
14
  * ## Fixes
3
15
  * <span style='color:red'>fix SummaryPluginConfigPanelSummaryGrid, BFL-11632</span> ([c3c46a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c3c46a8581698ea75ccebe42105d0b36e59b3f25))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.6.16",
7
+ "version": "2.6.18",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -37,12 +37,6 @@ Ext.define('Coon.common.panel.WindowWrap', {
37
37
 
38
38
  addTool: function(tools) {
39
39
  const me = this;
40
- const isWinMaximized = me.height >= me.maxHeight && me.width >= me.maxWidth;
41
-
42
- me.maximized = me.maximized || isWinMaximized;
43
- me.height = Ext.isEmpty(me.height) ? 500 : (me.height > me.maxHeight ? me.maxHeight : me.height);
44
- me.width = Ext.isEmpty(me.width) ? 800 : (me.width > me.maxWidth ? me.maxWidth : me.width);
45
-
46
40
  me.callParent([tools]);
47
41
 
48
42
  if (me.maximized && !!me.tools.maximize) {
@@ -62,6 +56,19 @@ Ext.define('Coon.common.panel.WindowWrap', {
62
56
  const viewPortSize = Ext.getBody().getViewSize();
63
57
  this.maxWidth = viewPortSize.width;
64
58
  this.maxHeight = viewPortSize.height;
59
+
60
+ const isWinMaximized = this.height >= this.maxHeight && this.width >= this.maxWidth;
61
+ this.maximized = this.maximized || isWinMaximized;
62
+
63
+ if (this.maximized) {
64
+ const defaultRestoreSize = {
65
+ height: 500,
66
+ width: 800,
67
+ };
68
+ this.height = Ext.isEmpty(this.height) ? defaultRestoreSize.height : this.height;
69
+ this.width = Ext.isEmpty(this.width) ? defaultRestoreSize.width : this.width;
70
+ }
71
+
65
72
  if (this.alwaysInCenter) {
66
73
  this.center();
67
74
  }
@@ -113,7 +113,7 @@ Ext.define('Coon.uielement.plugin.PrintPdfPlugin', {
113
113
  let paramValue = parameters[field.name];
114
114
  if (Ext.isString(paramValue) && paramValue.startsWith('{')) {
115
115
  paramValue = this.view.getController().getViewModel().get(paramValue.substring(1, paramValue.length - 1));
116
- } else if (!!paramValue) {
116
+ } else if (Ext.isObject(paramValue)) {
117
117
  Ext.each(Object.keys(paramValue), (f) => this.parseProperty(paramValue, f));
118
118
  }
119
119
  if (typeof parameters[field.name] != 'undefined') {
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.6.16',
3
+ number: '2.6.18',
4
4
  });