@vitrosoftware/common-ui-ts 1.1.117 → 1.1.119

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 (31) hide show
  1. package/css/std/controls/command-menu/command-menu.css +1 -1
  2. package/css/std/controls/input/input.css +9 -1
  3. package/css/std/controls/lookup-picker/lookup-picker-html-value.css +0 -2
  4. package/css/std/controls/lookup-picker/lookup-picker-selected-item.css +1 -9
  5. package/css/std/controls/lookup-picker/lookup-picker.css +8 -0
  6. package/css/std/controls/search/search.css +1 -0
  7. package/css/std/controls/system-exception-dialog/system-exception-dialog.css +2 -1
  8. package/css/std/controls/table-view/table-view-custom-lookup-edit.css +1 -1
  9. package/css/std/controls/table-view/table-view.css +1 -0
  10. package/css/std/controls/tooltip/tooltip.css +1 -0
  11. package/dist/index.css +110 -102
  12. package/dist/index.js +369 -176
  13. package/dist/index.js.map +1 -1
  14. package/dist/src/controls/DropdownButton/DropdownButton.d.ts +2 -0
  15. package/dist/src/controls/LookupPicker/LookupPicker.d.ts +1 -0
  16. package/dist/src/controls/LookupPicker/SelectedValueList.d.ts +1 -0
  17. package/dist/src/controls/LookupPicker/SelectedValueListItem.d.ts +15 -0
  18. package/dist/src/controls/LookupPicker/ValueList.d.ts +1 -0
  19. package/dist/src/controls/Search/Search.d.ts +1 -0
  20. package/dist/src/controls/SiteSelect/SiteItem.d.ts +2 -1
  21. package/dist/src/controls/SiteSelect/SiteSelect.d.ts +2 -1
  22. package/dist/src/controls/Splitter/Splitter.d.ts +2 -0
  23. package/dist/src/controls/SystemExceptionDialog/SystemExceptionDialog.d.ts +1 -1
  24. package/dist/src/controls/TableView/TableViewConstants.d.ts +2 -1
  25. package/dist/src/controls/TableView/TableViewContext.d.ts +2 -0
  26. package/dist/src/controls/TableView/TreeGridTableViewContextImpl.d.ts +3 -0
  27. package/dist/src/controls/Tooltip/Tooltip.d.ts +4 -0
  28. package/dist/src/controls/Tooltip/TooltipConstants.d.ts +3 -0
  29. package/package.json +1 -1
  30. package/src/controls/BimViewer/js/bim-viewer.js +40 -3
  31. package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
@@ -8,6 +8,8 @@ interface DropdownButtonProps {
8
8
  onToggle?: (state: any, e: any) => any;
9
9
  className?: string;
10
10
  menuStyle?: any;
11
+ imageUrl?: string;
12
+ imageHoverUrl?: string;
11
13
  }
12
14
  export declare const DropdownButton: (props: DropdownButtonProps) => JSX.Element;
13
15
  export {};
