ru.coon 2.6.9 → 2.6.10
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,12 @@
|
|
|
1
|
+
# Version 2.6.10, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2d87458a32ccab859bbb873010e51d0f860c1cac)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'>Fix isEnabled ayth method</span> ([d7a9d7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d7a9d72fa6d5831b68dec7d4d78ccf2ecb654d33))
|
|
4
|
+
* <span style='color:red'> HT-8060: check property anytime before load store</span> ([333114], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/333114be77d61ebc2e52ccdaf26582398bd42963))
|
|
5
|
+
* <span style='color:red'> HT-8060: check property anytime before load store</span> ([ee8c6b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ee8c6b009d059bef6f274286f7902a64de2425e3))
|
|
6
|
+
* <span style='color:red'> HT-8045 GridEditorsPlugin date format</span> ([af1f26], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/af1f262623d6de218aa183ae685a777c131a8965))
|
|
7
|
+
|
|
8
|
+
* update: CHANGELOG.md ([c6f733], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c6f733b3e6ccfda235a9e2d2352aa6104b281ed8))
|
|
9
|
+
|
|
1
10
|
# Version 2.6.9, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/09a3ff5aed07b24a015644b873b7ee84a959d67e)
|
|
2
11
|
* ## Fixes
|
|
3
12
|
* <span style='color:red'> HT-8060: check property, in tree report we dont have it</span> ([156dbc], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/156dbceeb316315d85970bbe9000d4f79dbdcc6c))
|
|
@@ -6,6 +15,7 @@
|
|
|
6
15
|
* Revert "fix: HT-8060: check property, in tree report we dont have it"
|
|
7
16
|
|
|
8
17
|
This reverts commit ec83613d1dd2673b448c9fabee62287e9160f6bf. ([e6e94a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e6e94a278bb9b4d385f4687fe82b60d743985ff6))
|
|
18
|
+
* CRM-8328 fix: set hidden to fields on filter panel when northPanel is hidden ([e87566], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e8756637f8ca281263c688e59f578bc04f61587f))
|
|
9
19
|
* update: CHANGELOG.md ([569285], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/569285008ba24521643516619a3082ece72d9f8f))
|
|
10
20
|
|
|
11
21
|
# Version 2.6.8, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/93e8208b4895493b8ad13ac0910a75fc2a2b4531)
|
package/package.json
CHANGED
|
@@ -318,6 +318,22 @@ Ext.define('Coon.report.component.ReportPanel', {
|
|
|
318
318
|
hidden: true,
|
|
319
319
|
header: false,
|
|
320
320
|
});
|
|
321
|
+
|
|
322
|
+
this._visibleFieldsMap = new Map();
|
|
323
|
+
this.northPanel.on('hide', () => {
|
|
324
|
+
this.query('[validate][hidden=false]').forEach((field) => {
|
|
325
|
+
this._visibleFieldsMap.set(field, field.hidden);
|
|
326
|
+
field.setHidden(true);
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
this.northPanel.on('show', () => {
|
|
330
|
+
this.query('[validate][hidden=true]').forEach((field) => {
|
|
331
|
+
if (this._visibleFieldsMap.has(field)) {
|
|
332
|
+
field.setHidden(false);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
|
|
321
337
|
// для совместимости со старым кодом.
|
|
322
338
|
this.filterContainer = this.northPanel.filterContainer;
|
|
323
339
|
this.centerPanel = Ext.widget('panel', Ext.apply(this.centerProperties, {
|
|
@@ -804,6 +820,11 @@ Ext.define('Coon.report.component.ReportPanel', {
|
|
|
804
820
|
if (this.hideFilterPanel === false) {
|
|
805
821
|
this.northPanel.show();
|
|
806
822
|
} else if (this.hideFilterPanel === true || this.hideFilterPanel === 'hide') {
|
|
823
|
+
const visibleFields = this.query('[validate][hidden=false]');
|
|
824
|
+
visibleFields.forEach((field) => {
|
|
825
|
+
this._visibleFieldsMap.set(field, field.hidden);
|
|
826
|
+
field.setHidden(true);
|
|
827
|
+
});
|
|
807
828
|
this.northPanel.hide();
|
|
808
829
|
} else if (this.hideFilterPanel === 'collapse') {
|
|
809
830
|
this.northPanel.collapse(false);
|
|
@@ -37,12 +37,10 @@ Ext.define('Coon.report.component.reportpanel.ReportGrid', {
|
|
|
37
37
|
pageSize: this.pageSize,
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
this.
|
|
42
|
-
this.on('
|
|
43
|
-
|
|
44
|
-
}, this, {single: true});
|
|
45
|
-
}
|
|
40
|
+
this.on('afterrender', () => {
|
|
41
|
+
this.doAutoSizeAllColumn();
|
|
42
|
+
this.store.on('load', this.doAutoSizeAllColumn, this);
|
|
43
|
+
}, this, {single: true});
|
|
46
44
|
|
|
47
45
|
this.tbar = Ext.create({xtype: 'toolbar', hidden: true, enableOverflow: true, items: [].concat(this.tbar || [])});
|
|
48
46
|
this.bbar = Ext.create({xtype: 'toolbar', hidden: true, enableOverflow: true, items: [].concat(this.bbar || [])});
|
|
@@ -53,6 +51,12 @@ Ext.define('Coon.report.component.reportpanel.ReportGrid', {
|
|
|
53
51
|
this.relayEvents(this.getStore(), ['datachanged', 'load']);
|
|
54
52
|
},
|
|
55
53
|
|
|
54
|
+
doAutoSizeAllColumn() {
|
|
55
|
+
if (this.getEnableAutoSize()) {
|
|
56
|
+
this.getColumnModel().autoSizeAllColumn();
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
|
|
56
60
|
clear: function() {
|
|
57
61
|
if (this.rendered) {
|
|
58
62
|
this.getSelectionModel().clearSelections();
|
|
@@ -53,8 +53,10 @@ Ext.define('Coon.report.plugin.grid.GridEditorsPlugin', {
|
|
|
53
53
|
if (Ext.isFunction(column.setEditor)) {
|
|
54
54
|
column.setEditor(editor);
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
const dependsOnFieldName = editorObj['dependsOnField'] && editorObj['dependsOnFieldName'];
|
|
57
|
+
const needComboRenderer = editor.isXType('BaseComboBox') && column.useComboRenderer !== false;
|
|
58
|
+
const renderFunction = (value, metaData, record) => {
|
|
59
|
+
let editable = true;
|
|
58
60
|
if (editorObj['dependsOnField'] && editorObj['dependsOnFieldName']) {
|
|
59
61
|
const dependsOnFieldName = editorObj['dependsOnFieldName'];
|
|
60
62
|
const invertValue = editorObj['invertValue'];
|
|
@@ -67,13 +69,16 @@ Ext.define('Coon.report.plugin.grid.GridEditorsPlugin', {
|
|
|
67
69
|
if (editor.isXType('BaseComboBox') && column.useComboRenderer !== false) {
|
|
68
70
|
Coon.format.comboRenderer(editor, column.renderer && column.renderer.customStyle);
|
|
69
71
|
}
|
|
72
|
+
hasEditor.on('beforeedit', function(editor, context) {
|
|
73
|
+
return context.record.allowEditWithEditorPlugin;
|
|
74
|
+
}, this);
|
|
70
75
|
return value;
|
|
71
76
|
};
|
|
77
|
+
if (dependsOnFieldName || needComboRenderer) {
|
|
78
|
+
column.renderer = renderFunction;
|
|
79
|
+
}
|
|
72
80
|
}
|
|
73
81
|
}
|
|
74
|
-
hasEditor.on('beforeedit', function(editor, context) {
|
|
75
|
-
return context.record.allowEditWithEditorPlugin;
|
|
76
|
-
}, this);
|
|
77
82
|
},
|
|
78
83
|
|
|
79
84
|
createEditorItem: function(configuration) {
|
package/src/version.js
CHANGED