@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
|
@@ -11,8 +11,8 @@ export declare enum EVENT {
|
|
|
11
11
|
HISTORY_CHANGED = "vitro.history.changed",
|
|
12
12
|
DROP = "drop",
|
|
13
13
|
CONTEXTMENU = "contextmenu",
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
COMMAND_MENU_TOGGLE = "vitro.commandmenu.toggle",
|
|
15
|
+
PDF_VIEWER_PAN_START = "vitro.pdfviewer.pan.start",
|
|
16
16
|
CHANGE = "change",
|
|
17
17
|
TOUCHEND = "touchend",
|
|
18
18
|
TOUCHMOVE = "touchmove"
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ActionHandlerResult } from './ActionHandlerResult';
|
|
2
|
+
import { models } from '../../models';
|
|
4
3
|
interface ActionHandlerProps {
|
|
5
4
|
actionCode: string;
|
|
6
5
|
actionName?: string;
|
|
7
|
-
processItem: (item: ActionHandlerItem | {}) => any;
|
|
8
|
-
item?: ActionHandlerItem;
|
|
9
|
-
itemList?: ActionHandlerItem[];
|
|
6
|
+
processItem: (item: models.ActionHandlerItem | {}) => any;
|
|
7
|
+
item?: models.ActionHandlerItem;
|
|
8
|
+
itemList?: models.ActionHandlerItem[];
|
|
10
9
|
isShowAfterAction?: boolean;
|
|
11
10
|
isShowProgress?: boolean;
|
|
12
11
|
isHideProgressBar?: boolean;
|
|
13
12
|
isShow?: boolean;
|
|
14
13
|
isAutoClose?: boolean;
|
|
15
|
-
processError?: (failResult: ActionHandlerResult) => any;
|
|
16
|
-
onAfterAction?: (error: Error | null, successResult: ActionHandlerResult, failResult: ActionHandlerResult, warningResult: ActionHandlerResult) => void;
|
|
14
|
+
processError?: (failResult: models.ActionHandlerResult) => any;
|
|
15
|
+
onAfterAction?: (error: Error | null, successResult: models.ActionHandlerResult, failResult: models.ActionHandlerResult, warningResult: models.ActionHandlerResult) => void;
|
|
17
16
|
onBeforeAction?: () => void;
|
|
18
|
-
onAfterActionClose?: (error: Error | null, successResult: ActionHandlerResult, failResult: ActionHandlerResult, warningResult: ActionHandlerResult) => void;
|
|
19
|
-
onSaveReport?: (successResult: ActionHandlerResult, failResult: ActionHandlerResult, warningResult: ActionHandlerResult) => void;
|
|
17
|
+
onAfterActionClose?: (error: Error | null, successResult: models.ActionHandlerResult, failResult: models.ActionHandlerResult, warningResult: models.ActionHandlerResult) => void;
|
|
18
|
+
onSaveReport?: (successResult: models.ActionHandlerResult, failResult: models.ActionHandlerResult, warningResult: models.ActionHandlerResult) => void;
|
|
20
19
|
onError?: (excepton: any) => {
|
|
21
20
|
abort: boolean;
|
|
22
21
|
exception: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface ActionResultListProps {
|
|
4
|
-
successResult: ActionHandlerResult;
|
|
5
|
-
failResult: ActionHandlerResult;
|
|
6
|
-
warningResult: ActionHandlerResult;
|
|
4
|
+
successResult: models.ActionHandlerResult;
|
|
5
|
+
failResult: models.ActionHandlerResult;
|
|
6
|
+
warningResult: models.ActionHandlerResult;
|
|
7
7
|
isVisible: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const ActionResultList: (props: ActionResultListProps) => JSX.Element;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { ActionHandlerResult } from './ActionHandlerResult';
|
|
2
|
+
import { models } from '../../models';
|
|
4
3
|
interface ResultDialogProps {
|
|
5
4
|
actionName: string;
|
|
6
|
-
successResult: ActionHandlerResult;
|
|
7
|
-
failResult: ActionHandlerResult;
|
|
8
|
-
warningResult: ActionHandlerResult;
|
|
9
|
-
itemList: ActionHandlerItem[];
|
|
5
|
+
successResult: models.ActionHandlerResult;
|
|
6
|
+
failResult: models.ActionHandlerResult;
|
|
7
|
+
warningResult: models.ActionHandlerResult;
|
|
8
|
+
itemList: models.ActionHandlerItem[];
|
|
10
9
|
processedItemCount: number;
|
|
11
10
|
isSuccess: boolean;
|
|
12
11
|
isWarning: boolean;
|
|
13
12
|
isProgress: boolean;
|
|
14
|
-
onSaveReport?: (successResult: ActionHandlerResult, failResult: ActionHandlerResult, warningResult: ActionHandlerResult) => void;
|
|
13
|
+
onSaveReport?: (successResult: models.ActionHandlerResult, failResult: models.ActionHandlerResult, warningResult: models.ActionHandlerResult) => void;
|
|
15
14
|
onClose: () => void;
|
|
16
15
|
onCancel: () => void;
|
|
17
16
|
zIndex?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface ActivityProps {
|
|
4
4
|
title?: string;
|
|
5
|
-
filterDropdownList?: DropdownItem[];
|
|
5
|
+
filterDropdownList?: models.DropdownItem[];
|
|
6
6
|
onDrop?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
export interface ActivityItemProps {
|
|
4
4
|
userName: string;
|
|
5
5
|
title?: string;
|
|
@@ -7,7 +7,7 @@ export interface ActivityItemProps {
|
|
|
7
7
|
message: string;
|
|
8
8
|
date?: any;
|
|
9
9
|
variant?: string;
|
|
10
|
-
dropdownItemList?: DropdownItem[];
|
|
10
|
+
dropdownItemList?: models.DropdownItem[];
|
|
11
11
|
onDropdownToggle?: (state: any, e: any) => any;
|
|
12
12
|
isActive?: boolean;
|
|
13
13
|
isShowDetail?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ChangedValue } from './ChangedValue';
|
|
3
2
|
import { FileProps } from '../File/File';
|
|
3
|
+
import { models } from '../../models';
|
|
4
4
|
export interface ActivityMessageProps {
|
|
5
|
-
changedValueList: ChangedValue[];
|
|
5
|
+
changedValueList: models.ChangedValue[];
|
|
6
6
|
fileList?: FileProps[];
|
|
7
7
|
maxVisibleImageCount?: number;
|
|
8
8
|
maxVisibleFileCount?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
export interface BimViewerProps {
|
|
4
|
-
context:
|
|
4
|
+
context: services.BimViewerService;
|
|
5
5
|
}
|
|
6
6
|
export declare const BimViewer: (props: BimViewerProps) => 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.BimViewerService;
|
|
5
5
|
}
|
|
6
6
|
export declare const Viewer: (props: ViewerProps) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { models } from '../../../models';
|
|
2
|
+
export interface BimViewerService {
|
|
3
|
+
file: any;
|
|
4
|
+
versionId?: string;
|
|
5
|
+
currentVersionId: string;
|
|
6
|
+
fileVersionList: models.FileVersion[];
|
|
7
|
+
onCreateIssue(data: any): any;
|
|
8
|
+
createLocale(key: string): any;
|
|
9
|
+
getIssueList(): Promise<any>;
|
|
10
|
+
getFilePath: (itemId: string, version?: string) => string;
|
|
11
|
+
deleteIssueEvent?: string;
|
|
12
|
+
updateIssueEvent?: string;
|
|
13
|
+
getItem: (id: string) => Promise<any>;
|
|
14
|
+
onChangeFileVersion: (version: models.FileVersion) => any;
|
|
15
|
+
currentVersionTooltipText?: string;
|
|
16
|
+
notCurrentVersionTooltipText?: string;
|
|
17
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
export interface BreadcrumbsProps {
|
|
4
4
|
text?: string;
|
|
5
|
-
itemList?: BreadcrumbsItem[];
|
|
5
|
+
itemList?: models.BreadcrumbsItem[];
|
|
6
6
|
getItemList?: (e: any) => any;
|
|
7
7
|
updateEvent?: string;
|
|
8
8
|
resetEvent?: string;
|
|
9
|
-
onClick: (item: BreadcrumbsItem) => void;
|
|
9
|
+
onClick: (item: models.BreadcrumbsItem) => void;
|
|
10
10
|
displayItemCount: number;
|
|
11
11
|
wrapRoot?: boolean;
|
|
12
12
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
export interface CheckboxProps {
|
|
4
4
|
value?: boolean;
|
|
5
5
|
isIndeterminate?: boolean;
|
|
@@ -10,4 +10,4 @@ export interface CheckboxProps {
|
|
|
10
10
|
name: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<
|
|
13
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<services.CheckboxService>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface CheckboxReorderableListProps {
|
|
4
|
-
itemList: CheckboxReorderableListItem[];
|
|
4
|
+
itemList: models.CheckboxReorderableListItem[];
|
|
5
5
|
onChange?: (selectedItemList: any[]) => void;
|
|
6
6
|
isAllSelected?: boolean;
|
|
7
7
|
className?: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FunctionComponent, FunctionComponentElement } from 'react';
|
|
2
|
+
export interface ComponentLoaderService {
|
|
3
|
+
setReactComponent(createComponent: (component: FunctionComponent<any>, props: any) => FunctionComponentElement<any>, setComponentList: (componentList: FunctionComponentElement<any>[]) => any): void;
|
|
4
|
+
add(component: FunctionComponent<any>, props: any): any;
|
|
5
|
+
remove(component: FunctionComponentElement<any>): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionComponent, FunctionComponentElement } from 'react';
|
|
2
|
+
import { services } from '../../../../services';
|
|
3
|
+
export declare class ComponentLoaderServiceImpl implements services.ComponentLoaderService {
|
|
4
|
+
private componentList;
|
|
5
|
+
private createComponent;
|
|
6
|
+
private setComponentList;
|
|
7
|
+
constructor();
|
|
8
|
+
setReactComponent(createComponent: (component: FunctionComponent, props: any) => FunctionComponentElement<any>, setComponentList: (componentList: FunctionComponentElement<any>[]) => any): void;
|
|
9
|
+
add(component: FunctionComponent, props: any): FunctionComponentElement<any>;
|
|
10
|
+
remove(component: FunctionComponentElement<any>): void;
|
|
11
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface ConditionSelectProps {
|
|
4
|
-
itemList: Condition[];
|
|
5
|
-
defaultValue?: Condition;
|
|
4
|
+
itemList: models.Condition[];
|
|
5
|
+
defaultValue?: models.Condition;
|
|
6
6
|
onSelect: (condition: any) => any;
|
|
7
7
|
}
|
|
8
8
|
export declare const ConditionSelect: React.ForwardRefExoticComponent<ConditionSelectProps & React.RefAttributes<unknown>>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Condition } from './Condition';
|
|
4
|
-
import { Operator } from './Operator';
|
|
2
|
+
import { models } from '../../models';
|
|
5
3
|
interface CriterionProps {
|
|
6
4
|
label: string;
|
|
7
|
-
operatorList?: Operator[];
|
|
8
|
-
conditionList: Condition[];
|
|
5
|
+
operatorList?: models.Operator[];
|
|
6
|
+
conditionList: models.Condition[];
|
|
9
7
|
defaultOperator?: number;
|
|
10
8
|
defaultCondition?: number;
|
|
11
|
-
onChange: (value:
|
|
9
|
+
onChange: (value: models.Criterion, name: string) => any;
|
|
12
10
|
onDelete: (key: string) => any;
|
|
13
11
|
className?: string;
|
|
14
12
|
isShowOperatorSelect: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Operator } from '../Criterion/Operator';
|
|
2
|
+
import { models } from '../../models';
|
|
4
3
|
interface CriterionFieldIteratorProps {
|
|
5
4
|
fieldList: any[];
|
|
6
5
|
valueList: any[];
|
|
@@ -12,8 +11,8 @@ interface CriterionFieldIteratorProps {
|
|
|
12
11
|
onChange: (changedFieldValueMap: Map<string, any>, saveStatus?: {
|
|
13
12
|
isSaving: boolean;
|
|
14
13
|
}) => any;
|
|
15
|
-
operatorList?: Operator[];
|
|
16
|
-
getConditionList: (componentName: string) => Condition[];
|
|
14
|
+
operatorList?: models.Operator[];
|
|
15
|
+
getConditionList: (componentName: string) => models.Condition[];
|
|
17
16
|
getDefaultCondition?: (componentName: string) => number;
|
|
18
17
|
onDeleteField: (key: string) => any;
|
|
19
18
|
isMobileView?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { KeyboardEvent } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button/Button';
|
|
3
3
|
export interface DialogProps {
|
|
4
|
-
title
|
|
4
|
+
title?: string;
|
|
5
5
|
subtitle?: string;
|
|
6
6
|
image?: React.ReactNode;
|
|
7
7
|
imageUrl?: string;
|
|
@@ -13,7 +13,7 @@ export interface DialogProps {
|
|
|
13
13
|
width?: number;
|
|
14
14
|
height?: number;
|
|
15
15
|
content?: {
|
|
16
|
-
component: React.FunctionComponent<any
|
|
16
|
+
component: React.FunctionComponent<any> | string;
|
|
17
17
|
props: {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface DropdownButtonProps {
|
|
4
|
-
itemList: DropdownItem[];
|
|
4
|
+
itemList: models.DropdownItem[];
|
|
5
5
|
title?: string | React.ReactNode;
|
|
6
6
|
isIgnoreOverflow?: boolean;
|
|
7
7
|
isFlip?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { services } from '../../services';
|
|
3
3
|
export interface DxfViewerProps {
|
|
4
|
-
context:
|
|
4
|
+
context: services.DxfViewerService;
|
|
5
5
|
}
|
|
6
6
|
export declare const DxfViewer: (props: DxfViewerProps) => 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.DxfViewerService;
|
|
5
5
|
}
|
|
6
6
|
export declare const Viewer: (props: ViewerProps) => JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { models } from '../../../models';
|
|
2
|
+
export interface DxfViewerService {
|
|
3
|
+
file: any;
|
|
4
|
+
versionId?: string;
|
|
5
|
+
currentVersionId: string;
|
|
6
|
+
issueList: any[];
|
|
7
|
+
openFile?: () => void;
|
|
8
|
+
fileVersionList: models.FileVersion[];
|
|
9
|
+
createLocale(key: string): any;
|
|
10
|
+
selectIssue?: (id: string) => void;
|
|
11
|
+
getIssueList(): Promise<any>;
|
|
12
|
+
onCreateIssue(data: any): any;
|
|
13
|
+
toggleIssueDetail?: (show: boolean) => void;
|
|
14
|
+
zoomToAnnotation?: (id: string) => void;
|
|
15
|
+
deleteIssueEvent?: string;
|
|
16
|
+
updateIssueEvent?: string;
|
|
17
|
+
onChangeFileVersion: (version: models.FileVersion) => any;
|
|
18
|
+
currentVersionTooltipText?: string;
|
|
19
|
+
notCurrentVersionTooltipText?: string;
|
|
20
|
+
expandSidebarIssueDetail?: () => void;
|
|
21
|
+
initLayers?: (layersList: any[]) => void;
|
|
22
|
+
onChangeLayerVisibility?: (name: string, val: boolean) => void;
|
|
23
|
+
layersTitle: string;
|
|
24
|
+
toggleLayersLabel: string;
|
|
25
|
+
thumbnailListTitle: string;
|
|
26
|
+
onLoaded?: () => void;
|
|
27
|
+
initThumbnail?: (id: string, name: string, imageUrl: string) => string;
|
|
28
|
+
fileName: string;
|
|
29
|
+
fileImageUrl: string;
|
|
30
|
+
scaleAutoLabel: string;
|
|
31
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface EditableItemProps {
|
|
4
4
|
id: string;
|
|
5
5
|
text: string;
|
|
6
|
-
dropdownItemList?: DropdownItem[];
|
|
6
|
+
dropdownItemList?: models.DropdownItem[];
|
|
7
7
|
isEditMode: boolean;
|
|
8
8
|
isActive: boolean;
|
|
9
9
|
isDropdownActive?: boolean;
|
|
10
10
|
onChange: (value: string) => void;
|
|
11
11
|
onBlur: (value: string) => void;
|
|
12
12
|
onToggleDropdown?: (state: boolean) => void;
|
|
13
|
-
getDropdownItemList?: (id: string) => Promise<DropdownItem[]>;
|
|
13
|
+
getDropdownItemList?: (id: string) => Promise<models.DropdownItem[]>;
|
|
14
14
|
button?: React.ReactNode;
|
|
15
15
|
isMobileView?: boolean;
|
|
16
16
|
icon?: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { EditableListItem } from './EditableListItem';
|
|
2
|
+
import { models } from '../../models';
|
|
4
3
|
interface EditableListProps {
|
|
5
|
-
itemList: EditableListItem[];
|
|
6
|
-
newItem?: EditableListItem;
|
|
4
|
+
itemList: models.EditableListItem[];
|
|
5
|
+
newItem?: models.EditableListItem;
|
|
7
6
|
title?: string;
|
|
8
7
|
createButtonTooltip?: string;
|
|
9
8
|
editedItemId?: string;
|
|
@@ -13,7 +12,7 @@ interface EditableListProps {
|
|
|
13
12
|
onChange?: (item: any, value: string) => void;
|
|
14
13
|
onStartEdit?: (item: any) => void;
|
|
15
14
|
onEndEdit?: (item: any, value: string) => void;
|
|
16
|
-
getDropdownItemList?: (id: string) => Promise<DropdownItem[]>;
|
|
15
|
+
getDropdownItemList?: (id: string) => Promise<models.DropdownItem[]>;
|
|
17
16
|
isShowCreateButton?: boolean;
|
|
18
17
|
isActiveNewItem?: boolean;
|
|
19
18
|
className?: string;
|
|
@@ -19,6 +19,7 @@ interface FieldIteratorProps {
|
|
|
19
19
|
isVisibleOverflow?: boolean;
|
|
20
20
|
maxVisibleCount?: number;
|
|
21
21
|
isReadOnly?: boolean;
|
|
22
|
+
controlData?: any;
|
|
22
23
|
className?: string;
|
|
23
24
|
}
|
|
24
25
|
export declare const FieldIterator: React.ForwardRefExoticComponent<FieldIteratorProps & React.RefAttributes<unknown>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
export interface FileProps {
|
|
4
4
|
id: string;
|
|
5
|
-
preview
|
|
5
|
+
preview?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
size?: string;
|
|
8
8
|
image?: string;
|
|
9
9
|
tooltip?: string;
|
|
10
|
-
actionList?: DropdownItem[];
|
|
10
|
+
actionList?: models.DropdownItem[];
|
|
11
11
|
isImage?: boolean;
|
|
12
12
|
onClick?: (id: string) => void;
|
|
13
13
|
className?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
export interface FileVersionSelectProps {
|
|
4
4
|
fileName: string;
|
|
5
|
-
itemList:
|
|
5
|
+
itemList: models.FileVersion[];
|
|
6
6
|
currentVersionId: string;
|
|
7
7
|
selectedVersionId: string;
|
|
8
8
|
tooltipTextCurrent: string;
|
|
9
9
|
tooltipTextNotCurrent: string;
|
|
10
|
-
onChange: (version:
|
|
10
|
+
onChange: (version: models.FileVersion) => any;
|
|
11
11
|
}
|
|
12
12
|
export declare const FileVersionSelect: (props: FileVersionSelectProps) => JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
export interface ItemProps {
|
|
4
|
-
version:
|
|
4
|
+
version: models.FileVersion;
|
|
5
5
|
versionWidth: number;
|
|
6
6
|
updateVersionWidth: (width: number) => void;
|
|
7
7
|
fileName: string;
|
|
8
8
|
isActive: boolean;
|
|
9
9
|
isCurrent: boolean;
|
|
10
|
-
onClick: (version:
|
|
10
|
+
onClick: (version: models.FileVersion) => any;
|
|
11
11
|
}
|
|
12
12
|
export declare const Item: (props: ItemProps) => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
3
|
interface ImagePickerProps {
|
|
4
4
|
label: string;
|
|
5
5
|
name?: string;
|
|
6
|
-
itemList?: DropdownItem[];
|
|
6
|
+
itemList?: models.DropdownItem[];
|
|
7
7
|
defaultUrl?: string;
|
|
8
8
|
classNameRoot?: string;
|
|
9
9
|
classNameImage?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { models } from '../../models';
|
|
3
|
+
import { services } from '../../services';
|
|
4
4
|
interface ImageViewerProps {
|
|
5
|
-
itemList:
|
|
5
|
+
itemList: models.Image[];
|
|
6
6
|
activePage?: number;
|
|
7
7
|
onCloseClick: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const ImageViewer: React.ForwardRefExoticComponent<ImageViewerProps & React.RefAttributes<
|
|
9
|
+
export declare const ImageViewer: React.ForwardRefExoticComponent<ImageViewerProps & React.RefAttributes<services.ImageViewerService>>;
|
|
10
10
|
export {};
|