ru.coon 2.7.46 → 2.7.47

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 (100) hide show
  1. package/.gitattributes +1 -1
  2. package/.husky/pre-commit +4 -4
  3. package/.lintstagedrc.json +2 -2
  4. package/CHANGELOG.md +8 -3
  5. package/Readme.md +24 -24
  6. package/TODO.md +7 -7
  7. package/doc/changelog.md +118 -118
  8. package/doc/shortcuts.md +5 -5
  9. package/jsdoc.config.json +29 -29
  10. package/package.json +78 -78
  11. package/sass/src/common/plugin/form/PeriodPicker.scss +8 -8
  12. package/src/Function.scss +4 -4
  13. package/src/app/viewPort/Main.scss +133 -133
  14. package/src/command/Readme.md +4 -4
  15. package/src/common/component/ColorPalette.scss +102 -102
  16. package/src/common/component/ExternalFrame.scss +8 -8
  17. package/src/common/component/HotkeyHelpText.scss +34 -34
  18. package/src/common/component/TreeComponentStructure.scss +5 -5
  19. package/src/common/component/editor/CharacteristicGridEditor.scss +66 -66
  20. package/src/common/component/editor/TypedCharacteristicEditor.scss +7 -7
  21. package/src/common/component/formeditor/UiCustomFilterForm.scss +7 -7
  22. package/src/common/component/formeditor/UiCustomFormEditor.scss +42 -42
  23. package/src/common/component/visualeditor/UiCPVisualEditor.scss +108 -108
  24. package/src/common/field/EditorJs.scss +41 -41
  25. package/src/common/field/FieldsHelper.js +0 -0
  26. package/src/common/field/ReportValueField.scss +2 -2
  27. package/src/common/field/combo/CommandComboBox.scss +19 -19
  28. package/src/common/panel/DayPicker.scss +15 -15
  29. package/src/common/panel/MainUploadPanel.scss +13 -13
  30. package/src/common/panel/SelectIconClassPanel.scss +38 -38
  31. package/src/common/panel/SelectIconClassPanelTemplate.scss +14 -14
  32. package/src/common/panel/WindowWrap.js +0 -0
  33. package/src/common/panel/WindowWrap.scss +8 -8
  34. package/src/common/panel/dropzone/UniversalMultiUploadForm.scss +29 -29
  35. package/src/common/panel/dropzone/UploadDropZone.scss +36 -36
  36. package/src/common/panel/widget/WidgetPanel.scss +157 -157
  37. package/src/info.scss +12 -12
  38. package/src/nav/AppNavTab.scss +20 -20
  39. package/src/nav/AppNavigationBar.scss +9 -9
  40. package/src/nav/AppNavigationMenu.scss +60 -60
  41. package/src/nav/AppNavigationToggleButton.scss +6 -6
  42. package/src/nav/editor/menu/NavMenuTreeView.scss +104 -104
  43. package/src/nav/editor/workspace/NavWorkspaceListView.scss +35 -35
  44. package/src/nav/menu/NavMenuPanel.scss +11 -11
  45. package/src/nav/menu/WorkspaceMenuView.scss +218 -218
  46. package/src/nav/windowHolderTab.scss +13 -13
  47. package/src/report/column/MultiFilesColumn.scss +8 -8
  48. package/src/report/component/BoundListPagingToolbar.scss +7 -7
  49. package/src/report/component/ErrorWindow.scss +15 -15
  50. package/src/report/component/ParameterizedReportCombo.scss +85 -85
  51. package/src/report/component/ReportPanel.scss +69 -69
  52. package/src/report/component/SimpleReportTag.scss +22 -22
  53. package/src/report/component/reportpanel/CopyReportPanel.scss +14 -14
  54. package/src/report/component/reportpanel/FilterPanel.scss +16 -16
  55. package/src/report/component/reportpanel/FilterPanelLegend.scss +23 -23
  56. package/src/report/component/reportpanel/NorthPanel.scss +18 -18
  57. package/src/report/component/reportpanel/ReportGrid.scss +37 -37
  58. package/src/report/component/settings/ReportFormEditPanel.scss +87 -87
  59. package/src/report/component/settings/ReportPropertiesGrid.scss +25 -25
  60. package/src/report/component/settings/field/ReportFormFieldsGrid.scss +5 -5
  61. package/src/report/component/settings/property/ReportPropertiesPanel.scss +12 -12
  62. package/src/report/plugin/SettingsManagerPlugin/view/SMPMainView.scss +3 -3
  63. package/src/report/plugin/configPanel/AddFilterConditionPluginConfigPanel.scss +53 -53
  64. package/src/report/plugin/configPanel/ExecuteCommandButtonPluginConfigPanel.scss +5 -5
  65. package/src/report/plugin/configPanel/GroupRowsPluginConfigPanel.scss +3 -3
  66. package/src/report/plugin/configPanel/UiAceEditorField.scss +20 -20
  67. package/src/report/plugin/configPanel/common/pluginDescriptionLabel.scss +8 -8
  68. package/src/report/plugin/grid/CopyRowsFromGrid.js +1 -1
  69. package/src/report/plugin/grid/GridRowStylePlugin.scss +56 -56
  70. package/src/report/plugin/grid/ReportTabContainerPlugin.scss +3 -3
  71. package/src/report/plugin/grid/ToggleColumnsPlugin.scss +7 -7
  72. package/src/report/plugin/grid/ToolbarButtonPlugin.scss +3 -3
  73. package/src/research/ResearchTreeView.scss +19 -19
  74. package/src/security/component/RoleFileUploadForm.scss +4 -4
  75. package/src/security/component/ui/UiCPRestrictionEditor.scss +4 -4
  76. package/src/security/securitySettingComponent/RoleEditPanel.scss +16 -16
  77. package/src/uielement/component/MenuItemList.scss +35 -35
  78. package/src/uielement/component/UiCustomController.js +2 -20
  79. package/src/uielement/component/UiCustomPanel.js +1 -19
  80. package/src/uielement/component/formchips/FilterConditionToolbar.scss +74 -74
  81. package/src/uielement/component/settings/UiCustomPanelEditor.scss +9 -9
  82. package/src/uielement/component/settings/config/UiCPConfigPanelController.scss +24 -24
  83. package/src/uielement/component/settings/plugin/UiCustomPanelPluginGrid.scss +11 -11
  84. package/src/uielement/component/settings/plugin/UiCustomPanelPluginPanel.scss +30 -30
  85. package/src/uielement/component/settings/version/UiCPVersionPanel.scss +15 -15
  86. package/src/uielement/plugin/AddBindingsPlugin.js +1 -4
  87. package/src/uielement/plugin/AddDoInitSupportPlugin.js +1 -4
  88. package/src/uielement/plugin/CustomPanelPlugin.js +3 -41
  89. package/src/uielement/plugin/ExecuteCommandPlugin.js +1 -4
  90. package/src/uielement/plugin/ExecuteFunctionPlugin.js +3 -10
  91. package/src/uielement/plugin/FireEventPlugin.js +1 -4
  92. package/src/uielement/plugin/MethodChainPlugin.js +1 -4
  93. package/src/uielement/plugin/OpenPanelPlugin.js +1 -4
  94. package/src/uielement/plugin/PrintPdfPlugin.js +1 -4
  95. package/src/uielement/plugin/configPanel/AddBindingsPluginConfigPanelFormEditor.scss +29 -29
  96. package/src/uielement/plugin/configPanel/executeCommand/ExecuteCommandPluginConfigPanelFormEditor.scss +22 -22
  97. package/src/util.js +3 -24
  98. package/src/version.js +1 -1
  99. package/src/ringBuffer.js +0 -36
  100. package/src/uielement/component/UiCustomPanelTraceWindow.js +0 -50
