ru.coon 2.8.7 → 2.8.8

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,16 @@
1
+ # Version 2.8.8, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/45ff9950c8d445813e49923d75671f55042ab526)
2
+ * ## Features
3
+ * <span style='color:green'>feat: HT-10322: add plugin</span> ([8e06ce], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8e06cef994d5a85d9752bb73717a5fa3a69e1a44))
4
+
5
+ * ## Fixes
6
+ * <span style='color:red'> BFL-15645: catch error on open group if grid has not</span> ([357155], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/35715511d8bbb34f399ca92d7e1f08f700249013))
7
+
8
+ * Update 2 files
9
+
10
+ - /src/uielement/plugin/configPanel/OpenApiPluginConfigPanelFormEditor.js ([- /src], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/- /src/uielement/plugin/OpenApiPlugin.js56ef155c7fe8d2ab8ad992f03e2704fb4f2be74f))
11
+ * ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update CharacteristicGridEditor.js7b70ed5f02a7df03bd9c196ad35871014b309eca))
12
+ * update: CHANGELOG.md ([b3bdee], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b3bdeec93dd687347efbe8ecaabbe0079d1dbf89))
13
+
1
14
  # Version 2.8.7, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/086c841f875dba30c6d46e2737876da1349717d5)
2
15
  * ## Features
3
16
  * <span style='color:green'>feat: Экспорт строки "Всего". Closes HT-10162.</span> ([afbcee], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/afbceeebb84975dd57bd22d0dccf87ec9b81c799))
@@ -8,8 +21,12 @@
8
21
  * update: CHANGELOG.md ([0b6d30], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/0b6d304fb344aaceedb55d591c80e4a815f339f0))
9
22
 
10
23
  # Version 2.8.5, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/224b99c8b4b9674f6732b71e76aa06961fd4e91d)
24
+ * ## Features
25
+ * <span style='color:green'>feat: TR-69546: add plugin</span> ([bacca3], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/bacca324c266b2256baff4919a68932ed9b67890))
26
+
11
27
  * ## Fixes
12
28
  * <span style='color:red'>fix modified state for characteristic record, HT-10117</span> ([2f8762], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/2f876261d0065a0a02810ac5866f2832b2a36672))
29
+ * <span style='color:red'> Bind ReportFormPluginGrid data to formula (предотвращает вызов setData на каждое обновление "report" проперти у вью модели, будет срабатывать только на обновление report.plugins). Closes NEVA-663.</span> ([607bc1], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/607bc1ddbca2c5eaf82302b2226bd7596eae8b50))
13
30
 
14
31
  * update: CHANGELOG.md ([1e5402], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1e5402b30bb754e5f58c5c3ccf70859dd6906f66))
15
32
 
@@ -28,6 +45,7 @@
28
45
  * ## Fixes
29
46
  * <span style='color:red'> Разрешены html теги в колонке "Описание". Related to BFL-13996.</span> ([8a1793], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8a1793a93a87dcb10f92d854d491c31aefcd2563))
30
47
  * <span style='color:red'> TR-69409 исправление проверки значения свойства successMessage в ExecuteCommandPlugin</span> ([b77390], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b77390cabfdbdf3ad837c896b805a4bc7e5e92f3))
48
+ * <span style='color:red'> BFL-15645: catch error on open group if grid has not groups</span> ([e08cf3], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e08cf38c6719d0c2dd2788c66375dd4784e671d5))
31
49
 
32
50
  * ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update Function.js35da450c2734c57db4cc7bd13380f6da400a9a96))
33
51
  * update: CHANGELOG.md ([ad61a8], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ad61a8c449000e7b9ff6e921d39eecd97ddabea2))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.8.7",
