@vitrosoftware/common-ui-ts 1.1.90 → 1.1.91
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/checkbox/checkbox.css +2 -0
- package/css/std/controls/dialog/dialog.css +0 -2
- package/css/std/controls/sidebar/sidebar-item.css +3 -2
- package/dist/index.css +6 -4
- package/dist/index.js +22 -7
- package/dist/index.js.map +1 -1
- package/dist/src/controls/Sidebar/Item.d.ts +1 -0
- package/dist/src/controls/Sidebar/LinkItem.d.ts +1 -0
- 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
|
@@ -68,8 +68,7 @@
|
|
|
68
68
|
align-items: center;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
.vitro-group-item > .vitro-item-list > .vitro-item:last-child {
|
|
71
|
+
.vitro-group-item > .vitro-item-list > .vitro-item {
|
|
73
72
|
margin-bottom: 0;
|
|
74
73
|
}
|
|
75
74
|
|
|
@@ -78,6 +77,8 @@
|
|
|
78
77
|
display: flex;
|
|
79
78
|
flex-direction: row;
|
|
80
79
|
align-items: center;
|
|
80
|
+
padding: 6px;
|
|
81
|
+
height: 36px;
|
|
81
82
|
padding-left: 24px;
|
|
82
83
|
}
|
|
83
84
|
|
package/dist/index.css
CHANGED
|
@@ -2645,6 +2645,9 @@ html, body {
|
|
|
2645
2645
|
height: 24px;
|
|
2646
2646
|
margin-right: 6px;
|
|
2647
2647
|
cursor: pointer;
|
|
2648
|
+
-moz-appearance: none;
|
|
2649
|
+
appearance: none;
|
|
2650
|
+
-webkit-appearance: none;
|
|
2648
2651
|
}
|
|
2649
2652
|
|
|
2650
2653
|
._checkbox_vitro-checkbox-content_2fBG1zl input::before,
|
|
@@ -4426,8 +4429,7 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
4426
4429
|
align-items: center;
|
|
4427
4430
|
}
|
|
4428
4431
|
|
|
4429
|
-
|
|
4430
|
-
._sidebar-item_vitro-group-item_ZADCctV > ._sidebar-item_vitro-item-list_17dWov1 > ._sidebar-item_vitro-item_1BR_7F0:last-child {
|
|
4432
|
+
._sidebar-item_vitro-group-item_ZADCctV > ._sidebar-item_vitro-item-list_17dWov1 > ._sidebar-item_vitro-item_1BR_7F0 {
|
|
4431
4433
|
margin-bottom: 0;
|
|
4432
4434
|
}
|
|
4433
4435
|
|
|
@@ -4436,6 +4438,8 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
4436
4438
|
display: flex;
|
|
4437
4439
|
flex-direction: row;
|
|
4438
4440
|
align-items: center;
|
|
4441
|
+
padding: 6px;
|
|
4442
|
+
height: 36px;
|
|
4439
4443
|
padding-left: 24px;
|
|
4440
4444
|
}
|
|
4441
4445
|
|
|
@@ -5346,8 +5350,6 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
5346
5350
|
transform: translate(-50%, -50%);
|
|
5347
5351
|
opacity: 1;
|
|
5348
5352
|
border-radius: 4px;
|
|
5349
|
-
height: 534px;
|
|
5350
|
-
width: 760px;
|
|
5351
5353
|
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
|
|
5352
5354
|
}
|
|
5353
5355
|
|
package/dist/index.js
CHANGED
|
@@ -61708,7 +61708,7 @@ var Viewer = function Viewer(props) {
|
|
|
61708
61708
|
};
|
|
61709
61709
|
|
|
61710
61710
|
var name = "@vitrosoftware/common-ui-ts";
|
|
61711
|
-
var version$1 = "1.1.
|
|
61711
|
+
var version$1 = "1.1.91";
|
|
61712
61712
|
var description = "vitro software common ui ts";
|
|
61713
61713
|
var author = "";
|
|
61714
61714
|
var license = "MIT";
|
|
@@ -62190,15 +62190,15 @@ var LoginForm = React.forwardRef(function (props, ref) {
|
|
|
62190
62190
|
})), React__default.createElement(LoginSubmitButton, {
|
|
62191
62191
|
onClick: submit,
|
|
62192
62192
|
isDisabled: loading
|
|
62193
|
-
}), React__default.createElement("div", {
|
|
62193
|
+
}), props.buttonList && props.buttonList.length ? React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
62194
62194
|
className: styles$v['vitro-separator']
|
|
62195
62195
|
}, localeService.create(LOCALE$3.LOGIN_FORM_SEPARATOR_TEXT)), React__default.createElement("div", {
|
|
62196
62196
|
className: styles$v['vitro-button-list']
|
|
62197
|
-
}, props.buttonList
|
|
62197
|
+
}, props.buttonList.map(function (button) {
|
|
62198
62198
|
return React__default.createElement(Button$2, Object.assign({}, button, {
|
|
62199
62199
|
className: styles$v['vitro-button']
|
|
62200
62200
|
}));
|
|
62201
|
-
})), props.onRegister && React__default.createElement(Link, {
|
|
62201
|
+
}))) : React__default.createElement(React__default.Fragment, null), props.onRegister && React__default.createElement(Link, {
|
|
62202
62202
|
text: localeService.create(LOCALE$3.LOGIN_FORM_ACTION_REGISTER),
|
|
62203
62203
|
onClick: props.onRegister,
|
|
62204
62204
|
className: styles$v['vitro-link-register']
|
|
@@ -63369,13 +63369,22 @@ var Item$2 = function Item(props) {
|
|
|
63369
63369
|
setIsShowTooltip = _useState[1];
|
|
63370
63370
|
var textRef = React.useRef(null);
|
|
63371
63371
|
React.useEffect(function () {
|
|
63372
|
-
|
|
63372
|
+
updateIsShowTooltip();
|
|
63373
|
+
}, []);
|
|
63374
|
+
React.useEffect(function () {
|
|
63375
|
+
updateIsShowTooltip();
|
|
63376
|
+
}, [props.isSidebarExpanded, props.isHidden]);
|
|
63377
|
+
var getIsOverflow = function getIsOverflow() {
|
|
63378
|
+
return textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth;
|
|
63379
|
+
};
|
|
63380
|
+
var updateIsShowTooltip = function updateIsShowTooltip() {
|
|
63381
|
+
var isOverflow = getIsOverflow();
|
|
63373
63382
|
if (!props.isMobileView && (!props.isSidebarExpanded || isOverflow)) {
|
|
63374
63383
|
setIsShowTooltip(true);
|
|
63375
63384
|
} else {
|
|
63376
63385
|
setIsShowTooltip(false);
|
|
63377
63386
|
}
|
|
63378
|
-
}
|
|
63387
|
+
};
|
|
63379
63388
|
return React__default.createElement(Tooltip$1, {
|
|
63380
63389
|
text: props.text || CTRL.EMPTY,
|
|
63381
63390
|
placement: PLACEMENT$1.RIGHT,
|
|
@@ -63492,6 +63501,11 @@ var GroupItem = function GroupItem(props) {
|
|
|
63492
63501
|
setSwipePosition = _useState5[1];
|
|
63493
63502
|
var itemListRef = React.useRef(null);
|
|
63494
63503
|
var buttonRef = React.useRef(null);
|
|
63504
|
+
React.useEffect(function () {
|
|
63505
|
+
if (getIsActiveChildItem() && props.isSidebarExpanded && !props.isMobileView) {
|
|
63506
|
+
setIsExpanded(true);
|
|
63507
|
+
}
|
|
63508
|
+
}, []);
|
|
63495
63509
|
React.useEffect(function () {
|
|
63496
63510
|
updateState();
|
|
63497
63511
|
}, [props.isSidebarExpanded, props.activeItem, props.currentUrl, isExpanded]);
|
|
@@ -63581,7 +63595,8 @@ var GroupItem = function GroupItem(props) {
|
|
|
63581
63595
|
key: i.text,
|
|
63582
63596
|
currentUrl: props.currentUrl,
|
|
63583
63597
|
isSidebarExpanded: props.isSidebarExpanded,
|
|
63584
|
-
isMobileView: props.isMobileView
|
|
63598
|
+
isMobileView: props.isMobileView,
|
|
63599
|
+
isHidden: !isExpanded
|
|
63585
63600
|
}, i)) : i.itemList ? React__default.createElement(GroupItem, Object.assign({
|
|
63586
63601
|
isSidebarExpanded: props.isSidebarExpanded,
|
|
63587
63602
|
link: i.link,
|