ru.coon 2.7.67 → 2.7.69
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 +13 -0
- 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/StopwatchWindow.scss +44 -44
- package/src/common/panel/UniversalUploadResults.scss +40 -40
- 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/ReportCustomPluginPropertiesGrid.js +18 -9
- 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/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/report/toolbar/ButtonsByType.scss +168 -168
- package/src/report/toolbar/ReportGridToolbar.scss +9 -9
- package/src/report/toolbar/dropdown/ToolbarConfigurationPanel.scss +13 -13
- package/src/report/toolbar/dropdown/ToolbarOverflowButton.scss +94 -94
- package/src/report/toolbar/dropdown/ToolbarOverflowPanel.scss +37 -37
- package/src/research/ResearchTreeView.scss +19 -19
- package/src/security/PropertyDataParser.js +3 -0
- 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/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/ExecuteCommandPlugin.js +3 -1
- package/src/uielement/plugin/configPanel/AddBindingsPluginConfigPanelFormEditor.scss +29 -29
- package/src/uielement/plugin/configPanel/executeCommand/ExecuteCommandPluginConfigPanelFormEditor.js +102 -20
- package/src/uielement/plugin/configPanel/executeCommand/ExecuteCommandPluginConfigPanelFormEditor.scss +21 -22
- package/src/version.js +1 -1
package/src/uielement/plugin/configPanel/executeCommand/ExecuteCommandPluginConfigPanelFormEditor.js
CHANGED
|
@@ -92,6 +92,9 @@ Ext.define('Coon.uielement.plugin.configPanel.executeCommand.ExecuteCommandPlugi
|
|
|
92
92
|
commandProperties && this.lookup('reportPropertiesGrid').setData(
|
|
93
93
|
this.convertProperties(commandProperties)
|
|
94
94
|
);
|
|
95
|
+
if (typeof config.successMessage !== 'string' && config.successMessage) {
|
|
96
|
+
config.successMessage = 'alert';
|
|
97
|
+
}
|
|
95
98
|
this.getViewModel().set('description', this.description);
|
|
96
99
|
for (const parameterName in config) {
|
|
97
100
|
if (!config.hasOwnProperty(parameterName) || parameterName === 'ptype') {
|
|
@@ -265,29 +268,74 @@ Ext.define('Coon.uielement.plugin.configPanel.executeCommand.ExecuteCommandPlugi
|
|
|
265
268
|
align: 'stretch',
|
|
266
269
|
},
|
|
267
270
|
scrollable: true,
|
|
271
|
+
defaults: {
|
|
272
|
+
margin: 4,
|
|
273
|
+
},
|
|
268
274
|
items: [
|
|
269
275
|
{
|
|
270
|
-
xtype: '
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
xtype: 'textfield',
|
|
278
|
-
fieldLabel: 'successText',
|
|
279
|
-
bind: {
|
|
280
|
-
value: '{successText}',
|
|
281
|
-
visible: '{successMessage}',
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
xtype: 'textfield',
|
|
286
|
-
fieldLabel: 'successTitle',
|
|
287
|
-
bind: {
|
|
288
|
-
value: '{successTitle}',
|
|
289
|
-
visible: '{successMessage}',
|
|
276
|
+
xtype: 'fieldset',
|
|
277
|
+
title: 'Выводить сообщение об успешном выполнении',
|
|
278
|
+
layout: {type: 'vbox', align: 'stretch'},
|
|
279
|
+
defaults: {
|
|
280
|
+
margin: 4,
|
|
290
281
|
},
|
|
282
|
+
items: [
|
|
283
|
+
{
|
|
284
|
+
xtype: 'container',
|
|
285
|
+
layout: 'vbox',
|
|
286
|
+
defaults: {
|
|
287
|
+
margin: 4,
|
|
288
|
+
},
|
|
289
|
+
items: [
|
|
290
|
+
{
|
|
291
|
+
xtype: 'segmentedbutton',
|
|
292
|
+
bind: {
|
|
293
|
+
value: '{successMessage}',
|
|
294
|
+
},
|
|
295
|
+
items: [
|
|
296
|
+
{
|
|
297
|
+
value: false,
|
|
298
|
+
iconCls: 'svg-fa svg-fa-xmark',
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
text: 'alert',
|
|
302
|
+
value: 'alert',
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
text: 'toast',
|
|
306
|
+
value: 'toast',
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
xtype: 'button',
|
|
312
|
+
ui: 'green-button',
|
|
313
|
+
text: 'протестировать',
|
|
314
|
+
handler: this.successMessageExample.bind(this),
|
|
315
|
+
bind: {
|
|
316
|
+
visible: '{!!successMessage}',
|
|
317
|
+
},
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
xtype: 'textfield',
|
|
324
|
+
fieldLabel: 'successText',
|
|
325
|
+
bind: {
|
|
326
|
+
value: '{successText}',
|
|
327
|
+
visible: '{!!successMessage}',
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
xtype: 'textfield',
|
|
332
|
+
fieldLabel: 'successTitle',
|
|
333
|
+
bind: {
|
|
334
|
+
value: '{successTitle}',
|
|
335
|
+
visible: '{!!successMessage}',
|
|
336
|
+
},
|
|
337
|
+
}
|
|
338
|
+
],
|
|
291
339
|
},
|
|
292
340
|
{
|
|
293
341
|
xtype: 'checkbox',
|
|
@@ -641,4 +689,38 @@ Ext.define('Coon.uielement.plugin.configPanel.executeCommand.ExecuteCommandPlugi
|
|
|
641
689
|
Ext.ClassManager.classes[fullSource].prototype.inputParameters();
|
|
642
690
|
}
|
|
643
691
|
},
|
|
692
|
+
|
|
693
|
+
successMessageExample() {
|
|
694
|
+
const vm = this.getViewModel();
|
|
695
|
+
const successTitle = vm.get('successTitle');
|
|
696
|
+
const exampleSuccessText= 'Сообщение для примера с <b>html</b> разметкой. <br>Оно используется потому что вы не ввели свой текст';
|
|
697
|
+
const successText = vm.get('successText') || exampleSuccessText;
|
|
698
|
+
this.self.showMessage(
|
|
699
|
+
vm.get('successMessage'),
|
|
700
|
+
successTitle,
|
|
701
|
+
successText
|
|
702
|
+
);
|
|
703
|
+
},
|
|
704
|
+
|
|
705
|
+
statics: {
|
|
706
|
+
/**
|
|
707
|
+
* Вывод сообщения об результате
|
|
708
|
+
* @param successMessage
|
|
709
|
+
* @param title
|
|
710
|
+
* @param html
|
|
711
|
+
*/
|
|
712
|
+
showMessage(successMessage, title, html) {
|
|
713
|
+
if (successMessage === 'alert') {
|
|
714
|
+
return Ext.Msg.alert(title, html);
|
|
715
|
+
}
|
|
716
|
+
if (successMessage === 'toast') {
|
|
717
|
+
const toastConfig = {
|
|
718
|
+
closable: true,
|
|
719
|
+
html,
|
|
720
|
+
};
|
|
721
|
+
title && (toastConfig.title = title);
|
|
722
|
+
return Ext.toast(toastConfig);
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
},
|
|
644
726
|
});
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
.ExecuteCommandPluginConfigPanelFormEditor {
|
|
2
|
-
$required-flag-color: dynamic(#bf1313);
|
|
3
|
-
font-size: 12px;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
font-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
1
|
+
.ExecuteCommandPluginConfigPanelFormEditor {
|
|
2
|
+
$required-flag-color: dynamic(#bf1313);
|
|
3
|
+
font-size: 12px;
|
|
4
|
+
.required-flag {
|
|
5
|
+
font-size: 18px;
|
|
6
|
+
color: $required-flag-color;
|
|
7
|
+
}
|
|
8
|
+
span.code {
|
|
9
|
+
color: green;
|
|
10
|
+
font-family: "Lucida Console", "Courier New", monospace;
|
|
11
|
+
}
|
|
12
|
+
.x-form-trigger-default.helpicon {
|
|
13
|
+
background-color: white;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.wrong-parameters {
|
|
17
|
+
color: green;
|
|
18
|
+
font-style: italic;
|
|
19
|
+
font-family: "Lucida Console", "Courier New", monospace;
|
|
20
|
+
}
|
|
21
|
+
}
|
package/src/version.js
CHANGED