ru.coon 2.7.17 → 2.7.19
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 +22 -0
- package/package.json +1 -1
- package/src/common/field/checkbox/RoundCheckbox.js +5 -0
- package/src/common/field/checkbox/RoundCheckbox.scss +48 -0
- package/src/common/plugin/form/RequiredFlagPlugin.js +3 -0
- package/src/nav/MenuLoader.js +23 -0
- package/src/report/component/LocalPagingComboPicker.js +4 -1
- package/src/report/component/ReportLookupCombo.js +1 -1
- package/src/report/component/ReportTagLookup.js +10 -0
- package/src/report/component/SimpleReportTag.js +18 -0
- package/src/report/plugin/configPanel/ExportReportDataToFilePluginConfigPanel.js +2 -1
- package/src/report/plugin/grid/ExportReportDataToFilePlugin.js +6 -4
- package/src/report/plugin/grid/ExportReportDataToFilePlugin.md +7 -0
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Version 2.7.19, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a37058502f6f51e727d642b2aa309d2bfbe78d33)
|
|
2
|
+
* update: CHANGELOG.md ([56dad9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/56dad92c0e1c05074c641f4420527378f2c74934))
|
|
3
|
+
|
|
4
|
+
# Version 2.7.18, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/26a7db3174351157f5dfcdcc2e70a4dd8a7834a0)
|
|
5
|
+
* update: CHANGELOG.md ([48dffb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/48dffbb66345faebd3a7a4e6d6420d15cb7c874d))
|
|
6
|
+
|
|
7
|
+
# Version 2.0.106, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2b3fa6dd7f6ce10bcf55b772ecdc52b0400bd117)
|
|
8
|
+
* ## Fixes
|
|
9
|
+
* <span style='color:red'>fix RequiredFlagPlugin - fall down when field is not rendered</span> ([ad98e5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ad98e59a50894085dcc5d8692d05772cbf42247b))
|
|
10
|
+
|
|
11
|
+
* update: CHANGELOG.md ([079a3a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/079a3a87735fc57468647b48a29cff6ca87449b7))
|
|
12
|
+
|
|
13
|
+
# Version 2.0.105, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dbf91f3eb0c6313098419bf2902d10642268a67c)
|
|
14
|
+
* ## Features
|
|
15
|
+
* <span style='color:green'>feat: HT-8299 add txt format in ExportReportDataToFilePlugin</span> ([68cf9f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/68cf9f47983464e5146c589a45221e65d82f9627))
|
|
16
|
+
|
|
17
|
+
* ## Fixes
|
|
18
|
+
* <span style='color:red'> HT-8477 overriding the method clearInput text after set value</span> ([65ee44], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/65ee4462502177dd22a9d938135913abc93152af))
|
|
19
|
+
* <span style='color:red'> HT-8477 overriding the method clearInput text after set value</span> ([eeb0f6], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/eeb0f6731c804dc2a2581ca669747a835d6681bf))
|
|
20
|
+
|
|
21
|
+
* update: CHANGELOG.md ([3a4dfb], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3a4dfba9c4337ec6e50034a4d08a32f040fada4a))
|
|
22
|
+
|
|
1
23
|
# Version 2.7.17, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8cb0e275496ba8cadce344aa25b16c66cb56251d)
|
|
2
24
|
* ## Features
|
|
3
25
|
* <span style='color:green'>feat: TR-67883: set page title on menu item change</span> ([86353d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/86353dffdf5c2f824fcae74fc38512041428c7b1))
|
package/package.json
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.x-form-fieldCheckbox {
|
|
2
|
+
.x-form-field {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.x-form-field label {
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
border: 1px solid #ccc;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
height: 28px;
|
|
12
|
+
left: 0;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
width: 28px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.x-form-field label:after {
|
|
19
|
+
border: 2px solid #fff;
|
|
20
|
+
border-top: none;
|
|
21
|
+
border-right: none;
|
|
22
|
+
content: "";
|
|
23
|
+
height: 6px;
|
|
24
|
+
left: 7px;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 8px;
|
|
28
|
+
transform: rotate(-45deg);
|
|
29
|
+
width: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.x-form-field input[type="checkbox"] {
|
|
33
|
+
visibility: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.x-form-field input[type="checkbox"]:checked + label {
|
|
37
|
+
background-color: #66bb6a;
|
|
38
|
+
border-color: #66bb6a;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.x-form-field input[type="checkbox"]:checked + label:after {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.x-form-item-body, .x-form-cb-wrap-inner {
|
|
46
|
+
margin: 0 auto;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -98,6 +98,9 @@ Ext.define('Coon.common.plugin.form.RequiredFlagPlugin', {
|
|
|
98
98
|
field.changeFieldFlag = function(isRequired) {
|
|
99
99
|
const field = this.field;
|
|
100
100
|
field.isRequired = isRequired;
|
|
101
|
+
if (!field.getEl()) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
101
104
|
if (isRequired) {
|
|
102
105
|
field.getEl().dom.querySelector('.required-flag').textContent = '*';
|
|
103
106
|
} else {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Ext.define('Coon.nav.MenuLoader', {
|
|
2
|
+
singleton: true,
|
|
3
|
+
|
|
4
|
+
isLoaded: false,
|
|
5
|
+
|
|
6
|
+
load() {
|
|
7
|
+
return Coon.util.promisifyCmd('command.GetDynamicReportDataCommand', 'MENU_ALLITEMS')
|
|
8
|
+
.then((data) => {
|
|
9
|
+
if (Array.isArray(data.list)) {
|
|
10
|
+
this.uiElementMap = data.list.reduce();
|
|
11
|
+
}
|
|
12
|
+
this.isLoaded = true;
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
get() {
|
|
17
|
+
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
isValidMenuItem(uiEmentId) {
|
|
21
|
+
return this.uiElementMap.has(uiEmentId);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
@@ -141,7 +141,7 @@ Ext.define('Coon.report.component.LocalPagingComboPicker', {
|
|
|
141
141
|
const store = this.getStore();
|
|
142
142
|
const picker = this.picker;
|
|
143
143
|
|
|
144
|
-
if (page) {
|
|
144
|
+
if (page && picker) {
|
|
145
145
|
if (page <= pageControl.count) {
|
|
146
146
|
pageControl.currentPage = page;
|
|
147
147
|
picker.pagingToolbar.setPageNumber(page);
|
|
@@ -234,6 +234,9 @@ Ext.define('Coon.report.component.LocalPagingComboPicker', {
|
|
|
234
234
|
},
|
|
235
235
|
|
|
236
236
|
configurePagination() {
|
|
237
|
+
if (!this.unpagedData) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
237
240
|
Coon.log.debug('configurePagination');
|
|
238
241
|
const pageControl = this.pageControl;
|
|
239
242
|
Coon.log.debug('pageSize', this.pageControl.pageSize);
|
|
@@ -241,7 +241,7 @@ Ext.define('Coon.report.component.ReportLookupCombo', {
|
|
|
241
241
|
*/
|
|
242
242
|
loadReportData(value) {
|
|
243
243
|
if (Ext.isObject(value)) {
|
|
244
|
-
if (
|
|
244
|
+
if (value.isModel && this.valueField) {
|
|
245
245
|
value = value.get(this.valueField);
|
|
246
246
|
} else {
|
|
247
247
|
Coon.log.error('ReportLookupCombo has an object value param in loadReportData function!');
|
|
@@ -64,6 +64,16 @@ Ext.define('Coon.report.component.ReportTagLookup', {
|
|
|
64
64
|
this.setValue(defaultValues);
|
|
65
65
|
}, this, {single: true});
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
if (this.searchBySubstring) {
|
|
69
|
+
this.clearInput = this.onClearInput;
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
onClearInput: function() {
|
|
74
|
+
this.resetPageControl();
|
|
75
|
+
this.loadLocalPage(1);
|
|
76
|
+
this.callParent();
|
|
67
77
|
},
|
|
68
78
|
|
|
69
79
|
/**
|
|
@@ -227,6 +227,10 @@ Ext.define('Coon.report.component.SimpleReportTag', {
|
|
|
227
227
|
this.loadHandler();
|
|
228
228
|
}
|
|
229
229
|
this.initComplete = true;
|
|
230
|
+
|
|
231
|
+
if (this.searchBySubstring) {
|
|
232
|
+
this.clearInput = this.onClearInput;
|
|
233
|
+
}
|
|
230
234
|
},
|
|
231
235
|
|
|
232
236
|
onComplete: function(data) {
|
|
@@ -325,4 +329,18 @@ Ext.define('Coon.report.component.SimpleReportTag', {
|
|
|
325
329
|
}
|
|
326
330
|
return data;
|
|
327
331
|
},
|
|
332
|
+
|
|
333
|
+
onClearInput: function() {
|
|
334
|
+
const me = this;
|
|
335
|
+
const valueRecords = me.getValueRecords();
|
|
336
|
+
const inputValue = me.inputEl && me.inputEl.dom.value;
|
|
337
|
+
if (valueRecords.length && inputValue) {
|
|
338
|
+
me.inputEl.dom.value = '';
|
|
339
|
+
if (me.queryMode === 'local') {
|
|
340
|
+
me.clearLocalFilter();
|
|
341
|
+
me.getPicker().refresh();
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
me.syncInputWidth();
|
|
345
|
+
},
|
|
328
346
|
});
|
|
@@ -103,7 +103,8 @@ Ext.define('Coon.report.plugin.configPanel.ExportReportDataToFilePluginConfigPan
|
|
|
103
103
|
store: [
|
|
104
104
|
{name: 'Excel', id: 'excel'},
|
|
105
105
|
{name: 'PDF', id: 'pdf'},
|
|
106
|
-
{name: 'CSV', id: 'csv'}
|
|
106
|
+
{name: 'CSV', id: 'csv'},
|
|
107
|
+
{name: 'TXT', id: 'txt'}
|
|
107
108
|
],
|
|
108
109
|
displayField: 'name',
|
|
109
110
|
valueField: 'id',
|
|
@@ -54,7 +54,10 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
54
54
|
this.printExcelFile();
|
|
55
55
|
break;
|
|
56
56
|
case 'csv':
|
|
57
|
-
this.printCsvFile();
|
|
57
|
+
this.printCsvFile('csv');
|
|
58
|
+
break;
|
|
59
|
+
case 'txt':
|
|
60
|
+
this.printCsvFile('txt');
|
|
58
61
|
break;
|
|
59
62
|
}
|
|
60
63
|
},
|
|
@@ -177,7 +180,7 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
177
180
|
this.config.cmp.timeout :
|
|
178
181
|
this.defaultTimeout;
|
|
179
182
|
},
|
|
180
|
-
printCsvFile: async function() {
|
|
183
|
+
printCsvFile: async function(extension) {
|
|
181
184
|
this.grid.mask('подождите пожалуйста...');
|
|
182
185
|
const currentParamList = this.getConfig('addToSearchButton') ? this.report.northPanel.collectParams() : this.report.currentParamList;
|
|
183
186
|
|
|
@@ -214,7 +217,7 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
214
217
|
this.grid.unmask();
|
|
215
218
|
Coon.util.downloadFileFromBlob(
|
|
216
219
|
new Blob(['\uFEFF', response.responseBytes], {type: 'text/csv;charset=utf-8'}),
|
|
217
|
-
`${this.fileName}
|
|
220
|
+
`${this.fileName}.${extension}`
|
|
218
221
|
);
|
|
219
222
|
},
|
|
220
223
|
failure(error) {
|
|
@@ -269,5 +272,4 @@ Ext.define('Coon.report.plugin.grid.ExportReportDataToFilePlugin', {
|
|
|
269
272
|
scope: this,
|
|
270
273
|
});
|
|
271
274
|
},
|
|
272
|
-
|
|
273
275
|
});
|
package/src/version.js
CHANGED