@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.
- package/css/std/controls/command-menu/command-menu.css +1 -1
- package/css/std/controls/input/input.css +9 -1
- package/css/std/controls/search/search.css +1 -0
- package/css/std/controls/system-exception-dialog/system-exception-dialog.css +2 -1
- package/css/std/controls/table-view/table-view-custom-date-edit.css +1 -5
- package/css/std/controls/table-view/treegrid-context-menu.css +2 -7
- package/css/std/controls/tooltip/tooltip.css +1 -0
- package/dist/index.css +13 -3
- package/dist/index.js +124 -40
- package/dist/index.js.map +1 -1
- package/dist/src/controls/DropdownButton/DropdownButton.d.ts +2 -0
- package/dist/src/controls/Search/Search.d.ts +1 -0
- package/dist/src/controls/SystemExceptionDialog/SystemExceptionDialog.d.ts +1 -1
- package/dist/src/controls/Tooltip/Tooltip.d.ts +3 -0
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +40 -3
- 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 {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SystemExceptionDialogData } from './SystemExceptionDialogData';
|
|
3
3
|
interface SystemExceptionDialogProps {
|
|
4
|
-
|
|
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,11 +1,11 @@
|
|
|
1
|
-
import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.
|
|
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.
|
|
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.
|
|
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.
|
|
21211
|
+
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.118",
|
|
21212
21212
|
kind: OptionKind.WORKER
|
|
21213
21213
|
}
|
|
21214
21214
|
};
|