ru.coon 2.7.25 → 2.7.27

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,14 @@
1
+ # Version 2.7.27, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c59dc7400f5e4ee4f7bbfcd42f4aa371d9b2e68f)
2
+ * ## Fixes
3
+ * <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))
4
+ * <span style='color:red'> Запрещен ввод значений в характеристики типа FKV, отсутствующих в списке выбора. Closes HT-8762.</span> ([dece4f], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/dece4f2ce361c8c54d11a54dc469099698338c46))
5
+ * <span style='color:red'> HT-8707 checking the component is rendered</span> ([486939], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4869399bb137ba99a4925ff8f4c633f1b71f028c))
6
+ * <span style='color:red'> HT-8707 masking for undestroyed component</span> ([ee85fc], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ee85fc21f81d2efdcf024c0dcee8670f85a0f866))
7
+
8
+ * up ([5ed117], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5ed117251d0ded671bf25aeadf091da7165d4518))
9
+ * ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update src/Function.js54cab5f445fe40d8ec4605af38a41df54f1eef8a))
10
+ * update: CHANGELOG.md ([abedd8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/abedd84e336660b4100d97028c0267d7fdd5ec44))
11
+
1
12
  # Version 2.7.25, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/568fd6aae3e5756be342c7e74d434b7976700dae)
2
13
  * ## Features
3
14
  * <span style='color:green'>feat: HT-8513: add copy item in cell context menu</span> ([5355d4], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5355d48244eceb3add5e5002bfe970b8059e235d))
@@ -5,6 +16,9 @@
5
16
  * <span style='color:green'>feat: HT-8513: add copy item in cell context menu</span> ([915abe], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/915abebc3f710ae7236d2584292d7fd62b2067e0))
6
17
  * <span style='color:green'>feat: HT-8763: search footer view by reference</span> ([2648fe], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2648fe29ea96319055c586e4cea1015115c19494))
7
18
 
19
+ * ## Fixes
20
+ * <span style='color:red'> При ручном вводе минут очищается все поле. Closes HT-8712.</span> ([bdde0d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/bdde0da03da609ce1e24c9c54dd92dfbb78305ba))
21
+
8
22
  * update: CHANGELOG.md ([971505], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9715050f4ce08854c84792001dea4c334fd74a0f))
9
23
 
10
24
  # Version 2.7.24, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8e3cc36a693f048a9feceada5eb46f979eda23db)
@@ -18,6 +32,7 @@
18
32
 
19
33
  # Version 2.7.23, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e1fd5ef91937dab7196de70f1ec48895dd0e036f)
20
34
  * ## Fixes
35
+ * <span style='color:red'> Если в загруженном отчете не найдено value, то value = null. Closes HT-8629.</span> ([c1d69b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c1d69b443d608ca65eb35c744e1e56068a2f1e2a))
21
36
  * <span style='color:red'>fix ReportLookupCombo</span> ([389b88], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/389b882bb57e27db1acebb9196f4ebf533794200))
22
37
 
23
38
  * update: CHANGELOG.md ([1da73b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1da73b648a1493be777199ffce8a8fe0dac63998))
@@ -994,6 +1009,9 @@ ReportPropertiesPanelController.buildPropertiesTreeData was losing property "key
994
1009
  * update: CHANGELOG.md ([65d101], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/65d10184c4d288dd083ff31880e560dab4a764e7))
995
1010
 
996
1011
  # Version 2.5.14, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1c5a4296f1a7a2649f02deb68e05542aa6185f10)
1012
+ * ## Features
1013
+ * <span style='color:green'>feat: TR-67274: add convert function in model to trim values</span> ([2dd614], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2dd614f646501a438b8e0647ed71f7259c366f61))
1014
+
997
1015
  * ## Fixes
998
1016
  * <span style='color:red'> HT-7017 linter</span> ([264cac], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/264cac926d75d4c68805a4904828ebb26b9b7979))
999
1017
  * <span style='color:red'> HT-7017 GridEditButtons исправлено создание кнопки при отсутствии initialConfig</span> ([510cac], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/510cac7188bebbf9a92944a95f9cfceb668436a1))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.7.25",
