ru.coon 2.7.24 → 2.7.25

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,12 @@
1
+ # Version 2.7.25, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/568fd6aae3e5756be342c7e74d434b7976700dae)
2
+ * ## Features
3
+ * <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))
4
+ * <span style='color:green'>feat: HT-8513: add copy item in cell context menu</span> ([5c8b74], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/5c8b74e40d74471bd8eb4fa54e82539c136fe088))
5
+ * <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
+ * <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
+
8
+ * update: CHANGELOG.md ([971505], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9715050f4ce08854c84792001dea4c334fd74a0f))
9
+
1
10
  # Version 2.7.24, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8e3cc36a693f048a9feceada5eb46f979eda23db)
2
11
  * ## Features
3
12
  * <span style='color:green'>feat: HT-8422: set dynamic size on filter panel</span> ([e5816e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e5816e9be17f9ca40fad6ba2d86e79318455b633))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.7.24",
7
+ "version": "2.7.25",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -0,0 +1,5 @@
1
+ Ext.define('Coon.common.field.checkbox.RoundCheckbox', {
2
+ extend: 'Ext.form.field.Checkbox',
3
+ cls: 'RoundCheckbox',
4
+ xtype: ['roundcheckbox', 'RoundCheckbox'],
5
+ });
@@ -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
+ }
@@ -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
+ });
@@ -15,7 +15,7 @@ Ext.define('Coon.nav.windowHolder', {
15
15
 
16
16
  getFooter() {
17
17
  if (!this.locals.footer) {
18
- this.locals.footer = Ext.ComponentQuery.query('footerview')[0];
18
+ this.locals.footer = Ext.ComponentQuery.query('[reference="footerview"]')[0];
19
19
  }
20
20
  return this.locals.footer;
21
21
  },
@@ -777,10 +777,25 @@ Ext.define('Coon.report.component.ReportPanel', {
777
777
  this.getIsTree() ? 'ReportTree' : 'ReportGrid',
778
778
  Ext.apply(defaultGridConfig, this.gridProperties, {reportId: reportBean[ns.$reportId]})
779
779
  );
780
+
781
+ if (widget.contextMenu) {
782
+ const copyButton = new Ext.menu.Item({
783
+ text: 'Копировать',
784
+ handler: this.onCopyCellClick.bind(widget.contextMenu),
785
+ });
786
+ widget.contextMenu.add(copyButton);
787
+ widget.contextMenu.on('requestMenuItems', (params) => {
788
+ copyButton.setHidden(!params.td);
789
+ }, this);
790
+ }
780
791
  widget.on('buttonIsAdded', this.sortButtons, this);
781
792
  return widget;
782
793
  },
783
-
794
+ onCopyCellClick() {
795
+ if (this.context && this.context.td) {
796
+ Coon.util.copyToClipboard(this.context.td.innerText);
797
+ }
798
+ },
784
799
  sortButtons: function(params) {
785
800
  if (params.bar.items.length === 1) {
786
801
  return;
@@ -0,0 +1,7 @@
1
+ **спецификация:**
2
+
3
+ входные параметры:
4
+
5
+ - exportFileFormat [xls/pdf]
6
+ - allowUserSelectColumnsToUpload
7
+ - addToSearchButton добавить в кнопку "поиск", в этом случае в качестве параметра отправляем текущие параметры из FilterPanel(useRawFilterParams: true)
@@ -96,6 +96,7 @@ Ext.define('Coon.report.plugin.grid.GridContextMenu', {
96
96
  if (record) {
97
97
  contextMenu.record = record;
98
98
  }
99
+ contextMenu.context = {view, td, cellIndex, record, tr, rowIndex, event},
99
100
  cellIndex && (contextMenu.cellIndex = cellIndex);
100
101
  const store = this.grid.getStore();
101
102
  let params;
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.7.24',
3
+ number: '2.7.25',
4
4
  });