ru.coon 2.6.0 → 2.6.1
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 +7 -0
- package/package.json +1 -1
- package/src/report/component/reportpanel/ReportGrid.scss +1 -1
- package/src/report/plugin/grid/GridEditorsPlugin.js +16 -17
- package/src/report/plugin/grid/GridQuickSearchPlugin.js +3 -0
- package/src/uielement/plugin/OpenPanelPlugin.js +4 -0
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# Version 2.6.1, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2b7d5d8cd09bf94320d149f9cf3aa78ef27594a8)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'> HT-7281 GridEditorPlugin editor dependField</span> ([e9c537], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e9c53704ee957042292ed639343bf217c8cdeca8))
|
|
4
|
+
|
|
5
|
+
* HT-8006 hotfix ([6569c3], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6569c3b6e197471fabb6af4da5c3212fd7079be2))
|
|
6
|
+
* update: CHANGELOG.md ([e7b502], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e7b50227f8ddeaac7322ce3e436c2c0b5fd12163))
|
|
7
|
+
|
|
1
8
|
# Version 2.6.0, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/78a28499d4ba7dc466ba5ff5a4b815d191c349bf)
|
|
2
9
|
* ## Features
|
|
3
10
|
* <span style='color:green'>feat: HT-7986: chars editor interface upgrade</span> ([9af20a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9af20aa30d2b1fa494994e0cf7d84b26b19604e0))
|
package/package.json
CHANGED
|
@@ -53,9 +53,22 @@ Ext.define('Coon.report.plugin.grid.GridEditorsPlugin', {
|
|
|
53
53
|
if (Ext.isFunction(column.setEditor)) {
|
|
54
54
|
column.setEditor(editor);
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
let editable = true;
|
|
57
|
+
column.renderer = (value, metaData, record) => {
|
|
58
|
+
if (editorObj['dependsOnField'] && editorObj['dependsOnFieldName']) {
|
|
59
|
+
const dependsOnFieldName = editorObj['dependsOnFieldName'];
|
|
60
|
+
const invertValue = editorObj['invertValue'];
|
|
61
|
+
editable = invertValue === !record.get(dependsOnFieldName);
|
|
62
|
+
record.allowEditWithEditorPlugin = editable;
|
|
63
|
+
if (editorObj['highlightEditableCells']) {
|
|
64
|
+
metaData.tdCls = editable ? 'editable-cell' : 'hover-cell';
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (editor.isXType('BaseComboBox') && column.useComboRenderer !== false) {
|
|
68
|
+
Coon.format.comboRenderer(editor, column.renderer && column.renderer.customStyle);
|
|
69
|
+
}
|
|
70
|
+
return value;
|
|
71
|
+
};
|
|
59
72
|
}
|
|
60
73
|
}
|
|
61
74
|
hasEditor.on('beforeedit', function(editor, context) {
|
|
@@ -137,20 +150,6 @@ Ext.define('Coon.report.plugin.grid.GridEditorsPlugin', {
|
|
|
137
150
|
editor.on('beforeedit', function() {
|
|
138
151
|
Ext.emptyFn();
|
|
139
152
|
}, this);
|
|
140
|
-
let editable = true;
|
|
141
|
-
if (configuration['dependsOnField'] && configuration['dependsOnFieldName']) {
|
|
142
|
-
const editableColumn = this.grid.getColumns().find((col) => col.dataIndex === configuration[ns.$type]);
|
|
143
|
-
editableColumn.renderer = (value, metaData, record) => {
|
|
144
|
-
const dependsOnFieldName = configuration['dependsOnFieldName'];
|
|
145
|
-
const invertValue = configuration['invertValue'];
|
|
146
|
-
editable = invertValue === !record.get(dependsOnFieldName);
|
|
147
|
-
record.allowEditWithEditorPlugin = editable;
|
|
148
|
-
if (configuration['highlightEditableCells']) {
|
|
149
|
-
metaData.tdCls = editable ? 'create-line-left' : 'hover-style';
|
|
150
|
-
}
|
|
151
|
-
return value;
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
153
|
return editor;
|
|
155
154
|
},
|
|
156
155
|
});
|
|
@@ -120,6 +120,9 @@ Ext.define('Coon.report.plugin.grid.GridQuickSearchPlugin', {
|
|
|
120
120
|
|
|
121
121
|
updateColumnHeaderByFilter: function(filter) {
|
|
122
122
|
const columnData = this.columnsData[filter.dataIndex];
|
|
123
|
+
if (!columnData) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
123
126
|
const text = filter.value;
|
|
124
127
|
const currentColumn = this.grid.getColumns()[columnData.index];
|
|
125
128
|
if (!filter.active) {
|
|
@@ -71,6 +71,10 @@ Ext.define('Coon.uielement.plugin.OpenPanelPlugin', {
|
|
|
71
71
|
items: panel,
|
|
72
72
|
}, defaultWindowConfig || {}));
|
|
73
73
|
|
|
74
|
+
openWindow.on('close', function() {
|
|
75
|
+
panel.fireEvent('closeWindow');
|
|
76
|
+
});
|
|
77
|
+
|
|
74
78
|
openWindow.on('afterrender', function() {
|
|
75
79
|
const initArguments = {};
|
|
76
80
|
for (const name in this.parameters) {
|
package/src/version.js
CHANGED