@vitrosoftware/common-ui-ts 1.1.186 → 1.1.187

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 (52) hide show
  1. package/css/std/controls/action-handler/confirm-dialog.css +0 -6
  2. package/css/std/controls/bim-viewer/bim-viewer-index.css +13 -0
  3. package/css/std/controls/bim-viewer/bim-viewer.css +13 -0
  4. package/css/std/controls/bim-viewer/img/add-model.svg +5 -0
  5. package/css/std/controls/close-button/close-button.css +13 -0
  6. package/css/std/controls/close-button/img/cancel-dark-grey.svg +5 -0
  7. package/css/std/controls/close-button/img/cancel-white.svg +10 -0
  8. package/css/std/controls/command-menu/command-menu-dropdown-button.css +4 -0
  9. package/css/std/controls/component-loader/component-loader.css +1 -1
  10. package/css/std/controls/dialog/dialog-content.css +2 -2
  11. package/css/std/controls/dialog/dialog-footer.css +16 -6
  12. package/css/std/controls/dialog/dialog-header.css +22 -3
  13. package/css/std/controls/dropdown-button/dropdown-button.css +21 -4
  14. package/css/std/controls/label/label.css +20 -15
  15. package/css/std/controls/lookup-picker/img/library.svg +17 -0
  16. package/css/std/controls/lookup-picker/lookup-picker-selected-item.css +1 -1
  17. package/css/std/controls/lookup-picker/lookup-picker-value-list.css +2 -4
  18. package/css/std/controls/lookup-picker/lookup-picker.css +30 -17
  19. package/css/std/controls/micro-frontend/micro-frontend.css +4 -0
  20. package/css/std/controls/overlay/overlay.css +4 -0
  21. package/css/std/controls/separator/separator.css +15 -0
  22. package/css/std/controls/table-view/treegrid-context-menu.css +1 -0
  23. package/dist/index.css +170 -74
  24. package/dist/index.js +879 -722
  25. package/dist/index.js.map +1 -1
  26. package/dist/src/controls/BimViewer/services/BimViewerService.d.ts +1 -0
  27. package/dist/src/controls/CloseButton/CloseButton.d.ts +7 -0
  28. package/dist/src/controls/Dialog/Dialog.d.ts +6 -0
  29. package/dist/src/controls/Dialog/DialogHeader.d.ts +6 -0
  30. package/dist/src/controls/ImageButton/ImageButton.d.ts +1 -2
  31. package/dist/src/controls/Label/Label.d.ts +2 -1
  32. package/dist/src/controls/LookupPicker/LookupPicker.d.ts +4 -0
  33. package/dist/src/controls/LookupPicker/RightButtonGroup.d.ts +19 -0
  34. package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -0
  35. package/dist/src/controls/Overlay/Overlay.d.ts +2 -0
  36. package/dist/src/controls/Overlay/OverlayConstants.d.ts +3 -0
  37. package/dist/src/controls/Separator/Separator.d.ts +6 -0
  38. package/dist/src/controls/SiteSelect/SiteSelect.d.ts +2 -2
  39. package/dist/src/controls/TabGroup/TabGroup.d.ts +4 -2
  40. package/dist/src/controls/TabGroup/TabGroupComponent.d.ts +4 -2
  41. package/dist/src/controls/TabGroup/services/TabGroupService.d.ts +3 -0
  42. package/dist/src/controls/TableView/TableView.d.ts +2 -2
  43. package/dist/src/controls/TableView/TableViewConstants.d.ts +2 -1
  44. package/dist/src/controls/TableView/services/TableViewService.d.ts +4 -3
  45. package/dist/src/controls/TableView/services/impl/TableViewServiceImpl.d.ts +3 -2
  46. package/dist/src/controls/View/View.d.ts +4 -2
  47. package/dist/src/index.d.ts +4 -0
  48. package/dist/src/services.d.ts +3 -0
  49. package/package.json +1 -1
  50. package/src/controls/BimViewer/js/bim-viewer.js +13 -2
  51. package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
  52. package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
