@vitrosoftware/common-ui-ts 1.1.164 → 1.1.165
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/search/search.css +1 -1
- package/css/std/controls/sidebar/sidebar-item.css +2 -2
- package/css/std/controls/tree-view/tree-view.css +16 -1
- package/dist/index.css +20 -4
- package/dist/index.js +47 -5
- package/dist/index.js.map +1 -1
- package/dist/src/controls/TreeView/JsTreeViewContextImpl.d.ts +1 -0
- package/dist/src/controls/TreeView/TreeViewConstants.d.ts +6 -2
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +28 -5
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -284,9 +284,9 @@
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
.vitro-sidebar-group-slideup-panel .vitro-scrollbar > div:first-child {
|
|
287
|
-
padding: 0
|
|
287
|
+
padding: 0 16px 12px 16px !important;
|
|
288
288
|
max-height: none !important;
|
|
289
|
-
height: 100%
|
|
289
|
+
height: calc(100% - 32px);
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
.vitro-sidebar-group-slideup-panel .vitro-scrollbar > div:first-child > ul {
|
|
@@ -129,10 +129,25 @@
|
|
|
129
129
|
float: right;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
.vitro-tree-view.vitro-arrow-right :global(.vitro-root-node.jstree-closed) > :global(.jstree-ocl),
|
|
133
|
+
.vitro-tree-view.vitro-arrow-right :global(.vitro-root-node.jstree-open) > :global(.jstree-ocl) {
|
|
134
|
+
display: inline-block;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.vitro-tree-view.vitro-arrow-right :global(.jstree-open) > :global(.jstree-ocl) {
|
|
138
|
+
transform: rotate(180deg);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.vitro-tree-view.vitro-arrow-right :global(.jstree-closed) > :global(.jstree-ocl) {
|
|
142
|
+
background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/tree-view/img/collapse-bottom-grey.svg');
|
|
143
|
+
}
|
|
144
|
+
|
|
132
145
|
.vitro-tree-view.vitro-arrow-right :global(.jstree-container-ul) {
|
|
133
146
|
max-width: 100%;
|
|
134
147
|
}
|
|
135
148
|
|
|
136
149
|
.vitro-tree-view.vitro-arrow-right :global(.jstree-anchor) {
|
|
137
150
|
width: calc(100% - 24px);
|
|
138
|
-
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
}
|
package/dist/index.css
CHANGED
|
@@ -547,13 +547,29 @@ html, body {
|
|
|
547
547
|
float: right;
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
+
._tree-view_vitro-tree-view_3oii-CW._tree-view_vitro-arrow-right_dVxSsID .vitro-root-node.jstree-closed > .jstree-ocl,
|
|
551
|
+
._tree-view_vitro-tree-view_3oii-CW._tree-view_vitro-arrow-right_dVxSsID .vitro-root-node.jstree-open > .jstree-ocl {
|
|
552
|
+
display: inline-block;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
._tree-view_vitro-tree-view_3oii-CW._tree-view_vitro-arrow-right_dVxSsID .jstree-open > .jstree-ocl {
|
|
556
|
+
transform: rotate(180deg);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
._tree-view_vitro-tree-view_3oii-CW._tree-view_vitro-arrow-right_dVxSsID .jstree-closed > .jstree-ocl {
|
|
560
|
+
background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/tree-view/img/collapse-bottom-grey.svg');
|
|
561
|
+
}
|
|
562
|
+
|
|
550
563
|
._tree-view_vitro-tree-view_3oii-CW._tree-view_vitro-arrow-right_dVxSsID .jstree-container-ul {
|
|
551
564
|
max-width: 100%;
|
|
552
565
|
}
|
|
553
566
|
|
|
554
567
|
._tree-view_vitro-tree-view_3oii-CW._tree-view_vitro-arrow-right_dVxSsID .jstree-anchor {
|
|
555
568
|
width: calc(100% - 24px);
|
|
556
|
-
|
|
569
|
+
overflow: hidden;
|
|
570
|
+
text-overflow: ellipsis;
|
|
571
|
+
}
|
|
572
|
+
|
|
557
573
|
._progress_vitro-progress-container_3Dbhbpo {
|
|
558
574
|
width: 100%;
|
|
559
575
|
height: 100%;
|
|
@@ -5133,9 +5149,9 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
5133
5149
|
}
|
|
5134
5150
|
|
|
5135
5151
|
._sidebar-item_vitro-sidebar-group-slideup-panel_15tkxuO ._sidebar-item_vitro-scrollbar___xylIx > div:first-child {
|
|
5136
|
-
padding: 0
|
|
5152
|
+
padding: 0 16px 12px 16px !important;
|
|
5137
5153
|
max-height: none !important;
|
|
5138
|
-
height: 100%
|
|
5154
|
+
height: calc(100% - 32px);
|
|
5139
5155
|
}
|
|
5140
5156
|
|
|
5141
5157
|
._sidebar-item_vitro-sidebar-group-slideup-panel_15tkxuO ._sidebar-item_vitro-scrollbar___xylIx > div:first-child > ul {
|
|
@@ -6960,7 +6976,7 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
6960
6976
|
}
|
|
6961
6977
|
|
|
6962
6978
|
._search_vitro-search_QkJksC_._search_vitro-active_1HhQOCR {
|
|
6963
|
-
width:
|
|
6979
|
+
width: 100%;
|
|
6964
6980
|
}
|
|
6965
6981
|
|
|
6966
6982
|
._search_vitro-settings-dialog_1_c5bIg {
|
package/dist/index.js
CHANGED
|
@@ -20516,6 +20516,8 @@ var METHOD;
|
|
|
20516
20516
|
METHOD["GET_BOTTOM_CHECKED"] = "get_bottom_checked";
|
|
20517
20517
|
METHOD["IS_CHECKED"] = "is_checked";
|
|
20518
20518
|
METHOD["IS_UNDETERMINED"] = "is_undetermined";
|
|
20519
|
+
METHOD["CLEAR_STATE"] = "clear_state";
|
|
20520
|
+
METHOD["SET_ICON"] = "set_icon";
|
|
20519
20521
|
})(METHOD || (METHOD = {}));
|
|
20520
20522
|
var EVENT;
|
|
20521
20523
|
(function (EVENT) {
|
|
@@ -20525,6 +20527,8 @@ var EVENT;
|
|
|
20525
20527
|
EVENT["MODEL"] = "model.jstree";
|
|
20526
20528
|
EVENT["DBLCLICK"] = "dblclick.jstree";
|
|
20527
20529
|
EVENT["DROP"] = "drop.vakata.jstree";
|
|
20530
|
+
EVENT["HOVER_NODE"] = "hover_node.jstree";
|
|
20531
|
+
EVENT["DEHOVER_NODE"] = "dehover_node.jstree";
|
|
20528
20532
|
})(EVENT || (EVENT = {}));
|
|
20529
20533
|
var NODE_TYPE;
|
|
20530
20534
|
(function (NODE_TYPE) {
|
|
@@ -20734,7 +20738,10 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
|
|
|
20734
20738
|
return this.jsTree.jstree(METHOD.IS_UNDETERMINED, node);
|
|
20735
20739
|
};
|
|
20736
20740
|
_proto.clearState = function clearState() {
|
|
20737
|
-
return this.jsTree.jstree(
|
|
20741
|
+
return this.jsTree.jstree(METHOD.CLEAR_STATE);
|
|
20742
|
+
};
|
|
20743
|
+
_proto.setIcon = function setIcon(obj, icon) {
|
|
20744
|
+
this.jsTree.jstree(METHOD.SET_ICON, obj, icon);
|
|
20738
20745
|
};
|
|
20739
20746
|
return JsTreeViewContextImpl;
|
|
20740
20747
|
}();
|
|
@@ -20789,7 +20796,29 @@ var TreeView = function TreeView(props) {
|
|
|
20789
20796
|
onDrop(e);
|
|
20790
20797
|
});
|
|
20791
20798
|
}
|
|
20799
|
+
if (jsTreeTreeView) {
|
|
20800
|
+
jsTreeTreeView.setEventHandler({
|
|
20801
|
+
id: EVENT.HOVER_NODE,
|
|
20802
|
+
process: onHoverNode
|
|
20803
|
+
});
|
|
20804
|
+
jsTreeTreeView.setEventHandler({
|
|
20805
|
+
id: EVENT.DEHOVER_NODE,
|
|
20806
|
+
process: onDehoverNode
|
|
20807
|
+
});
|
|
20808
|
+
}
|
|
20792
20809
|
}, [jsTreeTreeView]);
|
|
20810
|
+
var onHoverNode = function onHoverNode(treeView, e, obj) {
|
|
20811
|
+
var _obj$node$original;
|
|
20812
|
+
if ((_obj$node$original = obj.node.original) !== null && _obj$node$original !== void 0 && _obj$node$original.imageHoverUrl) {
|
|
20813
|
+
treeView.setIcon(obj.node, obj.node.original.imageHoverUrl);
|
|
20814
|
+
}
|
|
20815
|
+
};
|
|
20816
|
+
var onDehoverNode = function onDehoverNode(treeView, e, obj) {
|
|
20817
|
+
var _obj$node$original2, _obj$node$original3;
|
|
20818
|
+
if (obj.node.icon && (_obj$node$original2 = obj.node.original) !== null && _obj$node$original2 !== void 0 && _obj$node$original2.imageHoverUrl && (_obj$node$original3 = obj.node.original) !== null && _obj$node$original3 !== void 0 && _obj$node$original3.imageUrl) {
|
|
20819
|
+
treeView.setIcon(obj.node, obj.node.original.imageUrl);
|
|
20820
|
+
}
|
|
20821
|
+
};
|
|
20793
20822
|
var init = function init() {
|
|
20794
20823
|
config.core.data = getData;
|
|
20795
20824
|
jquery(jsTreeRef.current).jstree(config);
|
|
@@ -22212,8 +22241,8 @@ var renderMicrofrontend = function renderMicrofrontend(rendererName, microFronte
|
|
|
22212
22241
|
}
|
|
22213
22242
|
};
|
|
22214
22243
|
|
|
22215
|
-
var MicroFrontend = function
|
|
22216
|
-
var rootRef = React.useRef(null);
|
|
22244
|
+
var MicroFrontend = React.forwardRef(function (props, ref) {
|
|
22245
|
+
var rootRef = ref || React.useRef(null);
|
|
22217
22246
|
var containerId = props.data && props.data.containerId ? props.data.containerId : props.name;
|
|
22218
22247
|
var microFrontendState = React.useMemo(function () {
|
|
22219
22248
|
return new MicroFrontendState();
|
|
@@ -22276,7 +22305,7 @@ var MicroFrontend = function MicroFrontend(props) {
|
|
|
22276
22305
|
id: containerId,
|
|
22277
22306
|
ref: rootRef
|
|
22278
22307
|
});
|
|
22279
|
-
};
|
|
22308
|
+
});
|
|
22280
22309
|
|
|
22281
22310
|
var EVENT$2;
|
|
22282
22311
|
(function (EVENT) {
|
|
@@ -63488,7 +63517,7 @@ var Viewer = function Viewer(props) {
|
|
|
63488
63517
|
};
|
|
63489
63518
|
|
|
63490
63519
|
var name = "@vitrosoftware/common-ui-ts";
|
|
63491
|
-
var version$1 = "1.1.
|
|
63520
|
+
var version$1 = "1.1.165";
|
|
63492
63521
|
var description = "vitro software common ui ts";
|
|
63493
63522
|
var author = "";
|
|
63494
63523
|
var license = "MIT";
|
|
@@ -65461,6 +65490,12 @@ var SlideUpPanel = function SlideUpPanel(props) {
|
|
|
65461
65490
|
setSwipePosition = _useState3[1];
|
|
65462
65491
|
var contentRef = React.useRef(null);
|
|
65463
65492
|
var buttonRef = React.useRef(null);
|
|
65493
|
+
React.useEffect(function () {
|
|
65494
|
+
window.addEventListener(exports.EVENT.CLICK, onClickOutsideSlideUp);
|
|
65495
|
+
return function () {
|
|
65496
|
+
window.removeEventListener(exports.EVENT.CLICK, onClickOutsideSlideUp);
|
|
65497
|
+
};
|
|
65498
|
+
}, []);
|
|
65464
65499
|
React.useEffect(function () {
|
|
65465
65500
|
setIsShow(props.isShow);
|
|
65466
65501
|
if (props.isShow) {
|
|
@@ -65476,6 +65511,12 @@ var SlideUpPanel = function SlideUpPanel(props) {
|
|
|
65476
65511
|
contentRef.current.style.height = contentRef.current.offsetHeight + UNIT.PX;
|
|
65477
65512
|
}
|
|
65478
65513
|
}, [isExpanded]);
|
|
65514
|
+
var onClickOutsideSlideUp = function onClickOutsideSlideUp(e) {
|
|
65515
|
+
var slideUpContent = contentRef.current;
|
|
65516
|
+
if (slideUpContent && slideUpContent.parentNode && e.target === slideUpContent.parentNode) {
|
|
65517
|
+
close();
|
|
65518
|
+
}
|
|
65519
|
+
};
|
|
65479
65520
|
var onTouchStart = function onTouchStart(e) {
|
|
65480
65521
|
setSwipePosition(_extends({}, swipePosition, {
|
|
65481
65522
|
start: e.changedTouches[0].clientY
|
|
@@ -67520,6 +67561,7 @@ var SearchInput = function SearchInput(props) {
|
|
|
67520
67561
|
};
|
|
67521
67562
|
var onCancel = function onCancel() {
|
|
67522
67563
|
resetValue();
|
|
67564
|
+
onBlur();
|
|
67523
67565
|
props.onCancel();
|
|
67524
67566
|
};
|
|
67525
67567
|
var onChange = function onChange(e) {
|