ru.coon 2.8.45 → 2.8.46
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,11 @@
|
|
|
1
|
+
# Version 2.8.46, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/416e38feb604589c5505cd4b50a06ee98217451e)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'> Do not use class before initialization. Related to BFL-17721.</span> ([c119c8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c119c8afb6974faf2323315a8f2d975ecd27a0ad))
|
|
4
|
+
* <span style='color:red'> Перешли на исправленную версию ace-diff, в которой url к sourcemap файлу ace-diff.min.css исправлен, чтобы Vite его мог загрузить. Related to BFL-17721.</span> ([d88bf0], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d88bf04806947800ca39b82d71ff5381dc920838))
|
|
5
|
+
* <span style='color:red'> BFL-17459 GridEditorsPlugin comboRenderer and ReportPanel convert column value</span> ([f0ec9e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f0ec9e799e4bc7382b104389adef530a4b40d005))
|
|
6
|
+
|
|
7
|
+
* update: CHANGELOG.md ([578c6a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/578c6ad6a296007bc5d1bb7884ad86c50900a8d1))
|
|
8
|
+
|
|
1
9
|
# Version 2.8.45, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/25627ac5acaac8b27d8715539f6f5d660d06e4cb)
|
|
2
10
|
* ## Features
|
|
3
11
|
* <span style='color:green'>feat: HT-11254: Доработана возможность прокидывать функции в свойства элементов</span> ([b55ec0], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b55ec087990a4350abedbd7cff217c52e482eb1e))
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "ru.coon"
|
|
5
5
|
},
|
|
6
6
|
"description": "",
|
|
7
|
-
"version": "2.8.
|
|
7
|
+
"version": "2.8.46",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"ace-builds": "1.4.12",
|
|
27
|
-
"ace-diff": "
|
|
27
|
+
"ace-diff": "3.0.3-patch.1",
|
|
28
28
|
"decimal.js-light": "^2.5.1",
|
|
29
29
|
"echarts": "5.3.3",
|
|
30
30
|
"extjs_iconpack": "1.3.27",
|
package/src/app/Application.js
CHANGED
|
@@ -100,7 +100,7 @@ Ext.define('Coon.report.component.ReportPanel', {
|
|
|
100
100
|
const typeOfValue = field[fieldNS.$reportFieldTypeLookup];
|
|
101
101
|
|
|
102
102
|
// Построение конфига столбца по характеристике
|
|
103
|
-
|
|
103
|
+
let [cConfig, storeRecordType, convert] = this.setColumnType(typeOfValue);
|
|
104
104
|
|
|
105
105
|
const columnConfig = Ext.apply({
|
|
106
106
|
text: description && (description.indexOf('qtip=') === -1 ? description : description.slice(0, description.indexOf('qtip='))),
|
|
@@ -110,6 +110,19 @@ Ext.define('Coon.report.component.ReportPanel', {
|
|
|
110
110
|
filterable: true,
|
|
111
111
|
}, Coon.Function.convertAdvancedProperties(field[fieldNS.$properties]), cConfig);
|
|
112
112
|
|
|
113
|
+
if (field[fieldNS.$properties].convert) {
|
|
114
|
+
try {
|
|
115
|
+
if (
|
|
116
|
+
Ext.isString(field[fieldNS.$properties].convert) &&
|
|
117
|
+
Ext.String.startsWith(field[fieldNS.$properties].convert, 'function')
|
|
118
|
+
) {
|
|
119
|
+
convert = Coon.Function.createFromString(field[fieldNS.$properties].convert);
|
|
120
|
+
}
|
|
121
|
+
} catch (e) {
|
|
122
|
+
console.warn(e);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
113
126
|
if (columnConfig['useComboRenderer']) {
|
|
114
127
|
columnConfig.renderer = function(value, metaData, record, rowIndex, colIndex, store, view) {
|
|
115
128
|
const editor = metaData.column && metaData.column.getEditor && metaData.column.getEditor();
|
|
@@ -95,9 +95,16 @@ Ext.define('Coon.report.plugin.grid.GridEditorsPlugin', {
|
|
|
95
95
|
metaData.tdStyle = customStyle;
|
|
96
96
|
}
|
|
97
97
|
if (needComboRenderer) {
|
|
98
|
-
editor.
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
if (!editor.getStore().isLoaded() && editor.deferGridUpdate !== true) {
|
|
99
|
+
editor.deferGridUpdate = true;
|
|
100
|
+
editor.getStore().on('load', function() {
|
|
101
|
+
delete editor.deferGridUpdate;
|
|
102
|
+
this.grid.view.refresh();
|
|
103
|
+
}, this, {single: true});
|
|
104
|
+
} else {
|
|
105
|
+
editor.setValue(value);
|
|
106
|
+
return editor.getVisibleValue();
|
|
107
|
+
}
|
|
101
108
|
}
|
|
102
109
|
if (Ext.isDate(value)) {
|
|
103
110
|
return Ext.Date.format(value, editorConfig.mask.format || columnFormat);
|
package/src/version.js
CHANGED