@docsvision/webclient 6.2.0-beta.2 → 6.2.1-beta.1
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/Approval/AgreementHistoryImpl.d.ts +8 -3
- package/Approval/ApprovalHistoryTable.d.ts +0 -3
- package/Approval/IApprovalHistoryTableProps.d.ts +4 -1
- package/Approval/IApprovalHistoryTableState.d.ts +0 -3
- package/BackOffice/$DigitalSignature.d.ts +25 -0
- package/BackOffice/CardKindTreeNode.d.ts +1 -1
- package/BackOffice/DepartmentImpl.d.ts +5 -0
- package/BackOffice/DigitalSignatureService.d.ts +3 -1
- package/BackOffice/DirectorySearchContent.d.ts +1 -1
- package/BackOffice/DirectorySearchResultView.d.ts +1 -1
- package/BackOffice/EmailButtonView.d.ts +1 -1
- package/BackOffice/FileListConstants.d.ts +1 -0
- package/BackOffice/FileListControlLogic.d.ts +1 -1
- package/BackOffice/Powers.d.ts +2 -0
- package/BackOffice/PowersImpl.d.ts +2 -0
- package/BackOffice/PrintButton.d.ts +3 -1
- package/BackOffice/StaffDirectoryItems.stories.d.ts +23 -0
- package/BackOffice/TaskGroupStatusComponent.d.ts +7 -0
- package/BackOffice/TaskGroupStatusTableComponent.d.ts +5 -0
- package/BackOffice/TaskGroupStatusTableRowComponent.d.ts +9 -0
- package/BackOffice/TaskGroupWorkStatus.d.ts +22 -0
- package/BackOffice/TaskGroupWorkStatusContainer.d.ts +11 -0
- package/BackOffice/TaskGroupWorkStatusLogic.d.ts +13 -0
- package/BackOffice/TaskGroupWorkStatusOptions.d.ts +18 -0
- package/BackOffice/TaskGroupWorkStatusView.d.ts +10 -0
- package/BackOffice/TaskGroupWrapper.d.ts +3 -0
- package/BackOffice/UserProfile.d.ts +1 -0
- package/Generated/DocsVision.WebClient.Controllers.d.ts +46 -5
- package/Generated/DocsVision.WebClient.Models.d.ts +452 -95
- package/Helpers/Button.d.ts +4 -1
- package/Helpers/DropdownButton/DropdownButton.d.ts +2 -0
- package/Helpers/FileViewZip/FileViewZip.d.ts +47 -0
- package/Helpers/FileViewZip/FileViewZipModal.d.ts +24 -0
- package/Helpers/IconButton.d.ts +1 -0
- package/Helpers/InputMask/InputMaskView.d.ts +1 -1
- package/Helpers/InputMask/components/InputMaskField.d.ts +1 -1
- package/Helpers/Menu/AdaptiveMenuBar.d.ts +1 -0
- package/Helpers/Menu/DesktopMenuBar.d.ts +1 -0
- package/Helpers/Menu/MobileMenuBar.d.ts +1 -0
- package/Helpers/MessageBox/MessageBox.d.ts +1 -0
- package/Helpers/ModalHost.d.ts +1 -0
- package/Helpers/PeriodicDebounce.d.ts +1 -0
- package/Helpers/PopoverHelpers/Popover.d.ts +1 -0
- package/Helpers/Sortable/Sortable.d.ts +1 -1
- package/Helpers/TextInput.d.ts +1 -0
- package/Legacy/StandardControllers.d.ts +1 -1
- package/Legacy/Utils.d.ts +9 -0
- package/Platform/$EmployeeStatus.d.ts +9 -0
- package/Platform/$FolderMenuManagement.d.ts +12 -0
- package/Platform/ApprovalVisualizationView.d.ts +1 -1
- package/Platform/ApprovalVisualizationVisBlock.d.ts +1 -1
- package/Platform/DateTimePicker.d.ts +1 -0
- package/Platform/DateTimePickerImpl.d.ts +1 -1
- package/Platform/EmployeeStatusService.d.ts +2 -0
- package/Platform/FilePicker.d.ts +3 -0
- package/Platform/FilePickerImpl.d.ts +10 -0
- package/Platform/FilePickerMenuItemsView.d.ts +1 -0
- package/Platform/FilePickerOperations.d.ts +1 -0
- package/Platform/FilePickerOperationsAvailability.d.ts +1 -0
- package/Platform/FolderMainMenuItem.d.ts +2 -1
- package/Platform/FolderMainMenuItemImpl.d.ts +3 -0
- package/Platform/FolderManagementAdaptiveMenu.d.ts +12 -1
- package/Platform/FolderMenuManagementService.d.ts +14 -0
- package/Platform/FolderViewItemsImpl.d.ts +3 -3
- package/Platform/FolderWebFrameRouteHandler.d.ts +1 -1
- package/Platform/IFilePickerMenuOpeningArgs.d.ts +4 -0
- package/Platform/ListCheckbox.d.ts +1 -1
- package/Platform/ListInput.d.ts +1 -1
- package/Platform/SearchTextInput.d.ts +1 -1
- package/Platform/TabImpl.d.ts +1 -0
- package/Platform/TextListInputView.d.ts +3 -3
- package/Platform/UnreadCounter.d.ts +1 -0
- package/Platform/WebFrameUserPanel.d.ts +2 -1
- package/StandardServices.d.ts +2 -1
- package/System/TaskGroupWorkStatusStub.d.ts +62 -0
- package/System/TooltipUtils.d.ts +6 -0
- package/package.json +1 -1
- package/Legacy/TaskGroupWorkStatusRazorControl.d.ts +0 -5
package/Helpers/Button.d.ts
CHANGED
|
@@ -77,11 +77,14 @@ export interface IButtonProperties {
|
|
|
77
77
|
/** Атрибут для cypress-тестирования */
|
|
78
78
|
dataTestId?: string;
|
|
79
79
|
autoFocus?: boolean;
|
|
80
|
+
controlName?: string;
|
|
80
81
|
}
|
|
81
82
|
/** @internal Режимы выравнивания кнопки. */
|
|
82
83
|
export declare enum ButtonAlignModes {
|
|
83
84
|
Center = 0,
|
|
84
85
|
Left = 1
|
|
85
86
|
}
|
|
86
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Используй Button из docsvision.web
|
|
89
|
+
* @internal Представляет собой кнопку с иконкой. */
|
|
87
90
|
export declare function Button(props: IButtonProperties): JSX.Element;
|
|
@@ -14,6 +14,8 @@ declare type DropdownHtmlProps = IDropdownMenuProps & HtmlProps.div;
|
|
|
14
14
|
export interface IDropdownButtonProps extends DropdownHtmlProps, IComponentProps<any, DropdownButtonView> {
|
|
15
15
|
/** Текст кнопки */
|
|
16
16
|
buttonText: string;
|
|
17
|
+
/** Иконка кнопки */
|
|
18
|
+
iconClass?: string;
|
|
17
19
|
/** Цвет кнопки */
|
|
18
20
|
colorMode?: ButtonColorModes;
|
|
19
21
|
/** Растягивать ли кнопку */
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { $FilePickerController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
3
|
+
import { RequestHelper } from "@docsvision/webclient/System/RequestHelper";
|
|
4
|
+
import { GenModels } from "../../Generated/DocsVision.WebClient.Models";
|
|
5
|
+
|
|
6
|
+
/** @internal Свойства для {@link FileViewZip} */
|
|
7
|
+
export interface IFileViewZipProps {
|
|
8
|
+
/** Список элементов содержимого zip-архива */
|
|
9
|
+
items?: string[];
|
|
10
|
+
/** Идентификатор карточки файла. */
|
|
11
|
+
fileCardId: string;
|
|
12
|
+
/** Кнопка закрытия окна комментариев. */
|
|
13
|
+
closeButton?: boolean;
|
|
14
|
+
/** Своя функция отрисовки. */
|
|
15
|
+
customRender?: (component: FileViewZip) => React.ReactNode;
|
|
16
|
+
/** По нажатию на кнопку закрытия окна просмотра zip-архива. */
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
services: $FilePickerController;
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
export interface IFileViewZipState {
|
|
22
|
+
items?: string[];
|
|
23
|
+
/** Загружаются ли в данный момент данные для предпросмотра файла. */
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
/** Помощник для загрузки данных о содержимом zip-архива. */
|
|
26
|
+
loadingHelper: RequestHelper;
|
|
27
|
+
}
|
|
28
|
+
export declare class FileViewZip extends React.Component<IFileViewZipProps, IFileViewZipState> {
|
|
29
|
+
protected viewZipContainer: HTMLElement;
|
|
30
|
+
protected viewZipDialog: HTMLDivElement;
|
|
31
|
+
constructor(props: IFileViewZipProps);
|
|
32
|
+
/** @internal */
|
|
33
|
+
componentDidMount(): Promise<void>;
|
|
34
|
+
/** @internal */
|
|
35
|
+
componentDidUpdate(prevProps: any): void;
|
|
36
|
+
/** Загружается ли содержание zip в данный момент */
|
|
37
|
+
get isLoading(): boolean;
|
|
38
|
+
/** Загрузить список узлов zip-архива */
|
|
39
|
+
protected load: () => Promise<GenModels.FilePickerViewZipItemModel[]>;
|
|
40
|
+
/** @internal Отрисовка заголовка блока просмотра zip-архива. */
|
|
41
|
+
renderHeader(): JSX.Element;
|
|
42
|
+
renderItems: () => JSX.Element[];
|
|
43
|
+
/** @internal Отрисовка блока просмотра zip-архива */
|
|
44
|
+
renderViewZip(): JSX.Element;
|
|
45
|
+
/** @internal */
|
|
46
|
+
render(): {};
|
|
47
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { $FilePickerController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
3
|
+
import { FileViewZip, IFileViewZipProps } from "@docsvision/webclient/Helpers/FileViewZip/FileViewZip";
|
|
4
|
+
/** @internal Свойства для {@link FileViewZipModal} */
|
|
5
|
+
export interface IFileViewZipModalProps extends IFileViewZipProps {
|
|
6
|
+
services: $FilePickerController;
|
|
7
|
+
}
|
|
8
|
+
/** @internal */
|
|
9
|
+
export interface IFileViewZipModalState {
|
|
10
|
+
/** Показывается ли модальное окно. */
|
|
11
|
+
isOpened: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Модальное окно с содержимым zip-файла
|
|
15
|
+
*/
|
|
16
|
+
export declare class FileViewZipModal extends React.Component<IFileViewZipModalProps, IFileViewZipModalState> {
|
|
17
|
+
constructor(props: IFileViewZipModalProps);
|
|
18
|
+
/** Закрытие модального окна. */
|
|
19
|
+
protected closeModal: () => Promise<void>;
|
|
20
|
+
/** Отрисовка блока с содержимым zip-файла. */
|
|
21
|
+
protected renderViewZipBody: (component: FileViewZip) => JSX.Element;
|
|
22
|
+
/** @internal */
|
|
23
|
+
render(): JSX.Element;
|
|
24
|
+
}
|
package/Helpers/IconButton.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export declare class InputMaskView {
|
|
|
9
9
|
inputMask: typeof InputMask;
|
|
10
10
|
input:
|
|
11
11
|
import("react").ForwardRefExoticComponent<Pick<
|
|
12
|
-
| "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "isError"> &
|
|
12
|
+
| "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "isError"> &
|
|
13
13
|
import("react").RefAttributes<HTMLInputElement>>;
|
|
14
14
|
}
|
|
@@ -4,4 +4,4 @@ import { HtmlProps } from "@docsvision/web/core/component/HtmlProps";
|
|
|
4
4
|
export interface IInputMaskFieldProps extends HtmlProps.input {
|
|
5
5
|
isError: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const InputMaskField: React.ForwardRefExoticComponent<Pick<IInputMaskFieldProps, "form" | "slot" | "style" | "title" | "pattern" | "children" | "name" | "id" | "disabled" | "onSubmit" | "autoComplete" | "type" | "placeholder" | "value" | "autoFocus" | "dir" | "className" | "
|
|
7
|
+
export declare const InputMaskField: React.ForwardRefExoticComponent<Pick<IInputMaskFieldProps, "form" | "slot" | "style" | "title" | "pattern" | "children" | "name" | "id" | "disabled" | "onSubmit" | "autoComplete" | "type" | "placeholder" | "value" | "autoFocus" | "dir" | "className" | "color" | "height" | "lang" | "max" | "min" | "width" | "role" | "tabIndex" | "crossOrigin" | "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" | "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" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "isError"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -5,6 +5,7 @@ export interface IDesktopMenuBarProps {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
+
* @deprecated Используй ContextMenu из docsvision.web
|
|
8
9
|
* @internal Представляет собой панель с меню для настольной версии.
|
|
9
10
|
*/
|
|
10
11
|
export declare function DesktopMenuBar(props: IDesktopMenuBarProps): JSX.Element;
|
|
@@ -10,6 +10,7 @@ export interface IMobileMenuBarProps {
|
|
|
10
10
|
renderBackdrop?: boolean;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated Используй ContextMenu из docsvision.web
|
|
13
14
|
* @internal Представляет собой панель с меню для мобильной версии.
|
|
14
15
|
*/
|
|
15
16
|
export declare function MobileMenuBar(props: IMobileMenuBarProps): JSX.Element;
|
|
@@ -2,6 +2,7 @@ import { BodyContainerProvider } from "@docsvision/webclient/Helpers/BodyContain
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { MessageBoxButton } from "@docsvision/webclient/System/$MessageBox";
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated Используй сервис $MessageWindow
|
|
5
6
|
* Предоставляет статические методы для отображения простых модальных окон.
|
|
6
7
|
*/
|
|
7
8
|
export declare class MessageBox {
|
package/Helpers/ModalHost.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { IEventArgs } from "@docsvision/webclient/System/IEventArgs";
|
|
|
5
5
|
import { Optional } from "@docsvision/web/core/services";
|
|
6
6
|
import { $RootCssClass } from "@docsvision/webclient/Helpers/$RootCssClass";
|
|
7
7
|
/**
|
|
8
|
+
* @deprecated Используй ModalHost из docsvision.web
|
|
8
9
|
* Предоставляет контейнер для отрисовки модального окна. Позволяет отображать диалоговое окно вне react-компонент.
|
|
9
10
|
*
|
|
10
11
|
* Пример использования:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function periodicDebounce<T>(callee: (T: any) => unknown, timeoutMs: any): (T: any) => void;
|
|
@@ -109,6 +109,7 @@ export declare enum PopoverMode {
|
|
|
109
109
|
UnderCursor = 5
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
+
* @deprecated Используй Popover из docsvision.web
|
|
112
113
|
* Компонент, который обеспечивает позиционирование всплывающего модального окна.
|
|
113
114
|
*
|
|
114
115
|
* Замечание: при показе всплывающего окна создается элемент в body документа (или в указанном контейнере) с абсолютной позицией,
|
|
@@ -148,7 +148,7 @@ export declare class Sortable<T> extends React.Component<ISortableProps<T>, unde
|
|
|
148
148
|
* @param props Свойства компонента
|
|
149
149
|
*/
|
|
150
150
|
protected getSortablePluginOptions(props: ISortableProps<T>): {
|
|
151
|
-
axis: "
|
|
151
|
+
axis: "x" | "y";
|
|
152
152
|
containment: string | HTMLElement | JQuery<HTMLElement>;
|
|
153
153
|
cursor: string;
|
|
154
154
|
disabled: boolean;
|
package/Helpers/TextInput.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface ITextInputProps {
|
|
|
15
15
|
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
+
* @deprecated Используй TextInput из docsvision.web
|
|
18
19
|
* @internal Текстовое поле для ввода теста
|
|
19
20
|
*/
|
|
20
21
|
export declare class TextInput extends React.Component<ITextInputProps, undefined> {
|
|
@@ -2,4 +2,4 @@ import { $BarcodeSearchButtonController, $BusinessCalendarController, $ClientLog
|
|
|
2
2
|
import { $DocumentCardController } from "@docsvision/webclient/Legacy/DocumentCard";
|
|
3
3
|
import { $EmployeesController } from "@docsvision/webclient/Legacy/EmployeesController";
|
|
4
4
|
import { $FileController } from "@docsvision/webclient/Legacy/FileController";
|
|
5
|
-
export declare type $StandardControllers = $BusinessCalendarController & $DocumentCardController & $FileController & $LayoutAgreementController & $LayoutCardController & $LayoutCardKindController & $LayoutController & $LayoutDirectoryDesignerController & $LayoutDocumentController & $LayoutFileController & $LayoutFolderController & $LayoutHistoryController & $LayoutLinksController & $LayoutPartnerController & $LayoutStaffController & $LayoutTasksController & $LayoutUserSettingsController & $PagesController & $EmployeesController & $CommentsController & $LayoutFileApiController & $LocalizationController & $BarcodeSearchButtonController & $ClientLogController & $CardKindController & $DirectoryDesignerRowController & $EmployeeController & $DepartmentController & $PartnerEmployeeController & $SignatureController & $GridController & $CardDataController & $LayoutRowController & $StaffDirectoryItemsController & $FilePickerController & $TaskGroupPerformersController & $DataVisualizationController & $CardOperationsController & $CardsPresentationController & $TasksTreeController & $SecurityController & $CardController & $BaseCardController & $SignatureMethodsController & $
|
|
5
|
+
export declare type $StandardControllers = $BusinessCalendarController & $DocumentCardController & $FileController & $LayoutAgreementController & $LayoutCardController & $LayoutCardKindController & $LayoutController & $LayoutDirectoryDesignerController & $LayoutDocumentController & $LayoutFileController & $LayoutFolderController & $LayoutHistoryController & $LayoutLinksController & $LayoutPartnerController & $LayoutStaffController & $LayoutTasksController & $LayoutUserSettingsController & $PagesController & $EmployeesController & $CommentsController & $LayoutFileApiController & $LocalizationController & $BarcodeSearchButtonController & $ClientLogController & $CardKindController & $DirectoryDesignerRowController & $EmployeeController & $DepartmentController & $PartnerEmployeeController & $SignatureController & $GridController & $CardDataController & $LayoutRowController & $StaffDirectoryItemsController & $FilePickerController & $TaskGroupPerformersController & $DataVisualizationController & $CardOperationsController & $CardsPresentationController & $TasksTreeController & $SecurityController & $CardController & $BaseCardController & $SignatureMethodsController & $TaskCardController & $R7OfficeController & $PowersDirectoryController;
|
package/Legacy/Utils.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { DateTimeFormat } from "@docsvision/webclient/Legacy/DateTimeFormat";
|
|
|
5
5
|
import { $CardId, $CardTimestamp, $ExtendedDataSourceInfos, $RowId } from '@docsvision/webclient/System/LayoutServices';
|
|
6
6
|
import { Optional } from "@docsvision/web/core/services";
|
|
7
7
|
import { StandardRouteSemantics } from "@docsvision/webclient/System/StandardRouteSemantics";
|
|
8
|
+
import { IFileViewZipModalProps } from "@docsvision/webclient/Helpers/FileViewZip/FileViewZipModal";
|
|
8
9
|
/** @internal */
|
|
9
10
|
export declare class Helpers {
|
|
10
11
|
constructor();
|
|
@@ -47,6 +48,14 @@ export declare class Helpers {
|
|
|
47
48
|
* @returns Функция, вызов которой закрывает модальное окно
|
|
48
49
|
*/
|
|
49
50
|
static ShowRenameFileDialog(props: any): () => void;
|
|
51
|
+
/**
|
|
52
|
+
* Показать окно содержимого zip-файла.
|
|
53
|
+
* @returns Функция, вызов которой закрывает модальное окно
|
|
54
|
+
*/
|
|
55
|
+
static ShowViewZipFileDialog(props: IFileViewZipModalProps, options?: {
|
|
56
|
+
onClose?: () => void;
|
|
57
|
+
onShowed?: () => void;
|
|
58
|
+
}): () => void;
|
|
50
59
|
static ValidateForm(form: HTMLFormElement): boolean;
|
|
51
60
|
static FindParentElement(headerFolderName: HTMLElement, parentClassName: string): HTMLElement;
|
|
52
61
|
static SuppressEvents(e: Event): void;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
2
|
import { BasicEvent } from "@docsvision/webclient/System/BasicEvent";
|
|
3
|
+
import { SimpleEvent } from "@docsvision/webclient/System/SimpleEvent";
|
|
3
4
|
export interface IEmployeeStatusInfo {
|
|
4
5
|
employeeId: string;
|
|
5
6
|
status: GenModels.StaffEmployeeStatus;
|
|
6
7
|
}
|
|
8
|
+
export interface IEmployeeDisplayNameInfo {
|
|
9
|
+
employeeId: string;
|
|
10
|
+
displayName: string;
|
|
11
|
+
}
|
|
7
12
|
export interface IEmployeeInfo {
|
|
8
13
|
employeeModel: GenModels.EmployeeStatusModel;
|
|
9
14
|
}
|
|
10
15
|
/** Сервис для получения актуального статуса сотрудника. */
|
|
11
16
|
export interface IEmployeeStatusService {
|
|
17
|
+
tryChangeCurrentEmployeeAvatar: boolean;
|
|
12
18
|
readonly employeeStatusChanged: BasicEvent<IEmployeeStatusInfo>;
|
|
19
|
+
readonly employeeDisplayNameChanged: BasicEvent<IEmployeeDisplayNameInfo>;
|
|
20
|
+
readonly currentEmployeeAvatarChanged: SimpleEvent<string>;
|
|
13
21
|
setEmployeeStatus(employeeId: string, status: GenModels.StaffEmployeeStatus): any;
|
|
22
|
+
setEmployeeDisplayName(employeeId: string, displayName: string): any;
|
|
14
23
|
/** Выполняет запрос вызов {@see getEmployeeStatusUnobtrusively} для текущего сотрудника. */
|
|
15
24
|
getCurrentEmployeeStatusUnobtrusively(): Promise<GenModels.StaffEmployeeStatus>;
|
|
16
25
|
/** Выполняет запрос вызов {@see getEmployeeDisplayNameUnobtrusively} для текущего сотрудника. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FolderMainMenuItem } from "@docsvision/webclient/Platform/FolderMainMenuItem";
|
|
2
|
+
import { FolderMenuManagementItemProps } from "@docsvision/webclient/Platform/FolderManagementAdaptiveMenu";
|
|
3
|
+
import { Store, Event } from "effector";
|
|
4
|
+
export interface IFolderMenuManagementService {
|
|
5
|
+
$customMenuItems: Store<FolderMenuManagementItemProps[]>;
|
|
6
|
+
getMenuItems(folder: FolderMainMenuItem, defaultItems: FolderMenuManagementItemProps[]): FolderMenuManagementItemProps[];
|
|
7
|
+
setCustomMenuItems: Event<FolderMenuManagementItemProps[]>;
|
|
8
|
+
}
|
|
9
|
+
export declare type $FolderMenuManagement = {
|
|
10
|
+
folderMenuManagement: IFolderMenuManagementService;
|
|
11
|
+
};
|
|
12
|
+
export declare const $FolderMenuManagement: string | ((model?: $FolderMenuManagement) => IFolderMenuManagementService);
|
|
@@ -9,7 +9,7 @@ export declare class ApprovalVisualizationView {
|
|
|
9
9
|
description: typeof ApprovalVisualizationDescription;
|
|
10
10
|
vis:
|
|
11
11
|
import("react").ForwardRefExoticComponent<Pick<
|
|
12
|
-
| "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> &
|
|
12
|
+
| "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> &
|
|
13
13
|
import("react").RefAttributes<HTMLDivElement>>;
|
|
14
14
|
container: typeof ApprovalVisualizationContainer;
|
|
15
15
|
conditionList: typeof ApprovalVisualizationConditionList;
|
|
@@ -3,4 +3,4 @@ import React from "react";
|
|
|
3
3
|
|
|
4
4
|
export interface IApprovalVisualizationVisBlockProps extends HtmlProps.div {
|
|
5
5
|
}
|
|
6
|
-
export declare const ApprovalVisualizationVisBlock: React.ForwardRefExoticComponent<Pick<IApprovalVisualizationVisBlockProps, "slot" | "style" | "title" | "children" | "id" | "onSubmit" | "placeholder" | "dir" | "className" | "
|
|
6
|
+
export declare const ApprovalVisualizationVisBlock: React.ForwardRefExoticComponent<Pick<IApprovalVisualizationVisBlockProps, "slot" | "style" | "title" | "children" | "id" | "onSubmit" | "placeholder" | "dir" | "className" | "color" | "lang" | "role" | "tabIndex" | "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" | "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" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -77,6 +77,7 @@ export declare class DateTimePicker extends InputBasedControl<Date, DateTimePick
|
|
|
77
77
|
protected set defaultValue(val: Date);
|
|
78
78
|
private set defaultWorkTimeBinding(value);
|
|
79
79
|
private set dateTimePickerMode(value);
|
|
80
|
+
set setDateTimePickerMode(value: GenModels.DateTimePickerType);
|
|
80
81
|
private get defaultCurrentDateTime();
|
|
81
82
|
protected onSaveRequest(sender: unknown, args: ICancelableEventArgs<unknown>): Promise<void>;
|
|
82
83
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class DateTimePickerImpl extends InputBasedControlImpl<Date, Date
|
|
|
53
53
|
constructor(props: DateTimePickerParams, state: IDateTimePickerState);
|
|
54
54
|
componentDidMount(): Promise<void>;
|
|
55
55
|
getColor: () => "#7BB652" | "rgba(0, 149, 218, 0.8)" | "#3B4C60" | "#0095da" | "#7bb652";
|
|
56
|
-
|
|
56
|
+
initializeCultureSettings(): void;
|
|
57
57
|
protected setEditInPlaceWidth(element: Element): void;
|
|
58
58
|
protected getMask(date: string): string;
|
|
59
59
|
protected getTextValue(): string;
|
|
@@ -16,9 +16,11 @@ export declare class EmployeeStatusService implements IEmployeeStatusService {
|
|
|
16
16
|
*/
|
|
17
17
|
private receiveTimeout;
|
|
18
18
|
private startupTime;
|
|
19
|
+
tryChangeCurrentEmployeeAvatar: boolean;
|
|
19
20
|
constructor(services: $CurrentEmployee & $EmployeeController & $CacheManagement, receiveTimeout?: number);
|
|
20
21
|
employeeStatusChanged: SimpleEvent<unknown>;
|
|
21
22
|
employeeDisplayNameChanged: SimpleEvent<unknown>;
|
|
23
|
+
currentEmployeeAvatarChanged: SimpleEvent<unknown>;
|
|
22
24
|
setEmployeeStatus(employeeId: string, status: GenModels.StaffEmployeeStatus): Promise<void>;
|
|
23
25
|
setEmployeeDisplayName(employeeId: string, displayName: string): Promise<void>;
|
|
24
26
|
getCurrentEmployeeStatusUnobtrusively(): Promise<GenModels.StaffEmployeeStatus>;
|
package/Platform/FilePicker.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { $MessageBox } from "@docsvision/webclient/System/$MessageBox";
|
|
|
22
22
|
import { $Layout } from "@docsvision/webclient/System/$Layout";
|
|
23
23
|
import { $FilePreviewServices } from "@docsvision/webclient/Platform/FilePreview";
|
|
24
24
|
import { $RealtimeCommunicationService } from "@docsvision/webclient/System/$RealtimeCommunicationService";
|
|
25
|
+
import { IFilePickerMenuOpeningArgs } from "@docsvision/webclient/Platform/IFilePickerMenuOpeningArgs";
|
|
25
26
|
import { LoadingState } from "@docsvision/webclient/System/LoadingState";
|
|
26
27
|
/**
|
|
27
28
|
* Содержит публичные свойства элемента управления [Файл]{@link FilePicker}.
|
|
@@ -120,6 +121,8 @@ export declare class FilePickerParams extends BaseControlParams {
|
|
|
120
121
|
fileVersionsDialogClosed?: BasicApiEvent<IEventArgs>;
|
|
121
122
|
/** Событие возникает после подгрузки информации о версиях файла. @covered */
|
|
122
123
|
fileVersionsLoaded?: BasicApiEvent<IEventArgs>;
|
|
124
|
+
/** Событие возникает при открытии меню файла. */
|
|
125
|
+
fileMenuOpening?: CancelableApiEvent<IFilePickerMenuOpeningArgs>;
|
|
123
126
|
/** Событие возникает при сохранении файла в WebDAV. */
|
|
124
127
|
fileSaveByWebDAV?: BasicApiEvent<IEventArgs>;
|
|
125
128
|
services?: $EditOperationStore & $FilePickerUpload & $MessageBox & $WindowLocation & $FileController & $LayoutFileController & $CardId & $FilePickerController & $DeviceType & $FileDownload & $Layout & $RealtimeCommunicationService & $FilePreviewServices & $LayoutInfo;
|
|
@@ -43,6 +43,8 @@ export declare class FilePickerImpl extends BaseControlImpl<FilePickerParams, IF
|
|
|
43
43
|
protected operations: FilePickerOperations;
|
|
44
44
|
protected availability: FilePickerOperationsAvailability;
|
|
45
45
|
protected dragOverState: BooleanState;
|
|
46
|
+
protected menuItems: IFilePickerMenuItem[];
|
|
47
|
+
static readonly illegalFileNameCharacters: RegExp;
|
|
46
48
|
constructor(props: FilePickerParams, state: IFilePickerState);
|
|
47
49
|
componentDidMount(): void;
|
|
48
50
|
componentWillUnmount(): void;
|
|
@@ -54,6 +56,7 @@ export declare class FilePickerImpl extends BaseControlImpl<FilePickerParams, IF
|
|
|
54
56
|
hasValue(): boolean;
|
|
55
57
|
uploadSelectedInternal(): Promise<GenModels.FileCardModel>;
|
|
56
58
|
onMenuOpenChange: (newVal: boolean) => void;
|
|
59
|
+
onFileMenuOpen: () => Promise<void>;
|
|
57
60
|
protected shouldSaveImmediately(): boolean;
|
|
58
61
|
protected getAccessState(): FilePickerAccessState;
|
|
59
62
|
openVersionsDialog: () => Promise<void>;
|
|
@@ -106,6 +109,13 @@ import("./Components/FilePickerMenuItemsView").IFilePickerMenuItemProps) => JSX.
|
|
|
106
109
|
getDeleteMenuItem: () => {
|
|
107
110
|
name: string;
|
|
108
111
|
component: (props:
|
|
112
|
+
import("./Components/FilePickerMenuItemsView").IFilePickerMenuItemProps) => JSX.Element;
|
|
113
|
+
isAvailable: boolean;
|
|
114
|
+
onClick: () => Promise<unknown>;
|
|
115
|
+
};
|
|
116
|
+
getViewZipMenuItem: () => {
|
|
117
|
+
name: string;
|
|
118
|
+
component: (props:
|
|
109
119
|
import("./Components/FilePickerMenuItemsView").IFilePickerMenuItemProps) => JSX.Element;
|
|
110
120
|
isAvailable: boolean;
|
|
111
121
|
onClick: () => Promise<unknown>;
|
|
@@ -23,3 +23,4 @@ export interface IDownloadFilePickerMenuItemProps extends IFilePickerMenuItemPro
|
|
|
23
23
|
}
|
|
24
24
|
export declare const DownloadFilePickerMenuItem: (props: IDownloadFilePickerMenuItemProps) => JSX.Element;
|
|
25
25
|
export declare const DeleteFilePickerMenuItem: (props: IFilePickerMenuItemProps) => JSX.Element;
|
|
26
|
+
export declare const ViewZipFilePickerMenuItem: (props: IFilePickerMenuItemProps) => JSX.Element;
|
|
@@ -20,4 +20,5 @@ export declare class FilePickerOperations {
|
|
|
20
20
|
openSelectFileDialog(file: GenModels.FileCardModel, inputContainer: HTMLElement, services: $MessageBox & $FilePickerUpload): Promise<File>;
|
|
21
21
|
download(file: GenModels.FileCardModel, version: GenModels.FileCardVersionModel | null, events: EventEmitter, logInfo: GenModels.LogInfo, services: $FileDownload & $FilePickerController): Promise<void>;
|
|
22
22
|
saveAs(file: GenModels.FileCardModel, version: GenModels.FileCardVersionModel | null, events: EventEmitter, logInfo: GenModels.LogInfo, services: $FilePickerController & $FileDownload): Promise<Blob>;
|
|
23
|
+
showViewZipDialog(file: GenModels.FileCardModel, services: $FilePickerController & $CardId): Promise<void>;
|
|
23
24
|
}
|
|
@@ -9,6 +9,7 @@ export declare class FilePickerOperationsAvailability {
|
|
|
9
9
|
private getServices;
|
|
10
10
|
constructor(getAccessState: () => FilePickerAccessState, getEditMode: () => EditMode, getFile: () => GenModels.FileCardModel, getServices: () => $DeviceType);
|
|
11
11
|
private check;
|
|
12
|
+
get canRead(): boolean;
|
|
12
13
|
get canOpen(): boolean;
|
|
13
14
|
get canPreview(): boolean;
|
|
14
15
|
get canComment(): boolean;
|
|
@@ -4,6 +4,7 @@ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.
|
|
|
4
4
|
import { $Folders } from "@docsvision/webclient/Legacy/$Folders";
|
|
5
5
|
import { BaseNavigationMainMenuItem, BaseNavigationMainMenuItemParams } from "@docsvision/webclient/Platform/BaseNavigationMainMenuItem";
|
|
6
6
|
import { FolderMainMenuItemImpl, IFolderMainMenuItemState } from "@docsvision/webclient/Platform/FolderMainMenuItemImpl";
|
|
7
|
+
import { $FolderMenuManagement } from "@docsvision/webclient/Platform/$FolderMenuManagement";
|
|
7
8
|
import { FolderEditedEventArgs, SubfolderAddedEventArgs } from "@docsvision/webclient/Platform/FolderOperationManager";
|
|
8
9
|
import { $UnreadCounter } from "@docsvision/webclient/Platform/$UnreadCounter";
|
|
9
10
|
import { $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
@@ -65,7 +66,7 @@ export declare class FolderMainMenuItemParams extends BaseNavigationMainMenuItem
|
|
|
65
66
|
subfolderAdding?: CancelableEvent<Layout>;
|
|
66
67
|
/** Событие после сохраниния подпапки */
|
|
67
68
|
subfolderAdded?: BasicEvent<SubfolderAddedEventArgs>;
|
|
68
|
-
services?: $LayoutFolderController & $ControlStore & $Router & $UnreadCounter & $Folders & $DeviceType & $FolderColors;
|
|
69
|
+
services?: $LayoutFolderController & $ControlStore & $Router & $UnreadCounter & $Folders & $DeviceType & $FolderColors & $FolderMenuManagement;
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
71
72
|
* Контрол для отображения ссылки на папку в списке элементов главной панели.
|
|
@@ -29,8 +29,11 @@ export declare type FolderMainMenuItemImplState = IFolderMainMenuItemState;
|
|
|
29
29
|
export declare class FolderMainMenuItemImpl extends BaseNavigationMainMenuItemImpl<FolderMainMenuItemParams, IFolderMainMenuItemState> {
|
|
30
30
|
private unreadCounter;
|
|
31
31
|
private operationManager;
|
|
32
|
+
private folderMenuManagementWatcher;
|
|
32
33
|
constructor(props: FolderMainMenuItemParams, state: IFolderMainMenuItemState);
|
|
33
34
|
componentDidMount(): void;
|
|
35
|
+
componentWillUnmount(): void;
|
|
36
|
+
private getFolderMenuManagementItems;
|
|
34
37
|
generateControlName(folderId: string): void;
|
|
35
38
|
protected getAutoExpandLevelsCount: () => number;
|
|
36
39
|
protected getChildrenAutoExpandLevelsCount: () => number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { FolderMainMenuItem } from "@docsvision/webclient/Platform/FolderMainMenuItem";
|
|
2
3
|
import { FolderManagementOperationType } from "@docsvision/webclient/Platform/FolderManagementData";
|
|
3
4
|
export declare type FolderManagementAdaptiveMenuProps = {
|
|
4
5
|
visible?: boolean;
|
|
@@ -6,4 +7,14 @@ export declare type FolderManagementAdaptiveMenuProps = {
|
|
|
6
7
|
expanded?: boolean;
|
|
7
8
|
onClick?: (operation: FolderManagementOperationType) => void;
|
|
8
9
|
};
|
|
9
|
-
export declare
|
|
10
|
+
export declare type FolderMenuManagementItemProps = {
|
|
11
|
+
name?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
action?: (folder?: FolderMainMenuItem) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const FOLDER_MANAGEMENT_DEFAULT_MENU_ITEMS: {
|
|
16
|
+
name: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare function FolderManagementAdaptiveMenu(props: FolderManagementAdaptiveMenuProps & {
|
|
19
|
+
items: FolderMenuManagementItemProps[];
|
|
20
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FolderMainMenuItem } from "@docsvision/webclient/Platform/FolderMainMenuItem";
|
|
2
|
+
import { IFolderMenuManagementService } from "@docsvision/webclient/Platform/$FolderMenuManagement";
|
|
3
|
+
import { FolderMenuManagementItemProps } from "@docsvision/webclient/Platform/FolderManagementAdaptiveMenu";
|
|
4
|
+
import { Store, Event } from "effector";
|
|
5
|
+
export declare class FolderMenuManagementService implements IFolderMenuManagementService {
|
|
6
|
+
$customMenuItems: Store<FolderMenuManagementItemProps[]>;
|
|
7
|
+
setCustomMenuItems: Event<FolderMenuManagementItemProps[]>;
|
|
8
|
+
constructor(items?: FolderMenuManagementItemProps[]);
|
|
9
|
+
getMenuItems: (folder: FolderMainMenuItem, defaultItems: FolderMenuManagementItemProps[]) => (FolderMenuManagementItemProps | {
|
|
10
|
+
action: any;
|
|
11
|
+
name?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
})[];
|
|
14
|
+
}
|
|
@@ -44,7 +44,7 @@ export declare class FolderViewItemsImpl extends InputBasedControlImpl<string, F
|
|
|
44
44
|
checked?: boolean;
|
|
45
45
|
crossOrigin?: string;
|
|
46
46
|
disabled?: boolean;
|
|
47
|
-
enterKeyHint?: "
|
|
47
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send";
|
|
48
48
|
form?: string;
|
|
49
49
|
formAction?: string;
|
|
50
50
|
formEncType?: string;
|
|
@@ -125,12 +125,12 @@ export declare class FolderViewItemsImpl extends InputBasedControlImpl<string, F
|
|
|
125
125
|
'aria-describedby'?: string;
|
|
126
126
|
'aria-details'?: string;
|
|
127
127
|
'aria-disabled'?: boolean | "true" | "false";
|
|
128
|
-
'aria-dropeffect'?: "link" | "
|
|
128
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
129
129
|
'aria-errormessage'?: string;
|
|
130
130
|
'aria-expanded'?: boolean | "true" | "false";
|
|
131
131
|
'aria-flowto'?: string;
|
|
132
132
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
133
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "
|
|
133
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid";
|
|
134
134
|
'aria-hidden'?: boolean | "true" | "false";
|
|
135
135
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
136
136
|
'aria-keyshortcuts'?: string;
|
|
@@ -16,6 +16,6 @@ export declare class FolderWebFrameRouteHandler implements IRouteHandler<IFolder
|
|
|
16
16
|
private get useNewGrid();
|
|
17
17
|
private routeTypeCheck;
|
|
18
18
|
private filterClasses;
|
|
19
|
-
|
|
19
|
+
prepareRouteMount(data: IFolderPageRouteData, routeType: RouteType): Promise<RouteHandleResult>;
|
|
20
20
|
unmountRoute(data: IFolderPageRouteData, routeType: RouteType): Promise<void>;
|
|
21
21
|
}
|