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.
- package/.gitattributes +1 -1
- package/.husky/pre-commit +4 -4
- package/.lintstagedrc.json +2 -2
- package/CHANGELOG.md +8 -3
- package/Readme.md +24 -24
- package/TODO.md +7 -7
- package/doc/changelog.md +118 -118
- package/doc/shortcuts.md +5 -5
- package/jsdoc.config.json +29 -29
- package/package.json +78 -78
- package/sass/src/common/plugin/form/PeriodPicker.scss +8 -8
- package/src/Function.scss +4 -4
- package/src/app/viewPort/Main.scss +133 -133
- package/src/command/Readme.md +4 -4
- package/src/common/component/ColorPalette.scss +102 -102
- package/src/common/component/ExternalFrame.scss +8 -8
- package/src/common/component/HotkeyHelpText.scss +34 -34
- package/src/common/component/TreeComponentStructure.scss +5 -5
- package/src/common/component/editor/CharacteristicGridEditor.scss +66 -66
- package/src/common/component/editor/TypedCharacteristicEditor.scss +7 -7
- package/src/common/component/formeditor/UiCustomFilterForm.scss +7 -7
- package/src/common/component/formeditor/UiCustomFormEditor.scss +42 -42
- package/src/common/component/visualeditor/UiCPVisualEditor.scss +108 -108
- package/src/common/field/EditorJs.scss +41 -41
- package/src/common/field/FieldsHelper.js +0 -0
- package/src/common/field/ReportValueField.scss +2 -2
- package/src/common/field/combo/CommandComboBox.scss +19 -19
- package/src/common/panel/DayPicker.scss +15 -15
- package/src/common/panel/MainUploadPanel.scss +13 -13
- package/src/common/panel/SelectIconClassPanel.scss +38 -38
- package/src/common/panel/SelectIconClassPanelTemplate.scss +14 -14
- package/src/common/panel/WindowWrap.js +0 -0
- package/src/common/panel/WindowWrap.scss +8 -8
- package/src/common/panel/dropzone/UniversalMultiUploadForm.scss +29 -29
- package/src/common/panel/dropzone/UploadDropZone.scss +36 -36
- package/src/common/panel/widget/WidgetPanel.scss +157 -157
- package/src/info.scss +12 -12
- package/src/nav/AppNavTab.scss +20 -20
- package/src/nav/AppNavigationBar.scss +9 -9
- package/src/nav/AppNavigationMenu.scss +60 -60
- package/src/nav/AppNavigationToggleButton.scss +6 -6
- package/src/nav/editor/menu/NavMenuTreeView.scss +104 -104
- package/src/nav/editor/workspace/NavWorkspaceListView.scss +35 -35
- package/src/nav/menu/NavMenuPanel.scss +11 -11
- package/src/nav/menu/WorkspaceMenuView.scss +218 -218
- package/src/nav/windowHolderTab.scss +13 -13
- package/src/report/column/MultiFilesColumn.scss +8 -8
- package/src/report/component/BoundListPagingToolbar.scss +7 -7
- package/src/report/component/ErrorWindow.scss +15 -15
- package/src/report/component/ParameterizedReportCombo.scss +85 -85
- package/src/report/component/ReportPanel.scss +69 -69
- package/src/report/component/SimpleReportTag.scss +22 -22
- package/src/report/component/reportpanel/CopyReportPanel.scss +14 -14
- package/src/report/component/reportpanel/FilterPanel.scss +16 -16
- package/src/report/component/reportpanel/FilterPanelLegend.scss +23 -23
- package/src/report/component/reportpanel/NorthPanel.scss +18 -18
- package/src/report/component/reportpanel/ReportGrid.scss +37 -37
- package/src/report/component/settings/ReportFormEditPanel.scss +87 -87
- package/src/report/component/settings/ReportPropertiesGrid.scss +25 -25
- package/src/report/component/settings/field/ReportFormFieldsGrid.scss +5 -5
- package/src/report/component/settings/property/ReportPropertiesPanel.scss +12 -12
- package/src/report/plugin/SettingsManagerPlugin/view/SMPMainView.scss +3 -3
- package/src/report/plugin/configPanel/AddFilterConditionPluginConfigPanel.scss +53 -53
- package/src/report/plugin/configPanel/ExecuteCommandButtonPluginConfigPanel.scss +5 -5
- package/src/report/plugin/configPanel/GroupRowsPluginConfigPanel.scss +3 -3
- package/src/report/plugin/configPanel/UiAceEditorField.scss +20 -20
- package/src/report/plugin/configPanel/common/pluginDescriptionLabel.scss +8 -8
- package/src/report/plugin/grid/CopyRowsFromGrid.js +1 -1
- package/src/report/plugin/grid/GridRowStylePlugin.scss +56 -56
- package/src/report/plugin/grid/ReportTabContainerPlugin.scss +3 -3
- package/src/report/plugin/grid/ToggleColumnsPlugin.scss +7 -7
- package/src/report/plugin/grid/ToolbarButtonPlugin.scss +3 -3
- package/src/research/ResearchTreeView.scss +19 -19
- package/src/security/component/RoleFileUploadForm.scss +4 -4
- package/src/security/component/ui/UiCPRestrictionEditor.scss +4 -4
- package/src/security/securitySettingComponent/RoleEditPanel.scss +16 -16
- package/src/uielement/component/MenuItemList.scss +35 -35
- package/src/uielement/component/UiCustomController.js +2 -20
- package/src/uielement/component/UiCustomPanel.js +1 -19
- package/src/uielement/component/formchips/FilterConditionToolbar.scss +74 -74
- package/src/uielement/component/settings/UiCustomPanelEditor.scss +9 -9
- package/src/uielement/component/settings/config/UiCPConfigPanelController.scss +24 -24
- package/src/uielement/component/settings/plugin/UiCustomPanelPluginGrid.scss +11 -11
- package/src/uielement/component/settings/plugin/UiCustomPanelPluginPanel.scss +30 -30
- package/src/uielement/component/settings/version/UiCPVersionPanel.scss +15 -15
- package/src/uielement/plugin/AddBindingsPlugin.js +1 -4
- package/src/uielement/plugin/AddDoInitSupportPlugin.js +1 -4
- package/src/uielement/plugin/CustomPanelPlugin.js +3 -41
- package/src/uielement/plugin/ExecuteCommandPlugin.js +1 -4
- package/src/uielement/plugin/ExecuteFunctionPlugin.js +3 -10
- package/src/uielement/plugin/FireEventPlugin.js +1 -4
- package/src/uielement/plugin/MethodChainPlugin.js +1 -4
- package/src/uielement/plugin/OpenPanelPlugin.js +1 -4
- package/src/uielement/plugin/PrintPdfPlugin.js +1 -4
- package/src/uielement/plugin/configPanel/AddBindingsPluginConfigPanelFormEditor.scss +29 -29
- package/src/uielement/plugin/configPanel/executeCommand/ExecuteCommandPluginConfigPanelFormEditor.scss +22 -22
- package/src/util.js +3 -24
- package/src/version.js +1 -1
- package/src/ringBuffer.js +0 -36
- 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.
|
|
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
|
|
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
|
-
|
|
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
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
|
-
});
|