@vitrosoftware/common-ui-ts 1.1.102 → 1.1.104

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.
Files changed (61) hide show
  1. package/css/std/common.css +0 -15
  2. package/css/std/controls/action-handler/confirm-dialog.css +6 -0
  3. package/css/std/controls/activity-item/activity-item.css +0 -6
  4. package/css/std/controls/activity-item/activity-message.css +1 -1
  5. package/css/std/controls/activity-item/attached-file-list.css +51 -0
  6. package/css/std/controls/dialog/dialog.css +5 -5
  7. package/css/std/controls/file/file.css +94 -0
  8. package/css/std/controls/file/img/file-button-context.svg +6 -0
  9. package/css/std/controls/file-version-select/file-version-select.css +1 -0
  10. package/css/std/controls/heading/heading.css +7 -0
  11. package/css/std/controls/image-viewer/image-viewer.css +83 -0
  12. package/css/std/controls/image-viewer/img/context-button-white.svg +5 -0
  13. package/css/std/controls/image-viewer/img/image-viewer-close.svg +3 -0
  14. package/css/std/controls/image-viewer/page.css +19 -0
  15. package/css/std/controls/linear-progress/linear-progress.css +40 -0
  16. package/css/std/controls/message-input/attached-file.css +26 -0
  17. package/css/std/controls/message-input/img/attached-file-remove.svg +4 -0
  18. package/css/std/controls/message-input/message-input.css +42 -15
  19. package/css/std/controls/pdf-viewer/pdf-viewer-index.css +1 -1
  20. package/css/std/controls/pdf-viewer/viewer.css +1 -1
  21. package/css/std/controls/product-title/product-title.css +1 -0
  22. package/css/std/controls/scroll-view/img/scroll-view-next.svg +4 -0
  23. package/css/std/controls/scroll-view/img/scroll-view-prev.svg +4 -0
  24. package/css/std/controls/scroll-view/scroll-view.css +28 -0
  25. package/css/std/controls/tab-group/tab-group.css +13 -3
  26. package/css/std/controls/table-view/treegrid.css +20 -0
  27. package/dist/index.css +429 -49
  28. package/dist/index.js +615 -207
  29. package/dist/index.js.map +1 -1
  30. package/dist/src/controls/ActivityItem/ActivityMessage.d.ts +8 -0
  31. package/dist/src/controls/ActivityItem/AttachedFileList.d.ts +12 -0
  32. package/dist/src/controls/ActivityItem/AttachedFileListItem.d.ts +9 -0
  33. package/dist/src/controls/ActivityItem/ChangedValue.d.ts +1 -1
  34. package/dist/src/controls/Dialog/Dialog.d.ts +1 -0
  35. package/dist/src/controls/DropdownButton/DropdownButton.d.ts +1 -0
  36. package/dist/src/controls/File/File.d.ts +15 -0
  37. package/dist/src/controls/ImageViewer/ImageItem.d.ts +5 -0
  38. package/dist/src/controls/ImageViewer/ImageViewer.d.ts +9 -0
  39. package/dist/src/controls/ImageViewer/ImageViewerRef.d.ts +5 -0
  40. package/dist/src/controls/ImageViewer/Page.d.ts +7 -0
  41. package/dist/src/controls/LinearProgress/LinearProgress.d.ts +6 -0
  42. package/dist/src/controls/MessageInput/AttachedFile.d.ts +10 -0
  43. package/dist/src/controls/MessageInput/MessageInput.d.ts +5 -2
  44. package/dist/src/controls/MessageInput/MessageInputConstants.d.ts +3 -1
  45. package/dist/src/controls/ScrollView/ScrollView.d.ts +10 -0
  46. package/dist/src/controls/ScrollView/ScrollViewItem.d.ts +7 -0
  47. package/dist/src/controls/Sidebar/GroupItem.d.ts +1 -0
  48. package/dist/src/controls/Sidebar/LinkItem.d.ts +1 -0
  49. package/dist/src/controls/Sidebar/Section.d.ts +1 -0
  50. package/dist/src/controls/Sidebar/SectionList.d.ts +1 -0
  51. package/dist/src/controls/Sidebar/Sidebar.d.ts +1 -0
  52. package/dist/src/controls/TabGroup/OverflowButton.d.ts +1 -0
  53. package/dist/src/controls/TabGroup/TabGroup.d.ts +1 -0
  54. package/dist/src/controls/TabGroup/TabGroupComponent.d.ts +1 -0
  55. package/dist/src/controls/TabGroup/TabGroupHeader.d.ts +1 -0
  56. package/dist/src/controls/TableView/TableViewConstants.d.ts +3 -1
  57. package/dist/src/controls/View/View.d.ts +1 -0
  58. package/dist/src/index.d.ts +11 -0
  59. package/package.json +1 -1
  60. package/src/controls/BimViewer/js/bim-viewer.js +2 -2
  61. 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?: (fileList: 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?: (fileList: 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[]) => any;
8
+ }
9
+ export declare const AttachedFileListItem: (props: AttachedFileListItemProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export interface ChangedValue {
2
2
  fieldName?: string;
3
- newValue: any;
3
+ newValue?: any;
4
4
  oldValue?: any;
5
5
  isMessage?: boolean;
6
6
  }
@@ -18,6 +18,7 @@ export interface DialogProps {
18
18
  };
19
19
  };
20
20
  isHideFooter?: boolean;
21
+ isShow?: boolean;
21
22
  dialog?: any;
22
23
  className?: string;
23
24
  headerClassName?: string;
@@ -7,6 +7,7 @@ interface DropdownButtonProps {
7
7
  isFlip?: boolean;
8
8
  onToggle?: (state: any, e: any) => any;
9
9
  className?: string;
10
+ menuStyle?: any;
10
11
  flip?: boolean;
11
12
  }
