ru.coon 2.7.28 → 2.7.29
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 +7 -0
- package/package.json +1 -1
- package/src/common/field/checkbox/CustomValueCheckBox.js +1 -1
- package/src/plugin/CoonQtip.js +43 -0
- package/src/util.js +20 -0
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# Version 2.7.29, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/567513e38f7c7e6b90e1873785d5fb69e9fb9f4b)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <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))
|
|
4
|
+
|
|
5
|
+
* 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))
|
|
6
|
+
* update: CHANGELOG.md ([89516f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/89516fd4f6c4e5fde8dac6635e30f1b42ada35d3))
|
|
7
|
+
|
|
1
8
|
# Version 2.7.28, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cb4662ac201c84739a5abb84ba36f10af0e35a25)
|
|
2
9
|
* ## Fixes
|
|
3
10
|
* <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
|
+
});
|
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