ru.coon 3.0.40 → 3.0.42

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,16 @@
1
+ # Version 3.0.42, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7859eef6bddbdc1445b1027d10a93f8e71dfe828)
2
+ * ## Fixes
3
+ * <span style='color:red'>fix MethodChainPlugin set sortableColumns false</span> ([5cb285], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5cb2859e29cc2b98172ea823d7198a92580af6d7))
4
+
5
+ * upd ([ce41e9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ce41e9037128b176347d3294fff67f0ab50ecf99))
6
+ * HT-13143 fix: Исправление размера кнопок в системной части тулбара. ([5e338f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5e338f42303943cd14e79005f23ec9287cfd8383))
7
+ * update: CHANGELOG.md ([f8a7af], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f8a7afbddb4366edb564fb9a8d657bd5d3b20e4d))
8
+
9
+ # Version 3.0.41, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/84d8a98d66dd68e5c0995733325a00642bfe9831)
10
+ * HT-13877: add resizable option in BindCustomPanelPlugin ([8080fb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8080fbaf9644cc7609e8d926e7f94bbede5b2952))
11
+ * HT-13860: исправлено отображение названия в WindowWrap ([dc12df], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dc12dff200a37c3dc652a44e65a86bff1d864cd9))
12
+ * update: CHANGELOG.md ([45a7eb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/45a7eb298e3494f84b97ce48a96c3e23d08e699e))
13
+
1
14
  # Version 3.0.40, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/eebffdf8f042d83590e66cfe7a43fdfabcd80ccb)
2
15
  * ## Fixes
3
16
  * <span style='color:red'>HT-13864 fix SimpleFilterPlugin find toolbar</span> ([c0ef9c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c0ef9c1e766b187b2af5196ac7827c5e78235e18))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "3.0.40",
7
+ "version": "3.0.42",
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);
@@ -9,10 +9,8 @@ Ext.define('Coon.report.model.CharacteristicBean', {
9
9
  ],
10
10
  requires: 'Coon.report.model.CharacteristicBeanFields',
11
11
  fields: [
12
- {name: Coon.report.model.CharacteristicBeanFields.$effectiveDate, type: 'date'},
13
- {
14
- name: Coon.report.model.CharacteristicBeanFields.$value, type: 'string',
15
- },
12
+ {name: Coon.report.model.CharacteristicBeanFields.$effectiveDate, type: 'date', dateFormat: 'Y-m-d'},
13
+ {name: Coon.report.model.CharacteristicBeanFields.$value, type: 'string'},
16
14
  {name: Coon.report.model.CharacteristicBeanFields.$valueDescription, type: 'string'},
17
15
  {name: Coon.report.model.CharacteristicBeanFields.$type, type: 'string'},
18
16
  {name: Coon.report.model.CharacteristicBeanFields.$typeDescription, type: 'string'},
@@ -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
  },
@@ -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) {
@@ -81,7 +81,6 @@
81
81
  color: #86909C;
82
82
  }
83
83
 
84
-
85
84
  .information-button-type {
86
85
  border: 1px solid #D8E1E6 !important;
87
86
  border-radius: 6px;
@@ -91,7 +90,6 @@
91
90
  color: #3D6780;
92
91
  }
93
92
 
94
-
95
93
  .information-button-type.x-btn-menu-active {
96
94
  border: 1px solid #ABBECA !important;
97
95
  background-color: #F5F8FC;
@@ -106,9 +104,6 @@
106
104
  color: #3D78BF;
107
105
  }
108
106
 
109
- //
110
-
111
-
112
107
  .information-button-type.x-btn-over {
113
108
  background-color: #FFFFFF;
114
109
  border: 1px solid #BBCAD2 !important;
@@ -139,6 +134,15 @@
139
134
  .x-btn-icon-el-default-small {
140
135
  color: #3d6780 !important;
141
136
  background-color: #3d6780 !important;
137
+ min-width: 16px !important;
138
+ min-height: 16px !important;
139
+ }
140
+ }
141
+
142
+ .system-button-type {
143
+ .x-btn-icon-el-default-small {
144
+ mask-size: 16px;
145
+ -webkit-mask-size: 16px;
142
146
  }
143
147
  }
144
148
 
@@ -148,6 +152,16 @@
148
152
  color: #888888 !important;
149
153
  background-color: #888888 !important;
150
154
  }
