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.
- package/CHANGELOG.md +11 -0
- package/index.js +0 -1
- package/package.json +1 -1
- package/src/Function.js +1 -1
- package/src/common/component/formeditor/UiCFCard.js +86 -0
- package/src/common/component/formeditor/UiCFCardsGrid.js +69 -0
- package/src/common/component/formeditor/UiCFCell.js +12 -0
- package/src/common/component/formeditor/UiCFCellController.js +236 -0
- package/src/common/component/formeditor/UiCFCheckboxGroup.js +53 -0
- package/src/common/component/formeditor/UiCFContainer.js +15 -0
- package/src/common/component/formeditor/UiCFContainerController.js +217 -0
- package/src/common/component/formeditor/UiCFFieldsConfig.js +342 -0
- package/src/common/component/formeditor/UiCFRadioGrid.js +70 -0
- package/src/common/component/formeditor/UiCFRadioGroup.js +53 -0
- package/src/common/component/formeditor/UiCFReportField.js +48 -0
- package/src/common/component/formeditor/UiCFRow.js +13 -0
- package/src/common/component/formeditor/UiCFRowController.js +155 -0
- package/src/common/component/formeditor/UiCFSegmentedButton.js +62 -0
- package/src/common/component/formeditor/UiCFSegmentedButtonGrid.js +70 -0
- package/src/common/component/formeditor/UiCFSettingsWindow.js +62 -0
- package/src/common/component/formeditor/UiCFSpacer.js +8 -0
- package/src/common/component/formeditor/UiCFTab.js +51 -0
- package/src/common/component/formeditor/UiCustomForm.js +33 -0
- package/src/common/component/formeditor/UiCustomFormController.js +6 -0
- package/src/common/component/formeditor/UiCustomFormEditor.js +191 -0
- package/src/common/component/formeditor/UiCustomFormEditor.scss +13 -0
- package/src/common/component/formeditor/UiCustomFormEditorController.js +654 -0
- package/src/common/component/formeditor/UiCustomFormEditorView.js +7 -0
- package/src/report/component/settings/plugin/ReportFormPluginPanelController.js +1 -1
- package/src/report/plugin/grid/ReportColumnStatePlugin.js +18 -2
- 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