7
+ "version": "2.8.8",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -414,10 +414,10 @@ Ext.define('Coon.common.component.editor.CharacteristicGridEditor', {
414
414
  } else {
415
415
  this.getGrouping().collapseAll();
416
416
  }
417
-
417
+ const grouping = this.getGrouping();
418
418
  Ext.each(groupsList, function(type) {
419
- if (type[ns.$groupExpanded]) {
420
- this.getGrouping().expand(type[ns.$groupDescription], false);
419
+ if (type[ns.$groupExpanded] && grouping.getGroup(type[ns.$groupDescription])) {
420
+ grouping.expand(type[ns.$groupDescription], false);
421
421
  }
422
422
  }, this);
423
423
  },
@@ -0,0 +1,41 @@
1
+ Ext.define('Coon.report.component.ClearFiltersButton', {
2
+ extend: 'Ext.button.Button',
3
+ alias: 'widget.ClearFiltersButton',
4
+ cls: 'ClearFiltersButton',
5
+ itemId: 'actionButton',
6
+ position: 998,
7
+ disabled: true,
8
+ focusOnToFront: false,
9
+ focusable: false,
10
+ allowDepress: false,
11
+ iconCls: 'svg-icon svg-icon-filter-alt-off',
12
+ title: 'Сбросить все фильтры',
13
+ toolbar: null,
14
+ grid: null,
15
+ handler() {
16
+ this.grid && this.grid.clearFilters();
17
+ },
18
+ initComponent() {
19
+ this.callParent();
20
+ const fn = (toolbar) => {
21
+ toolbar.show();
22
+ const ReportPanel = toolbar.up('ReportPanel');
23
+ ReportPanel && ReportPanel.grid;
24
+ this.grid = ReportPanel.grid;
25
+ this.grid.getStore().on('filterchange', (store) => {
26
+ this.setDisabled(!store.getFilters().length);
27
+ }, this);
28
+ };
29
+ if (this.toolbar) {
30
+ if (this.toolbar.rendered) {
31
+ fn(this.toolbar);
32
+ } else {
33
+ this.toolbar.on('render', fn, this);
34
+ }
35
+ } else {
36
+ this.on('render', (cmp) => {
37
+ cmp.up('toolbar') && fn(cmp.up('toolbar'));
38
+ }, this);
39
+ }
40
+ },
41
+ });
@@ -0,0 +1,40 @@
1
+ .ClearFiltersButton {
2
+ border: 1px solid #3D6780 !important;
3
+ border-radius: 6px;
4
+ padding: 6px;
5
+ background-color: #FFFFFF;
6
+
7
+
8
+ &.x-btn-over {
9
+ border: 1px solid #3D6780 !important;
10
+ border-radius: 6px;
11
+ padding: 6px;
12
+ background-color: #F5F7FA;
13
+ }
14
+
15
+ &.x-btn-disabled {
16
+ border: 1px solid #A3AAB2 !important;
17
+ border-radius: 6px;
18
+ padding: 6px;
19
+ background-color: #FFFFFF;
20
+ }
21
+
22
+ &.x-btn-disabled .x-btn-icon-el {
23
+ background-color: #A3AAB2;
24
+ }
25
+
26
+ &.x-btn-menu-active {
27
+ border: 1px solid #3D78BF !important;
28
+ background-color: #D8E4F2;
29
+ border-radius: 6px;
30
+ }
31
+ .x-btn-icon-el {
32
+ background-color: rgb(61, 103, 128);
33
+ }
34
+
35
+
36
+ .x-btn-icon-el {
37
+ width: 18px;
38
+ height: 18px;
39
+ }
40
+ }
@@ -493,7 +493,12 @@ Ext.define('Coon.report.component.ReportPanel', {
493
493
  },
494
494
 
495
495
  createTopToolbar(items) {
496
- return this.gridTopToolbar = Ext.create({xtype: 'toolbar', hidden: true, enableOverflow: true, items: [].concat(items || [])});
496
+ return this.gridTopToolbar = Ext.create({xtype: 'toolbar', hidden: true, enableOverflow: true, items: [{
497
+ xtype: 'tbfill',
498
+ position: 997,
499
+ }, {
500
+ xtype: 'ClearFiltersButton',
501
+ }].concat(items || [])});
497
502
  },
498
503
  createBottomToolbar(items) {
499
504
  return this.gridBottomToolbar =Ext.create({xtype: 'toolbar', hidden: true, enableOverflow: true, items: [].concat(items || [])});
@@ -151,5 +151,6 @@ Ext.define('Coon.report.component.settings.ReportFormEditPanelModel', {
151
151
  this.set('report.fields', fields);
152
152
  },
153
153
  },
154
+ plugins: (get) => get('report.plugins'),
154
155
  },
155
156
  });
