ru.coon 2.6.6 → 2.6.7

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/index.js +0 -1
  3. package/package.json +1 -1
  4. package/src/Function.js +1 -1
  5. package/src/common/component/formeditor/UiCFCard.js +86 -0
  6. package/src/common/component/formeditor/UiCFCardsGrid.js +69 -0
  7. package/src/common/component/formeditor/UiCFCell.js +12 -0
  8. package/src/common/component/formeditor/UiCFCellController.js +236 -0
  9. package/src/common/component/formeditor/UiCFCheckboxGroup.js +53 -0
  10. package/src/common/component/formeditor/UiCFContainer.js +15 -0
  11. package/src/common/component/formeditor/UiCFContainerController.js +217 -0
  12. package/src/common/component/formeditor/UiCFFieldsConfig.js +342 -0
  13. package/src/common/component/formeditor/UiCFRadioGrid.js +70 -0
  14. package/src/common/component/formeditor/UiCFRadioGroup.js +53 -0
  15. package/src/common/component/formeditor/UiCFReportField.js +48 -0
  16. package/src/common/component/formeditor/UiCFRow.js +13 -0
  17. package/src/common/component/formeditor/UiCFRowController.js +155 -0
  18. package/src/common/component/formeditor/UiCFSegmentedButton.js +62 -0
  19. package/src/common/component/formeditor/UiCFSegmentedButtonGrid.js +70 -0
  20. package/src/common/component/formeditor/UiCFSettingsWindow.js +62 -0
  21. package/src/common/component/formeditor/UiCFSpacer.js +8 -0
  22. package/src/common/component/formeditor/UiCFTab.js +51 -0
  23. package/src/common/component/formeditor/UiCustomForm.js +33 -0
  24. package/src/common/component/formeditor/UiCustomFormController.js +6 -0
  25. package/src/common/component/formeditor/UiCustomFormEditor.js +191 -0
  26. package/src/common/component/formeditor/UiCustomFormEditor.scss +13 -0
  27. package/src/common/component/formeditor/UiCustomFormEditorController.js +654 -0
  28. package/src/common/component/formeditor/UiCustomFormEditorView.js +7 -0
  29. package/src/report/component/settings/plugin/ReportFormPluginPanelController.js +1 -1
  30. package/src/report/plugin/grid/ReportColumnStatePlugin.js +18 -2
  31. package/src/version.js +1 -1
@@ -20,7 +20,7 @@ Ext.define('Coon.report.plugin.grid.ReportColumnStatePlugin', {
20
20
  if (this.report.getEnableAutoSize) {
21
21
  Coon.log.log('To disable automatic column size, you need to set the enableAutoSize property of the report to "false"');
22
22
  };
23
-
23
+ this.checkEnableAutoSize();
24
24
  this.applySavedState();
25
25
 
26
26
  const events = ['columnmove', 'columnhide', 'columnshow', 'columnresize'];
@@ -28,7 +28,22 @@ Ext.define('Coon.report.plugin.grid.ReportColumnStatePlugin', {
28
28
  this.grid.on(e, this.columnInteractionHandler, this);
29
29
  }.bind(this));
30
30
  },
31
-
31
+ checkEnableAutoSize() {
32
+ if (this.grid.getEnableAutoSize() === true) {
33
+ const savedState = localStorage.getItem('reportsState');
34
+ let deserializedState; let currentReportState;
35
+ try {
36
+ deserializedState = JSON.parse(savedState);
37
+ currentReportState = deserializedState[this.report.reportId];
38
+ } catch (e) {
39
+ Coon.log.log('Incorrect JSON state');
40
+ return;
41
+ }
42
+ if (currentReportState) {
43
+ this.grid.setEnableAutoSize(false);
44
+ }
45
+ }
46
+ },
32
47
  columnInteractionHandler(_, col) {
33
48
  const currentState = [];
34
49
  const columns = this.grid.getColumns();
@@ -88,5 +103,6 @@ Ext.define('Coon.report.plugin.grid.ReportColumnStatePlugin', {
88
103
  localStorage.removeItem('reportsState');
89
104
  const newState = JSON.stringify(Object.assign({}, oldState, state));
90
105
  localStorage.setItem('reportsState', newState);
106
+ this.checkEnableAutoSize();
91
107
  },
92
108
  });
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.6.6',
3
+ number: '2.6.7',
4
4
  });