@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.
@@ -0,0 +1,3 @@
1
+ export declare enum MOBILE_VIEW {
2
+ WIDTH = 800
3
+ }
@@ -4,6 +4,7 @@ interface ScrollBarProps {
4
4
  isFocusOnScroll?: boolean;
5
5
  onInit?: (container: any) => any;
6
6
  children: React.ReactNode;
7
+ className?: string;
7
8
  }
8
9
  export declare const ScrollBar: (props: ScrollBarProps) => JSX.Element;
9
10
  export {};
@@ -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: string;
4
- imageUrl: string;
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
- /// <reference types="react" />
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: string;
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
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { SidebarItem } from './SidebarItem';
3
3
  interface SectionProps {
4
+ link?: string;
4
5
  text?: string;
5
- itemList: SidebarItem[];
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
- onClick?: string;
7
- imageUrl: string;
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
  }
@@ -1,4 +1,4 @@
1
- import '../css/common.css';
1
+ import '../css/std/common.css';
2
2
  import commonEn from './locale/common-en.json';
3
3
  import commonRu from './locale/common-ru.json';
4
4
  export { commonRu, commonEn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.84",
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.32",
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.84';
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.84';
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.84",
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()[0] !== e.target) {
17800
+ if (!Array.from($(select).children()).includes(e.target)) {
17801
17801
  $(select).removeClass('active');
17802
17802
  }
17803
17803
  });