@vitrosoftware/common-ui-ts 1.1.230 → 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.
@@ -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);
@@ -63690,7 +63691,8 @@ var LookupPicker = React.forwardRef(function (props, ref) {
63690
63691
  scrollBarRef.current.scrollTop = scrollBarRef.current.scrollHeight;
63691
63692
  }
63692
63693
  if (!valueListVisible) {
63693
- onInputValueUpdated(e.target.value);
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);
63694
63696
  }
63695
63697
  isShowTooltipRef.current = false;
63696
63698
  setState(styles$N['vitro-focus']);
@@ -63745,6 +63747,11 @@ var LookupPicker = React.forwardRef(function (props, ref) {
63745
63747
  });
63746
63748
  }
63747
63749
  };
63750
+ var onClickInput = function onClickInput() {
63751
+ if (isInputReadOnly && props.isShowSearchButton) {
63752
+ onSearch();
63753
+ }
63754
+ };
63748
63755
  var content = React__default.createElement(React__default.Fragment, null, selectedValueList && selectedValueList.length > 0 && (props.isMultiSelect ? true : inputValue.length === 0) ? React__default.createElement(SelectedValueList, {
63749
63756
  list: selectedValueList,
63750
63757
  onOptionValueDelete: onOptionValueDelete,
@@ -63759,7 +63766,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
63759
63766
  ref: inputRef,
63760
63767
  value: inputValue,
63761
63768
  onKeyDown: onKeyDown,
63762
- onChange: onChange
63769
+ onChange: onChange,
63770
+ readOnly: isInputReadOnly,
63771
+ onClick: onClickInput
63763
63772
  }), !props.isDisabled && props.children);
63764
63773
  var isShowButtonClear = props.isShowButtonClear !== false && !props.isMultiSelect && selectedValueList && selectedValueList.length > 0 && isEditable;
63765
63774
  return React__default.createElement("div", {
@@ -66894,7 +66903,7 @@ var Viewer = function Viewer(props) {
66894
66903
  };
66895
66904
 
66896
66905
  var name = "@vitrosoftware/common-ui-ts";
66897
- var version$1 = "1.1.230";
66906
+ var version$1 = "1.1.231";
66898
66907
  var description = "vitro software common ui ts";
66899
66908
  var author = "";
66900
66909
  var license = "MIT";