ru.coon 2.7.27 → 2.7.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
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Version 2.7.28, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cb4662ac201c84739a5abb84ba36f10af0e35a25)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'>fix HT-8819</span> ([c5be10], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c5be103a7e463659ee436dd478eee04c9cfa6b35))
|
|
4
|
+
|
|
5
|
+
* update: CHANGELOG.md ([6b1c8b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6b1c8b9cfb4519d95713d70996f2d8f816bcaea4))
|
|
6
|
+
|
|
1
7
|
# Version 2.7.27, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c59dc7400f5e4ee4f7bbfcd42f4aa371d9b2e68f)
|
|
2
8
|
* ## Fixes
|
|
3
9
|
* <span style='color:red'> HT-8707 checking the component is rendered</span> ([d1fd00], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d1fd008a47ca9a0f2d7a2404c1b21e1d7aa8b2a7))
|
package/package.json
CHANGED
|
@@ -302,12 +302,18 @@ Ext.define('Coon.common.component.editor.CharacteristicGridEditor', {
|
|
|
302
302
|
|
|
303
303
|
const ns = Coon.report.model.CharacteristicBeanFields;
|
|
304
304
|
|
|
305
|
+
const normalize = (el) => {
|
|
306
|
+
el.value = typeof el.value === 'string' ? el.value.trim() : el.value;
|
|
307
|
+
el.type = typeof el.type === 'string' ? el.type.trim() : el.type;
|
|
308
|
+
return el;
|
|
309
|
+
};
|
|
310
|
+
|
|
305
311
|
const withTypeDefinition = (!Ext.isEmpty(typeList) || Ext.isEmpty(valueList));
|
|
306
312
|
if (!withTypeDefinition) {
|
|
307
313
|
const typesCache = [];
|
|
308
314
|
// Без определения доступных типов - типы формируются из списка значений
|
|
309
315
|
for (let i = 0; i < valueList.length; i++) {
|
|
310
|
-
const valueBean = valueList[i];
|
|
316
|
+
const valueBean = normalize(valueList[i]);
|
|
311
317
|
const valueType = valueBean[ns.$type];
|
|
312
318
|
if (typesCache.indexOf(valueType) === -1) {
|
|
313
319
|
const typeRawBean = Ext.apply({}, valueBean);
|
|
@@ -11,14 +11,10 @@ Ext.define('Coon.report.model.CharacteristicBean', {
|
|
|
11
11
|
fields: [
|
|
12
12
|
{name: Coon.report.model.CharacteristicBeanFields.$effectiveDate, type: 'date'},
|
|
13
13
|
{
|
|
14
|
-
name: Coon.report.model.CharacteristicBeanFields.$value, type: 'string',
|
|
15
|
-
return typeof val === 'string' ? val.trim() : val;
|
|
16
|
-
},
|
|
14
|
+
name: Coon.report.model.CharacteristicBeanFields.$value, type: 'string',
|
|
17
15
|
},
|
|
18
16
|
{name: Coon.report.model.CharacteristicBeanFields.$valueDescription, type: 'string'},
|
|
19
|
-
{name: Coon.report.model.CharacteristicBeanFields.$type, type: 'string',
|
|
20
|
-
return typeof val === 'string' ? val.trim() : val;
|
|
21
|
-
}},
|
|
17
|
+
{name: Coon.report.model.CharacteristicBeanFields.$type, type: 'string'},
|
|
22
18
|
{name: Coon.report.model.CharacteristicBeanFields.$typeDescription, type: 'string'},
|
|
23
19
|
{name: Coon.report.model.CharacteristicBeanFields.$editable, type: 'boolean', defaultValue: true},
|
|
24
20
|
{name: Coon.report.model.CharacteristicBeanFields.$visible, type: 'boolean', defaultValue: true},
|
package/src/version.js
CHANGED