12
13
  export declare const DropdownButton: (props: DropdownButtonProps) => 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,5 @@
1
+ export interface ImageItem {
2
+ id: string;
3
+ url: string;
4
+ actionList: any[];
5
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ImageItem } from './ImageItem';
3
+ import { ImageViewerRef } from './ImageViewerRef';
4
+ interface ImageViewerProps {
5
+ itemList: ImageItem[];
6
+ onCloseClick: () => void;
7
+ }
8
+ export declare const ImageViewer: React.ForwardRefExoticComponent<ImageViewerProps & React.RefAttributes<ImageViewerRef>>;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ImageItem } from './ImageItem';
2
+ export interface ImageViewerRef {
3
+ addImage(image: ImageItem): void;
4
+ setItemList(itemList: ImageItem[]): void;
5
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface PageProps {
3
+ url: string;
4
+ actionList?: any[];
5
+ }
6
+ export declare const Page: (props: PageProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface LinearProgressProps {
3
+ className?: string;
4
+ }
5
+ export declare const LinearProgress: (props: LinearProgressProps) => JSX.Element;
6
+ 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
- onAddFile?: () => any;
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
+ onPasteImage?: (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;
@@ -1,3 +1,5 @@
1
1
  export declare enum LOCALE {
2
- PLACEHOLDER = "app.common.messageInput.placeholder"
2
+ PLACEHOLDER = "app.common.messageInput.placeholder",
3
+ DELETE_FILE = "app.common.messageInput.action.deleteFile",
4
+ ADD_FILE = "app.common.messageInput.action.addFile"
3
5
  }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { ScrollViewItem } from './ScrollViewItem';
3
+ interface ScrollViewProps {
4
+ itemList: ScrollViewItem[];
5
+ isEnablePager?: boolean;
6
+ onChange?: (nextPage: number, e: any) => any;
7
+ className?: string;
8
+ }
9
+ export declare const ScrollView: (props: ScrollViewProps) => JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface ScrollViewItem {
3
+ component: React.FunctionComponent<any>;
4
+ props: {
5
+ [key: string]: any;
6
+ };
7
+ }
@@ -12,6 +12,7 @@ interface GroupItemProps {
12
12
  container?: any;
13
13
  isSidebarExpanded: boolean;
14
14
  isMobileView: boolean;
15
+ isDisabled?: boolean;
15
16
  }
16
17
  export declare const GroupItem: (props: GroupItemProps) => JSX.Element;
17
18
  export {};
@@ -15,6 +15,7 @@ interface LinkItem {
15
15
  isSidebarExpanded: boolean;
16
16
  isMobileView: boolean;
17
17
  isHidden?: boolean;
18
+ isDisabled?: boolean;
18
19
  }
19
20
  export declare const LinkItem: (props: LinkItem) => JSX.Element;
20
21
  export {};
@@ -9,6 +9,7 @@ interface SectionProps {
9
9
  linkItemWidth?: number;
10
10
  isExpanded: boolean;
11
11
  isMobileView: boolean;
12
+ isDisabled?: boolean;
12
13
  container?: any;
13
14
  onClick?: React.MouseEventHandler<HTMLAnchorElement>;
14
15
  }
@@ -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>>;
@@ -12,6 +12,7 @@ interface SidebarProps {
12
12
  logoText: string;
13
13
  activeItem?: any;
14
14
  isDifferentOnMobileView?: boolean;
15
+ isDisabled?: boolean;
15
16
  }
16
17
  export declare const Sidebar: (props: SidebarProps) => JSX.Element;
17
18
  export {};
@@ -2,6 +2,7 @@
2
2
  export interface OverflowButtonProps {
3
3
  list: any[];
4
4
  offset: number;
5
+ width: number;
5
6
  onSelect: (offset: number) => void;
6
7
  }
7
8
  export declare const OverflowButton: (props: OverflowButtonProps) => JSX.Element | null;
@@ -6,5 +6,6 @@ export interface TabGroupProps {
6
6
  onChange?: (index: number) => void;
7
7
  itemList: TabItem[];
8
8
  className?: string;
9
+ isDisabled?: boolean;
9
10
  }
10
11
  export declare const TabGroup: (props: TabGroupProps) => JSX.Element;
@@ -4,6 +4,7 @@ export interface TabGroupComponentProps {
4
4
  onChange?: (index: number) => void;
5
5
  wrap?: boolean;
6
6
  itemList: TabItem[];
7
+ isDisabled?: boolean;
7
8
  className?: string;
8
9
  }
9
10
  export declare const TabGroupComponent: (props: TabGroupComponentProps) => JSX.Element;
@@ -5,5 +5,6 @@ export interface TabGroupHeaderProps {
5
5
  wrap?: boolean;
6
6
  currentTab: number;
7
7
  changeTab: (index: number) => void;
8
+ isDisabled?: boolean;
8
9
  }
9
10
  export declare let TabGroupHeader: (props: TabGroupHeaderProps) => JSX.Element;
@@ -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,
@@ -2,6 +2,7 @@
2
2
  interface ViewProps {
3
3
  item: any;
4
4
  tabList?: Array<any>;
5
+ isDisabled?: boolean;
5
6
  }
6
7
  export declare const View: (props: ViewProps) => JSX.Element;
7
8
  export {};
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.102",
3
+ "version": "1.1.104",
4
4
  "description": "vitro software common ui ts",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
- import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.102';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.104';
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.102';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.104';
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.102",
3225
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.104",
3226
3226
  kind: OptionKind.WORKER
3227
3227
  }
3228
3228
  };