@vitrosoftware/common-ui-ts 1.1.105 → 1.1.106
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/site-select/site-item.css +4 -0
- package/css/std/controls/site-select/site-select.css +0 -2
- package/dist/index.css +5 -2
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/src/controls/FlexBox/FlexBox.d.ts +1 -1
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.vitro-site-select {
|
|
2
2
|
position: relative;
|
|
3
3
|
z-index: 21;
|
|
4
|
-
margin-left: 32px;
|
|
5
4
|
max-width: 320px;
|
|
6
5
|
}
|
|
7
6
|
|
|
@@ -119,7 +118,6 @@
|
|
|
119
118
|
@media (max-width: 800px) {
|
|
120
119
|
.vitro-site-select {
|
|
121
120
|
z-index: 0;
|
|
122
|
-
margin: 0;
|
|
123
121
|
width: 100%;
|
|
124
122
|
max-width: unset;
|
|
125
123
|
}
|
package/dist/index.css
CHANGED
|
@@ -7333,6 +7333,11 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
7333
7333
|
flex-shrink: 0;
|
|
7334
7334
|
}
|
|
7335
7335
|
|
|
7336
|
+
._site-item_vitro-image_3wrW9q4{
|
|
7337
|
+
-o-object-fit: contain;
|
|
7338
|
+
object-fit: contain;
|
|
7339
|
+
}
|
|
7340
|
+
|
|
7336
7341
|
._site-item_vitro-default-image_fcWWNwv {
|
|
7337
7342
|
background-size: 100%;
|
|
7338
7343
|
background-repeat: no-repeat;
|
|
@@ -7358,7 +7363,6 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
7358
7363
|
._site-select_vitro-site-select_2irDOFZ {
|
|
7359
7364
|
position: relative;
|
|
7360
7365
|
z-index: 21;
|
|
7361
|
-
margin-left: 32px;
|
|
7362
7366
|
max-width: 320px;
|
|
7363
7367
|
}
|
|
7364
7368
|
|
|
@@ -7480,7 +7484,6 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
7480
7484
|
@media (max-width: 800px) {
|
|
7481
7485
|
._site-select_vitro-site-select_2irDOFZ {
|
|
7482
7486
|
z-index: 0;
|
|
7483
|
-
margin: 0;
|
|
7484
7487
|
width: 100%;
|
|
7485
7488
|
max-width: unset;
|
|
7486
7489
|
}
|
package/dist/index.js
CHANGED
|
@@ -61888,7 +61888,7 @@ var Viewer = function Viewer(props) {
|
|
|
61888
61888
|
};
|
|
61889
61889
|
|
|
61890
61890
|
var name = "@vitrosoftware/common-ui-ts";
|
|
61891
|
-
var version$1 = "1.1.
|
|
61891
|
+
var version$1 = "1.1.106";
|
|
61892
61892
|
var description = "vitro software common ui ts";
|
|
61893
61893
|
var author = "";
|
|
61894
61894
|
var license = "MIT";
|
|
@@ -64595,14 +64595,15 @@ var AttachedFile = function AttachedFile(props) {
|
|
|
64595
64595
|
|
|
64596
64596
|
var styles$13 = {"vitro-flex-box":"_flex-box_vitro-flex-box_3jGTD6k"};
|
|
64597
64597
|
|
|
64598
|
-
var FlexBox = function
|
|
64598
|
+
var FlexBox = React.forwardRef(function (props, ref) {
|
|
64599
64599
|
return React__default.createElement("div", Object.assign({}, props, {
|
|
64600
|
+
ref: ref,
|
|
64600
64601
|
style: props.gap ? {
|
|
64601
64602
|
gridGap: props.gap + UNIT.PX
|
|
64602
64603
|
} : {},
|
|
64603
64604
|
className: styles$13['vitro-flex-box'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
64604
64605
|
}), props.children);
|
|
64605
|
-
};
|
|
64606
|
+
});
|
|
64606
64607
|
|
|
64607
64608
|
var styles$14 = {"vitro-message-input":"_message-input_vitro-message-input_3MkcjWD","vitro-control":"_message-input_vitro-control_1PUSjq9","vitro-message":"_message-input_vitro-message_2EJSy-9","vitro-placeholder":"_message-input_vitro-placeholder_1FBfIqN","vitro-button-add-file":"_message-input_vitro-button-add-file_1qdtHHq","vitro-button-send":"_message-input_vitro-button-send_1vktQrZ","vitro-display-none":"_message-input_vitro-display-none_2dYTZ22","vitro-attached-file-list":"_message-input_vitro-attached-file-list_l95S4VR","vitro-flex":"_message-input_vitro-flex_18M_7xU"};
|
|
64608
64609
|
|
|
@@ -66748,6 +66749,7 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
66748
66749
|
isMobileView = _useState3[0],
|
|
66749
66750
|
setIsMobileView = _useState3[1];
|
|
66750
66751
|
var listRef = React.useRef(null);
|
|
66752
|
+
var flexBoxRef = React.useRef(null);
|
|
66751
66753
|
React.useEffect(function () {
|
|
66752
66754
|
setVisibleItemList(function (prevState) {
|
|
66753
66755
|
return props.itemList.filter(function (item) {
|
|
@@ -66819,7 +66821,9 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
66819
66821
|
setIsExpanded(!isExpanded);
|
|
66820
66822
|
};
|
|
66821
66823
|
var onMouseDown = function onMouseDown(e) {
|
|
66822
|
-
|
|
66824
|
+
var list = listRef.current;
|
|
66825
|
+
var flexBox = flexBoxRef.current;
|
|
66826
|
+
if (!isMobileView && list && !list.contains(e.target) && flexBox && !flexBox.contains(e.target)) {
|
|
66823
66827
|
setIsExpanded(false);
|
|
66824
66828
|
}
|
|
66825
66829
|
};
|
|
@@ -66843,7 +66847,8 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
66843
66847
|
return React__default.createElement("div", {
|
|
66844
66848
|
className: styles$1v['vitro-site-select']
|
|
66845
66849
|
}, React__default.createElement(FlexBox, {
|
|
66846
|
-
className: 'vitro-flex'
|
|
66850
|
+
className: styles$1v['vitro-flex'],
|
|
66851
|
+
ref: flexBoxRef
|
|
66847
66852
|
}, React__default.createElement("h2", {
|
|
66848
66853
|
onClick: onClick
|
|
66849
66854
|
}, props.activeItem.name), React__default.createElement(ImageButton, {
|