ru.coon 2.7.28 → 2.7.30
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,16 @@
|
|
|
1
|
+
# Version 2.7.30, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a72ce199d2d79b7a5dcb52cc81cd68e46f34829a)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'> HT-8422: set filter panel height on afterlayout</span> ([d65a92], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d65a9277c2fcedaba912ff40ba7a912049bdd7f7))
|
|
4
|
+
|
|
5
|
+
* update: CHANGELOG.md ([880435], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/88043579448bda38f9c2b2ec4d159a2d502dba5a))
|
|
6
|
+
|
|
7
|
+
# Version 2.7.29, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/567513e38f7c7e6b90e1873785d5fb69e9fb9f4b)
|
|
8
|
+
* ## Fixes
|
|
9
|
+
* <span style='color:red'> CustomValueCheckBox updateCheckedCls by transformed value. Closes HT-8838.</span> ([1ac9e0], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1ac9e0051d72938c2942a2d528e40fd9b20ca4a0))
|
|
10
|
+
|
|
11
|
+
* add CoonQtip plugin for adding tooltip on fields with missing tooltip feature ([49dabd], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/49dabdd3c14afd50413d8a1b9a027a9fbd78713d))
|
|
12
|
+
* update: CHANGELOG.md ([89516f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/89516fd4f6c4e5fde8dac6635e30f1b42ada35d3))
|
|
13
|
+
|
|
1
14
|
# Version 2.7.28, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cb4662ac201c84739a5abb84ba36f10af0e35a25)
|
|
2
15
|
* ## Fixes
|
|
3
16
|
* <span style='color:red'>fix HT-8819</span> ([c5be10], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c5be103a7e463659ee436dd478eee04c9cfa6b35))
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Ext.define('Coon.plugin.CoonQtip', {
|
|
2
|
+
extend: 'Ext.plugin.Abstract',
|
|
3
|
+
alias: 'plugin.CoonQtip',
|
|
4
|
+
id: 'CoonQtip',
|
|
5
|
+
|
|
6
|
+
init() {
|
|
7
|
+
Coon.util.bindMethods(
|
|
8
|
+
[
|
|
9
|
+
'getQtip',
|
|
10
|
+
'setQtip'
|
|
11
|
+
],
|
|
12
|
+
this,
|
|
13
|
+
this.getCmp(),
|
|
14
|
+
this
|
|
15
|
+
);
|
|
16
|
+
this.renderQtip();
|
|
17
|
+
this.getCmp().on('afterrender', function() {
|
|
18
|
+
this.renderQtip();
|
|
19
|
+
}, this, {single: true});
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
getQtip() {
|
|
23
|
+
return this.getCmp().qtip;
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
setQtip(qtip) {
|
|
27
|
+
this.getCmp().qtip = qtip;
|
|
28
|
+
this.renderQtip(qtip);
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
renderQtip() {
|
|
32
|
+
if (this.getCmp().destroyed) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const dom = this.getCmp().getEl() && this.getCmp().getEl().dom;
|
|
36
|
+
if (!dom) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const qtip = Ext.util.Format.htmlEncode(this.getQtip() || '');
|
|
40
|
+
dom.dataset.qtip = qtip;
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
});
|
|
@@ -179,9 +179,9 @@ Ext.define('Coon.report.component.report.NorthPanel', {
|
|
|
179
179
|
}, this);
|
|
180
180
|
|
|
181
181
|
this.filterContainer.removeAll();
|
|
182
|
-
filterPanel.on('
|
|
182
|
+
filterPanel.on('afterlayout', (cmp) => {
|
|
183
183
|
this.setHeight(Math.max(cmp.getHeight(), this.minimalHeight) + (this.tbarsHeight || this.alignButtons));
|
|
184
|
-
}, this);
|
|
184
|
+
}, this, {single: true});
|
|
185
185
|
this.filterContainer.add(filterPanel);
|
|
186
186
|
if (this.hideFilterButtons) {
|
|
187
187
|
this.buttonsContainer.hide();
|
package/src/util.js
CHANGED
|
@@ -620,4 +620,24 @@ Ext.define('Coon.util', {
|
|
|
620
620
|
objectsIsEqual(obj1 = {}, obj2 = {}) {
|
|
621
621
|
return Coon.util.generateHashFromObj(obj1) === Coon.util.generateHashFromObj(obj2);
|
|
622
622
|
},
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* bind methods from one component to another
|
|
626
|
+
* @param {Array} methods array of method names
|
|
627
|
+
* @param {*} from component
|
|
628
|
+
* @param {*} to component
|
|
629
|
+
* @param {*} scope context
|
|
630
|
+
* @returns
|
|
631
|
+
*/
|
|
632
|
+
bindMethods(methods, from, to, scope) {
|
|
633
|
+
if (!Array.isArray(methods) || !Ext.isObject(from) || !Ext.isObject(to)) {
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
methods.forEach((name) => {
|
|
637
|
+
const method = from[name];
|
|
638
|
+
if (typeof method === 'function') {
|
|
639
|
+
to[name] = method.bind(scope || from);
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
},
|
|
623
643
|
});
|
package/src/version.js
CHANGED