@vitrosoftware/common-ui-ts 1.1.224 → 1.1.225
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 +14 -6
- package/dist/index.js.map +1 -1
- package/dist/src/controls/Search/Search.d.ts +3 -2
- package/dist/src/controls/Search/services/SearchService.d.ts +3 -0
- package/dist/src/services.d.ts +3 -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
|
@@ -66607,7 +66607,7 @@ var styles$W = {"vitro-search":"_search_vitro-search_QkJksC_","vitro-active":"_s
|
|
|
66607
66607
|
|
|
66608
66608
|
var CONDITION_CONTAINS = 11;
|
|
66609
66609
|
var CSS_CLASS_ACTIVE$1 = 'vitro-active';
|
|
66610
|
-
var Search = function
|
|
66610
|
+
var Search = React.forwardRef(function (props, ref) {
|
|
66611
66611
|
var _useState = React.useState(false),
|
|
66612
66612
|
isShowDialog = _useState[0],
|
|
66613
66613
|
setIsShowDialog = _useState[1];
|
|
@@ -66628,12 +66628,20 @@ var Search = function Search(props) {
|
|
|
66628
66628
|
setSendedSearchCriterionList = _useState6[1];
|
|
66629
66629
|
var searchInputRef = React.useRef(null);
|
|
66630
66630
|
var searchRef = React.useRef(null);
|
|
66631
|
+
var destinationRef = React.useRef(props.destination);
|
|
66631
66632
|
var eventService = inversifyReact.useInjection(SERVICE.EVENT);
|
|
66632
66633
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
66633
66634
|
var columnService = inversifyReact.useInjection(SERVICE.COLUMN);
|
|
66634
66635
|
var guidService = inversifyReact.useInjection(SERVICE.GUID);
|
|
66635
66636
|
var inputPlaceholder = localeService.create(LOCALE$8.SEARCH_INPUT_PLACEHOLDER);
|
|
66636
66637
|
var defaultSearchFieldName = FIELD$1.NAME;
|
|
66638
|
+
React.useImperativeHandle(ref, function () {
|
|
66639
|
+
return {
|
|
66640
|
+
setDestination: function setDestination(destination) {
|
|
66641
|
+
destinationRef.current = destination;
|
|
66642
|
+
}
|
|
66643
|
+
};
|
|
66644
|
+
});
|
|
66637
66645
|
React.useEffect(function () {
|
|
66638
66646
|
if (props.searchCriterionList) {
|
|
66639
66647
|
setSearchCriterionList(props.searchCriterionList);
|
|
@@ -66670,7 +66678,7 @@ var Search = function Search(props) {
|
|
|
66670
66678
|
eventService.send(exports.EVENT.SEARCH, {
|
|
66671
66679
|
searchCriterionList: list,
|
|
66672
66680
|
source: props.id,
|
|
66673
|
-
destination:
|
|
66681
|
+
destination: destinationRef.current
|
|
66674
66682
|
});
|
|
66675
66683
|
}
|
|
66676
66684
|
}, [props.parentId]);
|
|
@@ -66783,7 +66791,7 @@ var Search = function Search(props) {
|
|
|
66783
66791
|
eventService.send(exports.EVENT.SEARCH, {
|
|
66784
66792
|
searchCriterionList: null,
|
|
66785
66793
|
source: props.id,
|
|
66786
|
-
destination:
|
|
66794
|
+
destination: destinationRef.current
|
|
66787
66795
|
});
|
|
66788
66796
|
};
|
|
66789
66797
|
var getInputCriterionList = function getInputCriterionList(value) {
|
|
@@ -66836,7 +66844,7 @@ var Search = function Search(props) {
|
|
|
66836
66844
|
eventService.send(exports.EVENT.SEARCH, {
|
|
66837
66845
|
searchCriterionList: list,
|
|
66838
66846
|
source: props.id,
|
|
66839
|
-
destination:
|
|
66847
|
+
destination: destinationRef.current
|
|
66840
66848
|
});
|
|
66841
66849
|
};
|
|
66842
66850
|
return React__default.createElement("div", {
|
|
@@ -66872,7 +66880,7 @@ var Search = function Search(props) {
|
|
|
66872
66880
|
setSearchCriterionList: setSearchCriterionList,
|
|
66873
66881
|
searchRef: searchRef
|
|
66874
66882
|
}));
|
|
66875
|
-
};
|
|
66883
|
+
});
|
|
66876
66884
|
|
|
66877
66885
|
var styles$X = {"vitro-viewer-issue-list":"_viewer-issue-list_vitro-viewer-issue-list_NgsIC86","vitro-search-wrap":"_viewer-issue-list_vitro-search-wrap_1relfMg","vitro-issue-list-wrap":"_viewer-issue-list_vitro-issue-list-wrap_jT8ou5P"};
|
|
66878
66886
|
|
|
@@ -67107,7 +67115,7 @@ var Viewer = function Viewer(props) {
|
|
|
67107
67115
|
};
|
|
67108
67116
|
|
|
67109
67117
|
var name = "@vitrosoftware/common-ui-ts";
|
|
67110
|
-
var version$1 = "1.1.
|
|
67118
|
+
var version$1 = "1.1.225";
|
|
67111
67119
|
var description = "vitro software common ui ts";
|
|
67112
67120
|
var author = "";
|
|
67113
67121
|
var license = "MIT";
|