155
+ .svg-icon-ellipsis {
156
+ mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcgMTJDNyAxMy4xMDQ2IDYuMTA0NTcgMTQgNSAxNEMzLjg5NTQzIDE0IDMgMTMuMTA0NiAzIDEyQzMgMTAuODk1NCAzLjg5NTQzIDEwIDUgMTBDNi4xMDQ1NyAxMCA3IDEwLjg5NTQgNyAxMloiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0xNCAxMkMxNCAxMy4xMDQ2IDEzLjEwNDYgMTQgMTIgMTRDMTAuODk1NCAxNCAxMCAxMy4xMDQ2IDEwIDEyQzEwIDEwLjg5NTQgMTAuODk1NCAxMCAxMiAxMEMxMy4xMDQ2IDEwIDE0IDEwLjg5NTQgMTQgMTJaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMjEgMTJDMjEgMTMuMTA0NiAyMC4xMDQ2IDE0IDE5IDE0QzE3Ljg5NTQgMTQgMTcgMTMuMTA0NiAxNyAxMkMxNyAxMC44OTU0IDE3Ljg5NTQgMTAgMTkgMTBDMjAuMTA0NiAxMCAyMSAxMC44OTU0IDIxIDEyWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==") !important;
157
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcgMTJDNyAxMy4xMDQ2IDYuMTA0NTcgMTQgNSAxNEMzLjg5NTQzIDE0IDMgMTMuMTA0NiAzIDEyQzMgMTAuODk1NCAzLjg5NTQzIDEwIDUgMTBDNi4xMDQ1NyAxMCA3IDEwLjg5NTQgNyAxMloiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0xNCAxMkMxNCAxMy4xMDQ2IDEzLjEwNDYgMTQgMTIgMTRDMTAuODk1NCAxNCAxMCAxMy4xMDQ2IDEwIDEyQzEwIDEwLjg5NTQgMTAuODk1NCAxMCAxMiAxMEMxMy4xMDQ2IDEwIDE0IDEwLjg5NTQgMTQgMTJaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMjEgMTJDMjEgMTMuMTA0NiAyMC4xMDQ2IDE0IDE5IDE0QzE3Ljg5NTQgMTQgMTcgMTMuMTA0NiAxNyAxMkMxNyAxMC44OTU0IDE3Ljg5NTQgMTAgMTkgMTBDMjAuMTA0NiAxMCAyMSAxMC44OTU0IDIxIDEyWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==") !important;
158
+ mask-size: 18px;
159
+ -webkit-mask-size: 18px;
160
+ mask-repeat: no-repeat;
161
+ -webkit-mask-repeat: no-repeat;
162
+ mask-position: center;
163
+ -webkit-mask-position: center;
164
+ }
151
165
  }
152
166
 