package/src/util.js CHANGED
@@ -534,21 +534,7 @@ Ext.define('Coon.util', {
534
534
 
535
535
  isTypeIn(data, types) {
536
536
  return Array.isArray(types) &&
537
- types.includes(Coon.util.typeOf(data));
538
- },
539
-
540
- runIfTypeIn(data, types, trueFn, falseFn) {
541
- if (Coon.util.isTypeIn(data, types)) {
542
- if (typeof trueFn === 'function') {
543
- return trueFn(data);
544
- } else {
545
- return data;
546
- }
547
- } else {
548
- if (typeof falseFn === 'function') {
549
- return falseFn(data);
550
- }
551
- }
537
+ types.included(Coon.util.typeOf(data));
552
538
  },
553
539
 
554
540
  typeEqual(src, dst) {
@@ -643,21 +629,14 @@ Ext.define('Coon.util', {
643
629
  * @param {*} scope context
644
630
  * @returns
645
631
  */
646
- bindMethods(methods, from, to, scope, force) {
647
- if (typeof methods === 'string') {
648
- methods = [methods];
649
- }
632
+ bindMethods(methods, from, to, scope) {
650
633
  if (!Array.isArray(methods) || !Ext.isObject(from) || !Ext.isObject(to)) {
651
634
  return;
652
635
  }
653
636
  methods.forEach((name) => {
654
637
  const method = from[name];
655
638
  if (typeof method === 'function') {
656
- if (force) {
657
- to[name] = method.bind(scope || from);
658
- } else if (!to[name]) {
659
- to[name] = method.bind(scope || from);
660
- }
639
+ to[name] = method.bind(scope || from);
661
640
  }
662
641
  });
663
642
  },
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.7.46',
3
+ number: '2.7.47',
4
4
  });
package/src/ringBuffer.js DELETED
@@ -1,36 +0,0 @@
1
- Ext.define('Coon.ringBuffer', {
2
- statics: {
3
- maxLength: 2000,
4
- },
5
-
6
- constructor(cfg) {
7
- const buffer = [];
8
- let cursor = 0;
9
- this.getLength = () => (cfg.length || this.self.maxLength) - 1;
10
- this.getBuffer = () => buffer;
11
- this.getCursor = () => cursor;
12
- this.advanceCursor = () => {
13
- if (cursor < this.getLength()) {
14
- cursor += 1;
15
- } else {
16
- cursor = 0;
17
- }
18
- return cursor;
19
- };
20
- Ext.apply(this, cfg);
21
- },
22
-
23
- push(el) {
24
- this.getBuffer()[this.getCursor()] = {el, idx: Date.now()};
25
- this.advanceCursor();
26
- return this;
27
- },
28
-
29
- get() {
30
- return this.getBuffer().sort((a, b) => a.idx - b.idx);
31
- },
32
-
33
- getElements() {
34
- return this.get().map(({el, idx}) => Object.assign(el, {time: new Date(idx)}));
35
- },
36
- });
@@ -1,50 +0,0 @@
1
- Ext.define('Coon.uielement.component.UiCustomPanelTraceWindow', {
2
- extend: 'Ext.window.Window',
3
-
4
- xtype: 'UiCustomPanelTraceWindow',
5
-
6
- title: 'трассировка выполнения плагинов',
7
-
8
- scrollable: 'y',
9
-
10
- width: 800,
11
- height: 600,
12
- modal: true,
13
- maximizable: true,
14
- layout: 'fit',
15
-
16
- items: [
17
- {
18
- xtype: 'grid',
19
- store: {
20
- type: 'json',
21
- },
22
- columns: [
23
- {xtype: 'datecolumn', dataIndex: 'time', text: 'время', flex: 1, format: 'h:m:s.u'},
24
- {dataIndex: 'ptype', text: 'плагин', flex: 1},
25
- {dataIndex: 'handlerName', text: 'название обработчика', flex: 1},
26
- {
27
- dataIndex: 'args',
28
- text: 'args',
29
- flex: 1,
30
- renderer(args) {
31
- return Array.isArray(args) && args.map((arg) => Coon.util.runIfTypeIn(
32
- arg,
33
- ['boolean', 'string', 'integer'],
34
- () => arg,
35
- Coon.util.typeOf
36
- )).join('<br />') || 'empty';
37
- },
38
- }
39
- ],
40
- }
41
- ],
42
-
43
- isTraceEnabled(scope) {
44
- return Boolean(
45
- scope &&
46
- typeof scope.isTracePluginsEnabled === 'function' ||
47
- scope.isTracePluginsEnabled()
48
- );
49
- },
50
- });