@docsvision/management-console 1.0.0
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/README.md +10 -0
- package/index.css +3907 -0
- package/index.css.map +1 -0
- package/index.d.ts +588 -0
- package/index.js +91584 -0
- package/index.js.map +1 -0
- package/package.json +21 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { RefObject, MouseEventHandler } from 'react';
|
|
3
|
+
import * as _material_ui_core from '@material-ui/core';
|
|
4
|
+
import { SvgIconProps, TableCell, ButtonProps, SelectProps, Theme } from '@material-ui/core';
|
|
5
|
+
import { $MessageWindow } from 'docsvision.web/components/modals/message-box';
|
|
6
|
+
import { TableCompositions, ITableData, IRow, ITableDataLoadRequest, ITablePlugins, ColumnType } from 'docsvision.web/components/table/interfaces';
|
|
7
|
+
import { $ContextMenuOptions, ICustomContextMenuOption } from 'docsvision.web/components/table/plugins/context-menu/$ContextMenuOptions';
|
|
8
|
+
import { IComposition } from 'docsvision.web/core/composition';
|
|
9
|
+
import { $CardUrl } from 'extensions/WorkerService/services/$CardUrl';
|
|
10
|
+
import { $Resources, IResourcesMap } from 'system/resources/$Resources';
|
|
11
|
+
import { HtmlProps } from 'docsvision.web/core/component/HtmlProps';
|
|
12
|
+
import { $ApplicationSettings } from 'system/settings/IApplicationSettings';
|
|
13
|
+
import { HtmlProps as HtmlProps$1 } from 'docsvision.web/core/component';
|
|
14
|
+
import { IPeriodValue } from 'extensions/WorkerService/widgets/OutgoingMessagesQueue/OutgoingMessagesQueueWidgetDescription';
|
|
15
|
+
import { Moment } from 'moment';
|
|
16
|
+
import { $LocalStorage } from 'system/common/$LocalStorage';
|
|
17
|
+
import { IApplication } from 'system/application/Application';
|
|
18
|
+
import { IDateFormatPluginData } from 'docsvision.web/components/table/plugins/filter';
|
|
19
|
+
import { IDateRangeComponent as IDateRangeComponent$1 } from 'reusable/dateRangePicker/DateRangePickerCalendarButton/IDateRangeComponent';
|
|
20
|
+
import { $Router, $RoutingService } from 'docsvision.web/core/routing';
|
|
21
|
+
import { SystemServices } from 'docsvision.web/core/system-services/SystemServices';
|
|
22
|
+
import { $RepeatProcessButton } from 'plugins/RepeatProcessButton/$RepeatProcessButton';
|
|
23
|
+
import { $ToolbarVisibility } from 'plugins/Toolbar/$ToolbarVisibility';
|
|
24
|
+
import { $FilterPluginsLoading } from 'plugins/Toolbar/FilterPluginsLoading/$FilterPluginsLoading';
|
|
25
|
+
import { $DashboardConfigurationService } from 'system/dashboard/IDashboardConfigurationService';
|
|
26
|
+
import { $ExtensionsService } from 'system/extensibility/ExtensionsService';
|
|
27
|
+
import { $ResourcesManagement } from 'system/resources/$ResourcesManagement';
|
|
28
|
+
import { $RouteContentRender } from 'system/routing/$RouteContentRender';
|
|
29
|
+
import { $AboutSettings } from 'system/settings/IAboutSettings';
|
|
30
|
+
import { $LocalizationService } from 'system/settings/ILocalizationService';
|
|
31
|
+
import { $TenantsService } from 'system/tenants/TenantsService';
|
|
32
|
+
import { $WidgetsService } from 'system/widgets/WidgetsService';
|
|
33
|
+
import { $PanelsExpansionService } from 'webframe/pages/settings/components/SettingsPanel/panels/WorkerPanel/$PanelsExpansionService';
|
|
34
|
+
import { Service } from 'docsvision.web/core/services';
|
|
35
|
+
import { Store, Event } from 'effector';
|
|
36
|
+
import { $DatabaseMasterController } from 'Controllers/DatabaseMasterController/$DatabaseMasterController';
|
|
37
|
+
import { $DatabasesConfigurationController } from 'Controllers/DatabasesConfigurationController/$DatabasesConfigurationController';
|
|
38
|
+
import { $DatabasesController } from 'Controllers/DatabasesController/$DatabasesController';
|
|
39
|
+
import { $DatabaseWizard } from 'webframe/pages/ServiceSettings/DatabaseWizard/DatabaseWizardService/$DatabaseWizardService';
|
|
40
|
+
import { FieldValues, UseFormGetValues, UseFormGetFieldState, UseFormSetValue, FormState, UseFormResetField, UseFormReset, UseFormHandleSubmit, Control, UseFormSetFocus } from 'react-hook-form';
|
|
41
|
+
import { StoryObj } from '@storybook/react';
|
|
42
|
+
import { IWidgetDescription } from 'system/widgets/IWidgetDescription';
|
|
43
|
+
|
|
44
|
+
declare const copyTextToClipboard: (text: string, host?: HTMLElement) => void;
|
|
45
|
+
|
|
46
|
+
declare const LightTooltip: React$1.ComponentType<Pick<_material_ui_core.TooltipProps, "dir" | "slot" | "style" | "title" | "color" | "translate" | "hidden" | "open" | "arrow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disableFocusListener" | "disableHoverListener" | "disableTouchListener" | "enterDelay" | "enterNextDelay" | "enterTouchDelay" | "interactive" | "leaveDelay" | "leaveTouchDelay" | "onClose" | "onOpen" | "placement" | "PopperComponent" | "PopperProps" | "TransitionComponent" | "TransitionProps" | "innerRef" | "ref"> & _material_ui_core.StyledComponentProps<"tooltip">>;
|
|
47
|
+
|
|
48
|
+
declare const useHideOnScroll: () => boolean;
|
|
49
|
+
|
|
50
|
+
declare const useOutsideClick: (ref: React.MutableRefObject<HTMLElement>, callback: () => void) => void;
|
|
51
|
+
|
|
52
|
+
interface IAccordionProps {
|
|
53
|
+
summary?: () => JSX.Element;
|
|
54
|
+
details?: () => JSX.Element;
|
|
55
|
+
ariaControls: string;
|
|
56
|
+
id: string;
|
|
57
|
+
dataTestId?: string;
|
|
58
|
+
}
|
|
59
|
+
declare function Accordion(props: IAccordionProps): JSX.Element;
|
|
60
|
+
|
|
61
|
+
interface IComponentIconProps {
|
|
62
|
+
className?: string;
|
|
63
|
+
color?: string;
|
|
64
|
+
onClick?: () => void;
|
|
65
|
+
}
|
|
66
|
+
declare function ComponentIcon(props: IComponentIconProps): JSX.Element;
|
|
67
|
+
|
|
68
|
+
interface ICompositionTable extends IComposition<string, any, TableCompositions.Row<string>> {
|
|
69
|
+
props?: IComposition<string, string, $Resources & $CardUrl & $MessageWindow & $ContextMenuOptions>;
|
|
70
|
+
}
|
|
71
|
+
interface IContextMenuParameters {
|
|
72
|
+
dvConnectionId?: string;
|
|
73
|
+
currentCardId?: string;
|
|
74
|
+
}
|
|
75
|
+
declare const getContextMenuOptions: (parameters?: IContextMenuParameters, context?: ICompositionTable) => ICustomContextMenuOption[];
|
|
76
|
+
|
|
77
|
+
interface IPageFilterButtonProps {
|
|
78
|
+
onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
79
|
+
text?: string;
|
|
80
|
+
selected?: boolean;
|
|
81
|
+
loading?: boolean;
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
dataTestIdPostfix?: string;
|
|
84
|
+
}
|
|
85
|
+
declare function PageFilterButton(props: IPageFilterButtonProps): JSX.Element;
|
|
86
|
+
|
|
87
|
+
interface IPageTabLabelProps extends HtmlProps.div {
|
|
88
|
+
text: string;
|
|
89
|
+
selected: boolean;
|
|
90
|
+
onTabLabelClick?: (activeTab: any) => void;
|
|
91
|
+
children?: React__default.ReactNode;
|
|
92
|
+
}
|
|
93
|
+
declare function PageTabLabel(props: IPageTabLabelProps): JSX.Element;
|
|
94
|
+
|
|
95
|
+
declare const ERROR_ROW_CLASS_NAME = "page-table__row-error";
|
|
96
|
+
declare const DEFAULT_PAGE_SIZE = 50;
|
|
97
|
+
interface IPageTableProps extends HtmlProps.div {
|
|
98
|
+
data: ITableData;
|
|
99
|
+
onRowClick?: (row: IRow) => void;
|
|
100
|
+
addRowClassName?: (row: IRow) => string;
|
|
101
|
+
services?: $Resources & $ApplicationSettings & $MessageWindow;
|
|
102
|
+
loadData?: (data?: ITableData, options?: ITableDataLoadRequest) => Promise<void>;
|
|
103
|
+
disabledFeatures?: string[];
|
|
104
|
+
extraPlugins?: ITablePlugins[];
|
|
105
|
+
}
|
|
106
|
+
declare function PageTable(props: IPageTableProps): JSX.Element;
|
|
107
|
+
|
|
108
|
+
interface IPageTabProps extends HtmlProps.div {
|
|
109
|
+
children?: React__default.ReactNode;
|
|
110
|
+
className?: string;
|
|
111
|
+
}
|
|
112
|
+
declare function PageTabPanel(props: IPageTabProps): JSX.Element;
|
|
113
|
+
|
|
114
|
+
interface IPageTitleProps extends HtmlProps.div {
|
|
115
|
+
text: string;
|
|
116
|
+
}
|
|
117
|
+
declare function PageTitle(props: IPageTitleProps): JSX.Element;
|
|
118
|
+
|
|
119
|
+
interface ITableScrollContainerComponentProps extends HtmlProps$1.div {
|
|
120
|
+
}
|
|
121
|
+
declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
|
|
122
|
+
|
|
123
|
+
interface IKeyValue {
|
|
124
|
+
key: string;
|
|
125
|
+
value: string;
|
|
126
|
+
}
|
|
127
|
+
interface IWidgetConnectionSelectorProps extends HtmlProps.div {
|
|
128
|
+
selectedValue: string;
|
|
129
|
+
options: IKeyValue[];
|
|
130
|
+
onChange: (newValue: any) => void;
|
|
131
|
+
services: $Resources;
|
|
132
|
+
isLoading?: boolean;
|
|
133
|
+
}
|
|
134
|
+
declare function WidgetConnectionSelector(props: IWidgetConnectionSelectorProps): JSX.Element;
|
|
135
|
+
|
|
136
|
+
interface IWidgetContainerProps extends HtmlProps.div {
|
|
137
|
+
}
|
|
138
|
+
declare function WidgetContainer(props: IWidgetContainerProps): JSX.Element;
|
|
139
|
+
|
|
140
|
+
interface IWidgetHeaderProps extends HtmlProps.div {
|
|
141
|
+
openWidget?: () => void;
|
|
142
|
+
}
|
|
143
|
+
declare function WidgetHeader(props: IWidgetHeaderProps): JSX.Element;
|
|
144
|
+
|
|
145
|
+
interface IWidgetHorizontalLineProps extends HtmlProps.hr {
|
|
146
|
+
}
|
|
147
|
+
declare function WidgetHorizontalLine(props: IWidgetHorizontalLineProps): JSX.Element;
|
|
148
|
+
|
|
149
|
+
interface IWidgetNameProps extends HtmlProps.div {
|
|
150
|
+
title?: string;
|
|
151
|
+
dataTestId?: string;
|
|
152
|
+
}
|
|
153
|
+
declare function WidgetName(props: IWidgetNameProps): JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface IWidgetPeriodSelectorProps extends HtmlProps.div {
|
|
156
|
+
selectedValue: string;
|
|
157
|
+
options: IPeriodValue[];
|
|
158
|
+
onChange: (newValue: any) => void;
|
|
159
|
+
services: $Resources & $LocalStorage;
|
|
160
|
+
isLoading?: boolean;
|
|
161
|
+
onDatesChange?: (dates: any) => void;
|
|
162
|
+
datesValue?: string[];
|
|
163
|
+
onAccept?: (dates: Moment[]) => void;
|
|
164
|
+
dataTestIdPostfix?: string;
|
|
165
|
+
}
|
|
166
|
+
declare function WidgetPeriodSelector(props: IWidgetPeriodSelectorProps): JSX.Element;
|
|
167
|
+
|
|
168
|
+
interface IWidgetRefreshButtonProps extends HtmlProps.div {
|
|
169
|
+
onClick: (e: any) => void;
|
|
170
|
+
className?: string;
|
|
171
|
+
}
|
|
172
|
+
declare function WidgetRefreshButton(props: IWidgetRefreshButtonProps): JSX.Element;
|
|
173
|
+
|
|
174
|
+
interface IWidgetRefreshDateProps extends HtmlProps.div {
|
|
175
|
+
date: Date;
|
|
176
|
+
application: IApplication;
|
|
177
|
+
}
|
|
178
|
+
declare function WidgetRefreshDate(props: IWidgetRefreshDateProps): JSX.Element;
|
|
179
|
+
|
|
180
|
+
interface IDateRangeComponent {
|
|
181
|
+
value?: string[];
|
|
182
|
+
onChange?(value: (string | Moment)[]): void;
|
|
183
|
+
customClass?: string;
|
|
184
|
+
forwardRef?: RefObject<HTMLElement>;
|
|
185
|
+
dateFormatData?: IDateFormatPluginData;
|
|
186
|
+
services?: $Resources;
|
|
187
|
+
columnName?: string;
|
|
188
|
+
type?: ColumnType;
|
|
189
|
+
focused?: boolean;
|
|
190
|
+
onChangeFocus?(e: React__default.FocusEvent, flag: boolean): void;
|
|
191
|
+
isValueValid?: boolean;
|
|
192
|
+
locale?: string;
|
|
193
|
+
visible?: boolean;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface IFilteringClearButtonProps {
|
|
197
|
+
onChange(value: (string | Moment)[]): void;
|
|
198
|
+
visible: boolean;
|
|
199
|
+
}
|
|
200
|
+
declare function ClearButton(props: IFilteringClearButtonProps): JSX.Element;
|
|
201
|
+
|
|
202
|
+
interface IDateRangeProps extends IDateRangeComponent$1 {
|
|
203
|
+
onAccept?: (dates: Moment[]) => void;
|
|
204
|
+
dataTestIdPostfix?: string;
|
|
205
|
+
}
|
|
206
|
+
declare const DateRangeCalendarIcon: React__default.NamedExoticComponent<IDateRangeProps>;
|
|
207
|
+
|
|
208
|
+
interface IDateRangePickerProps extends IDateRangeComponent$1 {
|
|
209
|
+
onAccept?: (dates: Moment[]) => void;
|
|
210
|
+
collapsedCalendar?: () => void;
|
|
211
|
+
}
|
|
212
|
+
declare function DateRangeContainer(props: IDateRangePickerProps): JSX.Element;
|
|
213
|
+
|
|
214
|
+
declare function DeleteIcon({ onClick }: {
|
|
215
|
+
onClick?: () => void;
|
|
216
|
+
}): JSX.Element;
|
|
217
|
+
|
|
218
|
+
interface IErrorBlockProps {
|
|
219
|
+
text: string;
|
|
220
|
+
close: MouseEventHandler<HTMLDivElement>;
|
|
221
|
+
}
|
|
222
|
+
declare function ErrorBlock({ text, close }: IErrorBlockProps): JSX.Element;
|
|
223
|
+
|
|
224
|
+
declare function ErrorIcon(): JSX.Element;
|
|
225
|
+
|
|
226
|
+
declare function ErrorMessage({ message }: {
|
|
227
|
+
message: string;
|
|
228
|
+
}): JSX.Element;
|
|
229
|
+
|
|
230
|
+
interface IExpandButtonProps extends HtmlProps$1.button {
|
|
231
|
+
expanded?: boolean;
|
|
232
|
+
dataTestId?: string;
|
|
233
|
+
}
|
|
234
|
+
declare function ExpandButton(props: IExpandButtonProps): JSX.Element;
|
|
235
|
+
|
|
236
|
+
interface IExpandMoreIconProps {
|
|
237
|
+
onClick?: () => void;
|
|
238
|
+
color?: string;
|
|
239
|
+
}
|
|
240
|
+
declare function ExpandMoreIcon(props: IExpandMoreIconProps): JSX.Element;
|
|
241
|
+
|
|
242
|
+
declare function HandPointRightIcon(props: SvgIconProps): JSX.Element;
|
|
243
|
+
|
|
244
|
+
interface IInformationIconProps {
|
|
245
|
+
className?: string;
|
|
246
|
+
color?: string;
|
|
247
|
+
onClick?: () => void;
|
|
248
|
+
}
|
|
249
|
+
declare function InformationIcon(props: IInformationIconProps): JSX.Element;
|
|
250
|
+
|
|
251
|
+
interface ILineWithError {
|
|
252
|
+
error: string;
|
|
253
|
+
}
|
|
254
|
+
declare function LineWithError({ error }: ILineWithError): JSX.Element;
|
|
255
|
+
|
|
256
|
+
declare function ListItemMarker(): JSX.Element;
|
|
257
|
+
|
|
258
|
+
interface IContainerProps extends HtmlProps.button {
|
|
259
|
+
title?: string;
|
|
260
|
+
content?: JSX.Element | string;
|
|
261
|
+
services?: $Resources;
|
|
262
|
+
}
|
|
263
|
+
/** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
|
|
264
|
+
declare function ShowInformationButton(props: IContainerProps): JSX.Element;
|
|
265
|
+
|
|
266
|
+
declare function showNotification(text: string): void;
|
|
267
|
+
|
|
268
|
+
declare function ArrowIconButton({ onClick, disabled }: {
|
|
269
|
+
onClick?: (e: React__default.MouseEvent) => void;
|
|
270
|
+
disabled?: boolean;
|
|
271
|
+
}): JSX.Element;
|
|
272
|
+
|
|
273
|
+
declare function DeleteIconButton({ onClick }: {
|
|
274
|
+
onClick?: (e: React__default.MouseEvent) => void;
|
|
275
|
+
}): JSX.Element;
|
|
276
|
+
|
|
277
|
+
declare function CellPreloader(): JSX.Element;
|
|
278
|
+
|
|
279
|
+
interface ICellWithFixedWidthProps {
|
|
280
|
+
content: string;
|
|
281
|
+
maxWidth: string | number;
|
|
282
|
+
}
|
|
283
|
+
declare function CellWithFixedWidth(props: ICellWithFixedWidthProps): JSX.Element;
|
|
284
|
+
|
|
285
|
+
interface ICellWithTwoLineClampingProps {
|
|
286
|
+
content: string;
|
|
287
|
+
className?: string;
|
|
288
|
+
align?: "left" | "right" | "center";
|
|
289
|
+
component?: typeof TableCell;
|
|
290
|
+
maxWidth: string | number;
|
|
291
|
+
onClick: () => void;
|
|
292
|
+
}
|
|
293
|
+
declare function CellWithTwoLineClamping(props: ICellWithTwoLineClampingProps): JSX.Element;
|
|
294
|
+
|
|
295
|
+
interface ILayoutService extends Service {
|
|
296
|
+
getLayout(layoutId: string, serviceId?: string, itemId?: string): Promise<IPageModel>;
|
|
297
|
+
saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement[], itemId?: string): Promise<void>;
|
|
298
|
+
}
|
|
299
|
+
declare type $Layout = {
|
|
300
|
+
layoutService: ILayoutService;
|
|
301
|
+
};
|
|
302
|
+
declare const $Layout: string | ((model?: $Layout) => ILayoutService);
|
|
303
|
+
|
|
304
|
+
interface IMenuItem {
|
|
305
|
+
id: string;
|
|
306
|
+
name: string;
|
|
307
|
+
refElement?: React.RefObject<HTMLDivElement>;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
interface INavigationMenuService {
|
|
311
|
+
$menuItems: Store<IMenuItem[]>;
|
|
312
|
+
addMenuItem: Event<IMenuItem>;
|
|
313
|
+
clearMenuItems: Event<void>;
|
|
314
|
+
}
|
|
315
|
+
declare type $NavigationMenu = {
|
|
316
|
+
navigationMenu: INavigationMenuService;
|
|
317
|
+
};
|
|
318
|
+
declare const $NavigationMenu: string | ((model?: $NavigationMenu) => INavigationMenuService);
|
|
319
|
+
|
|
320
|
+
interface IServerDescription {
|
|
321
|
+
id: string;
|
|
322
|
+
name: string;
|
|
323
|
+
}
|
|
324
|
+
interface IServerDetails extends IServerDescription {
|
|
325
|
+
alias: string;
|
|
326
|
+
operatingSystem: string;
|
|
327
|
+
services: IServiceDescription[];
|
|
328
|
+
}
|
|
329
|
+
interface IServiceDescription {
|
|
330
|
+
serviceId: string;
|
|
331
|
+
serviceName: string;
|
|
332
|
+
configurationLayoutId: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface IServersController extends Service {
|
|
336
|
+
getServers(): Promise<IServerDescription[]>;
|
|
337
|
+
getServerInfo(id: string): Promise<IServerDetails>;
|
|
338
|
+
}
|
|
339
|
+
declare type $ServersController = {
|
|
340
|
+
serverController: IServersController;
|
|
341
|
+
};
|
|
342
|
+
declare const $ServersController: string | ((model?: $ServersController) => IServersController);
|
|
343
|
+
|
|
344
|
+
interface IBreadcrumbsItems {
|
|
345
|
+
label: BreadcrumbsLabel | string;
|
|
346
|
+
path?: string;
|
|
347
|
+
}
|
|
348
|
+
declare enum BreadcrumbsLabel {
|
|
349
|
+
WidgetIncomingMessagesQueue = 0,
|
|
350
|
+
WidgetOutgoingMessagesQueue = 1,
|
|
351
|
+
PageIncomingMessagesQueue = 2,
|
|
352
|
+
PageOutgoingMessagesQueue = 3,
|
|
353
|
+
WidgetSearchForCardMessages = 4,
|
|
354
|
+
PageSearchForCardMessages = 5,
|
|
355
|
+
PageErrorAndBlockLog = 6
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
interface ISettingsNavigationService {
|
|
359
|
+
goToSettingsPage: (layoutId: string, serviceName: string, serviceId: string) => void;
|
|
360
|
+
goToItemSettingsPage: (layoutId: string, id: string, label: string) => void;
|
|
361
|
+
goToConfigurationPage: () => void;
|
|
362
|
+
getBreadcrumbsItems: () => IBreadcrumbsItems[];
|
|
363
|
+
}
|
|
364
|
+
declare type $SettingsNavigation = {
|
|
365
|
+
settingsNavigation: ISettingsNavigationService;
|
|
366
|
+
};
|
|
367
|
+
declare const $SettingsNavigation: string | ((model?: $SettingsNavigation) => ISettingsNavigationService);
|
|
368
|
+
|
|
369
|
+
interface IFormControl {
|
|
370
|
+
isDirty: boolean;
|
|
371
|
+
submitted: Event<unknown>;
|
|
372
|
+
canceled: Event<void>;
|
|
373
|
+
setIsDirty: (value: boolean) => void;
|
|
374
|
+
onSubmit: ({ confirm }: {
|
|
375
|
+
confirm: boolean;
|
|
376
|
+
}) => void;
|
|
377
|
+
onCancel: () => void;
|
|
378
|
+
}
|
|
379
|
+
declare type $FormControl = {
|
|
380
|
+
formControl: IFormControl;
|
|
381
|
+
};
|
|
382
|
+
declare const $FormControl: string | ((model?: $FormControl) => IFormControl);
|
|
383
|
+
|
|
384
|
+
declare enum IChangeOperationType {
|
|
385
|
+
Save = 0,
|
|
386
|
+
Remove = 1
|
|
387
|
+
}
|
|
388
|
+
interface IConfigurationValue {
|
|
389
|
+
path: string;
|
|
390
|
+
value: string;
|
|
391
|
+
}
|
|
392
|
+
interface IConfigurationValueChange extends IConfigurationValue {
|
|
393
|
+
operation: IChangeOperationType;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
interface IExtendedConfigurationController extends Service {
|
|
397
|
+
getConfiguration(serviceId: string): Promise<IConfigurationValue[]>;
|
|
398
|
+
saveConfiguration(serviceId: string, changes: IConfigurationValueChange[]): Promise<void>;
|
|
399
|
+
}
|
|
400
|
+
declare type $ExtendedConfigurationController = {
|
|
401
|
+
extendedConfigurationController: IExtendedConfigurationController;
|
|
402
|
+
};
|
|
403
|
+
declare const $ExtendedConfigurationController: string | ((model?: $ExtendedConfigurationController) => IExtendedConfigurationController);
|
|
404
|
+
|
|
405
|
+
interface IDomEntryPointService {
|
|
406
|
+
render(rootElementId: string): any;
|
|
407
|
+
renderLoginPage(rootElementId: string): any;
|
|
408
|
+
}
|
|
409
|
+
declare type $DomEntryPointService = {
|
|
410
|
+
domEntryPointService: IDomEntryPointService;
|
|
411
|
+
};
|
|
412
|
+
declare const $DomEntryPointService: string | ((model?: $DomEntryPointService) => IDomEntryPointService);
|
|
413
|
+
|
|
414
|
+
interface IApplicationServices extends SystemServices, $ExtensionsService, $DomEntryPointService, $ApplicationSettings, $WidgetsService, $Router, $RoutingService, $TenantsService, $DashboardConfigurationService, $LocalizationService, $AboutSettings, $LocalStorage, $ResourcesManagement, $Resources, $RouteContentRender, $FilterPluginsLoading, $ToolbarVisibility, $MessageWindow, $RepeatProcessButton, $PanelsExpansionService, $Layout, $NavigationMenu, $ServersController, $DatabaseWizard, $DatabasesController, $DatabasesConfigurationController, $DatabaseMasterController, $SettingsNavigation, $FormControl, $NavigationMenu, $ServersController, $SettingsNavigation, $FormControl, $ExtendedConfigurationController {
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare type CustomUseFormReturn<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined> = {
|
|
418
|
+
watch: any;
|
|
419
|
+
setError: any;
|
|
420
|
+
clearErrors: any;
|
|
421
|
+
trigger: any;
|
|
422
|
+
unregister: any;
|
|
423
|
+
register: any;
|
|
424
|
+
getValues: UseFormGetValues<TFieldValues>;
|
|
425
|
+
getFieldState: UseFormGetFieldState<TFieldValues>;
|
|
426
|
+
setValue: UseFormSetValue<TFieldValues>;
|
|
427
|
+
formState: FormState<TFieldValues>;
|
|
428
|
+
resetField: UseFormResetField<TFieldValues>;
|
|
429
|
+
reset: UseFormReset<TFieldValues>;
|
|
430
|
+
handleSubmit: UseFormHandleSubmit<TFieldValues, TTransformedValues>;
|
|
431
|
+
control: Control<TFieldValues, TContext>;
|
|
432
|
+
setFocus: UseFormSetFocus<TFieldValues>;
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
interface IPageModelElement extends IPageLayoutModelElement {
|
|
436
|
+
services?: IApplicationServices;
|
|
437
|
+
formMethods?: CustomUseFormReturn;
|
|
438
|
+
}
|
|
439
|
+
interface IPageLayoutModelElement {
|
|
440
|
+
id: string;
|
|
441
|
+
label: string;
|
|
442
|
+
description?: string;
|
|
443
|
+
valueLabel?: string;
|
|
444
|
+
editorType?: string;
|
|
445
|
+
required?: boolean;
|
|
446
|
+
hidden?: boolean;
|
|
447
|
+
options?: IPageElementOptions[];
|
|
448
|
+
value?: unknown;
|
|
449
|
+
error?: string | null;
|
|
450
|
+
elements?: IPageModelElement[];
|
|
451
|
+
extendedLayoutId?: string;
|
|
452
|
+
binding: IPageElementBinding;
|
|
453
|
+
parameters?: Record<string, string>;
|
|
454
|
+
}
|
|
455
|
+
interface IPageElementBinding {
|
|
456
|
+
handler: string;
|
|
457
|
+
path: string;
|
|
458
|
+
}
|
|
459
|
+
interface IPageElementOptions {
|
|
460
|
+
displayName: string;
|
|
461
|
+
value: string | number;
|
|
462
|
+
}
|
|
463
|
+
interface IMetaInformation {
|
|
464
|
+
readOnly: boolean;
|
|
465
|
+
}
|
|
466
|
+
interface IPageModel {
|
|
467
|
+
elements: IPageLayoutModelElement[];
|
|
468
|
+
meta: IMetaInformation;
|
|
469
|
+
}
|
|
470
|
+
interface IPageSaveModel {
|
|
471
|
+
layoutId: string;
|
|
472
|
+
serviceId?: string;
|
|
473
|
+
data: IPageSaveModelElement[];
|
|
474
|
+
itemId?: string;
|
|
475
|
+
}
|
|
476
|
+
interface IPageSaveModelElement {
|
|
477
|
+
id: string;
|
|
478
|
+
value: unknown;
|
|
479
|
+
binding: IPageElementBinding;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
interface IEditorContainer extends IPageModelElement {
|
|
483
|
+
children: React__default.ReactNode;
|
|
484
|
+
isChanged: boolean;
|
|
485
|
+
resetValue: () => void;
|
|
486
|
+
className?: string;
|
|
487
|
+
}
|
|
488
|
+
declare function EditorContainer(props: IEditorContainer): JSX.Element;
|
|
489
|
+
|
|
490
|
+
declare function EditorDescription({ text }: {
|
|
491
|
+
text: string;
|
|
492
|
+
}): JSX.Element;
|
|
493
|
+
|
|
494
|
+
declare function EditorName({ text }: {
|
|
495
|
+
text: string;
|
|
496
|
+
}): JSX.Element;
|
|
497
|
+
|
|
498
|
+
declare function EditorWrapper({ children, isChanged }: {
|
|
499
|
+
children: React__default.ReactNode;
|
|
500
|
+
isChanged?: boolean;
|
|
501
|
+
}): JSX.Element;
|
|
502
|
+
|
|
503
|
+
interface IGroupPanelProps {
|
|
504
|
+
groups: Record<string, string[]>;
|
|
505
|
+
selectedGroup: string;
|
|
506
|
+
selectGroup: (group: string) => void;
|
|
507
|
+
}
|
|
508
|
+
declare function GroupPanel(props: IGroupPanelProps): JSX.Element;
|
|
509
|
+
|
|
510
|
+
interface IListitemProps {
|
|
511
|
+
value: string;
|
|
512
|
+
deleteItem: () => void;
|
|
513
|
+
changeItem: (value: string) => void;
|
|
514
|
+
}
|
|
515
|
+
declare function ListItem(props: IListitemProps): JSX.Element;
|
|
516
|
+
|
|
517
|
+
interface IListPanelProps {
|
|
518
|
+
items: string[];
|
|
519
|
+
setItems: (items: string[]) => void;
|
|
520
|
+
className?: string;
|
|
521
|
+
disabled?: boolean;
|
|
522
|
+
validate?: (value: string) => Promise<boolean>;
|
|
523
|
+
}
|
|
524
|
+
declare function ListPanel(props: IListPanelProps): JSX.Element;
|
|
525
|
+
|
|
526
|
+
interface INavigationMenuProps {
|
|
527
|
+
menuItems: IMenuItem[];
|
|
528
|
+
}
|
|
529
|
+
declare function NavigationMenu(props: INavigationMenuProps): JSX.Element;
|
|
530
|
+
|
|
531
|
+
declare type Story = StoryObj<INavigationMenuProps>;
|
|
532
|
+
declare const Default: Story;
|
|
533
|
+
declare const WithSelectedItem: Story;
|
|
534
|
+
|
|
535
|
+
interface ISectionContentWrapperProps extends IPageModelElement {
|
|
536
|
+
className?: string;
|
|
537
|
+
refElement?: React__default.RefObject<HTMLDivElement>;
|
|
538
|
+
}
|
|
539
|
+
declare function SectionContentWrapper(props: ISectionContentWrapperProps): JSX.Element;
|
|
540
|
+
|
|
541
|
+
interface ISettingsPagePanelButton extends ButtonProps {
|
|
542
|
+
}
|
|
543
|
+
interface ISettingsPageButtonPanelProps extends HtmlProps$1.div {
|
|
544
|
+
buttons: ISettingsPagePanelButton[];
|
|
545
|
+
}
|
|
546
|
+
declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelProps): JSX.Element;
|
|
547
|
+
|
|
548
|
+
interface IEditorDescription {
|
|
549
|
+
/** Название редактора. */
|
|
550
|
+
name: string;
|
|
551
|
+
/** Компонент редактора */
|
|
552
|
+
component: React__default.ComponentType<IPageModelElement>;
|
|
553
|
+
/**
|
|
554
|
+
* Определяет поведение, в случае если редактор с указанным типом уже зарегистрирован.
|
|
555
|
+
*
|
|
556
|
+
* При значении `true` существующий контрол будет заменен.
|
|
557
|
+
* При значении `false` замена не произойдет, и в консоли браузера будет отображена ошибка.
|
|
558
|
+
*
|
|
559
|
+
* По умолчанию значение `false`.
|
|
560
|
+
*/
|
|
561
|
+
replaceExisting?: boolean;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
interface IExtension {
|
|
565
|
+
name: string;
|
|
566
|
+
version: string;
|
|
567
|
+
services?: (application: IApplication) => Service<any>[];
|
|
568
|
+
widgets?: (application: IApplication) => IWidgetDescription[];
|
|
569
|
+
editors?: () => IEditorDescription[];
|
|
570
|
+
onApplicationRun?: (application: IApplication) => void;
|
|
571
|
+
resources?: (application: IApplication) => Promise<IResourcesMap>;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
declare const commonMuiProps: {
|
|
575
|
+
select: Partial<SelectProps>;
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
declare enum ActionType {
|
|
579
|
+
add = 0,
|
|
580
|
+
delete = 1
|
|
581
|
+
}
|
|
582
|
+
declare function actionWithThemeCssVariables(theme: Theme, action: ActionType): void;
|
|
583
|
+
declare function addCssVariables(theme: Theme): void;
|
|
584
|
+
declare function removeCssVariables(theme: Theme): void;
|
|
585
|
+
|
|
586
|
+
declare const theme: _material_ui_core.Theme;
|
|
587
|
+
|
|
588
|
+
export { Accordion, ActionType, ArrowIconButton, CellPreloader, CellWithFixedWidth, CellWithTwoLineClamping, ClearButton, ComponentIcon, DEFAULT_PAGE_SIZE, DateRangeCalendarIcon, DateRangeContainer, Default, DeleteIcon, DeleteIconButton, ERROR_ROW_CLASS_NAME, EditorContainer, EditorDescription, EditorName, EditorWrapper, ErrorBlock, ErrorIcon, ErrorMessage, ExpandButton, ExpandMoreIcon, GroupPanel, HandPointRightIcon, IAccordionProps, ICellWithFixedWidthProps, ICellWithTwoLineClampingProps, IComponentIconProps, ICompositionTable, IContainerProps, IContextMenuParameters, IDateRangeComponent, IDateRangePickerProps, IDateRangeProps, IEditorContainer, IErrorBlockProps, IExpandButtonProps, IExpandMoreIconProps, IExtension, IFilteringClearButtonProps, IGroupPanelProps, IInformationIconProps, IKeyValue, IListPanelProps, IListitemProps, IMetaInformation, INavigationMenuProps, IPageElementBinding, IPageElementOptions, IPageFilterButtonProps, IPageLayoutModelElement, IPageModel, IPageModelElement, IPageSaveModel, IPageSaveModelElement, IPageTabLabelProps, IPageTabProps, IPageTableProps, IPageTitleProps, ISectionContentWrapperProps, ISettingsPageButtonPanelProps, ISettingsPagePanelButton, ITableScrollContainerComponentProps, IWidgetConnectionSelectorProps, IWidgetContainerProps, IWidgetHeaderProps, IWidgetHorizontalLineProps, IWidgetNameProps, IWidgetPeriodSelectorProps, IWidgetRefreshButtonProps, IWidgetRefreshDateProps, InformationIcon, LightTooltip, LineWithError, ListItem, ListItemMarker, ListPanel, NavigationMenu, PageFilterButton, PageTabLabel, PageTabPanel, PageTable, PageTitle, SectionContentWrapper, SettingsPageButtonPanel, ShowInformationButton, TableScrollContainerComponent, WidgetConnectionSelector, WidgetContainer, WidgetHeader, WidgetHorizontalLine, WidgetName, WidgetPeriodSelector, WidgetRefreshButton, WidgetRefreshDate, WithSelectedItem, actionWithThemeCssVariables, addCssVariables, commonMuiProps, copyTextToClipboard, getContextMenuOptions, removeCssVariables, showNotification, theme, useHideOnScroll, useOutsideClick };
|