@vitrosoftware/common-ui-ts 1.1.177 → 1.1.179
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/css/std/controls/criterion/criterion.css +1 -0
- package/css/std/controls/date-picker/date-picker.css +0 -1
- package/css/std/controls/input/input.css +0 -7
- package/css/std/controls/lookup-picker/lookup-picker-selected-item.css +2 -0
- package/css/std/controls/lookup-picker/lookup-picker.css +7 -7
- package/css/std/controls/time-picker/time-picker.css +0 -1
- package/css/std/controls/tooltip/tooltip.css +1 -1
- package/dist/index.css +11 -35
- package/dist/index.js +428 -216
- package/dist/index.js.map +1 -1
- package/dist/src/constants/CssProperty.d.ts +5 -0
- package/dist/src/constants/Event.d.ts +2 -2
- package/dist/src/controls/ActionHandler/ActionHandler.d.ts +8 -9
- package/dist/src/controls/ActionHandler/ActionResultList.d.ts +4 -4
- package/dist/src/controls/ActionHandler/ResultDialog.d.ts +6 -7
- package/dist/src/controls/ActionHandler/models/ActionHandlerItem.d.ts +6 -0
- package/dist/src/controls/ActionHandler/models/ActionHandlerResult.d.ts +3 -0
- package/dist/src/controls/Activity/Activity.d.ts +2 -2
- package/dist/src/controls/ActivityItem/ActivityItem.d.ts +2 -2
- package/dist/src/controls/ActivityItem/ActivityMessage.d.ts +2 -2
- package/dist/src/controls/ActivityItem/models/ChangedValue.d.ts +6 -0
- package/dist/src/controls/BimViewer/BimViewer.d.ts +2 -2
- package/dist/src/controls/BimViewer/Viewer.d.ts +2 -2
- package/dist/src/controls/BimViewer/services/BimViewerService.d.ts +17 -0
- package/dist/src/controls/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/dist/src/controls/Breadcrumbs/models/BreadcrumbsItem.d.ts +4 -0
- package/dist/src/controls/CenterAlignControlGroup/CenterAlignControlGroup.d.ts +1 -1
- package/dist/src/controls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/controls/Checkbox/services/CheckboxService.d.ts +4 -0
- package/dist/src/controls/CheckboxReorderableList/CheckboxReorderableList.d.ts +2 -2
- package/dist/src/controls/CheckboxReorderableList/models/CheckboxReorderableListItem.d.ts +6 -0
- package/dist/src/controls/ComponentLoader/services/ComponentLoaderService.d.ts +6 -0
- package/dist/src/controls/ComponentLoader/services/impl/ComponentLoaderServiceImpl.d.ts +11 -0
- package/dist/src/controls/Criterion/ConditionSelect.d.ts +3 -3
- package/dist/src/controls/Criterion/Criterion.d.ts +4 -6
- package/dist/src/controls/Criterion/models/Condition.d.ts +6 -0
- package/dist/src/controls/Criterion/models/Criterion.d.ts +8 -0
- package/dist/src/controls/Criterion/models/Operator.d.ts +4 -0
- package/dist/src/controls/CriterionFieldIterator/CriterionFieldIterator.d.ts +3 -4
- package/dist/src/controls/Dialog/Dialog.d.ts +2 -2
- package/dist/src/controls/Dialog/DialogHeader.d.ts +1 -1
- package/dist/src/controls/DropdownButton/DropdownButton.d.ts +2 -2
- package/dist/src/controls/DropdownButton/models/DropdownItem.d.ts +11 -0
- package/dist/src/controls/DxfViewer/DxfViewer.d.ts +2 -2
- package/dist/src/controls/DxfViewer/Viewer.d.ts +2 -2
- package/dist/src/controls/DxfViewer/services/DxfViewerService.d.ts +31 -0
- package/dist/src/controls/EditableList/EditableItem.d.ts +3 -3
- package/dist/src/controls/EditableList/EditableList.d.ts +4 -5
- package/dist/src/controls/EditableList/models/EditableListItem.d.ts +7 -0
- package/dist/src/controls/FieldIterator/FieldIterator.d.ts +1 -0
- package/dist/src/controls/FieldIterator/services/FieldIteratorService.d.ts +4 -0
- package/dist/src/controls/File/File.d.ts +3 -3
- package/dist/src/controls/FileVersionSelect/FileVersionSelect.d.ts +3 -3
- package/dist/src/controls/FileVersionSelect/Item.d.ts +3 -3
- package/dist/src/controls/FileVersionSelect/models/FileVersion.d.ts +6 -0
- package/dist/src/controls/Image/Image.d.ts +1 -1
- package/dist/src/controls/ImagePicker/ImagePicker.d.ts +2 -2
- package/dist/src/controls/ImageViewer/ImageViewer.d.ts +4 -4
- package/dist/src/controls/ImageViewer/models/Image.d.ts +5 -0
- package/dist/src/controls/ImageViewer/services/ImageViewerService.d.ts +5 -0
- package/dist/src/controls/Input/Input.d.ts +2 -2
- package/dist/src/controls/Input/models/QuillRichEditorSettings.d.ts +15 -0
- package/dist/src/controls/Input/services/InputService.d.ts +5 -0
- package/dist/src/controls/Input/services/QuillRichEditorService.d.ts +8 -0
- package/dist/src/controls/Input/services/impl/QuillRichEditorServiceImpl.d.ts +46 -0
- package/dist/src/controls/IssueTile/IssueTile.d.ts +5 -5
- package/dist/src/controls/IssueTile/IssueTileHeader.d.ts +1 -1
- package/dist/src/controls/LinkInput/LinkInput.d.ts +7 -8
- package/dist/src/controls/LinkInput/services/LinkInputService.d.ts +11 -0
- package/dist/src/controls/Login/LoginForm.d.ts +3 -3
- package/dist/src/controls/Login/LoginKerberosForm.d.ts +2 -2
- package/dist/src/controls/Login/TwoFactorAuthenticationForm.d.ts +2 -2
- package/dist/src/controls/Login/services/FormService.d.ts +3 -0
- package/dist/src/controls/Login/services/LoginFormService.d.ts +5 -0
- package/dist/src/controls/Login/services/TwoFactorAuthenticationFormService.d.ts +4 -0
- package/dist/src/controls/LookupPicker/SelectedValueList.d.ts +1 -0
- package/dist/src/controls/LookupPicker/SelectedValueListItem.d.ts +1 -0
- package/dist/src/controls/MessageInput/AttachedFile.d.ts +1 -1
- package/dist/src/controls/MessageInput/MessageInput.d.ts +2 -2
- package/dist/src/controls/MessageInput/services/MessageInputService.d.ts +3 -0
- package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -1
- package/dist/src/controls/MicroFrontend/renderMicrofrontend.d.ts +1 -2
- package/dist/src/controls/MicroFrontend/services/MicroFrontendService.d.ts +8 -0
- package/dist/src/controls/MicroFrontend/services/impl/MicroFrontendServiceImpl.d.ts +10 -0
- package/dist/src/controls/Overlay/Overlay.d.ts +3 -3
- package/dist/src/controls/Overlay/services/OverlayService.d.ts +5 -0
- package/dist/src/controls/PdfViewer/PdfViewer.d.ts +2 -2
- package/dist/src/controls/PdfViewer/Viewer.d.ts +2 -2
- package/dist/src/controls/PdfViewer/services/PdfViewerService.d.ts +17 -0
- package/dist/src/controls/ScrollBar/ScrollBar.d.ts +1 -1
- package/dist/src/controls/ScrollView/models/ScrollViewItem.d.ts +7 -0
- package/dist/src/controls/Search/Search.d.ts +6 -8
- package/dist/src/controls/SearchInput/SearchInput.d.ts +3 -3
- package/dist/src/controls/Sidebar/GroupItem.d.ts +2 -2
- package/dist/src/controls/Sidebar/Section.d.ts +2 -2
- package/dist/src/controls/Sidebar/SectionList.d.ts +2 -2
- package/dist/src/controls/Sidebar/Sidebar.d.ts +5 -5
- package/dist/src/controls/Sidebar/models/SidebarItem.d.ts +15 -0
- package/dist/src/controls/Sidebar/models/SidebarSection.d.ts +7 -0
- package/dist/src/controls/SiteSelect/SiteSelect.d.ts +7 -7
- package/dist/src/controls/SiteSelect/SiteSelectItem.d.ts +15 -0
- package/dist/src/controls/SiteSelect/models/SiteSelectItem.d.ts +7 -0
- package/dist/src/controls/SystemExceptionDialog/SystemExceptionDialog.d.ts +2 -2
- package/dist/src/controls/SystemExceptionDialog/models/SystemExceptionDialogData.d.ts +7 -0
- package/dist/src/controls/TabGroup/TabGroup.d.ts +3 -3
- package/dist/src/controls/TabGroup/TabGroupComponent.d.ts +3 -3
- package/dist/src/controls/TabGroup/models/Tab.d.ts +13 -0
- package/dist/src/controls/TableView/TableView.d.ts +6 -8
- package/dist/src/controls/TableView/TableViewConstants.d.ts +15 -0
- package/dist/src/controls/TableView/models/TableViewCol.d.ts +3 -0
- package/dist/src/controls/TableView/models/TableViewMenuItem.d.ts +10 -0
- package/dist/src/controls/TableView/models/TableViewRow.d.ts +3 -0
- package/dist/src/controls/TableView/services/TableViewEventHandler.d.ts +4 -0
- package/dist/src/controls/TableView/services/TableViewService.d.ts +134 -0
- package/dist/src/controls/TableView/services/impl/TableViewServiceImpl.d.ts +144 -0
- package/dist/src/controls/TelerikUploader/TelerikUploader.d.ts +4 -4
- package/dist/src/controls/TelerikUploader/models/TelerikUploaderSettings.d.ts +20 -0
- package/dist/src/controls/TelerikUploader/services/TelerikUploaderService.d.ts +6 -0
- package/dist/src/controls/TelerikUploader/services/impl/TelerikUploaderServiceImpl.d.ts +45 -0
- package/dist/src/controls/Tooltip/Tooltip.d.ts +1 -2
- package/dist/src/controls/TopLevelMenu/TopLevelMenu.d.ts +3 -3
- package/dist/src/controls/TopLevelMenu/models/TopLevelMenuItem.d.ts +7 -0
- package/dist/src/controls/TreeView/TreeView.d.ts +7 -5
- package/dist/src/controls/TreeView/models/JsTreeViewNode.d.ts +20 -0
- package/dist/src/controls/TreeView/services/TreeViewEventHandler.d.ts +4 -0
- package/dist/src/controls/TreeView/services/TreeViewService.d.ts +34 -0
- package/dist/src/controls/TreeView/services/impl/TreeViewConfigServiceImpl.d.ts +37 -0
- package/dist/src/controls/TreeView/services/impl/TreeViewServiceImpl.d.ts +36 -0
- package/dist/src/controls/UserLookupPicker/UserLookupPicker.d.ts +2 -3
- package/dist/src/controls/ValueTooltip/ValueTooltip.d.ts +8 -0
- package/dist/src/controls/ValueTooltip/services/ValueTooltipService.d.ts +5 -0
- package/dist/src/controls/VideoViewer/VideoViewer.d.ts +4 -4
- package/dist/src/controls/VideoViewer/models/TelerikMediaPlayerSettings.d.ts +13 -0
- package/dist/src/controls/VideoViewer/models/Video.d.ts +5 -0
- package/dist/src/controls/VideoViewer/services/TelerikMediaPlayerService.d.ts +19 -0
- package/dist/src/controls/VideoViewer/services/VideoViewerService.d.ts +4 -0
- package/dist/src/controls/VideoViewer/services/impl/TelerikMediaPlayerServiceImpl.d.ts +50 -0
- package/dist/src/index.d.ts +35 -64
- package/dist/src/models.d.ts +83 -0
- package/dist/src/services.d.ts +74 -0
- package/package.json +2 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
export interface InputProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
type?: string;
|
|
@@ -33,4 +33,4 @@ export interface InputProps {
|
|
|
33
33
|
isRichText?: boolean;
|
|
34
34
|
isRichTextToolbarEnabled?: boolean;
|
|
35
35
|
}
|
|
36
|
-
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<
|
|
36
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<services.InputService>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface QuillRichEditorSettings {
|
|
2
|
+
modules: any;
|
|
3
|
+
isReadOnly?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
rows: number;
|
|
7
|
+
minHeight?: number;
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
containerClassName: string;
|
|
11
|
+
onFocus: (e?: any) => void;
|
|
12
|
+
onBlur: () => void;
|
|
13
|
+
onChange?: () => void;
|
|
14
|
+
isRichTextToolbarEnabled?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { services } from '../../../../services';
|
|
2
|
+
import { models } from '../../../../models';
|
|
3
|
+
export declare class QuillRichEditorServiceImpl implements services.QuillRichEditorService {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
private editor;
|
|
6
|
+
private textarea;
|
|
7
|
+
private settings;
|
|
8
|
+
private toolbarContentMaxWidth;
|
|
9
|
+
constructor(textarea: HTMLTextAreaElement, settings: models.QuillRichEditorSettings);
|
|
10
|
+
private initAdaptiveMenu;
|
|
11
|
+
private initBtnMore;
|
|
12
|
+
private bindClickHandler;
|
|
13
|
+
private bindOnClickBtnMore;
|
|
14
|
+
private prepareBtnMoreDropdown;
|
|
15
|
+
private toolbarShow;
|
|
16
|
+
private toolbarHide;
|
|
17
|
+
private bindToolbarResizeHandler;
|
|
18
|
+
private toolbarResizeHandler;
|
|
19
|
+
private setVisibilityToolbarButtons;
|
|
20
|
+
private setVisibilityMoreBtn;
|
|
21
|
+
private getBtnMore;
|
|
22
|
+
private hideMoreBtn;
|
|
23
|
+
private showMoreBtn;
|
|
24
|
+
private hideMoreDropdown;
|
|
25
|
+
private moveToolbarBtnToMoreDropdown;
|
|
26
|
+
private moveToolbarBtnFromMoreDropdown;
|
|
27
|
+
private showToolbarDropDownGrp;
|
|
28
|
+
private hideToolbarDropDownGrp;
|
|
29
|
+
private getBtnCssClass;
|
|
30
|
+
private showToolbarGrp;
|
|
31
|
+
private hideToolbarGrp;
|
|
32
|
+
private getToolbarElm;
|
|
33
|
+
private getToolbarContentMaxWidth;
|
|
34
|
+
private fixPickerPosition;
|
|
35
|
+
private checkPickerPosition;
|
|
36
|
+
private isEditorBlur;
|
|
37
|
+
private getEditorConfig;
|
|
38
|
+
private checkIsValuesEmpty;
|
|
39
|
+
private setCustomIcons;
|
|
40
|
+
setHeight(rows: number, height?: number, minHeight?: number, maxHeight?: number): void;
|
|
41
|
+
enable(): void;
|
|
42
|
+
disable(): void;
|
|
43
|
+
getText(): any;
|
|
44
|
+
setText(val: string): void;
|
|
45
|
+
clearHistory(): void;
|
|
46
|
+
}
|
|
@@ -7,7 +7,7 @@ export interface IssueTileProps {
|
|
|
7
7
|
userName: string;
|
|
8
8
|
userImage?: string;
|
|
9
9
|
date: any;
|
|
10
|
-
fileVersion:
|
|
10
|
+
fileVersion: string;
|
|
11
11
|
fileVersionUrl?: string;
|
|
12
12
|
status: string;
|
|
13
13
|
statusColor?: string;
|
|
@@ -17,10 +17,10 @@ export interface IssueTileProps {
|
|
|
17
17
|
value: any;
|
|
18
18
|
onClick: (e: any, value: string) => any;
|
|
19
19
|
}[];
|
|
20
|
-
onClick
|
|
21
|
-
onBlur
|
|
22
|
-
onShowMoreClick
|
|
20
|
+
onClick?: () => any;
|
|
21
|
+
onBlur?: (e: any) => any;
|
|
22
|
+
onShowMoreClick?: (e: any, issue?: any) => any;
|
|
23
23
|
isActive?: boolean;
|
|
24
|
-
createLocale
|
|
24
|
+
createLocale?: (key: string) => any;
|
|
25
25
|
}
|
|
26
26
|
export declare const IssueTile: (props: IssueTileProps) => JSX.Element;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React, { FocusEvent } from 'react';
|
|
2
|
-
import
|
|
3
|
-
interface LinkInputProps {
|
|
2
|
+
import { services } from '../../services';
|
|
3
|
+
export interface LinkInputProps {
|
|
4
4
|
value?: {
|
|
5
|
-
|
|
5
|
+
uri: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
};
|
|
8
8
|
label?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
onChange?: (value: {
|
|
11
|
-
|
|
11
|
+
uri: string;
|
|
12
12
|
name?: string;
|
|
13
|
-
}, name?: string) => void;
|
|
13
|
+
} | null, name?: string) => void;
|
|
14
14
|
onBlur?: (value: {
|
|
15
|
-
|
|
15
|
+
uri: string;
|
|
16
16
|
name?: string;
|
|
17
17
|
}, name?: string) => void;
|
|
18
18
|
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
@@ -22,5 +22,4 @@ interface LinkInputProps {
|
|
|
22
22
|
errorMessage?: string;
|
|
23
23
|
className?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const LinkInput: React.ForwardRefExoticComponent<LinkInputProps & React.RefAttributes<
|
|
26
|
-
export {};
|
|
25
|
+
export declare const LinkInput: React.ForwardRefExoticComponent<LinkInputProps & React.RefAttributes<services.LinkInputService>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button/Button';
|
|
3
|
-
import {
|
|
3
|
+
import { services } from '../../services';
|
|
4
4
|
interface LoginFormProps {
|
|
5
5
|
onSubmit: (userName: string, password: string) => void;
|
|
6
|
-
onWindowsLogin
|
|
6
|
+
onWindowsLogin?: () => void;
|
|
7
7
|
onResetPassword?: () => void;
|
|
8
8
|
onSaveData?: (value: boolean, name?: string) => void;
|
|
9
9
|
onRegister?: () => void;
|
|
@@ -11,5 +11,5 @@ interface LoginFormProps {
|
|
|
11
11
|
errorMessage?: string;
|
|
12
12
|
emptyErrorText?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const LoginForm: React.ForwardRefExoticComponent<LoginFormProps & React.RefAttributes<
|
|
14
|
+
export declare const LoginForm: React.ForwardRefExoticComponent<LoginFormProps & React.RefAttributes<services.LoginFormService>>;
|
|
15
15
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
interface LoginKerberosFormProps {
|
|
4
4
|
imageUrl: string;
|
|
5
5
|
errorMessage?: string;
|
|
6
6
|
onGoBack: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const LoginKerberosForm: React.ForwardRefExoticComponent<LoginKerberosFormProps & React.RefAttributes<
|
|
8
|
+
export declare const LoginKerberosForm: React.ForwardRefExoticComponent<LoginKerberosFormProps & React.RefAttributes<services.FormService>>;
|
|
9
9
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
interface TwoFactorAuthenticationFormProps {
|
|
4
4
|
onSubmit: (code: string) => void;
|
|
5
5
|
onGoBack: () => void;
|
|
@@ -13,5 +13,5 @@ interface TwoFactorAuthenticationFormProps {
|
|
|
13
13
|
isTotpMode?: boolean;
|
|
14
14
|
totpApplicationQrCode?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const TwoFactorAuthenticationForm: React.ForwardRefExoticComponent<TwoFactorAuthenticationFormProps & React.RefAttributes<
|
|
16
|
+
export declare const TwoFactorAuthenticationForm: React.ForwardRefExoticComponent<TwoFactorAuthenticationFormProps & React.RefAttributes<services.TwoFactorAuthenticationFormService>>;
|
|
17
17
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
interface MessageInputProps {
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
isDisabled?: boolean;
|
|
@@ -12,5 +12,5 @@ interface MessageInputProps {
|
|
|
12
12
|
getFileSize: (size: any) => string;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
}
|
|
15
|
-
export declare const MessageInput: React.ForwardRefExoticComponent<MessageInputProps & React.RefAttributes<
|
|
15
|
+
export declare const MessageInput: React.ForwardRefExoticComponent<MessageInputProps & React.RefAttributes<services.MessageInputService>>;
|
|
16
16
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const renderMicrofrontend: (rendererName: string, microFrontendState: MicroFrontendState, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number) => void;
|
|
1
|
+
export declare const renderMicrofrontend: (rendererName: string, microFrontendState: any, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface MicroFrontendService {
|
|
2
|
+
init: boolean;
|
|
3
|
+
name: string | null;
|
|
4
|
+
renderInProgress: boolean;
|
|
5
|
+
unmountAction: Function | null;
|
|
6
|
+
unmount(): void;
|
|
7
|
+
render(rendererName: string, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { services } from '../../../../services';
|
|
2
|
+
export declare class MicroFrontendServiceImpl implements services.MicroFrontendService {
|
|
3
|
+
init: boolean;
|
|
4
|
+
name: string | null;
|
|
5
|
+
renderInProgress: boolean;
|
|
6
|
+
unmountAction: Function | null;
|
|
7
|
+
constructor();
|
|
8
|
+
unmount(): void;
|
|
9
|
+
render(rendererName: string, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number): void;
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
interface OverlayProps {
|
|
4
|
-
target?: HTMLElement;
|
|
4
|
+
target?: HTMLElement | null;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
isShow?: boolean;
|
|
7
7
|
isFlip?: boolean;
|
|
@@ -11,5 +11,5 @@ interface OverlayProps {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
isShowArrow?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<
|
|
14
|
+
export declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<services.OverlayService>>;
|
|
15
15
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
export interface PdfViewerProps {
|
|
4
|
-
context:
|
|
4
|
+
context: services.PdfViewerService;
|
|
5
5
|
}
|
|
6
6
|
export declare const PdfViewer: (props: PdfViewerProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
export interface ViewerProps {
|
|
4
|
-
context:
|
|
4
|
+
context: services.PdfViewerService;
|
|
5
5
|
}
|
|
6
6
|
export declare const Viewer: (props: ViewerProps) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { models } from '../../../models';
|
|
2
|
+
export interface PdfViewerService {
|
|
3
|
+
file: any;
|
|
4
|
+
versionId?: string;
|
|
5
|
+
currentVersionId: string;
|
|
6
|
+
openFile(): void;
|
|
7
|
+
fileVersionList: models.FileVersion[];
|
|
8
|
+
createLocale(key: string): any;
|
|
9
|
+
getIssueList(): Promise<any>;
|
|
10
|
+
onCreateIssue(data: any): any;
|
|
11
|
+
toggleIssueDetail(show: boolean): any;
|
|
12
|
+
deleteIssueEvent?: string;
|
|
13
|
+
updateIssueEvent?: string;
|
|
14
|
+
onChangeFileVersion: (version: models.FileVersion) => any;
|
|
15
|
+
currentVersionTooltipText?: string;
|
|
16
|
+
notCurrentVersionTooltipText?: string;
|
|
17
|
+
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface ScrollBarProps {
|
|
3
3
|
isHideScrollX?: boolean;
|
|
4
4
|
isFocusOnScroll?: boolean;
|
|
5
|
-
onInit?: (container: any) =>
|
|
5
|
+
onInit?: (container: any) => void;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
contentRef?: React.RefObject<HTMLDivElement>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Condition } from '../Criterion/Condition';
|
|
4
|
-
import { Operator } from '../Criterion/Operator';
|
|
2
|
+
import { models } from '../../models';
|
|
5
3
|
export interface AddFieldComponentRef {
|
|
6
4
|
addFieldListRef: HTMLDivElement | null;
|
|
7
5
|
addFieldButtonRef: HTMLButtonElement | null;
|
|
@@ -9,17 +7,17 @@ export interface AddFieldComponentRef {
|
|
|
9
7
|
interface SearchProps {
|
|
10
8
|
fieldList: any[];
|
|
11
9
|
visibleFieldList?: any[];
|
|
12
|
-
searchCriterionList?:
|
|
13
|
-
onFilterChange?: (searchCriterionList:
|
|
14
|
-
onSearch: (searchCriterionList:
|
|
10
|
+
searchCriterionList?: models.Criterion[];
|
|
11
|
+
onFilterChange?: (searchCriterionList: models.Criterion[]) => any;
|
|
12
|
+
onSearch: (searchCriterionList: models.Criterion[]) => any;
|
|
15
13
|
onCancel: () => any;
|
|
16
14
|
componentMap: {
|
|
17
15
|
name: string;
|
|
18
16
|
value: React.FunctionComponent<any>;
|
|
19
17
|
}[];
|
|
20
18
|
onAddField?: (selectedFieldIdList: string[]) => any;
|
|
21
|
-
operatorList: Operator[];
|
|
22
|
-
getConditionList: (componentName: string) => Condition[];
|
|
19
|
+
operatorList: models.Operator[];
|
|
20
|
+
getConditionList: (componentName: string) => models.Condition[];
|
|
23
21
|
getDefaultCondition?: (componentName: string) => number;
|
|
24
22
|
isAllFieldsVisible?: boolean;
|
|
25
23
|
labelCancel: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface SearchInputProps {
|
|
4
|
-
searchCriterionList?:
|
|
4
|
+
searchCriterionList?: models.Criterion[];
|
|
5
5
|
value?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
onCancel: () => void;
|
|
@@ -10,7 +10,7 @@ interface SearchInputProps {
|
|
|
10
10
|
onBlur?: () => void;
|
|
11
11
|
onFocus?: () => void;
|
|
12
12
|
onSearchClick?: () => void;
|
|
13
|
-
onRemoveValue?: (newItemList:
|
|
13
|
+
onRemoveValue?: (newItemList: models.Criterion[]) => void;
|
|
14
14
|
isMobileView?: boolean;
|
|
15
15
|
isActive?: boolean;
|
|
16
16
|
className?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface GroupItemProps {
|
|
4
4
|
id: string;
|
|
5
5
|
link?: string;
|
|
6
6
|
text?: string;
|
|
7
|
-
itemList: SidebarItem[];
|
|
7
|
+
itemList: models.SidebarItem[];
|
|
8
8
|
activeItem?: string;
|
|
9
9
|
setActiveItem: (id: string) => any;
|
|
10
10
|
currentUrl: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface SectionProps {
|
|
4
4
|
text?: string;
|
|
5
|
-
itemList?: SidebarItem[];
|
|
5
|
+
itemList?: models.SidebarItem[];
|
|
6
6
|
activeItem?: string;
|
|
7
7
|
setActiveItem: (id: string) => void;
|
|
8
8
|
currentUrl: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface SectionListProps {
|
|
4
|
-
itemList: SidebarSection[];
|
|
4
|
+
itemList: models.SidebarSection[];
|
|
5
5
|
currentUrl: string;
|
|
6
6
|
activeItem?: string;
|
|
7
7
|
setActiveItem: (id: string) => any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SidebarSection } from './SidebarSection';
|
|
3
2
|
import { MODE } from './SidebarConstants';
|
|
3
|
+
import { models } from '../../models';
|
|
4
4
|
interface SidebarProps {
|
|
5
|
-
history
|
|
5
|
+
history?: any;
|
|
6
6
|
theme?: string;
|
|
7
7
|
sidebar: MODE;
|
|
8
|
-
topItemList: SidebarSection[];
|
|
9
|
-
bottomItemList?: SidebarSection[];
|
|
10
|
-
overflowItemList?: SidebarSection[];
|
|
8
|
+
topItemList: models.SidebarSection[];
|
|
9
|
+
bottomItemList?: models.SidebarSection[];
|
|
10
|
+
overflowItemList?: models.SidebarSection[];
|
|
11
11
|
logo: string;
|
|
12
12
|
logoText: string;
|
|
13
13
|
activeItem?: any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SidebarItem {
|
|
3
|
+
id: string;
|
|
4
|
+
link?: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
text: string;
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
imageHoverUrl?: string;
|
|
9
|
+
isExternal?: boolean;
|
|
10
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
11
|
+
itemList?: SidebarItem[];
|
|
12
|
+
isCustom?: boolean;
|
|
13
|
+
getIsActive: (id: string) => boolean;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface SiteSelectProps {
|
|
4
|
-
itemList:
|
|
5
|
-
rootItem:
|
|
4
|
+
itemList: models.SiteSelectItem[];
|
|
5
|
+
rootItem: models.SiteSelectItem;
|
|
6
6
|
title: string;
|
|
7
|
-
activeItem:
|
|
8
|
-
onChange?: (item:
|
|
9
|
-
onMouseDown?: (item:
|
|
10
|
-
onStarChange?: (item:
|
|
7
|
+
activeItem: models.SiteSelectItem;
|
|
8
|
+
onChange?: (item: models.SiteSelectItem) => void;
|
|
9
|
+
onMouseDown?: (item: models.SiteSelectItem, mouseEvent: MouseEvent) => boolean;
|
|
10
|
+
onStarChange?: (item: models.SiteSelectItem) => void;
|
|
11
11
|
}
|
|
12
12
|
export declare const SiteSelect: (props: SiteSelectProps) => JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
interface SiteSelectItemProps {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
imageUrl?: string;
|
|
6
|
+
isStarActive?: boolean;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
isMobileView?: boolean;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
onMouseDown: (mouseEvent: MouseEvent) => void;
|
|
11
|
+
onStar?: (isStarActive: boolean) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const SiteSelectItem: (props: SiteSelectItemProps) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface SystemExceptionDialogProps {
|
|
4
4
|
message: string;
|
|
5
|
-
onConfirm: (data: SystemExceptionDialogData) => void;
|
|
5
|
+
onConfirm: (data: models.SystemExceptionDialogData) => void;
|
|
6
6
|
onCancel: () => void;
|
|
7
7
|
labelConfirm?: string;
|
|
8
8
|
labelClose?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
export interface TabGroupProps {
|
|
4
4
|
wrap?: boolean;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
onChange?: (index: number) => void;
|
|
7
|
-
onGetContent?: (index: number, data:
|
|
8
|
-
itemList:
|
|
7
|
+
onGetContent?: (index: number, data: models.Tab, content: models.Tab['content']) => void;
|
|
8
|
+
itemList: models.Tab[];
|
|
9
9
|
className?: string;
|
|
10
10
|
isDisabled?: boolean;
|
|
11
11
|
}
|