@vitrosoftware/common-ui-ts 1.1.103 → 1.1.105
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/common.css +0 -15
- package/css/std/controls/action-handler/confirm-dialog.css +6 -0
- package/css/std/controls/activity-item/activity-item.css +0 -6
- package/css/std/controls/activity-item/activity-message.css +1 -1
- package/css/std/controls/activity-item/attached-file-list.css +51 -0
- package/css/std/controls/dialog/dialog.css +5 -5
- package/css/std/controls/dropdown-button/dropdown-button.css +2 -5
- package/css/std/controls/file/file.css +94 -0
- package/css/std/controls/file/img/file-button-context.svg +6 -0
- package/css/std/controls/file-version-select/file-version-select.css +1 -0
- package/css/std/controls/heading/heading.css +7 -0
- package/css/std/controls/image-viewer/image-viewer.css +84 -0
- package/css/std/controls/image-viewer/img/context-button-white.svg +5 -0
- package/css/std/controls/image-viewer/img/image-viewer-close.svg +3 -0
- package/css/std/controls/image-viewer/page.css +19 -0
- package/css/std/controls/linear-progress/linear-progress.css +40 -0
- package/css/std/controls/message-input/attached-file.css +26 -0
- package/css/std/controls/message-input/img/attached-file-remove.svg +4 -0
- package/css/std/controls/message-input/message-input.css +42 -15
- package/css/std/controls/pdf-viewer/pdf-viewer-index.css +1 -1
- package/css/std/controls/pdf-viewer/viewer.css +1 -1
- package/css/std/controls/scroll-view/img/scroll-view-next.svg +4 -0
- package/css/std/controls/scroll-view/img/scroll-view-prev.svg +4 -0
- package/css/std/controls/scroll-view/scroll-view.css +28 -0
- package/css/std/controls/tab-group/tab-group.css +13 -3
- package/css/std/controls/table-view/treegrid.css +20 -0
- package/dist/index.css +431 -53
- package/dist/index.js +660 -214
- package/dist/index.js.map +1 -1
- package/dist/src/controls/ActivityItem/ActivityMessage.d.ts +8 -0
- package/dist/src/controls/ActivityItem/AttachedFileList.d.ts +12 -0
- package/dist/src/controls/ActivityItem/AttachedFileListItem.d.ts +9 -0
- package/dist/src/controls/ActivityItem/ChangedValue.d.ts +1 -1
- package/dist/src/controls/Dialog/Dialog.d.ts +1 -0
- package/dist/src/controls/DropdownButton/DropdownButton.d.ts +1 -1
- package/dist/src/controls/File/File.d.ts +15 -0
- package/dist/src/controls/ImageViewer/ImageItem.d.ts +5 -0
- package/dist/src/controls/ImageViewer/ImageViewer.d.ts +10 -0
- package/dist/src/controls/ImageViewer/ImageViewerRef.d.ts +5 -0
- package/dist/src/controls/ImageViewer/Page.d.ts +7 -0
- package/dist/src/controls/LinearProgress/LinearProgress.d.ts +6 -0
- package/dist/src/controls/MessageInput/AttachedFile.d.ts +10 -0
- package/dist/src/controls/MessageInput/MessageInput.d.ts +5 -2
- package/dist/src/controls/MessageInput/MessageInputConstants.d.ts +3 -1
- package/dist/src/controls/ScrollBar/ScrollBar.d.ts +1 -0
- package/dist/src/controls/ScrollView/ScrollView.d.ts +11 -0
- package/dist/src/controls/ScrollView/ScrollViewItem.d.ts +7 -0
- package/dist/src/controls/Sidebar/GroupItem.d.ts +1 -0
- package/dist/src/controls/Sidebar/LinkItem.d.ts +1 -0
- package/dist/src/controls/Sidebar/Section.d.ts +1 -0
- package/dist/src/controls/Sidebar/SectionList.d.ts +1 -0
- package/dist/src/controls/Sidebar/Sidebar.d.ts +1 -0
- package/dist/src/controls/TabGroup/OverflowButton.d.ts +1 -0
- package/dist/src/controls/TabGroup/TabGroup.d.ts +1 -0
- package/dist/src/controls/TabGroup/TabGroupComponent.d.ts +1 -0
- package/dist/src/controls/TabGroup/TabGroupHeader.d.ts +1 -0
- package/dist/src/controls/TableView/TableViewConstants.d.ts +3 -1
- package/dist/src/controls/View/View.d.ts +1 -0
- package/dist/src/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChangedValue } from './ChangedValue';
|
|
3
|
+
import { FileProps } from '../File/File';
|
|
3
4
|
export interface ActivityMessageProps {
|
|
4
5
|
changedValueList: ChangedValue[];
|
|
6
|
+
fileList?: FileProps[];
|
|
7
|
+
maxVisibleImageCount?: number;
|
|
8
|
+
maxVisibleFileCount?: number;
|
|
9
|
+
hiddenImageCountTooltip?: string;
|
|
10
|
+
hiddenFileCountTooltip?: string;
|
|
11
|
+
showHiddenImageList?: (hiddenImageList: any[], imageList: any[]) => any;
|
|
12
|
+
showHiddenFileList?: (fileList: any[]) => any;
|
|
5
13
|
}
|
|
6
14
|
export declare const ActivityMessage: (props: ActivityMessageProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileProps } from '../File/File';
|
|
3
|
+
export interface AttachedFileListProps {
|
|
4
|
+
fileList: FileProps[];
|
|
5
|
+
hiddenImageCountTooltip?: string;
|
|
6
|
+
hiddenFileCountTooltip?: string;
|
|
7
|
+
maxVisibleImageCount?: number;
|
|
8
|
+
maxVisibleFileCount?: number;
|
|
9
|
+
showHiddenImageList?: (hiddenImageList: any[], imageList: any[]) => any;
|
|
10
|
+
showHiddenFileList?: (fileList: any[]) => any;
|
|
11
|
+
}
|
|
12
|
+
export declare const AttachedFileList: (props: AttachedFileListProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileProps } from '../File/File';
|
|
3
|
+
export interface AttachedFileListItemProps {
|
|
4
|
+
fileList: FileProps[];
|
|
5
|
+
maxVisibleFileCount: number;
|
|
6
|
+
hiddenFileCountTooltip?: string;
|
|
7
|
+
showHiddenFileList?: (hiddenFileList: FileProps[], fileList?: FileProps[]) => any;
|
|
8
|
+
}
|
|
9
|
+
export declare const AttachedFileListItem: (props: AttachedFileListItemProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropdownItem } from '../DropdownButton/DropdownItem';
|
|
3
|
+
export interface FileProps {
|
|
4
|
+
id: string;
|
|
5
|
+
preview: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
actionList?: DropdownItem[];
|
|
11
|
+
onClick?: (id: string) => any;
|
|
12
|
+
className?: string;
|
|
13
|
+
isImage?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const File: (props: FileProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ImageItem } from './ImageItem';
|
|
3
|
+
import { ImageViewerRef } from './ImageViewerRef';
|
|
4
|
+
interface ImageViewerProps {
|
|
5
|
+
itemList: ImageItem[];
|
|
6
|
+
activePage?: number;
|
|
7
|
+
onCloseClick: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ImageViewer: React.ForwardRefExoticComponent<ImageViewerProps & React.RefAttributes<ImageViewerRef>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface AttachedFileProps {
|
|
3
|
+
file: any;
|
|
4
|
+
index: number;
|
|
5
|
+
onDelete: (index: number) => any;
|
|
6
|
+
getFileImage: (name: string) => string;
|
|
7
|
+
getFileSize: (size: any) => string;
|
|
8
|
+
}
|
|
9
|
+
export declare const AttachedFile: (props: AttachedFileProps) => JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -2,10 +2,13 @@ import React from 'react';
|
|
|
2
2
|
interface MessageInputProps {
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
isDisabled?: boolean;
|
|
5
|
-
onSubmit: (value: string) => any;
|
|
6
|
-
|
|
5
|
+
onSubmit: (value: string, fileList: any[]) => any;
|
|
6
|
+
onSelectFiles?: (fileList: any[]) => any;
|
|
7
7
|
onChange?: (value: string) => any;
|
|
8
8
|
onDrop?: (e: any) => any;
|
|
9
|
+
onPasteFile?: (fileList: any[]) => any;
|
|
10
|
+
getFileImage: (name: string) => string;
|
|
11
|
+
getFileSize: (size: any) => string;
|
|
9
12
|
children?: React.ReactNode;
|
|
10
13
|
}
|
|
11
14
|
export declare const MessageInput: (props: MessageInputProps) => JSX.Element;
|
|
@@ -5,6 +5,7 @@ interface ScrollBarProps {
|
|
|
5
5
|
onInit?: (container: any) => any;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
|
+
contentRef?: React.RefObject<HTMLDivElement>;
|
|
8
9
|
contentClassName?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare const ScrollBar: (props: ScrollBarProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ScrollViewItem } from './ScrollViewItem';
|
|
3
|
+
interface ScrollViewProps {
|
|
4
|
+
itemList: ScrollViewItem[];
|
|
5
|
+
activePage?: number;
|
|
6
|
+
isEnablePager?: boolean;
|
|
7
|
+
onChange?: (nextPage: number, e: any) => any;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ScrollView: (props: ScrollViewProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -8,6 +8,7 @@ interface SectionListProps {
|
|
|
8
8
|
linkItemWidth?: number;
|
|
9
9
|
isExpanded: boolean;
|
|
10
10
|
isMobileView: boolean;
|
|
11
|
+
isDisabled?: boolean;
|
|
11
12
|
container?: any;
|
|
12
13
|
}
|
|
13
14
|
export declare const SectionList: React.ForwardRefExoticComponent<SectionListProps & React.RefAttributes<unknown>>;
|
|
@@ -90,7 +90,9 @@ export declare enum ATTRIBUTE {
|
|
|
90
90
|
ORIG_NAME = "Orig",
|
|
91
91
|
ALIGN = "Align",
|
|
92
92
|
TIP = "Tip",
|
|
93
|
-
TIP_POSITION = "TipPosition"
|
|
93
|
+
TIP_POSITION = "TipPosition",
|
|
94
|
+
HTML = "Html",
|
|
95
|
+
CLASS = "Class"
|
|
94
96
|
}
|
|
95
97
|
export declare enum DRAG_ITEM_TYPE {
|
|
96
98
|
CANNOT_DROP = 0,
|
package/dist/src/index.d.ts
CHANGED
|
@@ -93,6 +93,12 @@ import { FileVersionItem } from './controls/FileVersionSelect/FileVersionItem';
|
|
|
93
93
|
import { RouteItem } from './controls/RouteItem/RouteItem';
|
|
94
94
|
import { BimViewer } from './controls/BimViewer/BimViewer';
|
|
95
95
|
import { BimViewerContext } from './controls/BimViewer/BimViewerContext';
|
|
96
|
+
import { ScrollView } from './controls/ScrollView/ScrollView';
|
|
97
|
+
import { ScrollViewItem } from './controls/ScrollView/ScrollViewItem';
|
|
98
|
+
import { ImageViewer } from './controls/ImageViewer/ImageViewer';
|
|
99
|
+
import { ImageViewerRef } from './controls/ImageViewer/ImageViewerRef';
|
|
100
|
+
import { ImageItem } from './controls/ImageViewer/ImageItem';
|
|
101
|
+
import { File } from './controls/File/File';
|
|
96
102
|
import { TaskUserList } from './controls/TaskUserList/TaskUserList';
|
|
97
103
|
import { PageLayout } from './controls/PageLayout/PageLayout';
|
|
98
104
|
import { Header } from './controls/Header/Header';
|
|
@@ -130,6 +136,7 @@ import { StarButton } from './controls/StarButton/StarButton';
|
|
|
130
136
|
import { FlexBox } from './controls/FlexBox/FlexBox';
|
|
131
137
|
import { SlideUpPanel } from './controls/SlideUpPanel/SlideUpPanel';
|
|
132
138
|
import { BottomAlignControlGroup } from './controls/BottomAlignControlGroup/BottomAlignControlGroup';
|
|
139
|
+
import { LinearProgress } from './controls/LinearProgress/LinearProgress';
|
|
133
140
|
export { Breadcrumbs };
|
|
134
141
|
export { TopLevelMenu };
|
|
135
142
|
export { TreeView, TreeViewContext, TREE_VIEW, TreeViewProps, JsTreeViewNode };
|
|
@@ -209,3 +216,7 @@ export { StarButton };
|
|
|
209
216
|
export { FlexBox };
|
|
210
217
|
export { SlideUpPanel };
|
|
211
218
|
export { BottomAlignControlGroup };
|
|
219
|
+
export { ScrollView, ScrollViewItem };
|
|
220
|
+
export { ImageViewer, ImageViewerRef, ImageItem };
|
|
221
|
+
export { File };
|
|
222
|
+
export { LinearProgress };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.
|
|
1
|
+
import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.105';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
Viewer, XKTLoaderPlugin, NavCubePlugin, SectionPlanesPlugin, math, BCFViewpointsPlugin, AnnotationsPlugin,
|
|
5
5
|
ContextMenu, TreeViewPlugin, StoreyViewsPlugin, AngleMeasurementsPlugin, CameraMemento, DistanceMeasurementsPlugin,
|
|
6
6
|
GLTFLoaderPlugin, utils, FastNavPlugin, MetaObject
|
|
7
7
|
}
|
|
8
|
-
from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.
|
|
8
|
+
from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.105';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
const processByChildIdList = (treeViewNode, event) => {
|
|
@@ -3222,7 +3222,7 @@ const defaultOptions = {
|
|
|
3222
3222
|
kind: OptionKind.WORKER
|
|
3223
3223
|
},
|
|
3224
3224
|
workerSrc: {
|
|
3225
|
-
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.
|
|
3225
|
+
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.105",
|
|
3226
3226
|
kind: OptionKind.WORKER
|
|
3227
3227
|
}
|
|
3228
3228
|
};
|