@vitrosoftware/common-ui-ts 1.1.175 → 1.1.176
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/common.css +4 -0
- package/css/std/controls/table-view/table-view.css +20 -1
- package/dist/index.css +23 -1
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- 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/css/std/common.css
CHANGED
|
@@ -91,4 +91,23 @@
|
|
|
91
91
|
|
|
92
92
|
:global(.vitro-mobile-layout) .vitro-table-view {
|
|
93
93
|
height: calc(100% - 1px);
|
|
94
|
-
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.vitro-table-view :global(.TWMain) strong,
|
|
97
|
+
.vitro-table-view :global(.TWMain) b {
|
|
98
|
+
font-weight: bold;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.vitro-table-view em {
|
|
102
|
+
color: inherit;
|
|
103
|
+
font-style: italic;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.vitro-table-view :global(.TWMain) s {
|
|
107
|
+
color: inherit;
|
|
108
|
+
text-decoration: line-through;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.vitro-table-view :global(.TWMain) u {
|
|
112
|
+
color: inherit;
|
|
113
|
+
}
|
package/dist/index.css
CHANGED
|
@@ -59,6 +59,10 @@ html, body {
|
|
|
59
59
|
overscroll-behavior-x: none;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
p {
|
|
63
|
+
margin: unset;
|
|
64
|
+
}
|
|
65
|
+
|
|
62
66
|
#root {
|
|
63
67
|
position: absolute;
|
|
64
68
|
top: 0;
|
|
@@ -775,8 +779,26 @@ html, body {
|
|
|
775
779
|
|
|
776
780
|
.vitro-mobile-layout ._table-view_vitro-table-view_1tTs32D {
|
|
777
781
|
height: calc(100% - 1px);
|
|
778
|
-
}
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
._table-view_vitro-table-view_1tTs32D .TWMain strong,
|
|
785
|
+
._table-view_vitro-table-view_1tTs32D .TWMain b {
|
|
786
|
+
font-weight: bold;
|
|
787
|
+
}
|
|
779
788
|
|
|
789
|
+
._table-view_vitro-table-view_1tTs32D em {
|
|
790
|
+
color: inherit;
|
|
791
|
+
font-style: italic;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
._table-view_vitro-table-view_1tTs32D .TWMain s {
|
|
795
|
+
color: inherit;
|
|
796
|
+
text-decoration: line-through;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
._table-view_vitro-table-view_1tTs32D .TWMain u {
|
|
800
|
+
color: inherit;
|
|
801
|
+
}
|
|
780
802
|
._progress-bar_vitro-progress-bar_u2VLQeW {
|
|
781
803
|
width: 100%;
|
|
782
804
|
height: 8px;
|
package/dist/index.js
CHANGED
|
@@ -63545,7 +63545,7 @@ var Viewer = function Viewer(props) {
|
|
|
63545
63545
|
};
|
|
63546
63546
|
|
|
63547
63547
|
var name = "@vitrosoftware/common-ui-ts";
|
|
63548
|
-
var version$1 = "1.1.
|
|
63548
|
+
var version$1 = "1.1.176";
|
|
63549
63549
|
var description = "vitro software common ui ts";
|
|
63550
63550
|
var author = "";
|
|
63551
63551
|
var license = "MIT";
|
|
@@ -65334,6 +65334,22 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
65334
65334
|
var isShowImage = (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.find(function (item) {
|
|
65335
65335
|
return item.imageUrl;
|
|
65336
65336
|
}) ? true : false;
|
|
65337
|
+
var contentRef = React.useRef(null);
|
|
65338
|
+
React.useEffect(function () {
|
|
65339
|
+
var observer = new IntersectionObserver(function (_ref) {
|
|
65340
|
+
var entry = _ref[0];
|
|
65341
|
+
if (contentRef.current && contentRef.current.parentElement && entry.isIntersecting) {
|
|
65342
|
+
contentRef.current.parentElement.scrollTop = 1;
|
|
65343
|
+
contentRef.current.parentElement.scrollTop = 0;
|
|
65344
|
+
}
|
|
65345
|
+
});
|
|
65346
|
+
if (contentRef.current) {
|
|
65347
|
+
observer.observe(contentRef.current);
|
|
65348
|
+
}
|
|
65349
|
+
return function () {
|
|
65350
|
+
observer.disconnect();
|
|
65351
|
+
};
|
|
65352
|
+
}, [contentRef]);
|
|
65337
65353
|
var onClick = function onClick(e) {
|
|
65338
65354
|
if (props.onClick) {
|
|
65339
65355
|
props.onClick(e);
|
|
@@ -65359,7 +65375,8 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
65359
65375
|
setIsRight: setIsRight
|
|
65360
65376
|
}))), React__default.createElement(reactstrap.DropdownMenu, null, React__default.createElement(ScrollBar, {
|
|
65361
65377
|
className: styles$W['vitro-scrollbar'],
|
|
65362
|
-
isHideScrollX: true
|
|
65378
|
+
isHideScrollX: true,
|
|
65379
|
+
contentRef: contentRef
|
|
65363
65380
|
}, props.itemList && props.itemList.map(function (i) {
|
|
65364
65381
|
return React__default.createElement(CommandMenuSubItem, Object.assign({
|
|
65365
65382
|
toggle: props.toggle,
|