@vitrosoftware/common-ui-ts 1.1.229 → 1.1.231
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/pdf-viewer/img/edit-done.svg +4 -0
- package/css/std/controls/pdf-viewer/img/edit.svg +5 -0
- package/css/std/controls/pdf-viewer/pdf-viewer-index.css +24 -0
- package/css/std/controls/pdf-viewer/pdf-viewer.css +24 -0
- package/dist/index.js +18 -6
- 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 +15 -15
- package/src/controls/PdfViewer/js/pdf-viewer.js +347 -71
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21 11V17C21 19.2091 19.2091 21 17 21H7C4.79086 21 3 19.2091 3 17V7C3 4.79086 4.79086 3 7 3H13" stroke="#222D44" stroke-linecap="round"/>
|
|
3
|
+
<path d="M22 4.1001L12.3289 13.9001L8 10.0024" stroke="#222D44" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21 11V17C21 19.2091 19.2091 21 17 21H7C4.79086 21 3 19.2091 3 17V7C3 4.79086 4.79086 3 7 3H13" stroke="#222D44" stroke-linecap="round"/>
|
|
3
|
+
<path d="M17.9227 3.52798C18.2607 3.18992 18.7193 3 19.1973 3C19.6754 3 20.134 3.18992 20.472 3.52798C20.8101 3.86605 21 4.32456 21 4.80265C21 5.28075 20.8101 5.73926 20.472 6.07732L12.3991 14.1502L9 15L9.84978 11.6009L17.9227 3.52798Z" stroke="#222D44" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M16 6L18 8" stroke="#222D44" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
@@ -8219,4 +8219,28 @@ dialog .separator {
|
|
|
8219
8219
|
.compare-dlg_doc-b_name.field-grp {
|
|
8220
8220
|
margin-bottom: 14px !important;
|
|
8221
8221
|
margin-top: 1px !important;
|
|
8222
|
+
}
|
|
8223
|
+
|
|
8224
|
+
.context-menu-icon-edit:before {
|
|
8225
|
+
content: url('img/edit.svg');
|
|
8226
|
+
}
|
|
8227
|
+
|
|
8228
|
+
.context-menu-icon-end-edit:before {
|
|
8229
|
+
content: url('img/edit-done.svg');
|
|
8230
|
+
}/*
|
|
8231
|
+
|
|
8232
|
+
.pointer-events-none {
|
|
8233
|
+
pointer-events: none !important;
|
|
8234
|
+
}*/
|
|
8235
|
+
|
|
8236
|
+
.svgsketch-wrap {
|
|
8237
|
+
z-index: 150;
|
|
8238
|
+
}
|
|
8239
|
+
|
|
8240
|
+
.svgsketch-wrap svg > * {
|
|
8241
|
+
pointer-events: auto !important;
|
|
8242
|
+
}
|
|
8243
|
+
|
|
8244
|
+
.to-bg {
|
|
8245
|
+
z-index: 50;
|
|
8222
8246
|
}
|
|
@@ -1217,4 +1217,28 @@ dialog .separator {
|
|
|
1217
1217
|
.compare-dlg_doc-b_name.field-grp {
|
|
1218
1218
|
margin-bottom: 14px !important;
|
|
1219
1219
|
margin-top: 1px !important;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.context-menu-icon-edit:before {
|
|
1223
|
+
content: url('img/edit.svg');
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
.context-menu-icon-end-edit:before {
|
|
1227
|
+
content: url('img/edit-done.svg');
|
|
1228
|
+
}/*
|
|
1229
|
+
|
|
1230
|
+
.pointer-events-none {
|
|
1231
|
+
pointer-events: none !important;
|
|
1232
|
+
}*/
|
|
1233
|
+
|
|
1234
|
+
.svgsketch-wrap {
|
|
1235
|
+
z-index: 150;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
.svgsketch-wrap svg > * {
|
|
1239
|
+
pointer-events: auto !important;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.to-bg {
|
|
1243
|
+
z-index: 50;
|
|
1220
1244
|
}
|
package/dist/index.js
CHANGED
|
@@ -63455,6 +63455,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63455
63455
|
setState = _useState7[1];
|
|
63456
63456
|
var localeService = props.container ? props.container.get(SERVICE.LOCALE) : inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63457
63457
|
var isEditable = !props.isDisabled && !props.isReadOnly;
|
|
63458
|
+
var isInputReadOnly = !(props.getValueList || props.getAllValueList || props.valueList);
|
|
63458
63459
|
var inputRef = React.useRef(null);
|
|
63459
63460
|
var contentRef = React.useRef(null);
|
|
63460
63461
|
var containerRef = React.useRef(null);
|
|
@@ -63517,7 +63518,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63517
63518
|
}
|
|
63518
63519
|
};
|
|
63519
63520
|
});
|
|
63520
|
-
var onInputValueUpdated = function onInputValueUpdated() {
|
|
63521
|
+
var onInputValueUpdated = function onInputValueUpdated(inputValue) {
|
|
63521
63522
|
if ((inputValue || inputValue === CTRL.EMPTY) && inputValue.length >= props.filterMinLength) {
|
|
63522
63523
|
if (props.valueList) {
|
|
63523
63524
|
updateFilteredValueList(props.valueList);
|
|
@@ -63577,7 +63578,8 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63577
63578
|
return props.selectedValueTemplate ? props.selectedValueTemplate(value) : value.title;
|
|
63578
63579
|
};
|
|
63579
63580
|
var expandValueList = function expandValueList() {
|
|
63580
|
-
|
|
63581
|
+
var _props$valueList;
|
|
63582
|
+
if (props.getAllValueList || props.getValueList || (_props$valueList = props.valueList) !== null && _props$valueList !== void 0 && _props$valueList.length) {
|
|
63581
63583
|
setValueListVisible(true);
|
|
63582
63584
|
}
|
|
63583
63585
|
};
|
|
@@ -63585,7 +63587,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63585
63587
|
setState(styles$N['vitro-focus']);
|
|
63586
63588
|
expandValueList();
|
|
63587
63589
|
setInputValue(e.target.value);
|
|
63588
|
-
onInputValueUpdated();
|
|
63590
|
+
onInputValueUpdated(e.target.value);
|
|
63589
63591
|
};
|
|
63590
63592
|
var onKeyDown = function onKeyDown(e) {
|
|
63591
63593
|
var keyBoardBackSpace = 8;
|
|
@@ -63688,7 +63690,10 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63688
63690
|
if (scrollBarRef.current) {
|
|
63689
63691
|
scrollBarRef.current.scrollTop = scrollBarRef.current.scrollHeight;
|
|
63690
63692
|
}
|
|
63691
|
-
|
|
63693
|
+
if (!valueListVisible) {
|
|
63694
|
+
var _e$target;
|
|
63695
|
+
onInputValueUpdated((e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || CTRL.EMPTY);
|
|
63696
|
+
}
|
|
63692
63697
|
isShowTooltipRef.current = false;
|
|
63693
63698
|
setState(styles$N['vitro-focus']);
|
|
63694
63699
|
expandValueList();
|
|
@@ -63742,6 +63747,11 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63742
63747
|
});
|
|
63743
63748
|
}
|
|
63744
63749
|
};
|
|
63750
|
+
var onClickInput = function onClickInput() {
|
|
63751
|
+
if (isInputReadOnly && props.isShowSearchButton) {
|
|
63752
|
+
onSearch();
|
|
63753
|
+
}
|
|
63754
|
+
};
|
|
63745
63755
|
var content = React__default.createElement(React__default.Fragment, null, selectedValueList && selectedValueList.length > 0 && (props.isMultiSelect ? true : inputValue.length === 0) ? React__default.createElement(SelectedValueList, {
|
|
63746
63756
|
list: selectedValueList,
|
|
63747
63757
|
onOptionValueDelete: onOptionValueDelete,
|
|
@@ -63756,7 +63766,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63756
63766
|
ref: inputRef,
|
|
63757
63767
|
value: inputValue,
|
|
63758
63768
|
onKeyDown: onKeyDown,
|
|
63759
|
-
onChange: onChange
|
|
63769
|
+
onChange: onChange,
|
|
63770
|
+
readOnly: isInputReadOnly,
|
|
63771
|
+
onClick: onClickInput
|
|
63760
63772
|
}), !props.isDisabled && props.children);
|
|
63761
63773
|
var isShowButtonClear = props.isShowButtonClear !== false && !props.isMultiSelect && selectedValueList && selectedValueList.length > 0 && isEditable;
|
|
63762
63774
|
return React__default.createElement("div", {
|
|
@@ -66891,7 +66903,7 @@ var Viewer = function Viewer(props) {
|
|
|
66891
66903
|
};
|
|
66892
66904
|
|
|
66893
66905
|
var name = "@vitrosoftware/common-ui-ts";
|
|
66894
|
-
var version$1 = "1.1.
|
|
66906
|
+
var version$1 = "1.1.231";
|
|
66895
66907
|
var description = "vitro software common ui ts";
|
|
66896
66908
|
var author = "";
|
|
66897
66909
|
var license = "MIT";
|