ru.coon 2.5.45 → 2.5.46
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/SystemProperties.js +1 -1
- package/src/nav/editor/menu/NavMenuTreeController.js +1 -1
- package/src/report/component/settings/ReportCustomPluginPropertiesGrid.js +2 -1
- package/src/report/component/settings/history/ReportFormHistoryPanelController.js +5 -5
- package/src/report/component/settings/plugin/ReportFormPluginGridController.js +1 -1
- package/src/research/command/GetCoonChartStructure.js +1 -1
- package/src/research/command/GetReportStructure.js +1 -1
- package/src/research/command/GetUiStructure.js +1 -1
- package/src/research/command/GetWidgetPanelStructure.js +1 -1
- package/src/uielement/component/settings/version/UiCPVersionPanelController.js +5 -5
- package/src/util.js +21 -4
- package/src/version.js +1 -1
- package/src/report/plugin/grid/ExportReportDataToFilePlugin.md +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# Version 2.5.46, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a60918e34030d42d694153e8a86fa2c13c97e3a0)
|
|
2
|
+
* Update src/util.js ([da9c30], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/da9c307688b60cfa198137929578f257e3d0645f))
|
|
3
|
+
* HT-7570 Падает SelectionModelFeature ([df48e2], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/df48e24511eec0e5572d30984fbf6d24ec2e09cd))
|
|
4
|
+
* HT-7570 Падает SelectionModelFeature ([09366e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/09366ee08c7700ba03ea46ebb5bc9461963ea9d3))
|
|
5
|
+
* execute commands by alias ([8bbb51], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8bbb5103462c18d7e82050feaaa119188a96f5a9))
|
|
6
|
+
* Update src/util.js ([d8230b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d8230b854d313a82eab2243bb264da9b239ebd6b))
|
|
7
|
+
* update: CHANGELOG.md ([0ba408], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0ba4083336d6e3a3ea078bb20c8bf40e8c19c9c7))
|
|
8
|
+
|
|
1
9
|
# Version 2.5.45, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f1e28ba95e77bbe4be40d19ea9fde58a74fbb645)
|
|
2
10
|
* ## Fixes
|
|
3
11
|
* <span style='color:red'> hot-fix: move EditorJs to coon from project</span> ([12daf8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/12daf8abb9dbaf48910870616b0e6d52f3b2bbfd))
|
package/package.json
CHANGED
package/src/SystemProperties.js
CHANGED
|
@@ -140,7 +140,7 @@ Ext.define('Coon.SystemProperties', {
|
|
|
140
140
|
return Promise.resolve(valuesMap.get(prop));
|
|
141
141
|
} else {
|
|
142
142
|
return Coon.util.promisifyCmd(
|
|
143
|
-
'
|
|
143
|
+
'command.GetPropertyFromConfigurationCommand',
|
|
144
144
|
prop
|
|
145
145
|
)
|
|
146
146
|
.then((data) => {
|
|
@@ -88,7 +88,7 @@ Ext.define('Coon.nav.editor.menu.NavMenuTreeController', {
|
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
loadMenuData: function(record) {
|
|
91
|
-
Coon.util.promisifyCmd('
|
|
91
|
+
Coon.util.promisifyCmd('command.GetDynamicReportDataCommand', 'MENU_ENTRY_LIST')
|
|
92
92
|
.then((data) => {
|
|
93
93
|
if (Ext.isArray(data.list)) {
|
|
94
94
|
const groupWorkspace = this.getGroupMenuByWorkspaceCd(data.list);
|
|
@@ -25,7 +25,8 @@ Ext.define('Coon.report.component.settings.ReportCustomPluginPropertiesGrid', {
|
|
|
25
25
|
if (config.isDeleted || !config.xtype) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const alias = (config.type === 'GRID_FEATURE' ? 'feature.' : 'plugin.') + config.xtype;
|
|
29
|
+
const plugin = Ext.createByAlias(alias, config.jsonProperties);
|
|
29
30
|
if (!plugin) {
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
@@ -33,7 +33,7 @@ Ext.define('Coon.report.component.settings.history.ReportFormHistoryPanelControl
|
|
|
33
33
|
if (id) {
|
|
34
34
|
grid.mask();
|
|
35
35
|
Coon.util.promisifyCmd(
|
|
36
|
-
'
|
|
36
|
+
'command.GetReportVersionListCommand',
|
|
37
37
|
id)
|
|
38
38
|
.then((rows) => {
|
|
39
39
|
grid.unmask();
|
|
@@ -60,7 +60,7 @@ Ext.define('Coon.report.component.settings.history.ReportFormHistoryPanelControl
|
|
|
60
60
|
const mainInfoSqlPanel = this.lookupReference('mainInfoSqlPanel');
|
|
61
61
|
ct.mask();
|
|
62
62
|
Coon.util.promisifyCmd(
|
|
63
|
-
'
|
|
63
|
+
'command.GetReportRevisionCommand',
|
|
64
64
|
record.get('reportId'),
|
|
65
65
|
record.get('revisionId')
|
|
66
66
|
)
|
|
@@ -192,12 +192,12 @@ Ext.define('Coon.report.component.settings.history.ReportFormHistoryPanelControl
|
|
|
192
192
|
if (this.getViewModel().get('selectionCount') == 2) {
|
|
193
193
|
promises = [
|
|
194
194
|
Coon.util.promisifyCmd(
|
|
195
|
-
'
|
|
195
|
+
'command.GetReportRevisionCommand',
|
|
196
196
|
selection[0].get('reportId'),
|
|
197
197
|
selection[0].get('revisionId')
|
|
198
198
|
),
|
|
199
199
|
Coon.util.promisifyCmd(
|
|
200
|
-
'
|
|
200
|
+
'command.GetReportRevisionCommand',
|
|
201
201
|
selection[1].get('reportId'),
|
|
202
202
|
selection[1].get('revisionId')
|
|
203
203
|
)
|
|
@@ -211,7 +211,7 @@ Ext.define('Coon.report.component.settings.history.ReportFormHistoryPanelControl
|
|
|
211
211
|
const mainData = this.getViewModel().get('report');
|
|
212
212
|
promises = [
|
|
213
213
|
Coon.util.promisifyCmd(
|
|
214
|
-
'
|
|
214
|
+
'command.GetReportRevisionCommand',
|
|
215
215
|
selection[0].get('reportId'),
|
|
216
216
|
selection[0].get('revisionId')
|
|
217
217
|
)
|
|
@@ -25,7 +25,7 @@ Ext.define('Coon.report.component.settings.plugin.ReportFormPluginGridController
|
|
|
25
25
|
|
|
26
26
|
addHandler: function(xtype) {
|
|
27
27
|
const defaultUiElementCd = `${xtype}_DEFAULTS`;
|
|
28
|
-
Coon.util.promisifyCmd('
|
|
28
|
+
Coon.util.promisifyCmd('command.GetUIElementCommand', defaultUiElementCd)
|
|
29
29
|
.then(function(data) {
|
|
30
30
|
this.addNewPlugin(xtype, Ext.decode(data.propertyData, true), defaultUiElementCd);
|
|
31
31
|
}.bind(this))
|
|
@@ -54,7 +54,7 @@ Ext.define('Coon.research.command.GetCoonChartStructure', {
|
|
|
54
54
|
|
|
55
55
|
async get(uiElementCd) {
|
|
56
56
|
try {
|
|
57
|
-
const ui = await Coon.util.promisifyCmd('
|
|
57
|
+
const ui = await Coon.util.promisifyCmd('command.GetUIElementCommand', uiElementCd);
|
|
58
58
|
return this.decode(ui);
|
|
59
59
|
} catch (ex) {
|
|
60
60
|
Coon.log.error('[ERROR], GetCoonChartStructure: ', ex);
|
|
@@ -144,7 +144,7 @@ Ext.define('Coon.research.command.GetReportStructure', {
|
|
|
144
144
|
|
|
145
145
|
async get(reportId) {
|
|
146
146
|
try {
|
|
147
|
-
const cfg = await Coon.util.promisifyCmd('
|
|
147
|
+
const cfg = await Coon.util.promisifyCmd('command.LoadDynamicReportCommand', reportId, true);
|
|
148
148
|
return this.decode(cfg);
|
|
149
149
|
} catch (ex) {
|
|
150
150
|
Coon.log.error('[ERROR], GetReportStructure: ', ex);
|
|
@@ -114,7 +114,7 @@ Ext.define('Coon.research.command.GetUIStructure', {
|
|
|
114
114
|
|
|
115
115
|
async get(uiElementCd, nullable) {
|
|
116
116
|
try {
|
|
117
|
-
const ui = await Coon.util.promisifyCmd('
|
|
117
|
+
const ui = await Coon.util.promisifyCmd('command.GetUIElementCommand', uiElementCd, nullable);
|
|
118
118
|
return this.decode(ui);
|
|
119
119
|
} catch (ex) {
|
|
120
120
|
Coon.log.error('[ERROR], GetUIStructure: ', ex);
|
|
@@ -66,7 +66,7 @@ Ext.define('Coon.research.command.GetWidgetPanelStructure', {
|
|
|
66
66
|
|
|
67
67
|
async get(uiElementCd) {
|
|
68
68
|
try {
|
|
69
|
-
const ui = await Coon.util.promisifyCmd('
|
|
69
|
+
const ui = await Coon.util.promisifyCmd('command.GetUIElementCommand', uiElementCd);
|
|
70
70
|
return this.decode(ui);
|
|
71
71
|
} catch (ex) {
|
|
72
72
|
Coon.log.error('[ERROR], GetWidgetPanelStructure: ', ex);
|
|
@@ -28,7 +28,7 @@ Ext.define('Coon.uielement.component.settings.version.UiCPVersionPanelController
|
|
|
28
28
|
if (id) {
|
|
29
29
|
grid.mask();
|
|
30
30
|
Coon.util.promisifyCmd(
|
|
31
|
-
'
|
|
31
|
+
'command.GetUIElementVersionListCommand',
|
|
32
32
|
id)
|
|
33
33
|
.then((rows) => {
|
|
34
34
|
grid.unmask();
|
|
@@ -53,7 +53,7 @@ Ext.define('Coon.uielement.component.settings.version.UiCPVersionPanelController
|
|
|
53
53
|
const viewer = ct.down('UiAceEditor');
|
|
54
54
|
ct.mask();
|
|
55
55
|
Coon.util.promisifyCmd(
|
|
56
|
-
'
|
|
56
|
+
'command.GetUIElementRevisionCommand',
|
|
57
57
|
record.get('uiElementId'),
|
|
58
58
|
record.get('revisionId')
|
|
59
59
|
)
|
|
@@ -179,12 +179,12 @@ Ext.define('Coon.uielement.component.settings.version.UiCPVersionPanelController
|
|
|
179
179
|
if (this.getViewModel().get('selectionCount') == 2) {
|
|
180
180
|
promises = [
|
|
181
181
|
Coon.util.promisifyCmd(
|
|
182
|
-
'
|
|
182
|
+
'command.GetUIElementRevisionCommand',
|
|
183
183
|
selection[0].get('uiElementId'),
|
|
184
184
|
selection[0].get('revisionId')
|
|
185
185
|
),
|
|
186
186
|
Coon.util.promisifyCmd(
|
|
187
|
-
'
|
|
187
|
+
'command.GetUIElementRevisionCommand',
|
|
188
188
|
selection[1].get('uiElementId'),
|
|
189
189
|
selection[1].get('revisionId')
|
|
190
190
|
)
|
|
@@ -201,7 +201,7 @@ Ext.define('Coon.uielement.component.settings.version.UiCPVersionPanelController
|
|
|
201
201
|
const UiCustomPanelEditor = this.getView().up('UiCustomPanelEditor');
|
|
202
202
|
UiCustomPanelEditor.getController().beatify();
|
|
203
203
|
Coon.util.promisifyCmd(
|
|
204
|
-
'
|
|
204
|
+
'command.GetUIElementRevisionCommand',
|
|
205
205
|
selection[0].get('uiElementId'),
|
|
206
206
|
selection[0].get('revisionId')
|
|
207
207
|
).then((versionData) => {
|
package/src/util.js
CHANGED
|
@@ -19,7 +19,14 @@ Ext.define('Coon.util', {
|
|
|
19
19
|
},
|
|
20
20
|
|
|
21
21
|
isCommandAlias(cmd) {
|
|
22
|
-
return typeof cmd === 'string' && typeof Ext.ClassManager.getByAlias(cmd) === 'function';
|
|
22
|
+
return typeof cmd === 'string' && cmd.startsWith('command.') && typeof Ext.ClassManager.getByAlias(cmd) === 'function';
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
isCommandClass(cmd) {
|
|
26
|
+
return typeof cmd === 'string' &&
|
|
27
|
+
Ext.ClassManager.classes[cmd] &&
|
|
28
|
+
Ext.ClassManager.classes[cmd].prototype &&
|
|
29
|
+
Ext.ClassManager.classes[cmd].prototype.isCommand;
|
|
23
30
|
},
|
|
24
31
|
|
|
25
32
|
promisifyCmd(cls, ...args) {
|
|
@@ -28,11 +35,21 @@ Ext.define('Coon.util', {
|
|
|
28
35
|
alias = cls.command;
|
|
29
36
|
cls.getParamsFromObject = true;
|
|
30
37
|
}
|
|
38
|
+
|
|
31
39
|
let command;
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
if (this.isCommand(alias)) {
|
|
41
|
+
command = alias;
|
|
42
|
+
} else {
|
|
43
|
+
if (!Coon.util.isCommandAlias(alias)) {
|
|
44
|
+
if (!this.isCommandClass(alias)) {
|
|
45
|
+
throw new Error(alias + ' is not a command class!');
|
|
46
|
+
}
|
|
47
|
+
Coon.log.debug(alias, 'is not a command alias');
|
|
48
|
+
}
|
|
49
|
+
command = Ext.create(alias, {processError: true});
|
|
50
|
+
}
|
|
34
51
|
if (!command) {
|
|
35
|
-
throw new Error('promisifyCmd command
|
|
52
|
+
throw new Error('promisifyCmd command is invalid!');
|
|
36
53
|
}
|
|
37
54
|
return new Promise((resolve, reject) => {
|
|
38
55
|
if (cls.getParamsFromObject) {
|
package/src/version.js
CHANGED