@@ -24,6 +24,7 @@ export interface LookupPickerProps {
24
24
  isReadOnly?: boolean;
25
25
  isRequired?: boolean;
26
26
  isFlipDropdown?: boolean;
27
+ dropdownPlacement?: string;
27
28
  isShowButtonClear?: boolean;
28
29
  onChange?: (value: any[] | any, name?: string) => void;
29
30
  onBlur?: (e: any, name?: string) => void;
@@ -9,6 +9,7 @@ interface SelectedValueListProps {
9
9
  getHtmlValue?: (item: {
10
10
  id: string;
11
11
  }) => FunctionComponentElement<any> | null;
12
+ setTooltipText: (string: string) => void;
12
13
  }
13
14
  export declare const SelectedValueList: (props: SelectedValueListProps) => JSX.Element;
14
15
  export {};
@@ -0,0 +1,15 @@
1
+ import { FunctionComponentElement } from 'react';
2
+ interface SelectedValueListItemProps {
3
+ item: {
4
+ id: string;
5
+ };
6
+ isMultiSelect?: boolean;
7
+ selectedValueTemplate: (value: any) => any;
8
+ onOptionValueDelete: (id: string) => any;
9
+ getHtmlValue?: (item: {
10
+ id: string;
11
+ }) => FunctionComponentElement<any> | null;
12
+ setTooltipText: (string: string) => void;
13
+ }
14
+ export declare const SelectedValueListItem: (props: SelectedValueListItemProps) => JSX.Element;
15
+ export {};
@@ -17,6 +17,7 @@ interface ValueListProps {
17
17
  getHtmlValue?: (item: {
18
18
  id: string;
19
19
  }) => FunctionComponentElement<any> | null;
20
+ placement?: any;
20
21
  }
21
22
  export declare const ValueList: (props: ValueListProps) => JSX.Element;
22
23
  export {};
@@ -25,6 +25,7 @@ interface SearchProps {
25
25
  inputPlaceholder?: string;
26
26
  maxFieldCount?: number;
27
27
  isMobileView?: boolean;
28
+ isMinifiedInput?: boolean;
28
29
  }
29
30
  export declare const Search: (props: SearchProps) => JSX.Element;
30
31
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { MouseEvent } from 'react';
2
2
  export interface SiteItemProps {
3
3
  id: string;
4
4
  name: string;
@@ -7,6 +7,7 @@ export interface SiteItemProps {
7
7
  isActive: boolean;
8
8
  isMobileView?: boolean;
9
9
  onClick: () => void;
10
+ onMouseDown: (mouseEvent: MouseEvent) => void;
10
11
  onStar?: (isStarActive: boolean) => void;
11
12
  className?: string;
12
13
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { MouseEvent } from 'react';
2
2
  import { SiteItemProps } from './SiteItem';
3
3
  interface SiteSelectProps {
4
4
  itemList: SiteItemProps[];
@@ -6,6 +6,7 @@ interface SiteSelectProps {
6
6
  title: string;
7
7
  activeItem: SiteItemProps;
8
8
  onChange?: (item: SiteItemProps) => void;
9
+ onMouseDown?: (item: SiteItemProps, mouseEvent: MouseEvent) => boolean;
9
10
  onStarChange?: (item: SiteItemProps) => void;
10
11
  }
11
12
  export declare const SiteSelect: (props: SiteSelectProps) => JSX.Element;
@@ -11,6 +11,8 @@ interface SplitterProps {
11
11
  isMaximizedPrimaryPane?: boolean;
12
12
  isMinimalizedPrimaryPane?: boolean;
13
13
  onDragFinished?: () => any;
14
+ onInit?: (splitter: any) => void;
15
+ onWrapperResized?: (splitter: any) => void;
14
16
  className?: string;
15
17
  children: React.ReactNode;
16
18
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { SystemExceptionDialogData } from './SystemExceptionDialogData';
3
3
  interface SystemExceptionDialogProps {
4
- stackTrace: string;
4
+ message: string;
5
5
  onConfirm: (data: SystemExceptionDialogData) => void;
6
6
  onCancel: () => void;
7
7
  labelConfirm?: string;
@@ -38,7 +38,8 @@ export declare enum EVENT {
38
38
  ON_DROP = "OnDrop",
39
39
  ON_INIT = "OnInit",
40
40
  ON_CUSTOM_AJAX = "OnCustomAjax",
41
- ON_CLICK_SIDE_BUTTON = "OnClickSideButton"
41
+ ON_CLICK_SIDE_BUTTON = "OnClickSideButton",
42
+ ON_SCROLL = "OnScroll"
42
43
  }
43
44
  export declare enum URL {
44
45
  LAYOUT = "Layout",
@@ -85,4 +85,6 @@ export interface TableViewContext {
85
85
  hideTip(): void;
86
86
  showMenu(row: TableViewRow, col: string, menu: any, position?: any, func?: Function): void;
87
87
  showPopup(menu: any, func?: Function): void;
88
+ getShownRows(): TableViewRow[];
89
+ getShownCols(section?: number): string[];
88
90
  }
@@ -27,6 +27,7 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
27
27
  set scope(value: string);
28
28
  get pageLength(): any;
29
29
  get header(): TableViewRow;
30
+ get mainTag(): HTMLElement;
30
31
  setSearchCriterionList(searchCriterionList: SearchCriterion[], searchId: string): void;
31
32
  clearSearchCriterionList(searchId: string): void;
32
33
  getSearchCriterionList(searchId?: string): SearchCriterion[];
@@ -96,4 +97,6 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
96
97
  hideTip(): void;
97
98
  showMenu(row: TableViewRow, col: string, menu: any, position?: any, func?: Function): void;
98
99
  showPopup(menu: any, func?: Function): void;
100
+ getShownRows(): TableViewRow[];
101
+ getShownCols(section?: number): string[];
99
102
  }
@@ -1,8 +1,12 @@
1
+ import React from 'react';
1
2
  import * as TOOLTIP from './TooltipConstants';
2
3
  interface TooltipProps {
3
4
  text: string;
4
5
  placement?: TOOLTIP.PLACEMENT | any;
5
6
  isShow?: boolean;
7
+ isFlip?: boolean;
8
+ style?: React.CSSProperties;
9
+ className?: string;
6
10
  children: any;
7
11
  }
8
12
  export declare const Tooltip: (props: TooltipProps) => any;
@@ -4,3 +4,6 @@ export declare enum PLACEMENT {
4
4
  RIGHT = "right",
5
5
  BOTTOM = "bottom"
6
6
  }
7
+ export declare enum TRIGGER {
8
+ HOVER = "hover"
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.117",
3
+ "version": "1.1.119",
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.117';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.119';
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.117';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.119';
9
9
 
10
10
 
11
11
  const processByChildIdList = (treeViewNode, event) => {
@@ -524,7 +524,7 @@ class VitroTreeViewPlugin extends TreeViewPlugin
524
524
  propertySetIds,
525
525
  external: metaObjectData.external,
526
526
  });
527
- metaObject.childCount = metaObjectData.child_count,
527
+ metaObject.childCount = metaObjectData.childCount,
528
528
  metaModel.metaScene.metaObjects[id] = metaObject;
529
529
  }
530
530
  //metaObject.metaModels.push(metaModel);
@@ -3509,6 +3509,43 @@ function doCompare() {
3509
3509
  }, function () {
3510
3510
  alert("The file is being processed");
3511
3511
  });
3512
+ }
3513
+
3514
+ function getPropertyValue(property) {
3515
+ if (property.valueBool != null && property.valueBool != undefined) {
3516
+ return property.valueBool;
3517
+ }
3518
+ else if (property.valueInt != null && property.valueInt != undefined) {
3519
+ return property.valueInt;
3520
+ }
3521
+ else if (property.valueText != null && property.valueText != undefined) {
3522
+ return property.valueText;
3523
+ }
3524
+ else if (property.valueReal != null && property.valueReal != undefined) {
3525
+ return property.valueReal;
3526
+ }
3527
+ }
3528
+ function convertProperty(data) {
3529
+ let groups = [];
3530
+
3531
+ for (let property of data) {
3532
+ let existingGroups = groups.filter(group => group.name == property.groupName);
3533
+ if (existingGroups.length > 0) {
3534
+ existingGroups[0].properties.push({ name: property.name, value: getPropertyValue(property) });
3535
+ }
3536
+ else {
3537
+ let newGroup = {
3538
+ name: property.groupName,
3539
+ properties: [],
3540
+ };
3541
+ newGroup.properties.push({ name: property.name, value: getPropertyValue(property) });
3542
+
3543
+
3544
+ groups.push(newGroup);
3545
+ }
3546
+ }
3547
+
3548
+ return groups;
3512
3549
  }
3513
3550
  //------------------------------------------------------------------------------------------------------------------
3514
3551
  // Do action wherever we click on an object
@@ -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.117",
21211
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.119",
21212
21212
  kind: OptionKind.WORKER
21213
21213
  }
21214
21214
  };