@vitrosoftware/common-ui-ts 1.1.222 → 1.1.224
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/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/src/controls/ScrollBar/ScrollBar.d.ts +1 -0
- package/dist/src/controls/View/View.d.ts +1 -0
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
package/dist/index.js
CHANGED
|
@@ -594,7 +594,9 @@ var ScrollBar = React.forwardRef(function (props, outerRef) {
|
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
596
|
var onWheel = function onWheel(e) {
|
|
597
|
-
|
|
597
|
+
if (props.isPreventParentScroll) {
|
|
598
|
+
e.stopPropagation();
|
|
599
|
+
}
|
|
598
600
|
};
|
|
599
601
|
var onScrollY = function onScrollY(e) {
|
|
600
602
|
if (ref.current && props.onScrollY) {
|
|
@@ -61886,7 +61888,7 @@ var View = React.forwardRef(function (props, ref) {
|
|
|
61886
61888
|
}
|
|
61887
61889
|
}, [props.tabList]);
|
|
61888
61890
|
return tabList && React__default.createElement("div", {
|
|
61889
|
-
className: styles$u['vitro-view']
|
|
61891
|
+
className: styles$u['vitro-view'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
61890
61892
|
}, React__default.createElement(TabGroup, {
|
|
61891
61893
|
itemList: tabList,
|
|
61892
61894
|
isDisabled: props.isDisabled,
|
|
@@ -63574,7 +63576,8 @@ var ValueList = function ValueList(props) {
|
|
|
63574
63576
|
}, React__default.createElement("div", {
|
|
63575
63577
|
onMouseDown: onMouseDown
|
|
63576
63578
|
}, React__default.createElement(ScrollBar, {
|
|
63577
|
-
onInit: setScrollableElement
|
|
63579
|
+
onInit: setScrollableElement,
|
|
63580
|
+
isPreventParentScroll: true
|
|
63578
63581
|
}, props.isPending && React__default.createElement(Progress, null), !props.isPending && React__default.createElement(React__default.Fragment, null, props.list.length > 0 ? props.list.sort(sortValueList).map(function (x) {
|
|
63579
63582
|
return React__default.createElement(ValueListItem, {
|
|
63580
63583
|
item: x,
|
|
@@ -67104,7 +67107,7 @@ var Viewer = function Viewer(props) {
|
|
|
67104
67107
|
};
|
|
67105
67108
|
|
|
67106
67109
|
var name = "@vitrosoftware/common-ui-ts";
|
|
67107
|
-
var version$1 = "1.1.
|
|
67110
|
+
var version$1 = "1.1.224";
|
|
67108
67111
|
var description = "vitro software common ui ts";
|
|
67109
67112
|
var author = "";
|
|
67110
67113
|
var license = "MIT";
|
|
@@ -68553,9 +68556,9 @@ var Alert$1 = function Alert(props) {
|
|
|
68553
68556
|
}), React__default.createElement(FlexBox, {
|
|
68554
68557
|
className: styles$1h['vitro-content-container'],
|
|
68555
68558
|
isColumn: true
|
|
68556
|
-
}, React__default.createElement("div", {
|
|
68559
|
+
}, (props.title || props.text) && React__default.createElement("div", {
|
|
68557
68560
|
className: styles$1h['vitro-text']
|
|
68558
|
-
}, props.title && React__default.createElement("strong", null, props.title), props.text
|
|
68561
|
+
}, props.title && React__default.createElement("strong", null, props.title), props.text), props.children), props.isDismissible && React__default.createElement("div", {
|
|
68559
68562
|
className: styles$1h['vitro-button-close'],
|
|
68560
68563
|
onClick: onClose
|
|
68561
68564
|
}))));
|