ru.coon 2.5.54 → 2.5.56
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 +24 -0
- package/package.json +1 -1
- package/src/report/plugin/configPanel/CopyRowsFromGridConfigPanel.js +35 -1
- package/src/report/plugin/grid/CopyRowsFromGrid.js +12 -4
- package/src/report/plugin/grid/ExportReportDataToFilePlugin.js +5 -8
- package/src/uielement/plugin/MethodChainPlugin.js +4 -0
- package/src/uielement/plugin/UnifiedButtonToolbarPlugin.js +20 -0
- package/src/uielement/plugin/configPanel/UnifiedButtonToolbarPluginConfigPanelFormEditor.js +19 -1
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
# Version 2.5.56, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/128444f42dc670412319a7f3bf6c53407f8ca3c7)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: HT-7788: check execute chain function result on error, add validation function in unified toolbar plugin</span> ([9af285], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9af28505fd7c8761aa0cfe51d258892307a25d5d))
|
|
4
|
+
|
|
5
|
+
* update: CHANGELOG.md ([cb4c2a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cb4c2a146ce95de7c03a07b1e3ac2c7fbc6f96d3))
|
|
6
|
+
|
|
7
|
+
# Version 2.5.55, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/445f548a2eab2e58d40a1546de00e01a3c1e916c)
|
|
8
|
+
* ## Features
|
|
9
|
+
* <span style='color:green'>feat: BFL-10334: download file with blob</span> ([e42e68], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e42e682f7375feffb124b6f5179f2a1b96d7757c))
|
|
10
|
+
|
|
11
|
+
* update: CHANGELOG.md ([60f4e5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/60f4e58dd2c9435c6bca2071f424d505d38d33c6))
|
|
12
|
+
|
|
1
13
|
# Version 2.5.54, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dce855dcf30fcb0c1d67bb6b9a4a7539de768415)
|
|
2
14
|
* ## Features
|
|
3
15
|
* <span style='color:green'>feat: HT-7346: set window event on render added panel, call prepare data function after save data without errors</span> ([36feb3], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/36feb3e46bf4832e4895c8c5d141ad21c798c554))
|
|
4
16
|
|
|
17
|
+
* доработка ([02e3c2], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/02e3c26fb432149572daffab3ef184e59446caec))
|
|
5
18
|
* update: CHANGELOG.md ([bb9bf0], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/bb9bf0d92699bedcdd6e96f4cb5a799d7ec2005f))
|
|
6
19
|
|
|
7
20
|
# Version 2.5.53, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/71f06d3a65bdf8040963d24a7ff0e6ac59946c7a)
|
|
@@ -15,7 +28,9 @@
|
|
|
15
28
|
* ## Fixes
|
|
16
29
|
* <span style='color:red'> HT-7346: fix add docked and throw promise error</span> ([46b17e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/46b17e452222787468ef0e65e49cd8e40cc9797e))
|
|
17
30
|
|
|
31
|
+
* доработка ([2f662b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2f662bd8b10f0f6538ac73d4b1dd5454d33e81e6))
|
|
18
32
|
* upd ([3b137b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3b137bc6ff518b9769e55674484c1d3e14469e23))
|
|
33
|
+
* доработка ([5576b5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5576b537908f14868b5173714db88b20ce8453f7))
|
|
19
34
|
* update: CHANGELOG.md ([d9c853], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d9c8532cdef4cf46572967c94895486657a5bba1))
|
|
20
35
|
|
|
21
36
|
# Version 2.5.51, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/86e7f44d186c08b70ff00747e70cbb182686afd7)
|
|
@@ -26,6 +41,8 @@
|
|
|
26
41
|
* <span style='color:red'>Fix:HT-7717 check fieldEnd available in DatePickerPresetsField</span> ([6e6b33], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6e6b3308d04afa2692997d71a3d62330f64d67d6))
|
|
27
42
|
* <span style='color:red'> HT-7346: fix file name</span> ([01983d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/01983d80a30d5fd27892cb7c6e6900b27aebdf1f))
|
|
28
43
|
|
|
44
|
+
* доработка ([51e1e9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/51e1e939c846f539d57fb3eca650ed1cb3d31723))
|
|
45
|
+
* доработка ([33355a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/33355a1e64b6e7906a655aaebc8511f1c0691f64))
|
|
29
46
|
* update: CHANGELOG.md ([538bf4], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/538bf4e7fc238603638f833a7fe3f5ef28bdf513))
|
|
30
47
|
|
|
31
48
|
# Version 2.5.50, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b79597948d4412d8613b028e5e07e49cfb173eb4)
|
|
@@ -44,6 +61,8 @@
|
|
|
44
61
|
* <span style='color:red'>fix Coon.util.promisifyCmd
|
|
45
62
|
fix ReportPanel.loadData - abort previous request</span> ([03cfbd], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/03cfbdf8eabc0a6fde879fa2ce52bd5126a823ee))
|
|
46
63
|
|
|
64
|
+
* доработка ([0457f5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0457f59fe9af7ca16aa1bc8a1fc7568bbfc8f5f1))
|
|
65
|
+
* ошибка ([3a0634], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3a0634200b8e80bdc884a0c5976caa7192180d99))
|
|
47
66
|
* update: CHANGELOG.md ([d298b4], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d298b44d4f63889dc665577ca11e622bfb176422))
|
|
48
67
|
|
|
49
68
|
# Version 2.5.48, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ab1fb66dd225271b18992c928a288a9d5115ff7b)
|
|
@@ -52,6 +71,11 @@ fix ReportPanel.loadData - abort previous request</span> ([03cfbd], [link](http:
|
|
|
52
71
|
|
|
53
72
|
* add decimal-light - arbitrary-precision Decimal type for JavaScript
|
|
54
73
|
fix Coon.format.MoneyFormat, zero always format as positive value ([09a4ad], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/09a4ad9879f025371db56475252ec93eeb52b265))
|
|
74
|
+
* перенос чекбокса и работа с value ([c56525], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c5652553cca0934ec1549f6e0762f481161b2998))
|
|
75
|
+
* исправление ошибок ([44fc10], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/44fc1038ab848989c56bf51ad56933f5fe2f2535))
|
|
76
|
+
* исправление ошибок ([fcc83e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/fcc83e4aa4d85b241723c2fd1d317bafe5b44689))
|
|
77
|
+
* доработка ([dbc2bf], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dbc2bf69be0d31423c93275b01e320703823dbb2))
|
|
78
|
+
* В CopyRowsFromGrid конфигурация поля Используемые фильтры ([add0e7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/add0e76c6220b5e399a24316a5c6d4775098ca5f))
|
|
55
79
|
* HT-7447 feat: возможность создавать свойства команды с описанием ([cc129c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cc129c3265992db5f859f9e32fdc95cd8a3ad88f))
|
|
56
80
|
* HT-7594 При добавлении УУТЭ иногда значения характеристик с датами не отображаются ([2348bf], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2348bf78876bcb5c0e81d37b36f89d5a85a7d9d4))
|
|
57
81
|
* update: CHANGELOG.md ([b7579a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b7579a137a55be1d35602720fa3aef2909b7b635))
|
package/package.json
CHANGED
|
@@ -138,7 +138,6 @@ Ext.define('Coon.report.plugin.configPanel.CopyRowsFromGridConfigPanel', {
|
|
|
138
138
|
name: 'showFormatSelectDialog',
|
|
139
139
|
value: false,
|
|
140
140
|
}
|
|
141
|
-
|
|
142
141
|
],
|
|
143
142
|
};
|
|
144
143
|
},
|
|
@@ -312,6 +311,41 @@ Ext.define('Coon.report.plugin.configPanel.CopyRowsFromGridConfigPanel', {
|
|
|
312
311
|
xtype: 'checkbox',
|
|
313
312
|
boxLabel: 'Заполненные параметры фильтра',
|
|
314
313
|
name: 'addFilters',
|
|
314
|
+
bind: '{addFilters}',
|
|
315
|
+
value: false,
|
|
316
|
+
listeners: {
|
|
317
|
+
change: function(checkbox, value) {
|
|
318
|
+
this.up().down('checkbox#addNameFiltersParameters').setValue(value);
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
xtype: 'checkbox',
|
|
324
|
+
boxLabel: 'Отображение заголовка используемых фильтров',
|
|
325
|
+
name: 'addNameFiltersParameters',
|
|
326
|
+
itemId: 'addNameFiltersParameters',
|
|
327
|
+
value: false,
|
|
328
|
+
disabled: true,
|
|
329
|
+
bind: {
|
|
330
|
+
disabled: '{!addFilters}',
|
|
331
|
+
},
|
|
332
|
+
listeners: {
|
|
333
|
+
change: function(checkbox, newValue) {
|
|
334
|
+
const textfield = this.up().down('textfield');
|
|
335
|
+
textfield.setDisabled(!newValue);
|
|
336
|
+
if (newValue) {
|
|
337
|
+
textfield.setValue('Используемые фильтры:');
|
|
338
|
+
} else {
|
|
339
|
+
textfield.setValue('');
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
xtype: 'textfield',
|
|
346
|
+
fieldLabel: 'Заголовок для используемых фильтров',
|
|
347
|
+
name: 'nameFiltersParameters',
|
|
348
|
+
disabled: true,
|
|
315
349
|
}
|
|
316
350
|
],
|
|
317
351
|
};
|
|
@@ -16,6 +16,8 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
16
16
|
exportAllRows: false,
|
|
17
17
|
addHeader: undefined,
|
|
18
18
|
addFilters: undefined,
|
|
19
|
+
addNameFiltersParameters: false,
|
|
20
|
+
nameFiltersParameters: 'Используемые фильтры:',
|
|
19
21
|
recordsToExport: undefined,
|
|
20
22
|
dateFormat: undefined,
|
|
21
23
|
floatPrecision: undefined,
|
|
@@ -72,7 +74,11 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
72
74
|
itemId: 'getSelectedButton',
|
|
73
75
|
handler: Ext.bind(this.handler, this),
|
|
74
76
|
},
|
|
75
|
-
{
|
|
77
|
+
{
|
|
78
|
+
text: 'Выгрузить все',
|
|
79
|
+
itemId: 'getAllButton',
|
|
80
|
+
handler: Ext.bind(this.handler, this),
|
|
81
|
+
}
|
|
76
82
|
],
|
|
77
83
|
}),
|
|
78
84
|
}, config));
|
|
@@ -845,10 +851,13 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
845
851
|
*/
|
|
846
852
|
collectFilters: function() {
|
|
847
853
|
const reportPanel = this.component.up('ReportPanel');
|
|
854
|
+
let name = '';
|
|
848
855
|
const result = [];
|
|
856
|
+
if (this.addNameFiltersParameters) {
|
|
857
|
+
name = this.nameFiltersParameters;
|
|
858
|
+
}
|
|
849
859
|
if (this.addFilters === true) {
|
|
850
|
-
result.push('<h2 style=" color:gray;font-size:1.3em;">' +
|
|
851
|
-
|
|
860
|
+
result.push('<h2 style=" color:gray;font-size:1.3em;">' + name +'</h2>');
|
|
852
861
|
const customXtype = ['SimpleReportTag'];
|
|
853
862
|
const filterComponents = function(comp) {
|
|
854
863
|
return Ext.getClassName(comp) !== 'Ext.form.field.Display' &&
|
|
@@ -876,7 +885,6 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
876
885
|
.filter(filterComponents)
|
|
877
886
|
.forEach(renderFilterConditions);
|
|
878
887
|
}
|
|
879
|
-
|
|
880
888
|
return result.join('');
|
|
881
889
|
},
|
|
882
890
|
|
|
@@ -190,7 +190,7 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
190
190
|
Ext.Ajax.request({
|
|
191
191
|
url,
|
|
192
192
|
method: 'POST',
|
|
193
|
-
|
|
193
|
+
binary: true,
|
|
194
194
|
timeout: this.getTimeout(),
|
|
195
195
|
params: {
|
|
196
196
|
reportId: this.report.reportId,
|
|
@@ -202,13 +202,10 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
202
202
|
},
|
|
203
203
|
success(responce) {
|
|
204
204
|
this.grid.unmask();
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
document.body.appendChild(link); // Required for FF
|
|
210
|
-
link.click();
|
|
211
|
-
link.parentNode.removeChild(link);
|
|
205
|
+
Coon.util.downloadFileFromBlob(
|
|
206
|
+
new Blob(['\uFEFF', responce.responseBytes], {type: 'text/csv;charset=utf-8'}),
|
|
207
|
+
`${fileName}.csv`
|
|
208
|
+
);
|
|
212
209
|
},
|
|
213
210
|
failure(error) {
|
|
214
211
|
this.grid.unmask();
|
|
@@ -94,6 +94,26 @@ Ext.define('Coon.uielement.plugin.UnifiedButtonToolbarPlugin', {
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
async callSaveHandler(closeAfterSave) {
|
|
97
|
+
if (
|
|
98
|
+
this.validateBeanHandlerName &&
|
|
99
|
+
this.controller[this.validateBeanHandlerName] &&
|
|
100
|
+
typeof this.controller[this.validateBeanHandlerName] === 'function'
|
|
101
|
+
) {
|
|
102
|
+
const result = this.controller[this.validateBeanHandlerName].call(this.controller);
|
|
103
|
+
if (result instanceof Promise) {
|
|
104
|
+
result.then(() => {
|
|
105
|
+
this.controller[this.validateBeanHandlerName].call(this.controller);
|
|
106
|
+
});
|
|
107
|
+
const isError = await result.catch(() => 'error');
|
|
108
|
+
if (isError === 'error') {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
if (result !== true) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
97
117
|
if (
|
|
98
118
|
this.saveHandlerName &&
|
|
99
119
|
this.controller[this.saveHandlerName] &&
|
|
@@ -6,6 +6,7 @@ Ext.define('Coon.uielement.plugin.configPanel.UnifiedButtonToolbarPluginConfigPa
|
|
|
6
6
|
data: {
|
|
7
7
|
saveHandlerName: '',
|
|
8
8
|
prepareBeanHandlerName: '',
|
|
9
|
+
validateBeanHandlerName: '',
|
|
9
10
|
dock: 'bottom',
|
|
10
11
|
},
|
|
11
12
|
},
|
|
@@ -56,6 +57,23 @@ Ext.define('Coon.uielement.plugin.configPanel.UnifiedButtonToolbarPluginConfigPa
|
|
|
56
57
|
displayField: 'id',
|
|
57
58
|
},
|
|
58
59
|
},
|
|
60
|
+
{
|
|
61
|
+
xtype: 'comboBtnWrapper',
|
|
62
|
+
combobox: {
|
|
63
|
+
xtype: 'BaseComboBox',
|
|
64
|
+
fieldLabel: 'Функция валидации данных',
|
|
65
|
+
labelWidth: 60,
|
|
66
|
+
flex: 1,
|
|
67
|
+
loadOnRender: false,
|
|
68
|
+
hideMode: 'offsets',
|
|
69
|
+
store: 'codeHandlers',
|
|
70
|
+
bind: {
|
|
71
|
+
value: '{validateBeanHandlerName}',
|
|
72
|
+
},
|
|
73
|
+
valueField: 'id',
|
|
74
|
+
displayField: 'id',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
59
77
|
{
|
|
60
78
|
xtype: 'segmentedbutton',
|
|
61
79
|
allowMultiple: false,
|
|
@@ -90,7 +108,7 @@ Ext.define('Coon.uielement.plugin.configPanel.UnifiedButtonToolbarPluginConfigPa
|
|
|
90
108
|
getConfiguration: function() {
|
|
91
109
|
const result = {};
|
|
92
110
|
const vm = this.getViewModel();
|
|
93
|
-
['saveHandlerName', 'prepareBeanHandlerName', 'dock'].forEach((el) => {
|
|
111
|
+
['saveHandlerName', 'prepareBeanHandlerName', 'validateBeanHandlerName', 'dock'].forEach((el) => {
|
|
94
112
|
if (vm.get(el)) {
|
|
95
113
|
result[el] = vm.get(el);
|
|
96
114
|
}
|
package/src/version.js
CHANGED