ru.coon 2.7.3 → 2.7.5
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 +39 -0
- package/package.json +1 -1
- package/src/app/Readme.md +0 -0
- package/src/app/Router.js +44 -0
- package/src/app/component/CenterView.js +65 -0
- package/src/app/component/CenterViewController.js +152 -0
- package/src/app/viewPort/Main.js +76 -0
- package/src/app/viewPort/Main.scss +133 -0
- package/src/common/component/ChooseColorField.js +142 -0
- package/src/common/component/ColorPalette.js +151 -0
- package/src/common/component/ColorPalette.scss +102 -0
- package/src/common/component/ColorPaletteController.js +189 -0
- package/src/common/field/withDefault.js +3 -2
- package/src/nav/AppNavigationMenu.js +35 -44
- package/src/nav/AppNavigationMenuController.js +110 -56
- package/src/nav/AppNavigationToggleButton.js +9 -0
- package/src/nav/AppNavigationToggleButton.scss +6 -0
- package/src/nav/MenuEntity.js +35 -0
- package/src/nav/editor/menu/NavMenuTreeController.js +1 -0
- package/src/nav/editor/menu/form/NavMenuFormViewController.js +1 -0
- package/src/report/plugin/configPanel/GridEditorPluginConfig.js +3 -1
- package/src/report/plugin/configPanel/GridRowStylePluginConfig.js +130 -94
- package/src/report/plugin/configPanel/GridRowStylePluginConfigPropertyGrid.js +10 -15
- package/src/report/plugin/grid/GridEditorsPlugin.js +27 -21
- package/src/report/plugin/grid/GridRowStylePlugin.js +90 -0
- package/src/uielement/component/MenuItemList.js +35 -6
- package/src/uielement/component/formchips/Chip.js +2 -2
- package/src/uielement/component/formchips/FilterConditionToolbar.js +2 -1
- package/src/uielement/component/formchips/FilterConditionToolbarController.js +37 -60
- package/src/uielement/plugin/configPanel/executeCommand/ExecuteCommandPluginConfigPanelFormEditor.js +14 -11
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# Version 2.7.5, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/98f5d7b3391db7e90e8818d6071c674b71cb6afd)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: TR-67883: reload main navigation on change menu structure</span> ([a6a849], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a6a849e812bc3988abadc526aa4829830eb89ed2))
|
|
4
|
+
|
|
5
|
+
* HT-7448 fix: Исправление проверки валидности параметров команды ([99c08a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/99c08a16a68766ece123b717ef48400b14f51d54))
|
|
6
|
+
* update: CHANGELOG.md ([90c0e8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/90c0e823dcf1d3687c38ada3d6711a84fa15e083))
|
|
7
|
+
|
|
8
|
+
# Version 2.7.4, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7becde7cc7cfb8254525c8beca11cbd4604b8181)
|
|
9
|
+
* ## Features
|
|
10
|
+
* <span style='color:green'>feat: HT-7823: refactor</span> ([07e9f0], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/07e9f00376ea39fe7888e7d264d291222667ce0f))
|
|
11
|
+
* <span style='color:green'>feat: HT-7823: change line colors</span> ([f70a74], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f70a748a7f77cc984eae2e762e86e291a0b25230))
|
|
12
|
+
* <span style='color:green'>feat: HT-7823: remove gradient check</span> ([76e538], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/76e5389eb644d45df7deabffeb24de1767d67c7b))
|
|
13
|
+
* <span style='color:green'>feat: HT-7823: lighting tree grid items</span> ([a56e4d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a56e4dcab0b10494721d809c2fb4d2f10ce5d257))
|
|
14
|
+
|
|
15
|
+
* HT-7850 fix: Исправление поведения чипа в FilterConditionToolbar при изменениях значения поля панели фильтрации. ([3fbf41], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3fbf417948d24be8a576739e0e41fe170221788e))
|
|
16
|
+
* ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update src/report/plugin/grid/GridEditorsPlugin.jsa0bc93ea280291eae1d401ceeb056bb250f5ed09))
|
|
17
|
+
* update: CHANGELOG.md ([78c174], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/78c1741b921889b7c20f96a342aa91a262a21fc5))
|
|
18
|
+
|
|
1
19
|
# Version 2.7.3, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e9a311b868bd00ad5e46a868e7f0b829122ffa06)
|
|
2
20
|
* refactoring ([1385c2], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1385c2bf065c0e57f6d8484cf360a1201cdbb656))
|
|
3
21
|
* update: CHANGELOG.md ([10bd16], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/10bd16df0b8d6d43c2a41f2651b8610c35dcd899))
|
|
@@ -5,6 +23,7 @@
|
|
|
5
23
|
# Version 2.7.2, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3b94df2c23f76552c5c626a4bfda4a317e33abff)
|
|
6
24
|
* ## Features
|
|
7
25
|
* <span style='color:green'>feat: HT-8199: trim string values in request</span> ([cfc709], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cfc709daacaad1522f4dff858e04966a758bcb6a))
|
|
26
|
+
* <span style='color:green'>feat: HT-7823: create color choose component (Palettes)</span> ([157c14], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/157c14384904b60004a34ce67ce70a6923216799))
|
|
8
27
|
|
|
9
28
|
* ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update src/common/component/editor/CharacteristicLoaderPlugin.js929fc3b32d028554706e1d64c6ca40fedc615f39))
|
|
10
29
|
* update: CHANGELOG.md ([44e78b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/44e78b830a9a374db90e2fc1554188c9154ce462))
|
|
@@ -18,8 +37,12 @@
|
|
|
18
37
|
|
|
19
38
|
# Version 2.7.0, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c03c093df3594cbec9b0b6a2e3e4ca8d24b07e76)
|
|
20
39
|
* ## Features
|
|
40
|
+
* <span style='color:green'>feat: HT-7823: create color choose component (Palettes)</span> ([5d31ff], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5d31ffbbe224fa48f9631adc23b109cf5d25236f))
|
|
21
41
|
* <span style='color:green'>feat: HT-7850 Включение FilterConditionToolbar в ReportPanel</span> ([02015f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/02015fd6518dec2fbbf4a16e8e29ff958fe4f1b3))
|
|
22
42
|
|
|
43
|
+
* ## Fixes
|
|
44
|
+
* <span style='color:red'> HT-7281 GridEditorsPlugin combo editor</span> ([8b140d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8b140d19abc9e5dd3816ce4cb00e0ec8ee1cbc03))
|
|
45
|
+
|
|
23
46
|
* refactoring ([1c317f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1c317fadf1591a82907cdff905e69d4978dae061))
|
|
24
47
|
* upd ([e79155], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e791556cf00505255593cd1bf6ad022d75c19d79))
|
|
25
48
|
* HT-7444 Исправление ([043abe], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/043abea7c90d62b17a3c4819845a1e20dda36790))
|
|
@@ -83,17 +106,30 @@
|
|
|
83
106
|
* update: CHANGELOG.md ([4e316a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4e316ac4c2c96cb4de23ff0dfb73ff4db75ea4ec))
|
|
84
107
|
|
|
85
108
|
# Version 2.6.17, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a85820f03c44ab7b35ae02ae88209c435f264807)
|
|
109
|
+
* ## Features
|
|
110
|
+
* <span style='color:green'>feat: TR-67883: move main view in ru.coon</span> ([174f7f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/174f7fa553ce35d1dfbc3f64603ffb1cc3ca50b0))
|
|
111
|
+
|
|
86
112
|
* ## Fixes
|
|
87
113
|
* <span style='color:red'> PrintPdfPlugin.handler call parseProperty on 'string'</span> ([8dec18], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8dec18c777cd4e6f3daf9fb1540726e613639220))
|
|
88
114
|
|
|
115
|
+
* Merge remote-tracking branch 'origin/SUE-TR-67883' into SUE-TR-67883 ([99daa5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/99daa5bd732a99ecc56761a010045548d609c217))
|
|
116
|
+
* Merge remote-tracking branch 'origin/SUE-TR-67883' into SUE-TR-67883 ([186915], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1869158fbf8745c5659f595e0eed0899f62f0fe2))
|
|
117
|
+
* Merge remote-tracking branch 'origin/SUE-TR-67883' into SUE-TR-67883 ([e4938b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e4938b6d9c3c90a67f2172f1f0c02b8bd6650959))
|
|
89
118
|
* HT-7444: editing contextMenu display and cell data-qtip visibility ([9590ed], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9590edbc2eb57d22e4de581b1fe6b8f5c82617e7))
|
|
90
119
|
* update: CHANGELOG.md ([e7aec8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e7aec82f66947539e462f813c3d8249a6f071b6f))
|
|
91
120
|
|
|
92
121
|
# Version 2.6.16, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0fda3b6a033bacf1d07829445c44a4fab42b440d)
|
|
122
|
+
* ## Features
|
|
123
|
+
* <span style='color:green'>feat: SUE-TR-67883: move main view to ru.coon</span> ([64ac15], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/64ac1596034a1f8ae408d69aad695f2a8c9c8f8d))
|
|
124
|
+
* <span style='color:green'>feat: TR-67883: move main view in ru.coon</span> ([5259d4], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5259d4161eabe864a73a055b0d1396d60c2a7912))
|
|
125
|
+
* <span style='color:green'>feat: TR-67883: move main view in ru.coon</span> ([c5eb55], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c5eb551a8198e629d2863aad1a397558ab978e39))
|
|
126
|
+
|
|
93
127
|
* ## Fixes
|
|
94
128
|
* <span style='color:red'>fix SummaryPluginConfigPanelSummaryGrid, BFL-11632</span> ([c3c46a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c3c46a8581698ea75ccebe42105d0b36e59b3f25))
|
|
129
|
+
* <span style='color:red'>fix AppNavigationMenu</span> ([b56e90], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b56e90f543f264d21c83b82f6fcf0eed15bf438b))
|
|
95
130
|
* <span style='color:red'>HT-7444 fix rename context menu items</span> ([07fd4d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/07fd4d89f598b5d54807d280c82133ca6cd98a5a))
|
|
96
131
|
|
|
132
|
+
* Merge remote-tracking branch 'origin/SUE-TR-67883' into SUE-TR-67883 ([de8166], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/de8166e822a62b9cb6c9261720536171692805a2))
|
|
97
133
|
* update: CHANGELOG.md ([5f6155], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5f615546aaa0efa9b209cb9705cab4af5a958f05))
|
|
98
134
|
|
|
99
135
|
# Version 2.6.15, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9ad5ed1315f5d90adfe7569f83a8f354025f96dd)
|
|
@@ -114,6 +150,9 @@
|
|
|
114
150
|
* update: CHANGELOG.md ([122574], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/12257435ce3081dc5641232b789cfa8b2b188e82))
|
|
115
151
|
|
|
116
152
|
# Version 2.6.13, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b546bb7b481a9dbc4b408c99b9ce158b676a15fa)
|
|
153
|
+
* ## Features
|
|
154
|
+
* <span style='color:green'>feat: SUE-TR-67883: move main view to ru.coon</span> ([f7f75e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f7f75e64d2c531050514a323753e80285ed207b8))
|
|
155
|
+
|
|
117
156
|
* ## Fixes
|
|
118
157
|
* <span style='color:red'> BFL-11558 ExportReportDataToFilePlugin date format</span> ([109998], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/109998bd10e4fd67d98b88784c008f56c5e965c8))
|
|
119
158
|
|
package/package.json
CHANGED
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Ext.define('Coon.app.Router', {
|
|
2
|
+
mixins: ['Ext.route.Mixin'],
|
|
3
|
+
routes: {
|
|
4
|
+
':{type}/:{id}': {
|
|
5
|
+
action: 'onRouteEnter',
|
|
6
|
+
},
|
|
7
|
+
':{id}': {
|
|
8
|
+
action: 'onRouteEnter',
|
|
9
|
+
},
|
|
10
|
+
':{type}/:{id}/:{params...}': {
|
|
11
|
+
action: 'onRouteEnter',
|
|
12
|
+
types: {
|
|
13
|
+
'...': {
|
|
14
|
+
re: '(.+)?',
|
|
15
|
+
split: '/',
|
|
16
|
+
parse: (value) => value,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
onClassMixedIn() {
|
|
22
|
+
this.prototype.setRoutes(this.prototype.config.routes);
|
|
23
|
+
},
|
|
24
|
+
onRouteEnter(route) {
|
|
25
|
+
const app = Ext.getApplication();
|
|
26
|
+
if (!app.initialRoute) {
|
|
27
|
+
app.initialRoute = route;
|
|
28
|
+
}
|
|
29
|
+
Coon.nav.MenuEntity.isValid(route.id).then(async (valid) => {
|
|
30
|
+
if (valid === true) {
|
|
31
|
+
Ext.fireEvent('route:change', route);
|
|
32
|
+
} else {
|
|
33
|
+
Ext.fireEvent('route:unmatched', route);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
getRouterView() {
|
|
38
|
+
return Ext.ComponentQuery.query('centerview').shift();
|
|
39
|
+
},
|
|
40
|
+
getActiveComponent() {
|
|
41
|
+
const routerView = this.getRouterView();
|
|
42
|
+
return routerView && routerView.getLayout().getActiveItem();
|
|
43
|
+
},
|
|
44
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Ext.define('Coon.app.component.CenterView', {
|
|
2
|
+
extend: 'Ext.container.Container',
|
|
3
|
+
xtype: 'centerview',
|
|
4
|
+
requires: ['Coon.util'],
|
|
5
|
+
controller: 'CenterViewController',
|
|
6
|
+
layout: 'card',
|
|
7
|
+
viewModel: true,
|
|
8
|
+
defaultComponentType: 'panel',
|
|
9
|
+
style: {
|
|
10
|
+
backgroundColor: 'white',
|
|
11
|
+
},
|
|
12
|
+
constructor() {
|
|
13
|
+
this.callParent(arguments);
|
|
14
|
+
this.app = Ext.getApplication();
|
|
15
|
+
Ext.on('route:change', this.display.bind(this));
|
|
16
|
+
},
|
|
17
|
+
onRender() {
|
|
18
|
+
this.callParent(arguments);
|
|
19
|
+
const {initialRoute} = Ext.getApplication();
|
|
20
|
+
if (initialRoute) {
|
|
21
|
+
this.display(initialRoute);
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
findComponent(config) {
|
|
25
|
+
return (
|
|
26
|
+
this.items &&
|
|
27
|
+
this.items.findBy((item) =>
|
|
28
|
+
Coon.util.objectsIsEqual(item.initialConfig, config)
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
},
|
|
32
|
+
resolveComponentType(token) {
|
|
33
|
+
let type;
|
|
34
|
+
switch (String(token).toUpperCase()) {
|
|
35
|
+
case 'R':
|
|
36
|
+
type = 'report';
|
|
37
|
+
break;
|
|
38
|
+
case 'P':
|
|
39
|
+
type = 'panel';
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
return type || token;
|
|
43
|
+
},
|
|
44
|
+
display(cmp) {
|
|
45
|
+
if (!cmp.id) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
Coon.nav.MenuEntity.isValid(cmp.id).then(async (valid) => {
|
|
49
|
+
if (valid === true) {
|
|
50
|
+
const type = this.resolveComponentType(cmp.type) || this.defaultComponentType;
|
|
51
|
+
const config = await this.getController().create(cmp.id, type, cmp.params);
|
|
52
|
+
if (config) {
|
|
53
|
+
Ext.fireEvent('nav:hide', !!config._preferFullScreen);
|
|
54
|
+
const cmp = this.findComponent(config);
|
|
55
|
+
const active = this.setActiveItem(
|
|
56
|
+
cmp && !cmp.destroyed ? cmp : Ext.create(config)
|
|
57
|
+
);
|
|
58
|
+
active && active.fireEvent('router:activate', active);
|
|
59
|
+
} else {
|
|
60
|
+
Ext.fireEvent('route:unmatched');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
});
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
Ext.define('Coon.app.component.CenterViewController', {
|
|
2
|
+
extend: 'Ext.app.ViewController',
|
|
3
|
+
alias: 'controller.CenterViewController',
|
|
4
|
+
requires: ['Coon.util', 'Coon.Function'],
|
|
5
|
+
cache: new Map(),
|
|
6
|
+
privates: {
|
|
7
|
+
paramsToObject(params) {
|
|
8
|
+
const entries = [];
|
|
9
|
+
if (Array.isArray(params) && params.length > 1) {
|
|
10
|
+
for (let i = 0; i < Math.floor(params.length / 2); i++) {
|
|
11
|
+
entries.push([params[i * 2], params[i * 2 + 1]]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return entries.length ? Object.fromEntries(entries) : null;
|
|
15
|
+
},
|
|
16
|
+
triggerPlugin(pluginId, target) {
|
|
17
|
+
if (target && Array.isArray(target.plugins)) {
|
|
18
|
+
const triggerPlugin = target.plugins.find((p) => p.pluginId === pluginId);
|
|
19
|
+
if (triggerPlugin && typeof triggerPlugin.handler === 'function') {
|
|
20
|
+
triggerPlugin.handler.call(triggerPlugin);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
onActivateComponent(params, cmp) {
|
|
25
|
+
if (cmp.xtype === 'ReportPanel') {
|
|
26
|
+
if (params) {
|
|
27
|
+
cmp.updateFilterDefaults(params);
|
|
28
|
+
if (params.plugin) {
|
|
29
|
+
if (!cmp.grid) {
|
|
30
|
+
cmp.on('gridReady', (reportPanel) => {
|
|
31
|
+
this.triggerPlugin(params.plugin, reportPanel.grid);
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
this.triggerPlugin(params.plugin, cmp.grid);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
onRenderEditor(editor, id) {
|
|
41
|
+
const c = editor.getController();
|
|
42
|
+
typeof c.doInit === 'function' && c.doInit.call(c, id);
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
async create(id, type = 'panel', params = [], useCache = true) {
|
|
46
|
+
const cacheKey = useCache && JSON.stringify({id, type, params});
|
|
47
|
+
let config;
|
|
48
|
+
if (!id) {
|
|
49
|
+
return config;
|
|
50
|
+
}
|
|
51
|
+
if (cacheKey) {
|
|
52
|
+
const cached = this.cache.get(cacheKey);
|
|
53
|
+
if (cached) {
|
|
54
|
+
return cached;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const paramsObject = this.paramsToObject(params);
|
|
59
|
+
const filterDefaults =
|
|
60
|
+
(paramsObject && Object.assign(paramsObject, {doFilter: true})) || {};
|
|
61
|
+
switch (String(type).toUpperCase()) {
|
|
62
|
+
case 'REPORT':
|
|
63
|
+
config = {
|
|
64
|
+
xtype: 'ReportPanel',
|
|
65
|
+
reportID: id,
|
|
66
|
+
filterDefaults,
|
|
67
|
+
listeners: {
|
|
68
|
+
'router:activate': this.onActivateComponent.bind(
|
|
69
|
+
this,
|
|
70
|
+
paramsObject
|
|
71
|
+
),
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
break;
|
|
75
|
+
case 'PANEL':
|
|
76
|
+
try {
|
|
77
|
+
config = await Coon.util.promisifyCmd(
|
|
78
|
+
'Coon.uielement.command.GetUIElementCommand',
|
|
79
|
+
id
|
|
80
|
+
);
|
|
81
|
+
if (typeof config === 'object') {
|
|
82
|
+
if (typeof config.propertyData === 'string') {
|
|
83
|
+
config.propertyData = JSON5.parse(
|
|
84
|
+
config.propertyData,
|
|
85
|
+
(key, value) => {
|
|
86
|
+
if (value === 'true') {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
if (value === 'false') {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
config = Object.assign(
|
|
97
|
+
{xtype: config.xtype},
|
|
98
|
+
config.propertyData
|
|
99
|
+
);
|
|
100
|
+
if (config.xtype === 'ReportPanel') {
|
|
101
|
+
Object.assign(config, {
|
|
102
|
+
filterDefaults,
|
|
103
|
+
listeners: {
|
|
104
|
+
'router:activate': this.onActivateComponent.bind(
|
|
105
|
+
this,
|
|
106
|
+
paramsObject
|
|
107
|
+
),
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
if (config.xtype === 'UiCustomPanel') {
|
|
112
|
+
Object.assign(config, {
|
|
113
|
+
listeners: {
|
|
114
|
+
'router:activate': this.onActivateComponent.bind(
|
|
115
|
+
this,
|
|
116
|
+
paramsObject
|
|
117
|
+
),
|
|
118
|
+
'afterrender': (panel) =>
|
|
119
|
+
Coon.Function.executeComponentDoInit(panel, paramsObject),
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
} catch (e) {
|
|
125
|
+
Coon.log.error(e.message);
|
|
126
|
+
}
|
|
127
|
+
break;
|
|
128
|
+
case 'EDIT-REPORT':
|
|
129
|
+
config = {
|
|
130
|
+
_preferFullScreen: true,
|
|
131
|
+
_allowRedirect: false,
|
|
132
|
+
xtype: 'ReportFormEditPanel',
|
|
133
|
+
listeners: {
|
|
134
|
+
'afterrender': (panel) => this.onRenderEditor.call(this, panel, id),
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
break;
|
|
138
|
+
case 'EDIT-PANEL':
|
|
139
|
+
config = {
|
|
140
|
+
_preferFullScreen: true,
|
|
141
|
+
_allowRedirect: false,
|
|
142
|
+
xtype: 'UiCustomPanelEditor',
|
|
143
|
+
listeners: {
|
|
144
|
+
'afterrender': (panel) => this.onRenderEditor.call(this, panel, id),
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
cacheKey && this.cache.set(cacheKey, config);
|
|
150
|
+
return config;
|
|
151
|
+
},
|
|
152
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Ext.define('Coon.app.viewPort.Main', {
|
|
2
|
+
extend: 'Ext.Container',
|
|
3
|
+
xtype: 'CoonAppMainViewPort',
|
|
4
|
+
layout: 'border',
|
|
5
|
+
viewModel: {
|
|
6
|
+
data: {
|
|
7
|
+
navCollapsed: false,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
items: [
|
|
11
|
+
{
|
|
12
|
+
xtype: 'container',
|
|
13
|
+
region: 'west',
|
|
14
|
+
weight: -1,
|
|
15
|
+
layout: {
|
|
16
|
+
type: 'vbox',
|
|
17
|
+
align: 'stretch',
|
|
18
|
+
},
|
|
19
|
+
items: [
|
|
20
|
+
{
|
|
21
|
+
xtype: 'CoonAppTopView',
|
|
22
|
+
height: 48,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
xtype: 'AppNavigationMenu',
|
|
26
|
+
reference: 'NavView',
|
|
27
|
+
flex: 1,
|
|
28
|
+
dockedItems: [
|
|
29
|
+
{
|
|
30
|
+
dock: 'bottom',
|
|
31
|
+
xtype: 'CoonAppBottomView',
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
xtype: 'panel',
|
|
39
|
+
reference: 'headerview',
|
|
40
|
+
cls: 'coon-app-header-view',
|
|
41
|
+
region: 'north',
|
|
42
|
+
docked: 'top',
|
|
43
|
+
weight: -2,
|
|
44
|
+
layout: {
|
|
45
|
+
type: 'hbox',
|
|
46
|
+
align: 'stretch',
|
|
47
|
+
},
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
xtype: 'AppNavigationToggleButton',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
xtype: 'AppNavigationBar',
|
|
54
|
+
flex: 1,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
xtype: 'CoonAppHeaderUserBlock',
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
{xtype: 'CoonAppFooterView', reference: 'footerview', region: 'south', docked: 'bottom', weight: -2},
|
|
62
|
+
{xtype: 'centerview', reference: 'centerview', region: 'center', weight: -1},
|
|
63
|
+
{
|
|
64
|
+
xtype: 'panel',
|
|
65
|
+
reference: 'detailview',
|
|
66
|
+
region: 'east',
|
|
67
|
+
docked: 'right', /* , bind: {width: '{detailview_width}'}*/
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
|
|
71
|
+
onRender() {
|
|
72
|
+
this.callParent(arguments);
|
|
73
|
+
const {initialRoute} = Ext.getApplication();
|
|
74
|
+
initialRoute && Ext.fireEvent('route:initial', initialRoute);
|
|
75
|
+
},
|
|
76
|
+
});
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
.coon-app-header-view {
|
|
2
|
+
//font-size: 14px;
|
|
3
|
+
border: none;
|
|
4
|
+
color: $base-color-dark;
|
|
5
|
+
background-color: white;
|
|
6
|
+
|
|
7
|
+
.user-button {
|
|
8
|
+
$user-icon-color: #BCCAD2;
|
|
9
|
+
&.x-btn-pressed, &.x-btn-focus{
|
|
10
|
+
background-color: darken($user-icon-color, 5%)!important;
|
|
11
|
+
}
|
|
12
|
+
&.x-btn-over:not(&.x-btn-focus) {
|
|
13
|
+
background-color: lighten($user-icon-color, 0%)!important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.x-toolbar-default {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.header-user-block {
|
|
22
|
+
.x-panel-body-default {
|
|
23
|
+
.x-btn-toolbutton-toolbar-small {
|
|
24
|
+
padding: 2px 18px 2px 18px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.blue-text-button {
|
|
29
|
+
.x-btn-icon-el-toolbutton-toolbar-small {
|
|
30
|
+
color: $base-color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.imgAll {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
background-repeat: no-repeat;
|
|
38
|
+
background-size: 104%;
|
|
39
|
+
background-position: 50%;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.fio {
|
|
44
|
+
float: right;
|
|
45
|
+
line-height: 25px;
|
|
46
|
+
padding-left: 5px;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.imgSmall {
|
|
51
|
+
width: 25px;
|
|
52
|
+
height: 25px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.header-flex {
|
|
56
|
+
img {
|
|
57
|
+
width: 100%;
|
|
58
|
+
position: relative;
|
|
59
|
+
top: 30px;
|
|
60
|
+
height: 25px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.header-bottom {
|
|
65
|
+
.x-panel-body-default {
|
|
66
|
+
background-color: $base-color;
|
|
67
|
+
color: white;
|
|
68
|
+
|
|
69
|
+
.x-btn-toolbutton-toolbar-small {
|
|
70
|
+
margin: 0 12px 0 12px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.header-bottom-line {
|
|
76
|
+
background-color: $base-color;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.x-panel-body-default {
|
|
80
|
+
color: $base-color-dark;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.x-btn-default-small {
|
|
84
|
+
//width: 120px;
|
|
85
|
+
|
|
86
|
+
.x-box-target {
|
|
87
|
+
.x-btn-default-small {
|
|
88
|
+
background-color: $base-color-dark;
|
|
89
|
+
color: $base-color-dark;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.x-btn-icon-el {
|
|
95
|
+
&.svg-icon {
|
|
96
|
+
background-color: $base-color;
|
|
97
|
+
width: 33px;
|
|
98
|
+
height: 24px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.svg-icon:hover {
|
|
102
|
+
background-color: $base-color-dark;
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.header-bottom .x-panel-body-default .x-btn-toolbutton-toolbar-small {
|
|
108
|
+
.x-btn-icon-el {
|
|
109
|
+
&.svg-icon {
|
|
110
|
+
background-color: lighten(lightgray, 5%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.svg-icon:hover {
|
|
114
|
+
background-color: white;
|
|
115
|
+
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.x-edge {
|
|
122
|
+
.coon-app-header-view {
|
|
123
|
+
.svg-icon {
|
|
124
|
+
height: 24px;
|
|
125
|
+
width: 24px;
|
|
126
|
+
background-size: 70%;
|
|
127
|
+
|
|
128
|
+
.svg-icon-chat {
|
|
129
|
+
background-size: 80%;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|