ru.coon 2.8.44 → 2.8.45
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,10 @@
|
|
|
1
|
+
# Version 2.8.45, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/25627ac5acaac8b27d8715539f6f5d660d06e4cb)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: HT-11254: Доработана возможность прокидывать функции в свойства элементов</span> ([b55ec0], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b55ec087990a4350abedbd7cff217c52e482eb1e))
|
|
4
|
+
* <span style='color:green'>feat: TR-70262: Доработана возможность выставление времени ожидания ответа сервера</span> ([498d84], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/498d847755e76adcbb2da40e469626454f5b8da6))
|
|
5
|
+
|
|
6
|
+
* update: CHANGELOG.md ([0508b8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0508b825a1f89b1651b8f6c83181fa222e2544ee))
|
|
7
|
+
|
|
1
8
|
# Version 2.8.44, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/50df0b225f3a1efaaa05828e6445e74667856840)
|
|
2
9
|
* ## Features
|
|
3
10
|
* <span style='color:green'>feat: HT-11254: Доработана возможность прокидывать функции в свойства элементов</span> ([94e499], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/94e499f50bc145ebc6fca12a75905ae0fb82b54b))
|
package/package.json
CHANGED
|
@@ -76,7 +76,17 @@ Ext.define('Coon.report.plugin.configPanel.ExportReportDataToFilePluginConfigPan
|
|
|
76
76
|
},
|
|
77
77
|
this.createAddButtonPanel(),
|
|
78
78
|
this.getAllRowsCheckBox(),
|
|
79
|
-
this.createCustomColumnsFieldset()
|
|
79
|
+
this.createCustomColumnsFieldset(),
|
|
80
|
+
{
|
|
81
|
+
xtype: 'numberfield',
|
|
82
|
+
name: 'countHours',
|
|
83
|
+
minValue: 1,
|
|
84
|
+
allowDecimals: true,
|
|
85
|
+
step: 0.1,
|
|
86
|
+
decimalPrecision: 1,
|
|
87
|
+
maxValue: 24,
|
|
88
|
+
fieldLabel: 'таймаут(в часах)',
|
|
89
|
+
}
|
|
80
90
|
],
|
|
81
91
|
defaults: {
|
|
82
92
|
labelWidth: 130,
|
|
@@ -129,7 +139,7 @@ Ext.define('Coon.report.plugin.configPanel.ExportReportDataToFilePluginConfigPan
|
|
|
129
139
|
useLinter: true,
|
|
130
140
|
scrollable: 'y',
|
|
131
141
|
name: 'exportConfig',
|
|
132
|
-
value: {},
|
|
142
|
+
value: '{}',
|
|
133
143
|
}
|
|
134
144
|
],
|
|
135
145
|
};
|
|
@@ -183,6 +193,7 @@ Ext.define('Coon.report.plugin.configPanel.ExportReportDataToFilePluginConfigPan
|
|
|
183
193
|
if (config.exportConfig) {
|
|
184
194
|
this.down('UiAceEditor').setValue(config.exportConfig);
|
|
185
195
|
}
|
|
196
|
+
Coon.Function.getFieldByName(this, 'countHours').setValue(config.countHours ? config.countHours : 1);
|
|
186
197
|
this.setFieldsData(this.context.fields);
|
|
187
198
|
},
|
|
188
199
|
|
|
@@ -191,7 +202,6 @@ Ext.define('Coon.report.plugin.configPanel.ExportReportDataToFilePluginConfigPan
|
|
|
191
202
|
const ns = Coon.report.model.ReportFieldMaintenanceBeanFields;
|
|
192
203
|
const fieldsNS = Coon.report.model.ReportFieldBeanFields;
|
|
193
204
|
const warningMessage = this.lookup('warning');
|
|
194
|
-
|
|
195
205
|
const fieldsData = fields.length && fields.map((field) => {
|
|
196
206
|
if (field[fieldsNS.$reportFieldTypeLookup] === 'BOOLEAN') {
|
|
197
207
|
this.booleanFields.push(field[fieldsNS.$reportFieldCd]);
|
|
@@ -215,6 +225,7 @@ Ext.define('Coon.report.plugin.configPanel.ExportReportDataToFilePluginConfigPan
|
|
|
215
225
|
config['columnList'] = JSON5.stringify(checkedRecords.length ? checkedRecords : this.grid.getStore().queryRecords());
|
|
216
226
|
config['allowUserSelectColumnsToUpload'] = allowUserColumns;
|
|
217
227
|
}
|
|
228
|
+
config['countHours'] = Coon.Function.getFieldByName(this, 'countHours').getValue();
|
|
218
229
|
config['exportConfig'] = this.down('UiAceEditor').getValue();
|
|
219
230
|
return config;
|
|
220
231
|
});
|
|
@@ -12,10 +12,11 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
12
12
|
exportAllRows: true,
|
|
13
13
|
allowUserSelectColumnsToUpload: undefined,
|
|
14
14
|
addToSearchButton: false,
|
|
15
|
+
countHours: 1,
|
|
15
16
|
},
|
|
16
17
|
exportConfig: {},
|
|
17
18
|
defaultDateFormat: 'Y-m-d_h-i',
|
|
18
|
-
defaultTimeout:
|
|
19
|
+
defaultTimeout: 3600000,
|
|
19
20
|
|
|
20
21
|
constructor(config) {
|
|
21
22
|
config.invisibleByDefault = config.addToSearchButton === true;
|
|
@@ -186,7 +187,7 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
186
187
|
getTimeout() {
|
|
187
188
|
return !isNaN(this.config.cmp && this.config.cmp.timeout) && this.config.cmp.timeout ?
|
|
188
189
|
this.config.cmp.timeout :
|
|
189
|
-
this.defaultTimeout;
|
|
190
|
+
(this.getCountHours() * this.defaultTimeout);
|
|
190
191
|
},
|
|
191
192
|
printCsvFile: async function(extension) {
|
|
192
193
|
this.grid.mask('подождите пожалуйста...');
|
package/src/version.js
CHANGED