ru.coon 2.6.21 → 2.6.23
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 +25 -0
- package/package.json +1 -1
- package/src/Function.js +37 -28
- package/src/report/component/ReportLookupCombo.js +1 -1
- package/src/report/component/SimpleReportTag.js +1 -1
- package/src/report/plugin/configPanel/CopyRowsFromGridConfigPanel.js +2 -1
- package/src/uielement/component/UiCustomController.js +4 -0
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
# Version 2.6.23, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e68f6b9665bae4d8969249f451f473ed7298d86f)
|
|
2
|
+
* ## Fixes
|
|
3
|
+
* <span style='color:red'>fix Coon.Function.getDataFromForm - will correct work with fieldcontainers</span> ([87d0f1], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/87d0f1faf59496c1f41cc7b2f1c8a153c25ca97c))
|
|
4
|
+
* <span style='color:red'>Fix:HT-7885 Refactoring getDataFromForm function</span> ([158037], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1580375d0b9d430a8a9379bee7806ea1c5bfc85c))
|
|
5
|
+
|
|
6
|
+
* ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update src/Function.jsb3713a036513a22b8c920b2d4d230fcaf1eb0779))
|
|
7
|
+
* ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update src/Function.js3fa4edf5ab6e11a419ed4995c949a0cfe459c1db))
|
|
8
|
+
* update: CHANGELOG.md ([cca905], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cca905a14180478df3c9f460ceb07b2950c14fba))
|
|
9
|
+
|
|
10
|
+
# Version 2.6.22, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a580a8a4150b16d4f73ad7a4c1689d610822ee10)
|
|
11
|
+
* ## Fixes
|
|
12
|
+
* <span style='color:red'> loadData on SimplestReportCombo CRM-8429</span> ([e88546], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e88546f3413c2aa5520453b04abe000f4345bfea))
|
|
13
|
+
|
|
14
|
+
* update: CHANGELOG.md ([c765e5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c765e541f9875b873ba2ecffb85f2284845e217b))
|
|
15
|
+
|
|
1
16
|
# Version 2.6.21, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6f24834f0ffadd1fcf91e6545544a0e6db569481)
|
|
2
17
|
* ## Features
|
|
3
18
|
* <span style='color:green'>feat: HT-8139: refactoring</span> ([e0404c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e0404c9c462d41b8a68eefe90d4204d9f12ab92d))
|
|
4
19
|
* <span style='color:green'>feat: HT-8139: validate function call after dialog on close window</span> ([8eec24], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8eec24fb0dcad82d6ce2fcd3c81d1bee92261bdb))
|
|
5
20
|
|
|
6
21
|
* ## Fixes
|
|
22
|
+
* <span style='color:red'>Fix:HT-8128 Fix groupButton property in CopyRowsFromGridConfigPanel</span> ([7fc721], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7fc721f71b53faa54c451645c1c03f4cc5d4ec23))
|
|
7
23
|
* <span style='color:red'> Added "requires". Related to TR-63848.</span> ([1d6623], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1d66232357d6fc3d3e7a0dabad7183da4aac41ad))
|
|
8
24
|
|
|
9
25
|
* refactoring UnifiedButtonToolbarPlugin ([2db2e5], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2db2e5926168f46feabe6bf65ea709f26c546a7e))
|
|
@@ -23,6 +39,9 @@
|
|
|
23
39
|
* <span style='color:green'>feat: HT-8044 ExportReportDataToFilePlugin add exportConfig field</span> ([0df785], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0df785630853bcaf2291476fd7007f9a29761d63))
|
|
24
40
|
* <span style='color:green'>feat: HT-8145: remove and set table view empty text on load / before load</span> ([e14b0b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e14b0b784256fc854be3d042bb695575eac83269))
|
|
25
41
|
|
|
42
|
+
* ## Fixes
|
|
43
|
+
* <span style='color:red'> BFL-11383 editing values setting in ReportLookupCombo</span> ([25f19c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/25f19c68cf394733dd397e0445669f755c2fd045))
|
|
44
|
+
|
|
26
45
|
* update extjs_iconpack ([648132], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/648132fadfa22e609d17317e40aee2e99ac289ca))
|
|
27
46
|
* update: CHANGELOG.md ([7b85e2], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/7b85e26648ab43868b4b1db32f11fb04113645dc))
|
|
28
47
|
|
|
@@ -204,15 +223,21 @@ This reverts commit 92855b1225a747f15d977c0f23c8d9794523352d. ([312854], [link](
|
|
|
204
223
|
# Version 2.5.64, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9f48777236abed76cf08cd5cef56e7f9be0dac63)
|
|
205
224
|
* ## Features
|
|
206
225
|
* <span style='color:green'>feat: HT-7955: focus CP before save action, set cell editing values in grids</span> ([4c6578], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4c6578c6873cd21c509de304494938276e7367a9))
|
|
226
|
+
* <span style='color:green'>Feat:HT-7885 Deprecate Coon.Function.getDataFromForm</span> ([43cd8a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/43cd8a2edbafe76c7d5881789a6236b6e23c21cf))
|
|
207
227
|
* <span style='color:green'>feat: BFL-9365 move TimeEditorCreator and DeliveryTimeField from ISWE</span> ([12c3c7], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/12c3c701ac9387f4d2918a9feb1840bf0f7fb3ea))
|
|
208
228
|
* <span style='color:green'>feat: HT-7281 GridEditorPlugin editor dependField</span> ([387052], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/38705228276f86858100b6b43c0e204bcc6f26b7))
|
|
209
229
|
|
|
210
230
|
* ## Fixes
|
|
211
231
|
* <span style='color:red'>Fix:HT-7887 fix filterItemsOnRow property in ReportFormParameterEditPanel</span> ([c10ca9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c10ca98610970df2f51ca39fe698e278db6fe719))
|
|
232
|
+
* <span style='color:red'>Fix:HT-7885 change excelEditorType to local in CopyRowsFromGridConfigPanel</span> ([1ed44e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1ed44e4bb22f4e15a3b06221e0d8870da1ecf025))
|
|
212
233
|
* <span style='color:red'> HT-7941: check if do not have saved data object then close window</span> ([0baf4e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0baf4ea72862a4a61230ffc3ac0af7f8b065d794))
|
|
234
|
+
* <span style='color:red'>Fix:HT-7885 fix group button and position number properties in CopyRowsFromGridConfigPanel</span> ([e0a4d8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e0a4d888c88dfa70c14e649bb027625c769d64ce))
|
|
213
235
|
|
|
214
236
|
* remove unnecessary filterItemsOnRow property ([772f61], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/772f6190df8b958bd6ff97e5731a59971c9a11fc))
|
|
237
|
+
* HT-7885 ([601a41], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/601a4199efef15290c161766431908ab8993862b))
|
|
238
|
+
* Update getDataFromForm function ([d79274], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/d79274267b970ea0b4a31f1724d3dfc54d82d9d5))
|
|
215
239
|
* HT-7882 поддержать возможность передачи свойств редактора х-ки в поле mask в формате json ([507490], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5074900afb170d9f11aa10de6549e05cef12f7cb))
|
|
240
|
+
* Combine query in one row ([6fbb49], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6fbb496601a46bef0506b56d34d179d3d10148ca))
|
|
216
241
|
* update: CHANGELOG.md ([2ec18c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2ec18ccddcb1d571ef6a1d00b9cde439355c8304))
|
|
217
242
|
|
|
218
243
|
# Version 2.5.63, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/49035e56acea653959f01f96ea96a10d962b1424)
|
package/package.json
CHANGED
package/src/Function.js
CHANGED
|
@@ -122,38 +122,47 @@ Ext.define('Coon.Function', {
|
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* Получение всех значений полей панели в качестве структуры.
|
|
125
|
-
* Если поле
|
|
125
|
+
* Если поле имеет флаг local - оно не включается в результат
|
|
126
126
|
*/
|
|
127
127
|
getDataFromForm: function(formPanel, valuesAsIs, dateFormat, excludeReadOnly, excludeDisabled) {
|
|
128
|
-
|
|
129
|
-
fields = (fields || []).concat(formPanel.query('fieldcontainer')).concat(formPanel.query('UiCFSegmentedButton'));
|
|
128
|
+
const fields = formPanel.query('field,fieldcontainer[getValue]');
|
|
130
129
|
const params = {};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Проверяет, включать ли данные из поля в результат
|
|
133
|
+
*/
|
|
134
|
+
const isValid = function(field, name) {
|
|
135
|
+
return (
|
|
136
|
+
!(excludeDisabled && field.disabled) &&
|
|
137
|
+
!(excludeReadOnly && field.readOnly) &&
|
|
138
|
+
!field.local &&
|
|
139
|
+
name
|
|
140
|
+
);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
for (const field of fields) {
|
|
144
|
+
const name = Ext.isObject(field.initialConfig) && field.initialConfig.name;
|
|
145
|
+
if (!(isValid(field, name))) {
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
const value = field.submitFormat ? field.getSubmitValue() : field.getValue();
|
|
149
|
+
if (field.isXType('radiofield') && value && Ext.isFunction(value.getGroupValue)) {
|
|
150
|
+
params[name] = value.getGroupValue();
|
|
151
|
+
} else if (Ext.isDate(value)) {
|
|
152
|
+
// !!!ВНИМАНИЕ - при использовании этой функции в web-billing :
|
|
153
|
+
// из-за override form.field.Date в web-billing сюда мы не попадем, так как value всегда будет строкой,
|
|
154
|
+
// Следовательно, valuesAsIs и dateFormat не используются для обработки дат
|
|
155
|
+
params[name] = valuesAsIs ? value : Ext.Date.format(value, dateFormat || Coon.format.dateTimeInternal);
|
|
156
|
+
} else if (Ext.isFunction(field.getCleanValue)) {
|
|
157
|
+
params[name] = field.getCleanValue();
|
|
158
|
+
} else if (Ext.isString(value) || value === undefined || Ext.isBoolean(value) || Ext.isNumber(value) ||
|
|
146
159
|
(field.submitFormat && field.isXType('combobox'))
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
} else {
|
|
154
|
-
Ext.apply(params, value);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
160
|
+
) {
|
|
161
|
+
params[name] = value;
|
|
162
|
+
} else if (field.submitFormat) {
|
|
163
|
+
params[name] = value;
|
|
164
|
+
} else {
|
|
165
|
+
Ext.apply(params, value);
|
|
157
166
|
}
|
|
158
167
|
}
|
|
159
168
|
return params;
|
|
@@ -98,9 +98,9 @@ Ext.define('Coon.report.component.ReportLookupCombo', {
|
|
|
98
98
|
this.setValue = function(value) {
|
|
99
99
|
this._setValue(value);
|
|
100
100
|
if (!this._inited && value) {
|
|
101
|
-
this._inited = true;
|
|
102
101
|
this.loadReportData(value);
|
|
103
102
|
}
|
|
103
|
+
this._inited = true;
|
|
104
104
|
};
|
|
105
105
|
if (Ext.isObject(this.defaultParameters)) {
|
|
106
106
|
this.setFilterDefaults(this.defaultParameters);
|
|
@@ -239,7 +239,7 @@ Ext.define('Coon.report.component.SimpleReportTag', {
|
|
|
239
239
|
return typeof item === 'string' ? {name: item} : item;
|
|
240
240
|
});
|
|
241
241
|
this.store.getModel().addFields(newFields);
|
|
242
|
-
this.store.loadData(data
|
|
242
|
+
this.store.loadData(data);
|
|
243
243
|
this.store.fireEvent('load', this.store, this.store.getRange(), true);
|
|
244
244
|
this.fireEvent('load', this, this.store);
|
|
245
245
|
if (this.value) {
|
|
@@ -95,6 +95,7 @@ Ext.define('Coon.report.plugin.configPanel.CopyRowsFromGridConfigPanel', {
|
|
|
95
95
|
];
|
|
96
96
|
},
|
|
97
97
|
setContext: function(context) {
|
|
98
|
+
this.callParent(arguments);
|
|
98
99
|
const visibleFields = context && context.fields ? context.fields.filter((field) => field.visibleSwitch === true) : [];
|
|
99
100
|
if (visibleFields && visibleFields.length) {
|
|
100
101
|
Ext.ComponentQuery.query('[xtype="EditorJsField"]', this).forEach((cmp) => {
|
|
@@ -262,7 +263,7 @@ Ext.define('Coon.report.plugin.configPanel.CopyRowsFromGridConfigPanel', {
|
|
|
262
263
|
['xlsx', 'xlsx']
|
|
263
264
|
],
|
|
264
265
|
fieldLabel: 'Отобразить редактор',
|
|
265
|
-
|
|
266
|
+
local: true,
|
|
266
267
|
allowBlank: true,
|
|
267
268
|
listeners: {
|
|
268
269
|
change: this.onChangeFormat.bind(this),
|
|
@@ -5,6 +5,10 @@ Ext.define('Coon.uielement.component.UiCustomController', {
|
|
|
5
5
|
|
|
6
6
|
init: function(view) {
|
|
7
7
|
const config = view.propertyData || view.initialConfig;
|
|
8
|
+
if (!view || typeof view.on !== 'function') {
|
|
9
|
+
Coon.log.debug(` [Error]UiCustomController.init - view not found or view.on is not a function`);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
8
12
|
view.on('afterrender', function() {
|
|
9
13
|
const {accessDecision, securePoints} = config;
|
|
10
14
|
Coon.log.debug('UiCustomController.accessProps', {accessDecision, securePoints});
|
package/src/version.js
CHANGED