ru.coon 2.8.10 → 2.8.12
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,20 @@
|
|
|
1
|
+
# Version 2.8.12, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/89d48dd480147733a75d36a62408ec92070c497a)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: HT-10449: Add extra fields to plugin
|
|
4
|
+
feat: HT-10458: Check then summery row has values</span> ([b87004], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b870046f1bc55a2046426c4180879d39d489687d))
|
|
5
|
+
* <span style='color:green'>feat: HT-10434: apply x template in header and footer export forms for xlsx</span> ([67519e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/67519e81a914522b09d6ff1b91bd435c584ef1d2))
|
|
6
|
+
|
|
7
|
+
* ## Fixes
|
|
8
|
+
* <span style='color:red'> HT-10441 CopyRowsFromGrid fix date regex</span> ([dc2144], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dc2144e19b637b11fafcd8ede20ccd98a5b8548d))
|
|
9
|
+
|
|
10
|
+
* update: CHANGELOG.md ([5d8910], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5d8910be334e3ad00b20ade871bf30dbf605822c))
|
|
11
|
+
|
|
12
|
+
# Version 2.8.11, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/42b79fd484035a21adaf0e8870b70519fde032a4)
|
|
13
|
+
* ## Fixes
|
|
14
|
+
* <span style='color:red'> HT-10439: set method for readonly formula to use publishState</span> ([fdb85d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/fdb85df08f3581c2bb5f16005a1d16cccf836352))
|
|
15
|
+
|
|
16
|
+
* update: CHANGELOG.md ([35ced1], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/35ced15d2b167be6875c18152e5467bc2f908ebb))
|
|
17
|
+
|
|
1
18
|
# Version 2.8.10, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1e5df23b8ccf59593d1960052c5f2598da9d4b7d)
|
|
2
19
|
* ## Fixes
|
|
3
20
|
* <span style='color:red'> HT-10125: work with AddFilterConditionPlugin</span> ([a68af5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a68af5071134224930c1c771dd93d623c29d51c3))
|
package/package.json
CHANGED
|
@@ -107,6 +107,10 @@ Ext.define('Coon.common.field.PeriodByReportField', {
|
|
|
107
107
|
},
|
|
108
108
|
|
|
109
109
|
initComponent: function() {
|
|
110
|
+
const opt = this.getDefaultValueOpt();
|
|
111
|
+
if (opt && opt.key && opt.value) {
|
|
112
|
+
this.extraFields = this.extraFields && Ext.isArray(this.extraFields) ? this.extraFields.push(opt.key) : [opt.key];
|
|
113
|
+
}
|
|
110
114
|
this.callParent();
|
|
111
115
|
this.on('goForward', this.goForward, this);
|
|
112
116
|
this.on('goBack', this.goBack, this);
|
|
@@ -151,6 +151,11 @@ Ext.define('Coon.report.component.settings.ReportFormEditPanelModel', {
|
|
|
151
151
|
this.set('report.fields', fields);
|
|
152
152
|
},
|
|
153
153
|
},
|
|
154
|
-
plugins:
|
|
154
|
+
plugins: {
|
|
155
|
+
get: (data) => data('report.plugins'),
|
|
156
|
+
set(data) {
|
|
157
|
+
this.set('report.plugins', data);
|
|
158
|
+
},
|
|
159
|
+
},
|
|
155
160
|
},
|
|
156
161
|
});
|
|
@@ -205,6 +205,16 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
205
205
|
return this.mergeDeep(target, ...sources);
|
|
206
206
|
},
|
|
207
207
|
|
|
208
|
+
applyTemplate(content) {
|
|
209
|
+
const tpl = new Ext.XTemplate(content, {
|
|
210
|
+
disableFormats: true,
|
|
211
|
+
date(format = 'd.m.Y') {
|
|
212
|
+
return Ext.Date.format(new Date(), format);
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
return tpl.apply({params: this.component.up('ReportPanel').currentParamList || {}});
|
|
216
|
+
},
|
|
217
|
+
|
|
208
218
|
parseJsEditorObj: function(obj, workbook) {
|
|
209
219
|
if (typeof obj !== 'object' || !obj.blocks || !obj.blocks.length) {
|
|
210
220
|
return [];
|
|
@@ -219,7 +229,7 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
219
229
|
result.push(tr.reduce((accumulator, td) => {
|
|
220
230
|
if (td.display === true) {
|
|
221
231
|
const tmp = {
|
|
222
|
-
'value': td.content.replace(/<br>/gi, ''),
|
|
232
|
+
'value': this.applyTemplate(td.content.replace(/<br>/gi, '')),
|
|
223
233
|
};
|
|
224
234
|
if (td.colspan && td.colspan > 1) {
|
|
225
235
|
tmp.mergeAcross = td.colspan - 1;
|
|
@@ -567,7 +577,16 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
567
577
|
const summaries = this.exporter.getConfig().data.getSummaries();
|
|
568
578
|
if (summaries && summaries.length) {
|
|
569
579
|
summaries.each((row) => {
|
|
570
|
-
|
|
580
|
+
let flag = false;
|
|
581
|
+
const values = row.getCells().getValues('_value').map((value) => {
|
|
582
|
+
if (value) {
|
|
583
|
+
flag = true;
|
|
584
|
+
}
|
|
585
|
+
return ({value});
|
|
586
|
+
});
|
|
587
|
+
if (flag) {
|
|
588
|
+
summaryRows.push(values);
|
|
589
|
+
}
|
|
571
590
|
});
|
|
572
591
|
}
|
|
573
592
|
return summaryRows;
|
|
@@ -1002,7 +1021,6 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
1002
1021
|
chunk = '';
|
|
1003
1022
|
}
|
|
1004
1023
|
}, this);
|
|
1005
|
-
|
|
1006
1024
|
result.push('</table>');
|
|
1007
1025
|
// Нижний колонтитул (если задан).
|
|
1008
1026
|
if (!Ext.isEmpty(this.footer)) {
|
|
@@ -1347,7 +1365,7 @@ Ext.define('Coon.report.plugin.grid.CopyRowsFromGrid', {
|
|
|
1347
1365
|
if (Ext.isEmpty(this.parametersForReplace)) {
|
|
1348
1366
|
this.parametersForReplace = [
|
|
1349
1367
|
{
|
|
1350
|
-
re: '\\{\\$\\w[\\w
|
|
1368
|
+
re: '\\{\\$\\w[\\w ,\\\\/.:-]*\\$\\}', // Даты в виде {$формат_даты$}
|
|
1351
1369
|
getHandler: function() {
|
|
1352
1370
|
const date = new Date();
|
|
1353
1371
|
return function(m) {
|
package/src/version.js
CHANGED