ru.coon 2.6.8 → 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,23 @@
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
+
10
+ # Version 2.6.9, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/09a3ff5aed07b24a015644b873b7ee84a959d67e)
11
+ * ## Fixes
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))
13
+ * <span style='color:red'> HT-8060: check property, in tree report we dont have it</span> ([ec8361], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ec83613d1dd2673b448c9fabee62287e9160f6bf))
14
+
15
+ * Revert "fix: HT-8060: check property, in tree report we dont have it"
16
+
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))
19
+ * update: CHANGELOG.md ([569285], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/569285008ba24521643516619a3082ece72d9f8f))
20
+
1
21
  # Version 2.6.8, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/93e8208b4895493b8ad13ac0910a75fc2a2b4531)
2
22
  * update: CHANGELOG.md ([367797], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/367797afa5241e6fd9eff7af17f4a28f2e1043ce))
3
23
 
@@ -91,13 +111,26 @@ This reverts commit 92855b1225a747f15d977c0f23c8d9794523352d. ([312854], [link](
91
111
  # Version 2.5.64, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d55fa844a67279117847d229fd7edcb5b5784fe9)
92
112
  * ## Features
93
113
  * <span style='color:green'>feat: HT-7281 GridEditorPlugin editor dependField</span> ([975be6], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/975be69118652f7995b2bfd40e5a174deaa47c68))
114
+
115
+ * update: CHANGELOG.md ([d8027e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d8027e3fe08b900d1cb6da3bfe688684b5764008))
116
+
117
+ # Version 2.5.66, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4e253ae2e8836166212d3886d091d342673deaee)
118
+ * update: CHANGELOG.md ([51a0c7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/51a0c702bb85db10b71ba3002e52ae2b0c7f98f7))
119
+
120
+ # Version 2.5.65, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/64478c87b5169b1d5be5b28bae8b82ada2477f32)
121
+ * ## Fixes
122
+ * <span style='color:red'> BFL-9170 GridRowStylePlugin in method renderer metadata equal nul</span> ([ac1868], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ac18684cc90b93256bc64067dc8a050d17fafa1d))
123
+ * <span style='color:red'> HT-7918 WindowWrap missing focus</span> ([0bdf38], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0bdf38c03dbd1cac10c9f2d8ea5d0786909d68e1))
124
+
125
+ * update: CHANGELOG.md ([4a4d82], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4a4d820afb7cfa7df56e325ba7435a3ecdfff712))
126
+
127
+ # Version 2.5.64, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9f48777236abed76cf08cd5cef56e7f9be0dac63)
128
+ * ## Features
94
129
  * <span style='color:green'>feat: HT-7955: focus CP before save action, set cell editing values in grids</span> ([4c6578], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4c6578c6873cd21c509de304494938276e7367a9))
95
130
  * <span style='color:green'>feat: BFL-9365 move TimeEditorCreator and DeliveryTimeField from ISWE</span> ([12c3c7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/12c3c701ac9387f4d2918a9feb1840bf0f7fb3ea))
96
131
  * <span style='color:green'>feat: HT-7281 GridEditorPlugin editor dependField</span> ([387052], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/38705228276f86858100b6b43c0e204bcc6f26b7))
97
132
 
98
133
  * ## Fixes
99
- * <span style='color:red'> BFL-9170 GridRowStylePlugin in method renderer metadata equal nul</span> ([ac1868], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ac18684cc90b93256bc64067dc8a050d17fafa1d))
100
- * <span style='color:red'> HT-7918 WindowWrap missing focus</span> ([0bdf38], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0bdf38c03dbd1cac10c9f2d8ea5d0786909d68e1))
101
134
  * <span style='color:red'>Fix:HT-7887 fix filterItemsOnRow property in ReportFormParameterEditPanel</span> ([c10ca9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c10ca98610970df2f51ca39fe698e278db6fe719))
102
135
  * <span style='color:red'> HT-7941: check if do not have saved data object then close window</span> ([0baf4e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0baf4ea72862a4a61230ffc3ac0af7f8b065d794))
103
136
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.6.8",
7
+ "version": "2.6.10",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -87,7 +87,6 @@ Ext.define('Coon.common.component.Auth', {
87
87
 
88
88
  // Проверяет включена ли авторизация
89
89
  isEnabled() {
90
- return Promise.resolve(true);
91
90
  return Coon.SystemProperties.fetch(
92
91
  this.systemPropertyName,
93
92
  'boolean'
@@ -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
- if (this.getEnableAutoSize()) {
41
- this.store.on('load', this.getColumnModel().autoSizeAllColumn, this);
42
- this.on('afterrender', function() {
43
- this.getColumnModel().autoSizeAllColumn();
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
- let editable = true;
57
- column.renderer = (value, metaData, record) => {
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) {
@@ -29,7 +29,7 @@ Ext.define('Coon.report.plugin.grid.ReportColumnStatePlugin', {
29
29
  }.bind(this));
30
30
  },
31
31
  checkEnableAutoSize() {
32
- if (this.grid.getEnableAutoSize() === true) {
32
+ if (typeof this.grid.getEnableAutoSize === 'function' && this.grid.getEnableAutoSize() === true) {
33
33
  const savedState = localStorage.getItem('reportsState');
34
34
  let deserializedState; let currentReportState;
35
35
  try {