ru.coon 2.8.27 → 2.8.28
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 +8 -0
- package/package.json +1 -1
- package/src/common/component/editor/creators/NoteEditorCreator.js +1 -1
- package/src/report/component/ReportPanel.js +1 -0
- package/src/report/plugin/configPanel/openCustomPanelButtonPlugin/OpenCustomPanelButtonPluginConfigPanel.js +59 -2
- package/src/report/plugin/configPanel/openCustomPanelButtonPlugin/OpenCustomPanelButtonPluginConfigPanel.scss +5 -0
- package/src/report/plugin/grid/OpenCustomPanelButtonPlugin.js +24 -0
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Version 2.8.28, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3764ad9be3fc8a838e83cdcde85e76a3a728b2e4)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: [OpenCustomPanelButtonPlugin]: Cell click support. Closes NEVA-675.</span> ([661205], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/661205a5438fc84a25db5ba475bf6ec365b784ed))
|
|
4
|
+
|
|
5
|
+
* update: CHANGELOG.md ([b56f2f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b56f2f6c8d073ce506f5182b7faebdda29d619b6))
|
|
6
|
+
|
|
1
7
|
# Version 2.8.27, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cfbabb26922efaef2416052c0006bf73f27ec6cb)
|
|
2
8
|
* ## Fixes
|
|
3
9
|
* <span style='color:red'>fix CopyRowsFromGrid by HT-10923</span> ([f8c95a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f8c95aa079cf48471c05d210a3909a20bd3e644c))
|
|
@@ -9,6 +15,7 @@
|
|
|
9
15
|
* <span style='color:green'>feat: add style check before addCellStyle</span> ([ff4abf], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ff4abf157a32ec98720caabafc2f65749b0c98bf))
|
|
10
16
|
|
|
11
17
|
* upd ([009237], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/009237a355c8aa9928fd919b90ff8e9f750db98e))
|
|
18
|
+
* HT-10804 Обновление тулбара после сортировки кнопок ([772002], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7720028a21f9bc1fa578eb1c94d16d8e68abbd65))
|
|
12
19
|
* relocate and rename method ([a2a61b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a2a61b2a6dcd4d4622becfc2f11602a97c9d49d8))
|
|
13
20
|
* update: CHANGELOG.md ([d4b2c7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d4b2c7e1effb2bd46eb587a3d5bf2d03cbc27053))
|
|
14
21
|
|
|
@@ -72,6 +79,7 @@
|
|
|
72
79
|
* ## Fixes
|
|
73
80
|
* <span style='color:red'>refactoring && fix in UiCustomPanelEditor</span> ([927a5e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/927a5e80e2382c44213541bf4770a7abc58c0cf3))
|
|
74
81
|
|
|
82
|
+
* HT-10298 fix: Увеличение размеров окна NoteEditorCreator ([75e111], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/75e1117d5a12f8fa12a5d0cdc8b4e16ac2e97886))
|
|
75
83
|
* HT-10117 fix: Перед генерацией хэша добавлена проверка на циклические ссылки ([2cd8d5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2cd8d5ca19750218d51ab7832b6711ddd3767724))
|
|
76
84
|
* remove getHtaEl from util.js ([1df6ae], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1df6ae10306dab7fb473681357650fc674c47a9a))
|
|
77
85
|
* update: CHANGELOG.md ([33ba01], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/33ba01a8d1d9b4a831a743d0b7c5767c7c46c434))
|
package/package.json
CHANGED
|
@@ -4,7 +4,8 @@ Ext.define('Coon.report.plugin.configPanel.OpenCustomPanelButtonPluginConfigPane
|
|
|
4
4
|
uses: [],
|
|
5
5
|
requires: [
|
|
6
6
|
'Coon.report.component.settings.common.ReportFormContextParametersGrid',
|
|
7
|
-
'Coon.report.component.settings.ReportPropertiesGrid'
|
|
7
|
+
'Coon.report.component.settings.ReportPropertiesGrid',
|
|
8
|
+
'Coon.report.store.RefStore'
|
|
8
9
|
],
|
|
9
10
|
alternateClassName: 'Sigma.common.grid.plugin.OpenCustomPanelButtonPluginConfigPanel',
|
|
10
11
|
|
|
@@ -53,7 +54,18 @@ Ext.define('Coon.report.plugin.configPanel.OpenCustomPanelButtonPluginConfigPane
|
|
|
53
54
|
this.createDependsOnGridParameter(),
|
|
54
55
|
this.isCreatedButtonHidden(),
|
|
55
56
|
this.createAddButtonPanel(),
|
|
56
|
-
|
|
57
|
+
{
|
|
58
|
+
xtype: 'fieldset',
|
|
59
|
+
items: [
|
|
60
|
+
Object.assign(this.createActOnDoubleClickCheckBox(), {
|
|
61
|
+
reference: 'actOnDoubleClick',
|
|
62
|
+
bind: {
|
|
63
|
+
disabled: '{actOnSingleClick.checked}',
|
|
64
|
+
},
|
|
65
|
+
}),
|
|
66
|
+
this.createActOnOnSingleClickControl()
|
|
67
|
+
],
|
|
68
|
+
},
|
|
57
69
|
this.createHotKeyPanel(),
|
|
58
70
|
this.createVisibilityKeyPanel(),
|
|
59
71
|
this.createNewObjectCreated(),
|
|
@@ -290,6 +302,14 @@ Ext.define('Coon.report.plugin.configPanel.OpenCustomPanelButtonPluginConfigPane
|
|
|
290
302
|
gridSourceMapping.updateParametersList(context.parameters);
|
|
291
303
|
gridSourceMapping.updateTypeEditor(context.additionalContext);
|
|
292
304
|
}
|
|
305
|
+
this.reportFieldsCombo.getStore().loadData(
|
|
306
|
+
context.fields.map(
|
|
307
|
+
({viewComboDescription: description, reportFieldCd: value}) => ({
|
|
308
|
+
value,
|
|
309
|
+
description,
|
|
310
|
+
})
|
|
311
|
+
)
|
|
312
|
+
);
|
|
293
313
|
},
|
|
294
314
|
|
|
295
315
|
doInit: function(config) {
|
|
@@ -474,4 +494,41 @@ Ext.define('Coon.report.plugin.configPanel.OpenCustomPanelButtonPluginConfigPane
|
|
|
474
494
|
],
|
|
475
495
|
};
|
|
476
496
|
},
|
|
497
|
+
|
|
498
|
+
createActOnOnSingleClickControl() {
|
|
499
|
+
this.reportFieldsCombo = Ext.create({
|
|
500
|
+
xtype: 'BaseComboBox',
|
|
501
|
+
loadOnRender: false,
|
|
502
|
+
displayField: 'description',
|
|
503
|
+
valueField: 'value',
|
|
504
|
+
store: Ext.create('Coon.report.store.RefStore'),
|
|
505
|
+
fieldLabel: 'Поле',
|
|
506
|
+
name: 'singleClickDataIndex',
|
|
507
|
+
bind: {
|
|
508
|
+
disabled: '{!actOnSingleClick.checked}',
|
|
509
|
+
},
|
|
510
|
+
flex: 1,
|
|
511
|
+
});
|
|
512
|
+
return {
|
|
513
|
+
xtype: 'fieldcontainer',
|
|
514
|
+
layout: {
|
|
515
|
+
type: 'vbox',
|
|
516
|
+
align: 'stretch',
|
|
517
|
+
},
|
|
518
|
+
items: [
|
|
519
|
+
{
|
|
520
|
+
xtype: 'checkbox',
|
|
521
|
+
boxLabel: 'Активировать по одиночному клику на поле',
|
|
522
|
+
boxLabelAlign: 'after',
|
|
523
|
+
reference: 'actOnSingleClick',
|
|
524
|
+
name: 'actOnSingleClick',
|
|
525
|
+
bind: {
|
|
526
|
+
disabled: '{actOnDoubleClick.checked}',
|
|
527
|
+
},
|
|
528
|
+
flex: 1,
|
|
529
|
+
},
|
|
530
|
+
this.reportFieldsCombo
|
|
531
|
+
],
|
|
532
|
+
};
|
|
533
|
+
},
|
|
477
534
|
});
|
|
@@ -50,6 +50,8 @@ Ext.define('Coon.report.plugin.grid.OpenCustomPanelButtonPlugin', {
|
|
|
50
50
|
handleNewObjectEvent: false,
|
|
51
51
|
newObjectChangeButtonPlugin: undefined,
|
|
52
52
|
autoSize: false,
|
|
53
|
+
singleClickDataIndex: undefined,
|
|
54
|
+
actOnSingleClick: false,
|
|
53
55
|
},
|
|
54
56
|
|
|
55
57
|
handler: function() {
|
|
@@ -430,4 +432,26 @@ Ext.define('Coon.report.plugin.grid.OpenCustomPanelButtonPlugin', {
|
|
|
430
432
|
deferred: deferred,
|
|
431
433
|
};
|
|
432
434
|
},
|
|
435
|
+
|
|
436
|
+
customInit() {
|
|
437
|
+
this.callParent(arguments);
|
|
438
|
+
if (this.singleClickDataIndex && this.actOnSingleClick) {
|
|
439
|
+
this.component.on('cellclick', this.cellClickHandler, this);
|
|
440
|
+
const column = this.component.columns.find(({dataIndex}) => dataIndex === this.singleClickDataIndex);
|
|
441
|
+
column.tdCls = 'OCPBP-clickable-cell';
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
cellClickHandler: function(table, td, cellIndex) {
|
|
447
|
+
const clickedDataIndex = this.component.getColumnManager().getColumns()[cellIndex]['dataIndex'];
|
|
448
|
+
if (this.singleClickDataIndex && this.singleClickDataIndex !== clickedDataIndex) {
|
|
449
|
+
return true;
|
|
450
|
+
}
|
|
451
|
+
if (!this.computeState().disabled) {
|
|
452
|
+
this.handler.apply(this, arguments);
|
|
453
|
+
return false;
|
|
454
|
+
}
|
|
455
|
+
return true;
|
|
456
|
+
},
|
|
433
457
|
});
|
package/src/version.js
CHANGED