153
167
  .system-button-type.x-btn-focus {
@@ -204,8 +218,8 @@
204
218
 
205
219
  .system-button-type .x-btn-icon-el,
206
220
  .system-secondary-button-type .x-btn-icon-el {
207
- width: 18px;
208
- height: 18px;
221
+ width: 16px;
222
+ height: 16px;
209
223
  }
210
224
 
211
225
  .system-button-type .x-btn-split-right::before,
@@ -10,7 +10,7 @@ Ext.define('Coon.report.toolbar.OptionsMenuButton', {
10
10
  advancedSearch: false,
11
11
  },
12
12
 
13
- iconCls: 'svg-icon svg-icon-ellipsis',
13
+ iconCls: 'svg-icon-ellipsis',
14
14
  text: '',
15
15
  arrowVisible: false,
16
16
  menu: {
@@ -70,12 +70,9 @@ Ext.define('Coon.report.toolbar.ReportGridToolbar', {
70
70
  } else {
71
71
  if (this.reportToolbarPluginCfg && this.reportToolbarPluginCfg.length) {
72
72
  const btn = this.reportToolbarPluginCfg.find((btn) => btn.id === item.foldStateId);
73
- if (btn) {
74
- const cls = this.getClsByType(btn.buttonType);
75
- item.focusCls = cls;
76
- item.cls = item.cls ? item.cls + ' ' + cls : cls;
77
- }
78
- if (btn && btn.buttonType === 3) {
73
+ const buttonType = btn && btn.buttonType;
74
+ this.prepareItemBeforeAdd(buttonType, item);
75
+ if (this.isSystemButton(buttonType)) {
79
76
  this.getLayout().overflowHandler.addButton(item);
80
77
  } else {
81
78
  this.callParent(arguments);
@@ -88,6 +85,23 @@ Ext.define('Coon.report.toolbar.ReportGridToolbar', {
88
85
  }
89
86
  },
90
87
 
88
+ isSystemButton(buttonType) {
89
+ return buttonType === 3;
90
+ },
91
+
92
+ prepareItemBeforeAdd(buttonType, item) {
93
+ if (!Ext.isDefined(buttonType)) {
94
+ return;
95
+ }
96
+ const cls = this.getClsByType(buttonType);
97
+ item.focusCls = cls;
98
+ item.cls = item.cls ? item.cls + ' ' + cls : cls;
99
+
100
+ if (this.isSystemButton(buttonType) && item.ui !== 'default') {
101
+ item.ui = '';
102
+ }
103
+ },
104
+
91
105
  updateNewButtonsState(button) {
92
106
  if (Object.keys(this.newButtons).length && this.newButtons[button.foldStateId]) {
93
107
  this.newButtons[button.foldStateId].name = button.text;
@@ -23,8 +23,7 @@
23
23
 
24
24
  .ToolbarOverflowButton.x-btn-menu-active,
25
25
  .ToolbarOverflowButton.x-btn-pressed,
26
- .ToolbarOverflowButton.x-btn-focus,
27
- {
26
+ .ToolbarOverflowButton.x-btn-focus {
28
27
  background-color: #ffffff !important;
29
28
  border-color: #3d6780 !important;
30
29
  }
@@ -32,7 +31,7 @@
32
31
  .ToolbarOverflowButton {
33
32
  border: 1px solid #3d6780;
34
33
  border-radius: 6px;
35
- padding: 7px;
34
+ padding: 6px;
36
35
 
37
36
  .overflow-indicator{
38
37
  position: absolute;
@@ -50,8 +49,8 @@
50
49
  .ToolbarOverflowButtonIcon{
51
50
  mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjI5Mjg5IDcuMjkyODlDMy42ODM0MiA2LjkwMjM3IDQuMzE2NTggNi45MDIzNyA0LjcwNzExIDcuMjkyODlMMTIgMTQuNTg1OEwxOS4yOTI5IDcuMjkyODlDMTkuNjgzNCA2LjkwMjM3IDIwLjMxNjYgNi45MDIzNyAyMC43MDcxIDcuMjkyODlDMjEuMDk3NiA3LjY4MzQyIDIxLjA5NzYgOC4zMTY1OCAyMC43MDcxIDguNzA3MTFMMTIuNzA3MSAxNi43MDcxQzEyLjMxNjYgMTcuMDk3NiAxMS42ODM0IDE3LjA5NzYgMTEuMjkyOSAxNi43MDcxTDMuMjkyODkgOC43MDcxMUMyLjkwMjM3IDguMzE2NTggMi45MDIzNyA3LjY4MzQyIDMuMjkyODkgNy4yOTI4OVoiIGZpbGw9ImJsYWNrIi8+PC9zdmc+");
52
51
  -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjI5Mjg5IDcuMjkyODlDMy42ODM0MiA2LjkwMjM3IDQuMzE2NTggNi45MDIzNyA0LjcwNzExIDcuMjkyODlMMTIgMTQuNTg1OEwxOS4yOTI5IDcuMjkyODlDMTkuNjgzNCA2LjkwMjM3IDIwLjMxNjYgNi45MDIzNyAyMC43MDcxIDcuMjkyODlDMjEuMDk3NiA3LjY4MzQyIDIxLjA5NzYgOC4zMTY1OCAyMC43MDcxIDguNzA3MTFMMTIuNzA3MSAxNi43MDcxQzEyLjMxNjYgMTcuMDk3NiAxMS42ODM0IDE3LjA5NzYgMTEuMjkyOSAxNi43MDcxTDMuMjkyODkgOC43MDcxMUMyLjkwMjM3IDguMzE2NTggMi45MDIzNyA3LjY4MzQyIDMuMjkyODkgNy4yOTI4OVoiIGZpbGw9ImJsYWNrIi8+PC9zdmc+");
53
- mask-size: 100%;
54
- -webkit-mask-size: 100%;
52
+ mask-size: 16px;
53
+ -webkit-mask-size: 16px;
55
54
  mask-repeat: no-repeat;
56
55
  -webkit-mask-repeat: no-repeat;
57
56
  background-color: #3d6780;
@@ -71,6 +71,7 @@ Ext.define('Coon.uielement.plugin.configPanel.MethodChainPluginConfigPanelFormEd
71
71
  {ptype: 'cellediting', clicksToEdit: 2}
72
72
  ],
73
73
  title: 'Последовательно вызываемые обработчики',
74
+ sortableColumns: false,
74
75
  flex: 1,
75
76
  columns: [
76
77
  {
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '3.0.40',
3
+ number: '3.0.42',
4
4
  });