@@ -14,4 +14,5 @@ export interface BimViewerService {
14
14
  onChangeFileVersion: (version: models.FileVersion) => any;
15
15
  currentVersionTooltipText?: string;
16
16
  notCurrentVersionTooltipText?: string;
17
+ showItemSelectDialog: () => Promise<string[]>;
17
18
  }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ImageButtonProps } from '../ImageButton/ImageButton';
3
+ interface CloseButtonProps extends ImageButtonProps {
4
+ isWhite?: boolean;
5
+ }
6
+ export declare const CloseButton: (props: CloseButtonProps) => JSX.Element;
7
+ export {};
@@ -18,6 +18,12 @@ export interface DialogProps {
18
18
  [key: string]: any;
19
19
  };
20
20
  };
21
+ headerContent?: {
22
+ component: React.FunctionComponent<any>;
23
+ props: {
24
+ [key: string]: any;
25
+ };
26
+ };
21
27
  isHideFooter?: boolean;
22
28
  isShow?: boolean;
23
29
  dialog?: any;
@@ -4,6 +4,12 @@ interface DialogHeaderProps {
4
4
  subtitle?: string;
5
5
  imageUrl?: string;
6
6
  image?: React.ReactNode;
7
+ content?: {
8
+ component: React.FunctionComponent<any>;
9
+ props: {
10
+ [key: string]: any;
11
+ };
12
+ };
7
13
  className?: string;
8
14
  }
9
15
  export declare const DialogHeader: (props: DialogHeaderProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import * as TOOLTIP from '../Tooltip/TooltipConstants';
3
- interface ImageButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ export interface ImageButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
4
4
  onClick: (e?: React.MouseEvent<HTMLElement>) => void;
5
5
  tooltipText?: string;
6
6
  tooltipPlacement?: TOOLTIP.PLACEMENT;
@@ -9,4 +9,3 @@ interface ImageButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
9
9
  imageHoverUrl?: string;
10
10
  }
11
11
  export declare const ImageButton: React.ForwardRefExoticComponent<ImageButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
- export {};
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  interface LabelProps {
3
3
  text: string;
4
4
  isRequired?: boolean;
5
+ isInline?: boolean;
5
6
  className?: string;
6
7
  width?: number;
7
8
  }
8
9
  export declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLDivElement>>;
