ru.coon 2.7.47 → 2.7.48

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 +6 -0
  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/ringBuffer.js +36 -0
  75. package/src/security/component/RoleFileUploadForm.scss +4 -4
  76. package/src/security/component/ui/UiCPRestrictionEditor.scss +4 -4
  77. package/src/security/securitySettingComponent/RoleEditPanel.scss +16 -16
  78. package/src/uielement/component/MenuItemList.scss +35 -35
  79. package/src/uielement/component/UiCustomController.js +20 -2
  80. package/src/uielement/component/UiCustomPanel.js +19 -1
  81. package/src/uielement/component/UiCustomPanelTraceWindow.js +81 -0
  82. package/src/uielement/component/formchips/FilterConditionToolbar.scss +74 -74
  83. package/src/uielement/component/settings/UiAceEditor.js +1 -0
  84. package/src/uielement/component/settings/UiCustomPanelEditor.scss +9 -9
  85. package/src/uielement/component/settings/config/UiCPConfigPanelController.scss +24 -24
  86. package/src/uielement/component/settings/plugin/UiCustomPanelPluginGrid.scss +11 -11
  87. package/src/uielement/component/settings/plugin/UiCustomPanelPluginPanel.scss +30 -30
  88. package/src/uielement/component/settings/version/UiCPVersionPanel.scss +15 -15
  89. package/src/uielement/plugin/AddBindingsPlugin.js +4 -1
  90. package/src/uielement/plugin/AddDoInitSupportPlugin.js +4 -1
  91. package/src/uielement/plugin/CustomPanelPlugin.js +39 -3
  92. package/src/uielement/plugin/ExecuteCommandPlugin.js +4 -1
  93. package/src/uielement/plugin/ExecuteFunctionPlugin.js +10 -3
  94. package/src/uielement/plugin/FireEventPlugin.js +4 -1
  95. package/src/uielement/plugin/MethodChainPlugin.js +4 -1
  96. package/src/uielement/plugin/OpenPanelPlugin.js +4 -1
  97. package/src/uielement/plugin/PrintPdfPlugin.js +4 -1
  98. package/src/uielement/plugin/configPanel/AddBindingsPluginConfigPanelFormEditor.scss +29 -29
  99. package/src/uielement/plugin/configPanel/executeCommand/ExecuteCommandPluginConfigPanelFormEditor.scss +22 -22
  100. package/src/util.js +24 -3
@@ -1,29 +1,29 @@
1
- .ace-editor-content .x-grid-cell-inner {
2
- overflow: auto;
3
- white-space: pre-wrap;
4
- }
5
-
6
- .middle-align-elem{
7
- vertical-align: middle;
8
- }
9
-
10
- .is-used-action{
11
- background-color: #ddfdd2;
12
- color: #111 !important;
13
- }
14
-
15
- .not-in-list-action{
16
- cursor: pointer;
17
- color: rgba(243, 173, 22, 0.89);
18
- float:right;
19
- width:18px;
20
- height: 20px;
21
- }
22
-
23
- .already-exists-in-list-action{
24
- cursor: pointer;
25
- color: rgba(231, 70, 70, 0.91);
26
- float:right;
27
- width:18px;
28
- height: 20px;
29
- }
1
+ .ace-editor-content .x-grid-cell-inner {
2
+ overflow: auto;
3
+ white-space: pre-wrap;
4
+ }
5
+
6
+ .middle-align-elem{
7
+ vertical-align: middle;
8
+ }
9
+
10
+ .is-used-action{
11
+ background-color: #ddfdd2;
12
+ color: #111 !important;
13
+ }
14
+
15
+ .not-in-list-action{
16
+ cursor: pointer;
17
+ color: rgba(243, 173, 22, 0.89);
18
+ float:right;
19
+ width:18px;
20
+ height: 20px;
21
+ }
22
+
23
+ .already-exists-in-list-action{
24
+ cursor: pointer;
25
+ color: rgba(231, 70, 70, 0.91);
26
+ float:right;
27
+ width:18px;
28
+ height: 20px;
29
+ }
@@ -1,22 +1,22 @@
1
- .ExecuteCommandPluginConfigPanelFormEditor {
2
- $required-flag-color: dynamic(#bf1313);
3
- font-size: 12px;
4
- margin: 5px;
5
- .required-flag {
6
- font-size: 18px;
7
- color: $required-flag-color;
8
- }
9
- span.code {
10
- color: green;
11
- font-family: "Lucida Console", "Courier New", monospace;
12
- }
13
- .x-form-trigger-default.helpicon {
14
- background-color: white;
15
- }
16
-
17
- .wrong-parameters {
18
- color: green;
19
- font-style: italic;
20
- font-family: "Lucida Console", "Courier New", monospace;
21
- }
22
- }
1
+ .ExecuteCommandPluginConfigPanelFormEditor {
2
+ $required-flag-color: dynamic(#bf1313);
3
+ font-size: 12px;
4
+ margin: 5px;
5
+ .required-flag {
6
+ font-size: 18px;
7
+ color: $required-flag-color;
8
+ }
9
+ span.code {
10
+ color: green;
11
+ font-family: "Lucida Console", "Courier New", monospace;
12
+ }
13
+ .x-form-trigger-default.helpicon {
14
+ background-color: white;
15
+ }
16
+
17
+ .wrong-parameters {
18
+ color: green;
19
+ font-style: italic;
20
+ font-family: "Lucida Console", "Courier New", monospace;
21
+ }
22
+ }
package/src/util.js CHANGED
@@ -534,7 +534,21 @@ Ext.define('Coon.util', {
534
534
 
535
535
  isTypeIn(data, types) {
536
536
  return Array.isArray(types) &&
537
- types.included(Coon.util.typeOf(data));
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
+ }
538
552
  },
539
553
 
540
554
  typeEqual(src, dst) {
@@ -629,14 +643,21 @@ Ext.define('Coon.util', {
629
643
  * @param {*} scope context
630
644
  * @returns
631
645
  */
632
- bindMethods(methods, from, to, scope) {
646
+ bindMethods(methods, from, to, scope, force) {
647
+ if (typeof methods === 'string') {
648
+ methods = [methods];
649
+ }
633
650
  if (!Array.isArray(methods) || !Ext.isObject(from) || !Ext.isObject(to)) {
634
651
  return;
635
652
  }
636
653
  methods.forEach((name) => {
637
654
  const method = from[name];
638
655
  if (typeof method === 'function') {
639
- to[name] = method.bind(scope || from);
656
+ if (force) {
657
+ to[name] = method.bind(scope || from);
658
+ } else if (!to[name]) {
659
+ to[name] = method.bind(scope || from);
660
+ }
640
661
  }
641
662
  });
642
663
  },