@vitrosoftware/common-ui-ts 1.1.84 → 1.1.85
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/{common.css → std/common.css} +0 -10
- package/css/std/controls/bim-viewer/bim-viewer-index.css +6 -0
- package/css/std/controls/bim-viewer/bim-viewer.css +6 -0
- package/css/std/controls/file-version-select/file-version-select.css +11 -0
- package/css/std/controls/pdf-viewer/pdf-viewer-index.css +10 -3
- package/css/std/controls/pdf-viewer/pdf-viewer.css +10 -3
- package/css/std/controls/scrollbar/scrollbar.css +2 -0
- package/css/std/controls/sidebar/sidebar-item.css +214 -40
- package/css/std/controls/sidebar/sidebar.css +20 -7
- package/css/std/controls/table-view/treegrid.css +42 -27
- package/css/std/controls/tree-view/tree-view.css +2 -0
- package/css/white/common.css +21 -0
- package/dist/index.css +251 -58
- package/dist/index.js +246 -43
- package/dist/index.js.map +1 -1
- package/dist/src/constants/MobileView.d.ts +3 -0
- package/dist/src/controls/ScrollBar/ScrollBar.d.ts +1 -0
- package/dist/src/controls/Sidebar/GroupItem.d.ts +16 -0
- package/dist/src/controls/Sidebar/Item.d.ts +4 -2
- package/dist/src/controls/Sidebar/LinkItem.d.ts +5 -3
- package/dist/src/controls/Sidebar/Section.d.ts +7 -2
- package/dist/src/controls/Sidebar/SectionList.d.ts +3 -0
- package/dist/src/controls/Sidebar/SidebarItem.d.ts +6 -4
- package/dist/src/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SidebarItem } from './SidebarItem';
|
|
3
|
+
interface GroupItemProps {
|
|
4
|
+
id: string;
|
|
5
|
+
link?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
itemList: SidebarItem[];
|
|
8
|
+
activeItem?: string;
|
|
9
|
+
currentUrl: string;
|
|
10
|
+
linkItemWidth?: number;
|
|
11
|
+
container?: any;
|
|
12
|
+
isSidebarExpanded: boolean;
|
|
13
|
+
isMobileView: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const GroupItem: (props: GroupItemProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface ItemProps {
|
|
3
|
-
text
|
|
4
|
-
imageUrl
|
|
3
|
+
text?: string;
|
|
4
|
+
imageUrl?: string;
|
|
5
5
|
imageHoverUrl?: string;
|
|
6
6
|
isHover?: boolean;
|
|
7
|
+
isSidebarExpanded: boolean;
|
|
8
|
+
isMobileView: boolean;
|
|
7
9
|
}
|
|
8
10
|
export declare const Item: (props: ItemProps) => JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface LinkItem {
|
|
3
3
|
link?: string;
|
|
4
4
|
currentUrl: string;
|
|
5
5
|
activeItem?: string;
|
|
6
6
|
id: string;
|
|
7
|
-
onClick?: string;
|
|
8
7
|
href?: string;
|
|
9
8
|
isExternal?: boolean;
|
|
10
|
-
imageUrl
|
|
9
|
+
imageUrl?: string;
|
|
11
10
|
imageHoverUrl?: string;
|
|
12
11
|
text: string;
|
|
13
12
|
linkItemWidth?: number;
|
|
14
13
|
altUrlList?: string[];
|
|
14
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
15
|
+
isSidebarExpanded: boolean;
|
|
16
|
+
isMobileView: boolean;
|
|
15
17
|
}
|
|
16
18
|
export declare const LinkItem: (props: LinkItem) => JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SidebarItem } from './SidebarItem';
|
|
3
3
|
interface SectionProps {
|
|
4
|
+
link?: string;
|
|
4
5
|
text?: string;
|
|
5
|
-
itemList
|
|
6
|
+
itemList?: SidebarItem[];
|
|
6
7
|
activeItem?: string;
|
|
7
8
|
currentUrl: string;
|
|
8
9
|
linkItemWidth?: number;
|
|
10
|
+
isExpanded: boolean;
|
|
11
|
+
isMobileView: boolean;
|
|
12
|
+
container?: any;
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
9
14
|
}
|
|
10
15
|
export declare const Section: (props: SectionProps) => JSX.Element;
|
|
11
16
|
export {};
|
|
@@ -5,6 +5,9 @@ interface SectionListProps {
|
|
|
5
5
|
currentUrl: string;
|
|
6
6
|
activeItem?: string;
|
|
7
7
|
linkItemWidth?: number;
|
|
8
|
+
isExpanded: boolean;
|
|
9
|
+
isMobileView: boolean;
|
|
10
|
+
container?: any;
|
|
8
11
|
}
|
|
9
12
|
export declare const SectionList: React.ForwardRefExoticComponent<SectionListProps & React.RefAttributes<unknown>>;
|
|
10
13
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface SidebarItem {
|
|
2
3
|
id: string;
|
|
3
|
-
text: string;
|
|
4
|
-
href?: string;
|
|
5
4
|
link?: string;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
href?: string;
|
|
6
|
+
text: string;
|
|
7
|
+
imageUrl?: string;
|
|
8
8
|
imageHoverUrl?: string;
|
|
9
9
|
isExternal?: boolean;
|
|
10
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
11
|
+
itemList?: SidebarItem[];
|
|
10
12
|
}
|
package/dist/src/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitrosoftware/common-ui-ts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.85",
|
|
4
4
|
"description": "vitro software common ui ts",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"rollup-plugin-postcss": "^3.1.3",
|
|
74
74
|
"inversify": "6.0.1",
|
|
75
75
|
"inversify-react": "1.0.2",
|
|
76
|
-
"@vitrosoftware/common-ui": "1.1.
|
|
76
|
+
"@vitrosoftware/common-ui": "1.1.33",
|
|
77
77
|
"react-router-bootstrap": "^0.24.4",
|
|
78
78
|
"m-react-splitters": "^1.2.0"
|
|
79
79
|
}
|
|
@@ -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.85';
|
|
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.85';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
const processByChildIdList = (treeViewNode, event) => {
|
|
@@ -3213,7 +3213,7 @@ const defaultOptions = {
|
|
|
3213
3213
|
kind: OptionKind.WORKER
|
|
3214
3214
|
},
|
|
3215
3215
|
workerSrc: {
|
|
3216
|
-
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.
|
|
3216
|
+
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.85",
|
|
3217
3217
|
kind: OptionKind.WORKER
|
|
3218
3218
|
}
|
|
3219
3219
|
};
|
|
@@ -17797,7 +17797,7 @@ function bindSelect(select) {
|
|
|
17797
17797
|
});
|
|
17798
17798
|
|
|
17799
17799
|
$(document).click(function (e) {
|
|
17800
|
-
if ($(select).children()
|
|
17800
|
+
if (!Array.from($(select).children()).includes(e.target)) {
|
|
17801
17801
|
$(select).removeClass('active');
|
|
17802
17802
|
}
|
|
17803
17803
|
});
|