ru.coon 3.0.39 → 3.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ # Version 3.0.41, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/84d8a98d66dd68e5c0995733325a00642bfe9831)
2
+ * HT-13877: add resizable option in BindCustomPanelPlugin ([8080fb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8080fbaf9644cc7609e8d926e7f94bbede5b2952))
3
+ * HT-13860: исправлено отображение названия в WindowWrap ([dc12df], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dc12dff200a37c3dc652a44e65a86bff1d864cd9))
4
+ * update: CHANGELOG.md ([45a7eb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/45a7eb298e3494f84b97ce48a96c3e23d08e699e))
5
+
6
+ # Version 3.0.40, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/eebffdf8f042d83590e66cfe7a43fdfabcd80ccb)
7
+ * ## Fixes
8
+ * <span style='color:red'>HT-13864 fix SimpleFilterPlugin find toolbar</span> ([c0ef9c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c0ef9c1e766b187b2af5196ac7827c5e78235e18))
9
+
10
+ * update: CHANGELOG.md ([5881f9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5881f967085c3b2f6d8ecc4469c3103f2ace1d72))
11
+
1
12
  # Version 3.0.39, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e29f7baa54dc8f31fddecef2ec9c648f70b55ce1)
2
13
  * ## Fixes
3
14
  * <span style='color:red'> titlechange handler parameters</span> ([f79859], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f79859a64493b3840b268958fc693b405cf0616a))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "3.0.39",
7
+ "version": "3.0.41",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -160,6 +160,17 @@ Ext.define('Coon.common.panel.WindowWrap', {
160
160
  this.content.on('close', function() {
161
161
  this.doClose();
162
162
  }, this);
163
+
164
+ this.content.on('titlechange', function(view, title) {
165
+ if (typeof title !== 'string') {
166
+ if (typeof title.getTitle !== 'function') {
167
+ return;
168
+ }
169
+ title = title.getTitle();
170
+ }
171
+ this.setTitle(title);
172
+ }, this);
173
+
163
174
  this.content.hide = Ext.bind(this.hide, this);
164
175
  this.content.close = Ext.bind(this.close, this);
165
176
  this.content.setTitle = Ext.bind(this.setTitle, this);
@@ -313,9 +313,52 @@ Ext.define('Coon.report.plugin.configPanel.BindCustomPanelPluginConfigPanel', {
313
313
  },
314
314
  {
315
315
  xtype: 'checkbox',
316
- boxLabel: 'useSimpleEngine',
316
+ boxLabel: 'Добавить разделитель для изменения размера панели (resizable)',
317
+ boxLabelAlign: 'before',
318
+ name: 'addResizable',
319
+ bind: '{addResizable}',
320
+ },
321
+ {
322
+ xtype: 'container',
323
+ layout: {
324
+ type: 'hbox',
325
+ },
326
+ items: [
327
+ {
328
+ xtype: 'numberfield',
329
+ fieldLabel: 'Мин. размер панели',
330
+ value: 100,
331
+ name: 'resizableMinValue',
332
+ disabled: true,
333
+ bind: {
334
+ disabled: '{!addResizable}',
335
+ },
336
+ },
337
+ {
338
+ xtype: 'numberfield',
339
+ fieldLabel: 'Макс. размер панели',
340
+ value: 500,
341
+ name: 'resizableMaxValue',
342
+ disabled: true,
343
+ bind: {
344
+ disabled: '{!addResizable}',
345
+ },
346
+ }
347
+ ],
348
+ },
349
+ {
350
+ xtype: 'checkbox',
351
+ boxLabel: 'Выключить обработку параметров',
317
352
  boxLabelAlign: 'before',
318
353
  name: 'useSimpleEngine',
354
+ listeners: {
355
+ afterrender: function(component) {
356
+ Ext.create('Ext.tip.ToolTip', {
357
+ target: component.getEl(),
358
+ html: 'Выключение расширенной обработки параметров (useSimpleEngine)',
359
+ });
360
+ },
361
+ },
319
362
  }
320
363
  ],
321
364
  },
@@ -73,7 +73,7 @@ Ext.define('Coon.report.plugin.configPanel.SimpleFilterPluginConfigPanelFilterGr
73
73
  },
74
74
  encodeConditions: function(conditions) {
75
75
  return conditions.map((condition) => {
76
- return {value: condition};
76
+ return condition.value ? condition : {value: condition};
77
77
  });
78
78
  },
79
79
  decodeConditions: function(conditions) {
@@ -34,7 +34,7 @@ Ext.define('Coon.report.plugin.grid.SimpleFilterPlugin', {
34
34
  doInit: function(grid) {
35
35
  if (this.valueConfig.length) {
36
36
  this.activeItem = this.valueConfig[0];
37
- const tBar = grid.dockedItems.items.find((item) => item.xtype === 'toolbar' && item.dock === 'top');
37
+ const tBar = grid.dockedItems.items.find((item) => item.isToolbar && item.dock === 'top');
38
38
  if (tBar) {
39
39
  this.filterContainer = this.getFilterContainer(this.valueConfig);
40
40
  if (this.position === 2) {
@@ -39,9 +39,8 @@ Ext.define('Coon.report.plugin.report.BindCustomPanelPlugin', {
39
39
  const config = {
40
40
  panelSize: this.panelSize || 100,
41
41
  };
42
- const properties = this.useSimpleEngine ? this.properties :
43
- (Coon.Function[this.advancedPropertyConverter ?
44
- 'convertAdvancedProperties' : 'convertProperties'](this.properties));
42
+
43
+ const properties = this.getPanelProperties();
45
44
 
46
45
  if (this.panelXType === 'UiCustomPanel') {
47
46
  this.panel = Ext.widget('UICPWrapper', properties);
@@ -53,6 +52,37 @@ Ext.define('Coon.report.plugin.report.BindCustomPanelPlugin', {
53
52
  }, this);
54
53
  },
55
54
 
55
+ getPanelProperties() {
56
+ const properties = this.useSimpleEngine ? this.properties :
57
+ (Coon.Function[this.advancedPropertyConverter ?
58
+ 'convertAdvancedProperties' : 'convertProperties'](this.properties));
59
+
60
+ if (this.addResizable && this.position) {
61
+ properties.resizable = {
62
+ pinned: true,
63
+ };
64
+ if (this.position === 'south') {
65
+ Ext.apply(properties.resizable, {
66
+ handles: 'n',
67
+ minHeight: this.resizableMinValue,
68
+ maxHeight: this.resizableMaxValue,
69
+ heightIncrement: 8,
70
+ });
71
+ properties.padding = '10 0 0 0';
72
+ } else if (this.position === 'east') {
73
+ Ext.apply(properties.resizable, {
74
+ handles: 'w',
75
+ minWidth: this.resizableMinValue,
76
+ maxWidth: this.resizableMaxValue,
77
+ widthIncrement: 8,
78
+ });
79
+ properties.padding = '0 0 0 10';
80
+ }
81
+ }
82
+
83
+ return properties;
84
+ },
85
+
56
86
  afterCreatePanel: function(config) {
57
87
  this.component.getStore().on('load', this.initHandler, this);
58
88
  if (this.dependOnGridRow) {
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '3.0.39',
3
+ number: '3.0.41',
4
4
  });