ru.coon 2.7.13 → 2.7.14
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,9 @@
|
|
|
1
|
+
# Version 2.7.14, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8e9321ed8ae4de458b50e7821b2ff5169eabb199)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'> BFL-3938: check plugin attribute is no=t empty and check row objects</span> ([94ce92], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/94ce92a1ee3d9a7313462b061a1b7ec8868c3275))
|
|
4
|
+
|
|
5
|
+
* update: CHANGELOG.md ([91bb31], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/91bb31ecc6eac439793205fd9b9d7f748483ff8d))
|
|
6
|
+
|
|
1
7
|
# Version 2.7.13, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c2a509ebbdf7d3ddd07faaf3a42f0ef759a31cc4)
|
|
2
8
|
* ## Fixes
|
|
3
9
|
* <span style='color:red'>fix report property editor</span> ([ba33a6], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ba33a6f5379601e92e243ee8f971fc5811ac648f))
|
package/package.json
CHANGED
|
@@ -216,12 +216,18 @@ Ext.define('Coon.report.plugin.grid.GridRowStylePlugin', {
|
|
|
216
216
|
applyStylesOnExpand(node) {
|
|
217
217
|
if (node.parentNode) {
|
|
218
218
|
if (node.parentNode.isRoot()) {
|
|
219
|
-
this.grid.getView().getRow(node)
|
|
219
|
+
const row = this.grid.getView().getRow(node);
|
|
220
|
+
if (row) {
|
|
221
|
+
row.setAttribute('style', `background-color: ${this.getRootColor()};`);
|
|
222
|
+
}
|
|
220
223
|
if (node.hasChildNodes()) {
|
|
221
224
|
node.childNodes.forEach((item) => {
|
|
222
225
|
if (item.get('leaf') === false && item.isExpanded()) {
|
|
223
226
|
this.getLastLevelElems(item).forEach((rec) => {
|
|
224
|
-
this.grid.getView().getRow(rec)
|
|
227
|
+
const row = this.grid.getView().getRow(rec);
|
|
228
|
+
if (row) {
|
|
229
|
+
row.setAttribute('style', `background-color: ${this.getLastExpandedColor()};`);
|
|
230
|
+
}
|
|
225
231
|
});
|
|
226
232
|
}
|
|
227
233
|
});
|
|
@@ -233,12 +239,18 @@ Ext.define('Coon.report.plugin.grid.GridRowStylePlugin', {
|
|
|
233
239
|
if (item.get('leaf') === false && item.isExpanded()) {
|
|
234
240
|
this.getLastLevelElems(item).forEach((rec) => {
|
|
235
241
|
hasLast = true;
|
|
236
|
-
this.grid.getView().getRow(rec)
|
|
242
|
+
const row = this.grid.getView().getRow(rec);
|
|
243
|
+
if (row) {
|
|
244
|
+
row.setAttribute('style', `background-color: ${this.getLastExpandedColor()};`);
|
|
245
|
+
}
|
|
237
246
|
});
|
|
238
247
|
}
|
|
239
248
|
});
|
|
240
249
|
if (!hasLast) {
|
|
241
|
-
this.grid.getView().getRow(node)
|
|
250
|
+
const row = this.grid.getView().getRow(node);
|
|
251
|
+
if (row) {
|
|
252
|
+
row.setAttribute('style', `background-color: ${this.getLastExpandedColor()};`);
|
|
253
|
+
}
|
|
242
254
|
}
|
|
243
255
|
}
|
|
244
256
|
}
|
|
@@ -270,7 +282,7 @@ Ext.define('Coon.report.plugin.grid.GridRowStylePlugin', {
|
|
|
270
282
|
}
|
|
271
283
|
grid.addCls('gridrowstyleplugin');
|
|
272
284
|
}
|
|
273
|
-
if (this.treeNodesColors !== false) {
|
|
285
|
+
if (this.treeNodesColors !== false && this.treeNodesColors !== '') {
|
|
274
286
|
const proto = Ext.ClassManager.classes[Ext.ClassManager.aliasToName['widget.'+grid.xtype]].prototype;
|
|
275
287
|
if (proto && proto.xtypesMap && proto.xtypesMap.treepanel === true) {
|
|
276
288
|
grid.on('itemexpand', this.applyStylesOnExpand, this);
|
package/src/version.js
CHANGED