ru.coon 2.5.52 → 2.5.53
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 +14 -0
- package/package.json +1 -1
- package/src/uielement/plugin/UnifiedButtonToolbarPlugin.js +17 -13
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Version 2.5.53, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/71f06d3a65bdf8040963d24a7ff0e6ac59946c7a)
|
|
2
|
+
* ## Features
|
|
3
|
+
* <span style='color:green'>feat: HT-7346: remove callback prepare data function</span> ([968a10], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/968a10cd85fb68fb13f4f3887d1785c73934e4cd))
|
|
4
|
+
* <span style='color:green'>feat: BFL-10334: add export csv button</span> ([5c067e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5c067e688795ac9b4341be80ab0909572d899f90))
|
|
5
|
+
* <span style='color:green'>feat: BFL-10334: add export csv button</span> ([afe199], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/afe199fc47b3587dc076debbc9b8e824c4421ed8))
|
|
6
|
+
* <span style='color:green'>feat: HT-7346: get save function return value for call close window functiion</span> ([f0bea7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f0bea74091a045b2477d8518d5d07c4ee2ae3fa1))
|
|
7
|
+
* <span style='color:green'>feat: HT-7346: get save function return value for call close window functiion</span> ([86806d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/86806d51d6a38fce1a4754d3c8497a6957841e1d))
|
|
8
|
+
|
|
9
|
+
* ## Fixes
|
|
10
|
+
* <span style='color:red'> HT-7346: fix add docked and throw promise error</span> ([46b17e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/46b17e452222787468ef0e65e49cd8e40cc9797e))
|
|
11
|
+
|
|
12
|
+
* upd ([3b137b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3b137bc6ff518b9769e55674484c1d3e14469e23))
|
|
13
|
+
* update: CHANGELOG.md ([d9c853], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d9c8532cdef4cf46572967c94895486657a5bba1))
|
|
14
|
+
|
|
1
15
|
# Version 2.5.51, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/86e7f44d186c08b70ff00747e70cbb182686afd7)
|
|
2
16
|
* ## Features
|
|
3
17
|
* <span style='color:green'>feat: Добавлен вывод информации о количестве отчетов, в которых используются настройки экземпляра плагина. Closes HT-7432.</span> ([ccd4b9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ccd4b9d8f5be9a7e9fb9edb4f7cc9c642a26c3a7))
|
package/package.json
CHANGED
|
@@ -27,11 +27,7 @@ Ext.define('Coon.uielement.plugin.UnifiedButtonToolbarPlugin', {
|
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
view.dockedItems.add(this.controller.unifiedButtonToolbar);
|
|
32
|
-
} else {
|
|
33
|
-
view.dockedItems.insert(0, this.controller.unifiedButtonToolbar);
|
|
34
|
-
}
|
|
30
|
+
view.addDocked(this.controller.unifiedButtonToolbar, this.dock === 'bottom' ? null : 0);
|
|
35
31
|
},
|
|
36
32
|
onBeforeCloseWindow() {
|
|
37
33
|
this.save(true);
|
|
@@ -56,12 +52,7 @@ Ext.define('Coon.uielement.plugin.UnifiedButtonToolbarPlugin', {
|
|
|
56
52
|
},
|
|
57
53
|
save(windowClose) {
|
|
58
54
|
this.windowClose = windowClose;
|
|
59
|
-
|
|
60
|
-
this.controller[this.prepareBeanHandlerName] &&
|
|
61
|
-
typeof this.controller[this.prepareBeanHandlerName] === 'function') {
|
|
62
|
-
this.compareCash = true;
|
|
63
|
-
this.controller[this.prepareBeanHandlerName].call();
|
|
64
|
-
}
|
|
55
|
+
this.callPrepareBeanHandler();
|
|
65
56
|
},
|
|
66
57
|
generateHash(params) {
|
|
67
58
|
if (params && Ext.isObject(params)) {
|
|
@@ -80,6 +71,14 @@ Ext.define('Coon.uielement.plugin.UnifiedButtonToolbarPlugin', {
|
|
|
80
71
|
}
|
|
81
72
|
}
|
|
82
73
|
},
|
|
74
|
+
callPrepareBeanHandler(compareCash = true) {
|
|
75
|
+
if (this.prepareBeanHandlerName &&
|
|
76
|
+
this.controller[this.prepareBeanHandlerName] &&
|
|
77
|
+
typeof this.controller[this.prepareBeanHandlerName] === 'function') {
|
|
78
|
+
this.compareCash = compareCash;
|
|
79
|
+
this.controller[this.prepareBeanHandlerName].call();
|
|
80
|
+
}
|
|
81
|
+
},
|
|
83
82
|
async callSaveHandler(closeAfterSave) {
|
|
84
83
|
if (
|
|
85
84
|
this.saveHandlerName &&
|
|
@@ -87,9 +86,14 @@ Ext.define('Coon.uielement.plugin.UnifiedButtonToolbarPlugin', {
|
|
|
87
86
|
typeof this.controller[this.saveHandlerName] === 'function'
|
|
88
87
|
) {
|
|
89
88
|
if (this.controller[this.saveHandlerName] instanceof Promise) {
|
|
90
|
-
await this.controller[this.saveHandlerName].call(this.controller);
|
|
89
|
+
const isError = await this.controller[this.saveHandlerName].call(this.controller).catch(() => 'error');
|
|
90
|
+
if (isError === 'error') {
|
|
91
|
+
closeAfterSave = false;
|
|
92
|
+
}
|
|
91
93
|
} else {
|
|
92
|
-
this.controller[this.saveHandlerName].call(this.controller)
|
|
94
|
+
if (this.controller[this.saveHandlerName].call(this.controller) !== true) {
|
|
95
|
+
closeAfterSave = false;
|
|
96
|
+
}
|
|
93
97
|
}
|
|
94
98
|
if (closeAfterSave) {
|
|
95
99
|
this.closeWindow();
|
package/src/version.js
CHANGED