7
+ "version": "2.7.27",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
package/src/Function.js CHANGED
@@ -17,7 +17,7 @@ Ext.define('Coon.Function', {
17
17
 
18
18
  /**
19
19
  *
20
- * @param {*} win Ext component
20
+ * @param {*} component Ext component
21
21
  * @param {*} requestOptions
22
22
  * @param {String} requestOptions.url url
23
23
  * @param {Boolean} requestOptions.binary
@@ -26,18 +26,15 @@ Ext.define('Coon.Function', {
26
26
  * @param {Boolean} sync sync|async request
27
27
  * @returns
28
28
  */
29
- doRequest: function(win, requestOptions, sync) {
29
+ doRequest: function(component, requestOptions, sync) {
30
30
  const requestHash = Coon.util.generateHashFromObj(requestOptions);
31
31
  if (!this.beforeRequest(requestOptions, requestHash)) {
32
32
  return;
33
33
  }
34
34
  let myMask;
35
- if (win) {
36
- if (!win.isComponent) {
37
- Coon.log.error('win parameter is element instead component');
38
- }
35
+ if (component && this.isComponentRendered(component)) {
39
36
  myMask = new Ext.LoadMask({
40
- target: win,
37
+ target: component,
41
38
  msg: requestOptions.text || 'Загрузка...',
42
39
  });
43
40
  myMask.show();
@@ -63,7 +60,7 @@ Ext.define('Coon.Function', {
63
60
  response.responseJSON = Ext.decode(response.responseText, true);
64
61
  }
65
62
  try {
66
- requestOptions.callback.call(this, win, true, response, requestOptions);
63
+ requestOptions.callback.call(this, component, true, response, requestOptions);
67
64
  } catch (e) {
68
65
  Coon.log.error(e);
69
66
  }
@@ -79,7 +76,7 @@ Ext.define('Coon.Function', {
79
76
  response.responseJSON = Ext.decode(response.responseText, true);
80
77
  }
81
78
  try {
82
- requestOptions.failure.call(this, win, requestOptions, response);
79
+ requestOptions.failure.call(this, component, requestOptions, response);
83
80
  } catch (e) {
84
81
  console.warn(e);
85
82
  }
@@ -95,6 +92,12 @@ Ext.define('Coon.Function', {
95
92
  return request;
96
93
  },
97
94
 
95
+ isComponentRendered: function(component) {
96
+ return component &&
97
+ component.isComponent &&
98
+ component.rendered;
99
+ },
100
+
98
101
  /**
99
102
  * Сериализация содержимого Store
100
103
  * @param store
@@ -26,6 +26,7 @@ Ext.define('Coon.common.component.editor.creators.SimpleReportEditorCreator', {
26
26
  valueField: 'VALUE',
27
27
  displayField: 'DESCRIPTION',
28
28
  searchBySubstring: true,
29
+ forceSelection: true,
29
30
  }, record.get('editorConfig')));
30
31
  },
31
32
 
@@ -41,7 +41,6 @@ Ext.define('Coon.common.field.fieldset.DateTimeField', {
41
41
 
42
42
  initComponent: function() {
43
43
  this.callParent();
44
- this.on('change', this.publishValue, this);
45
44
  this.triggers.time.setHidden(!!this.hideTimeTrigger);
46
45
  },
47
46
 
@@ -136,8 +135,4 @@ Ext.define('Coon.common.field.fieldset.DateTimeField', {
136
135
  this.picker.setValue(Ext.isDate(value) ? value : this.createInitialDate());
137
136
  }
138
137
  },
139
-
140
- publishValue: function() {
141
- this.publishState('value', this.getValue());
142
- },
143
138
  });
@@ -280,6 +280,11 @@ Ext.define('Coon.report.component.SimplestReportCombo', {
280
280
  const find = map.find((e) => e[this.defaultValueFlg || 'IS_DEFAULT'] === 'Y');
281
281
  const defaultValue = this.value || (find && find[this.valueField]);
282
282
  if (defaultValue) {
283
+ const foundByValueField = map.find((e) => e[this.valueField] === this.value);
284
+ if (!foundByValueField) {
285
+ this.setValue(null);
286
+ return;
287
+ }
283
288
  this.setValue(defaultValue);
284
289
  if (Ext.isFunction(this.publishState)) {
285
290
  this.publishState('value', this.getValue());
@@ -10,9 +10,15 @@ Ext.define('Coon.report.model.CharacteristicBean', {
10
10
  requires: 'Coon.report.model.CharacteristicBeanFields',
11
11
  fields: [
12
12
  {name: Coon.report.model.CharacteristicBeanFields.$effectiveDate, type: 'date'},
13
- {name: Coon.report.model.CharacteristicBeanFields.$value, type: 'string'},
13
+ {
14
+ name: Coon.report.model.CharacteristicBeanFields.$value, type: 'string', convert: (val) => {
15
+ return typeof val === 'string' ? val.trim() : val;
16
+ },
17
+ },
14
18
  {name: Coon.report.model.CharacteristicBeanFields.$valueDescription, type: 'string'},
15
- {name: Coon.report.model.CharacteristicBeanFields.$type, type: 'string'},
19
+ {name: Coon.report.model.CharacteristicBeanFields.$type, type: 'string', convert: (val) => {
20
+ return typeof val === 'string' ? val.trim() : val;
21
+ }},
16
22
  {name: Coon.report.model.CharacteristicBeanFields.$typeDescription, type: 'string'},
17
23
  {name: Coon.report.model.CharacteristicBeanFields.$editable, type: 'boolean', defaultValue: true},
18
24
  {name: Coon.report.model.CharacteristicBeanFields.$visible, type: 'boolean', defaultValue: true},
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.7.25',
3
+ number: '2.7.27',
4
4
  });
@@ -1,5 +0,0 @@
1
- Ext.define('Coon.common.field.checkbox.RoundCheckbox', {
2
- extend: 'Ext.form.field.Checkbox',
3
- cls: 'RoundCheckbox',
4
- xtype: ['roundcheckbox', 'RoundCheckbox'],
5
- });
@@ -1,48 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- });
@@ -1,7 +0,0 @@
1
- **спецификация:**
2
-
3
- входные параметры:
4
-
5
- - exportFileFormat [xls/pdf]
6
- - allowUserSelectColumnsToUpload
7
- - addToSearchButton добавить в кнопку "поиск", в этом случае в качестве параметра отправляем текущие параметры из FilterPanel(useRawFilterParams: true)