ru.coon 2.8.13 → 2.8.15
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 +17 -0
- package/package.json +1 -1
- package/src/report/component/ClearFiltersButton.js +2 -2
- package/src/report/component/ReportPanel.js +16 -5
- package/src/report/toolbar/ButtonsByType.scss +2 -2
- package/src/report/toolbar/ReportGridToolbar.js +5 -0
- package/src/report/toolbar/layout/ReportToolbarOverflow.js +1 -1
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Version 2.8.15, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8243a899e863488223002046a50b6692d3af8fb5)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: HT-10125: remove tbfill when it has in items</span> ([f57798], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f57798b08404721c6d13512b3be38771dc53ee30))
|
|
4
|
+
* <span style='color:green'>feat: HT-10125: remove tbfill when it has in items</span> ([3e9b04], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3e9b04e719016aedab59ac8b889da93de0540715))
|
|
5
|
+
* <span style='color:green'>feat: HT-8951: fix css</span> ([7ddd11], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7ddd117e3ba365e1c2da3472ecd0efe180e1e204))
|
|
6
|
+
|
|
7
|
+
* ## Fixes
|
|
8
|
+
* <span style='color:red'>fixes</span> ([77fb8d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/77fb8de94f02156769b48092d91ea16a11f9aa94))
|
|
9
|
+
|
|
10
|
+
* update: CHANGELOG.md ([b6ceb3], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b6ceb36854b9ae262d9dcf375f19695392da16ca))
|
|
11
|
+
|
|
12
|
+
# Version 2.8.14, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dcae10177e3289827d597b883c0e7be99ff45e98)
|
|
13
|
+
* ## Fixes
|
|
14
|
+
* <span style='color:red'>fix ClearFiltersButton visible status, HT-10125</span> ([689462], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6894624e9d2cc0ba572308e2ac4c366a626432c8))
|
|
15
|
+
|
|
16
|
+
* update: CHANGELOG.md ([8bda50], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8bda502e40800b08f934d9642f7089f5c71e343c))
|
|
17
|
+
|
|
1
18
|
# Version 2.8.13, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/33ee197b3f9236825df8a0fca08d2b6d8b873d65)
|
|
2
19
|
* TR-69125 feat: плагин ExecuteReportPlugin ([9950bc], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9950bce3518c8edb9512d5125c3c0a7bca284c21))
|
|
3
20
|
* update: CHANGELOG.md ([d117f3], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d117f322365a1d8d5399cb1031edc2a1d9579caf))
|
package/package.json
CHANGED
|
@@ -4,10 +4,10 @@ Ext.define('Coon.report.component.ClearFiltersButton', {
|
|
|
4
4
|
cls: 'ClearFiltersButton',
|
|
5
5
|
itemId: 'actionButton',
|
|
6
6
|
position: 998,
|
|
7
|
-
disabled: true,
|
|
8
7
|
focusOnToFront: false,
|
|
9
8
|
focusable: false,
|
|
10
9
|
allowDepress: false,
|
|
10
|
+
hidden: true,
|
|
11
11
|
iconCls: 'svg-icon svg-icon-filter-alt-off',
|
|
12
12
|
tooltip: 'Отключить фильтры в колонках',
|
|
13
13
|
toolbar: null,
|
|
@@ -26,7 +26,7 @@ Ext.define('Coon.report.component.ClearFiltersButton', {
|
|
|
26
26
|
ReportPanel && ReportPanel.grid;
|
|
27
27
|
this.grid = ReportPanel.grid;
|
|
28
28
|
this.grid.getStore().on('filterchange', (store) => {
|
|
29
|
-
this.
|
|
29
|
+
this.setHidden(!store.getFilters().length);
|
|
30
30
|
}, this);
|
|
31
31
|
};
|
|
32
32
|
if (this.toolbar) {
|
|
@@ -493,13 +493,24 @@ Ext.define('Coon.report.component.ReportPanel', {
|
|
|
493
493
|
},
|
|
494
494
|
|
|
495
495
|
createTopToolbar(items) {
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
const clearBlock = [];
|
|
497
|
+
if ((items && Ext.isArray(items) && !items.find((item) => {
|
|
498
|
+
if (Ext.isObject(item)) {
|
|
499
|
+
return item.xtype === 'tbfill';
|
|
500
|
+
} else {
|
|
501
|
+
return item === '->';
|
|
502
|
+
}
|
|
503
|
+
})) || !items) {
|
|
504
|
+
clearBlock.push({
|
|
498
505
|
xtype: 'tbfill',
|
|
499
506
|
position: 997,
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
clearBlock.push({
|
|
510
|
+
xtype: 'ClearFiltersButton',
|
|
511
|
+
});
|
|
512
|
+
return this.gridTopToolbar = Ext.create({
|
|
513
|
+
xtype: 'toolbar', hidden: true, enableOverflow: true, items: [].concat(items || []).concat(clearBlock),
|
|
503
514
|
});
|
|
504
515
|
},
|
|
505
516
|
createBottomToolbar(items) {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
.function-button-type {
|
|
40
40
|
|
|
41
41
|
border: 1px solid #F5F7F8 !important;
|
|
42
|
-
background-color: #
|
|
42
|
+
background-color: #F5F7F8;
|
|
43
43
|
border-radius: 6px;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
.function-button-type.x-btn-over {
|
|
65
|
-
background-color:
|
|
65
|
+
background-color: #ECF0F3;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.function-button-type.x-btn-over .x-btn-arrow-right::after {
|
|
@@ -9,6 +9,7 @@ Ext.define('Coon.report.toolbar.ReportGridToolbar', {
|
|
|
9
9
|
userPreferences: {},
|
|
10
10
|
reportPanel: undefined,
|
|
11
11
|
newButtons: {},
|
|
12
|
+
|
|
12
13
|
initComponent: function() {
|
|
13
14
|
this.layout = {
|
|
14
15
|
overflowHandler: Ext.create('Coon.report.toolbar.layout.ReportToolbarOverflow', {
|
|
@@ -25,6 +26,9 @@ Ext.define('Coon.report.toolbar.ReportGridToolbar', {
|
|
|
25
26
|
this.foldItemsContainer,
|
|
26
27
|
{
|
|
27
28
|
xtype: 'displayfield',
|
|
29
|
+
width: 2,
|
|
30
|
+
margin: 0,
|
|
31
|
+
padding: 0,
|
|
28
32
|
position: -10,
|
|
29
33
|
itemId: 'hiddenDisplayElement',
|
|
30
34
|
}
|
|
@@ -139,6 +143,7 @@ Ext.define('Coon.report.toolbar.ReportGridToolbar', {
|
|
|
139
143
|
return 0;
|
|
140
144
|
});
|
|
141
145
|
},
|
|
146
|
+
|
|
142
147
|
readUserPreferences: function() {
|
|
143
148
|
if (this.getEl()) {
|
|
144
149
|
this.getLayout().overflowHandler.menuButton.setTooltip(null);
|
package/src/version.js
CHANGED