9
- export default Label;
10
+ export {};
@@ -27,6 +27,10 @@ export interface LookupPickerProps {
27
27
  isFlipDropdown?: boolean;
28
28
  dropdownPlacement?: string;
29
29
  isShowButtonClear?: boolean;
30
+ isShowSearchButton?: boolean;
31
+ onSearch?: () => Promise<{
32
+ id: string;
33
+ }[] | undefined>;
30
34
  onChange?: (value: any[] | any, name?: string) => void;
31
35
  onBlur?: (e: any, name?: string) => void;
32
36
  onFocus?: (e: any) => void;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ export interface RightButtonGroupProps {
3
+ selectedValueList: {
4
+ id: string;
5
+ }[];
6
+ isReadOnly?: boolean;
7
+ isEditable?: boolean;
8
+ isShowButtonClear?: boolean;
9
+ isValueListVisible: boolean;
10
+ isShowExpandButton: boolean;
11
+ isShowSearchButton?: boolean;
12
+ onClickSearchButton?: () => void;
13
+ onOptionValueDelete: () => void;
14
+ onCollapseButtonClick: (isValueListVisible: boolean) => void;
15
+ selectedValueTemplate: (val: {
16
+ id: string;
17
+ }) => string;
18
+ }
19
+ export declare const RightButtonGroup: (props: RightButtonGroupProps) => JSX.Element;
@@ -4,6 +4,7 @@ interface MicroFrontendProps {
4
4
  host: string;
5
5
  data: any;
6
6
  isReloadOnChange?: boolean;
7
+ isDockFill?: boolean;
7
8
  }
8
9
  export declare const MicroFrontend: FunctionComponent<MicroFrontendProps>;
9
10
  export {};
@@ -10,6 +10,8 @@ interface OverlayProps {
10
10
  style?: React.CSSProperties;
11
11
  className?: string;
12
12
  isShowArrow?: boolean;
13
+ popperConfig?: any;
14
+ isVertical?: boolean;
13
15
  }
14
16
  export declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<services.OverlayService>>;
15
17
  export {};
@@ -0,0 +1,3 @@
1
+ export declare enum MODIFIER {
2
+ FLIP = "flip"
3
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface SeparatorProps {
3
+ isVertical?: boolean;
4
+ }
5
+ export declare const Separator: (props: SeparatorProps) => JSX.Element;
6
+ export {};
@@ -2,8 +2,8 @@ import { MouseEvent } from 'react';
2
2
  import { models } from '../../models';
3
3
  interface SiteSelectProps {
4
4
  itemList: models.SiteSelectItem[];
5
- rootItem: models.SiteSelectItem;
6
- title: string;
5
+ rootItem?: models.SiteSelectItem;
6
+ title?: string;
7
7
  activeItem: models.SiteSelectItem;
8
8
  onChange?: (item: models.SiteSelectItem) => void;
9
9
  onMouseDown?: (item: models.SiteSelectItem, mouseEvent: MouseEvent) => boolean;
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { models } from '../../models';
3
+ import { services } from '../../services';
3
4
  export interface TabGroupProps {
4
5
  wrap?: boolean;
5
6
  placeholder?: string;
@@ -8,5 +9,6 @@ export interface TabGroupProps {
8
9
  itemList: models.Tab[];
9
10
  className?: string;
10
11
  isDisabled?: boolean;
12
+ isHideSingleHeader?: boolean;
11
13
  }
12
- export declare const TabGroup: (props: TabGroupProps) => JSX.Element;
14
+ export declare const TabGroup: React.ForwardRefExoticComponent<TabGroupProps & React.RefAttributes<services.TabGroupService>>;
@@ -1,11 +1,13 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { models } from '../../models';
3
+ import { services } from '../../services';
3
4
  export interface TabGroupComponentProps {
4
5
  onChange?: (index: number) => void;
5
6
  onGetContent?: (index: number, data: models.Tab, content: models.Tab['content']) => void;
6
7
  wrap?: boolean;
7
8
  itemList: models.Tab[];
8
9
  isDisabled?: boolean;
10
+ isHideSingleHeader?: boolean;
9
11
  className?: string;
10
12
  }
11
- export declare const TabGroupComponent: (props: TabGroupComponentProps) => JSX.Element;
13
+ export declare const TabGroupComponent: React.ForwardRefExoticComponent<TabGroupComponentProps & React.RefAttributes<services.TabGroupService>>;
@@ -0,0 +1,3 @@
1
+ export interface TabGroupService {
2
+ setActiveTab(index: number): void;
3
+ }
@@ -15,12 +15,12 @@ export interface TableViewProps {
15
15
  onSelect?: ((grid: services.TableViewService, row: models.TableViewRow, deselect: boolean, columnList: string[], test: boolean) => any) | undefined;
16
16
  layout?: any;
17
17
  data?: any;
18
- filterOneLevel?: boolean;
18
+ isFilterOneLevel?: boolean;
19
19
  cache?: number;
20
20
  cacheVersion?: number | string;
21
21
  scope?: string;
22
22
  idColumnName?: string;
23
23
  searchCriterionList?: models.Criterion[];
24
- readOnly?: boolean;
24
+ isReadOnly?: boolean;
25
25
  className?: string;
26
26
  }
@@ -173,7 +173,8 @@ export declare enum DEFAULT {
173
173
  }
174
174
  export declare enum ALIGN {
175
175
  CENTER = "Center",
176
- RIGHT = "Right"
176
+ RIGHT = "Right",
177
+ LEFT = "Left"
177
178
  }
178
179
  export declare enum ROW_ID {
179
180
  TOTAL = "totalRow",
@@ -10,13 +10,13 @@ export interface TableViewService {
10
10
  readonly rowCount: number;
11
11
  readonly header: models.TableViewRow;
12
12
  readonly groupRow: models.TableViewRow;
13
- readonly readOnly: boolean;
13
+ readonly isReadOnly: boolean;
14
14
  readonly ganttCol: any;
15
15
  filterContentTypeList: string[];
16
- inlineEdit?: boolean;
16
+ isInlineEdit?: boolean;
17
17
  dragging: boolean;
18
18
  sort: any;
19
- filterOneLevel: boolean;
19
+ isFilterOneLevel: boolean;
20
20
  scope: string;
21
21
  idColumnName: string | undefined;
22
22
  event: any;
@@ -28,6 +28,7 @@ export interface TableViewService {
28
28
  mainCol: any;
29
29
  filterRow: models.TableViewRow;
30
30
  def: any;
31
+ source: any;
31
32
  refreshMode?: string;
32
33
  viewId: string;
33
34
  setSearchCriterionList(searchCriterionList: models.Criterion[], searchId: string): void;
@@ -6,7 +6,7 @@ export declare class TableViewServiceImpl implements services.TableViewService {
6
6
  private grid;
7
7
  readonly id: string;
8
8
  suggestValue: string;
9
- filterOneLevel: boolean;
9
+ isFilterOneLevel: boolean;
10
10
  private readonly gridChangesFormat;
11
11
  private readonly searchCriterionMap;
12
12
  filterContentTypeList: string[];
@@ -17,7 +17,7 @@ export declare class TableViewServiceImpl implements services.TableViewService {
17
17
  constructor(grid: any);
18
18
  get columnList(): any;
19
19
  get columnNameList(): any;
20
- get readOnly(): any;
20
+ get isReadOnly(): any;
21
21
  get gantt(): any;
22
22
  get ganttCol(): any;
23
23
  get sort(): string;
@@ -40,6 +40,7 @@ export declare class TableViewServiceImpl implements services.TableViewService {
40
40
  get group(): string;
41
41
  set group(val: string);
42
42
  get def(): any;
43
+ get source(): any;
43
44
  setSearchCriterionList(searchCriterionList: models.Criterion[], searchId: string): void;
44
45
  setCfgAttribute(attr: string, value: any): void;
45
46
  getCfgAttribute(attr: string): string;
@@ -1,8 +1,10 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
+ import { services } from '../../services';
2
3
  interface ViewProps {
3
4
  item: any;
4
5
  tabList?: Array<any>;
5
6
  isDisabled?: boolean;
7
+ isHideSingleTabHeader?: boolean;
6
8
  }
7
- export declare const View: (props: ViewProps) => JSX.Element;
9
+ export declare const View: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<services.TabGroupService>>;
8
10
  export {};
@@ -135,6 +135,8 @@ import { FilePicker } from './controls/FilePicker/FilePicker';
135
135
  import { FilePickerProps } from './controls/FilePicker/FilePicker';
136
136
  import { VideoViewer } from './controls/VideoViewer/VideoViewer';
137
137
  import { ValueTooltip } from './controls/ValueTooltip/ValueTooltip';
138
+ import { Separator } from './controls/Separator/Separator';
139
+ import { CloseButton } from './controls/CloseButton/CloseButton';
138
140
  export { Breadcrumbs };
139
141
  export { TopLevelMenu };
140
142
  export { TreeView, TREE_VIEW, TreeViewProps };
@@ -238,3 +240,5 @@ export { FilePicker, FilePickerProps };
238
240
  export { FileList };
239
241
  export { VideoViewer };
240
242
  export { ValueTooltip };
243
+ export { Separator };
244
+ export { CloseButton };
@@ -22,6 +22,7 @@ import { TelerikMediaPlayerService as _TelerikMediaPlayerService } from './contr
22
22
  import { VideoViewerService as _VideoViewerService } from './controls/VideoViewer/services/VideoViewerService';
23
23
  import { TreeViewService as _TreeViewService } from './controls/TreeView/services/TreeViewService';
24
24
  import { TreeViewEventHandler as _TreeViewEventHandler } from './controls/TreeView/services/TreeViewEventHandler';
25
+ import { TabGroupService as _TabGroupService } from './controls/TabGroup/services/TabGroupService';
25
26
  export declare namespace services {
26
27
  interface BimViewerService extends _BimViewerService {
27
28
  }
@@ -71,4 +72,6 @@ export declare namespace services {
71
72
  }
72
73
  interface TreeViewEventHandler extends _TreeViewEventHandler {
73
74
  }
75
+ interface TabGroupService extends _TabGroupService {
76
+ }
74
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.186",
3
+ "version": "1.1.187",
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.186';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.187';
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, parsers
7
7
  }
8
- from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.186';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.187';
9
9
 
10
10
 
11
11
  //----------------------------------------------------------------------------------------------------------------------
@@ -4026,6 +4026,15 @@ function initIssueDetailResizable() {
4026
4026
  $('#sectionPlanesOverviewCanvas').css('right', $('#issueDetail').width() + 10);
4027
4027
  }
4028
4028
  });
4029
+ }
4030
+
4031
+ function bindBtnAddModel() {
4032
+ $(document).on('click', '#btnAddModel', function () {
4033
+ context.showItemSelectDialog().then(itemIdList => {
4034
+ // TO DO
4035
+ console.log(itemIdList);
4036
+ });
4037
+ });
4029
4038
  }
4030
4039
  //------------------------------------------------------------------------------------------------------------------
4031
4040
  // Do action wherever we click on an object
@@ -4132,6 +4141,8 @@ function init() {
4132
4141
  bindBtnCompareSideBySide();
4133
4142
  bindBtnClearComparison();
4134
4143
 
4144
+ bindBtnAddModel();
4145
+
4135
4146
  initCompare();
4136
4147
  bindSelectList();
4137
4148
  }
@@ -1,17 +1,17 @@
1
- import * as three from '/resource/dxfViewer/js/three/three.module.js?version=1.1.186';
2
- import { Matrix3, Vector2 } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.186';
3
- import { Batch, DxfViewer, Layer } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.186';
4
- import { Block as SceneBlock } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.186';
5
- import { Block } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.186';
6
- import { DxfScene, Entity, ColorCode } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.186';
7
- import { TextRenderer, ParseSpecialChars, HAlign, VAlign } from '/resource/dxfViewer/js/viewer/TextRenderer.js?version=1.1.186';
8
- import { DxfWorker } from '/resource/dxfViewer/js/viewer/DxfWorker.js?version=1.1.186';
9
- import { DxfFetcher } from '/resource/dxfViewer/js/viewer/DxfFetcher.js?version=1.1.186';
10
- import DxfParser from '/resource/dxfViewer/js/viewer/parser/DxfParser.js?version=1.1.186';
11
- import { RenderBatch } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.186';
12
- import { DynamicBuffer, NativeType } from '/resource/dxfViewer/js/viewer/DynamicBuffer.js?version=1.1.186';
13
- import { OrbitControls } from '/resource/dxfViewer/js/viewer/OrbitControls.js?version=1.1.186';
14
- import { CSS2DRenderer, CSS2DObject } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.186';
1
+ import * as three from '/resource/dxfViewer/js/three/three.module.js?version=1.1.187';
2
+ import { Matrix3, Vector2 } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.187';
3
+ import { Batch, DxfViewer, Layer } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.187';
4
+ import { Block as SceneBlock } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.187';
5
+ import { Block } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.187';
6
+ import { DxfScene, Entity, ColorCode } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.187';
7
+ import { TextRenderer, ParseSpecialChars, HAlign, VAlign } from '/resource/dxfViewer/js/viewer/TextRenderer.js?version=1.1.187';
8
+ import { DxfWorker } from '/resource/dxfViewer/js/viewer/DxfWorker.js?version=1.1.187';
9
+ import { DxfFetcher } from '/resource/dxfViewer/js/viewer/DxfFetcher.js?version=1.1.187';
10
+ import DxfParser from '/resource/dxfViewer/js/viewer/parser/DxfParser.js?version=1.1.187';
11
+ import { RenderBatch } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.187';
12
+ import { DynamicBuffer, NativeType } from '/resource/dxfViewer/js/viewer/DynamicBuffer.js?version=1.1.187';
13
+ import { OrbitControls } from '/resource/dxfViewer/js/viewer/OrbitControls.js?version=1.1.187';
14
+ import { CSS2DRenderer, CSS2DObject } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.187';
15
15
 
16
16
  let treeViewData = [];
17
17
  let notes = [];
@@ -21208,7 +21208,7 @@ const defaultOptions = {
21208
21208
  kind: OptionKind.WORKER
21209
21209
  },
21210
21210
  workerSrc: {
21211
- value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.186",
21211
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.187",
21212
21212
  kind: OptionKind.WORKER
21213
21213
  }
21214
21214
  };