@@ -32,7 +32,7 @@ Ext.define('Coon.report.component.settings.plugin.ReportFormPluginPanel', {
32
32
  split: true,
33
33
  reference: 'pluginsGrid',
34
34
  bind: {
35
- data: '{report.plugins}',
35
+ data: '{plugins}',
36
36
  },
37
37
  },
38
38
  {
@@ -3,15 +3,18 @@ Ext.define('Coon.report.toolbar.ReportGridToolbar', {
3
3
  xtype: 'ReportGridToolbar',
4
4
  cls: 'ReportGridToolbar',
5
5
  alias: 'widget.ReportGridToolbar',
6
- layout: {
7
- overflowHandler: 'ReportToolbarOverflow',
8
- },
6
+
9
7
  hidden: true,
10
8
  reportToolbarPluginCfg: undefined,
11
9
  userPreferences: {},
12
10
  reportPanel: undefined,
13
11
  newButtons: {},
14
12
  initComponent: function() {
13
+ this.layout = {
14
+ overflowHandler: Ext.create('Coon.report.toolbar.layout.ReportToolbarOverflow', {
15
+ ReportGridToolbar: this,
16
+ }),
17
+ },
15
18
  this.foldItemsContainer = Ext.create({
16
19
  xtype: 'toolbar',
17
20
  hidden: true,
@@ -25,7 +25,9 @@ Ext.define('Coon.report.toolbar.layout.ReportToolbarOverflow', {
25
25
  * @property {Array} buttons
26
26
  * Массив системных кнопок
27
27
  */
28
- me.systemItems = [];
28
+ me.systemItems = [Ext.create('Coon.report.component.ClearFiltersButton', {
29
+ toolbar: this.ReportGridToolbar,
30
+ })];
29
31
  },
30
32
 
31
33
  beginLayout: function(ownerContext) {
@@ -137,7 +139,7 @@ Ext.define('Coon.report.toolbar.layout.ReportToolbarOverflow', {
137
139
  xtype: 'container',
138
140
  itemId: 'systemContainer',
139
141
  layout: 'hbox',
140
- width: 2,
142
+ minWidth: 3,
141
143
  defaults: {
142
144
  style: {
143
145
  marginLeft: '10px',
@@ -216,7 +218,7 @@ Ext.define('Coon.report.toolbar.layout.ReportToolbarOverflow', {
216
218
  return false;
217
219
  }
218
220
  buttons.forEach((button) => {
219
- if (button.xtype !== 'ToolbarOverflowButton') {
221
+ if (button.xtype !== 'ToolbarOverflowButton' && button.itemId !== 'actionButton') {
220
222
  button.position = this.pTypePriority[button.pType] || 0;
221
223
  }
222
224
  });
@@ -245,16 +247,11 @@ Ext.define('Coon.report.toolbar.layout.ReportToolbarOverflow', {
245
247
  const names = me.layout.names;
246
248
  const DEFAULT_BUTTON_WIDTH = 0;
247
249
  const systemButtonsWidth = me.systemItems.reduce((acc, button) => {
248
- // console.log('button width', button.rendered && Ext.isFunction(button.getWidth) ?
249
- // button.getWidth() + 10:
250
- // DEFAULT_BUTTON_WIDTH);
251
250
  acc += button.rendered && Ext.isFunction(button.getWidth) ?
252
251
  button.getWidth() + 10:
253
252
  DEFAULT_BUTTON_WIDTH;
254
253
  return acc;
255
254
  }, 0);
256
- // console.log('buttons width', systemButtonsWidth);
257
- // console.log('menuButton', me.menuButton.getWidth());
258
255
  // console.log('getMargin', systemContainer.el.getMargin(names.parallelMargins));
259
256
  const width = systemButtonsWidth +
260
257
  (me.menuButton.getWidth() || 30) + 20 +
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.8.7',
3
+ number: '2.8.8',
4
4
  });