@vitrosoftware/common-ui-ts 1.1.116 → 1.1.118

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.
@@ -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 {};
@@ -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,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;
@@ -1,8 +1,11 @@
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
+ style?: React.CSSProperties;
8
+ className?: string;
6
9
  children: any;
7
10
  }
8
11
  export declare const Tooltip: (props: TooltipProps) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.116",
3
+ "version": "1.1.118",
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.116';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.118';
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.116';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.118';
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.116",
21211
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.118",
21212
21212
  kind: OptionKind.WORKER
21213
21213
  }
21214
21214
  };