ru.coon 2.7.22 → 2.7.24
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,18 @@
|
|
|
1
|
+
# Version 2.7.24, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8e3cc36a693f048a9feceada5eb46f979eda23db)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: HT-8422: set dynamic size on filter panel</span> ([e5816e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e5816e9be17f9ca40fad6ba2d86e79318455b633))
|
|
4
|
+
* <span style='color:green'>feat: HT-8422: set dynamic size on filter panel</span> ([e5bf0f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e5bf0fbe72cbaf763f92c40b0885614b2077bbfe))
|
|
5
|
+
* <span style='color:green'>feat: HT-8422: set dynamic size on filter panel</span> ([6eb768], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6eb768f94991539f70c339b9cc4fe5785d8284b2))
|
|
6
|
+
* <span style='color:green'>feat: HT-8422: set dynamic size on filter panel</span> ([c6f315], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c6f3156c261c7c8bd0da5c90e42ff14287bd7feb))
|
|
7
|
+
|
|
8
|
+
* update: CHANGELOG.md ([41c58e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/41c58ef69138e4f0067bc75b9d1df92962f67165))
|
|
9
|
+
|
|
10
|
+
# Version 2.7.23, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e1fd5ef91937dab7196de70f1ec48895dd0e036f)
|
|
11
|
+
* ## Fixes
|
|
12
|
+
* <span style='color:red'>fix ReportLookupCombo</span> ([389b88], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/389b882bb57e27db1acebb9196f4ebf533794200))
|
|
13
|
+
|
|
14
|
+
* update: CHANGELOG.md ([1da73b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1da73b648a1493be777199ffce8a8fe0dac63998))
|
|
15
|
+
|
|
1
16
|
# Version 2.7.22, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/44122a0527f68e71a21175a4e497157b5ac18b3b)
|
|
2
17
|
* ## Fixes
|
|
3
18
|
* <span style='color:red'>fix function call</span> ([70df27], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/70df27e80e9798056bb565c1683b09ee2f3d0ce5))
|
package/package.json
CHANGED
|
@@ -97,10 +97,12 @@ Ext.define('Coon.report.component.ReportLookupCombo', {
|
|
|
97
97
|
this._setValue = this.setValue.bind(this);
|
|
98
98
|
this.setValue = function(value) {
|
|
99
99
|
this._setValue(value);
|
|
100
|
-
if (!this._inited
|
|
101
|
-
this.
|
|
100
|
+
if (!this._inited) {
|
|
101
|
+
this._inited = true;// don't touch this
|
|
102
|
+
if (value) {
|
|
103
|
+
this.loadReportData(value);
|
|
104
|
+
};
|
|
102
105
|
}
|
|
103
|
-
this._inited = true;
|
|
104
106
|
};
|
|
105
107
|
if (Ext.isObject(this.defaultParameters)) {
|
|
106
108
|
this.setFilterDefaults(this.defaultParameters);
|
|
@@ -3,6 +3,8 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
3
3
|
alias: 'widget.NorthPanel',
|
|
4
4
|
xtype: 'NorthPanel',
|
|
5
5
|
cls: 'NorthPanel',
|
|
6
|
+
minimalHeight: 55,
|
|
7
|
+
alignButtons: -15,
|
|
6
8
|
layout: {
|
|
7
9
|
type: 'hbox',
|
|
8
10
|
align: 'stretch',
|
|
@@ -169,7 +171,7 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
169
171
|
enableHighlightingRequiredFields: enableHighlightingRequiredFields,
|
|
170
172
|
plugins: this.filterPlugins,
|
|
171
173
|
});
|
|
172
|
-
|
|
174
|
+
this.filterPanel = filterPanel;
|
|
173
175
|
|
|
174
176
|
this.on('searchbuttontoggle', function(isValid, errorMessage) {
|
|
175
177
|
this.searchButton.setDisabled(!isValid);
|
|
@@ -177,10 +179,10 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
177
179
|
}, this);
|
|
178
180
|
|
|
179
181
|
this.filterContainer.removeAll();
|
|
182
|
+
filterPanel.on('afterrender', (cmp) => {
|
|
183
|
+
this.setHeight(Math.max(cmp.getHeight(), this.minimalHeight) + (this.tbarsHeight || this.alignButtons));
|
|
184
|
+
}, this);
|
|
180
185
|
this.filterContainer.add(filterPanel);
|
|
181
|
-
if (!this.hideFilterPanel) {
|
|
182
|
-
this.setHeight(Math.max(filterPanel.height, 55));
|
|
183
|
-
}
|
|
184
186
|
if (this.hideFilterButtons) {
|
|
185
187
|
this.buttonsContainer.hide();
|
|
186
188
|
}
|
|
@@ -194,12 +196,6 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
194
196
|
});
|
|
195
197
|
}
|
|
196
198
|
this.changeTbarStates();
|
|
197
|
-
Ext.defer(function() {
|
|
198
|
-
if (this.el) {
|
|
199
|
-
this.setHeight(null);
|
|
200
|
-
this.setHeight(this.getHeight()-15);
|
|
201
|
-
}
|
|
202
|
-
}, 1, this);
|
|
203
199
|
},
|
|
204
200
|
|
|
205
201
|
changeTbarStates() {
|
|
@@ -208,10 +204,14 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
208
204
|
}
|
|
209
205
|
const tbar = this.down('[reference="tbar"]');
|
|
210
206
|
const bbar = this.down('[reference="bbar"]');
|
|
207
|
+
let tbarsHeight = 0;
|
|
208
|
+
const tbarH = 20;
|
|
209
|
+
const bbarH = 30;
|
|
211
210
|
if (!tbar || !bbar || this.hideFilterPanel) {
|
|
212
211
|
return;
|
|
213
212
|
}
|
|
214
213
|
if (this.enableHighlightingRequiredFields || this.getEnableChipToolbar()) {
|
|
214
|
+
tbarsHeight += tbarH;
|
|
215
215
|
tbar.show();
|
|
216
216
|
if (this.isLegendHidden() && this.enableHighlightingRequiredFields && !this.legend) {
|
|
217
217
|
this.legend = this.buildLegend();
|
|
@@ -234,7 +234,7 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
234
234
|
if (!this.buttonsContainer.hidden) {
|
|
235
235
|
bbar.add(this.buttonsContainer);
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
tbarsHeight += bbarH;
|
|
238
238
|
bbar.show();
|
|
239
239
|
this.filterConditionToolbar.getController().addChangeReaction();
|
|
240
240
|
} else {
|
|
@@ -244,13 +244,10 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
244
244
|
this.add(this.buttonsContainer);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
this.setHeight(this.getHeight()-15);
|
|
252
|
-
}
|
|
253
|
-
}, 1, this);
|
|
247
|
+
this.tbarsHeight = tbarsHeight;
|
|
248
|
+
if (this.filterPanel.getEl()) {
|
|
249
|
+
this.setHeight(Math.max(this.filterPanel.getHeight(), this.minimalHeight) + (this.tbarsHeight || this.alignButtons));
|
|
250
|
+
}
|
|
254
251
|
},
|
|
255
252
|
|
|
256
253
|
setEnableChipToolbar(enableChipToolbar) {
|
package/src/version.js
CHANGED