@vitrosoftware/common-ui-ts 1.1.239 → 1.1.241

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.
@@ -15428,4 +15428,20 @@ div:focus-visible {
15428
15428
  text-align: center;
15429
15429
  width: 94px;
15430
15430
  margin-left: auto;
15431
+ }
15432
+
15433
+ [class*="_dropdown-button_vitro-dropdown-menu"],
15434
+ [class*="_criterion_vitro-operator-list-container"],
15435
+ [class*="_criterion_vitro-condition-list-container"],
15436
+ [class*="_lookup-picker-value-list"] {
15437
+ z-index: 89000005 !important;
15438
+ }
15439
+
15440
+ .vitro-compare-mode .annotation-marker {
15441
+ display: none;
15442
+ }
15443
+
15444
+ .annotation-title {
15445
+ overflow-wrap: break-word !important;
15446
+ word-wrap: break-word !important;
15431
15447
  }
@@ -1156,4 +1156,20 @@ div:focus-visible {
1156
1156
  text-align: center;
1157
1157
  width: 94px;
1158
1158
  margin-left: auto;
1159
+ }
1160
+
1161
+ [class*="_dropdown-button_vitro-dropdown-menu"],
1162
+ [class*="_criterion_vitro-operator-list-container"],
1163
+ [class*="_criterion_vitro-condition-list-container"],
1164
+ [class*="_lookup-picker-value-list"] {
1165
+ z-index: 89000005 !important;
1166
+ }
1167
+
1168
+ .vitro-compare-mode .annotation-marker {
1169
+ display: none;
1170
+ }
1171
+
1172
+ .annotation-title {
1173
+ overflow-wrap: break-word !important;
1174
+ word-wrap: break-word !important;
1159
1175
  }
package/dist/index.js CHANGED
@@ -750,15 +750,27 @@ var Breadcrumbs = function Breadcrumbs(props) {
750
750
  windowWidth < exports.MOBILE_VIEW.WIDTH ? setIsMobileView(true) : setIsMobileView(false);
751
751
  }
752
752
  };
753
+ var isValidEvent = function isValidEvent(e) {
754
+ var _e$detail;
755
+ if ((_e$detail = e.detail) !== null && _e$detail !== void 0 && _e$detail.eventScopeId) {
756
+ var _e$detail2;
757
+ return ((_e$detail2 = e.detail) === null || _e$detail2 === void 0 ? void 0 : _e$detail2.eventScopeId) === props.eventScopeId;
758
+ }
759
+ return true;
760
+ };
753
761
  var updateItemList = function updateItemList(e) {
754
- if (props.getItemList) {
755
- props.getItemList(e).then(function (list) {
756
- setItemList(getItemList(list));
757
- });
762
+ if (isValidEvent(e)) {
763
+ if (props.getItemList) {
764
+ props.getItemList(e).then(function (list) {
765
+ setItemList(getItemList(list));
766
+ });
767
+ }
758
768
  }
759
769
  };
760
770
  var resetItemList = function resetItemList(e) {
761
- setItemList([]);
771
+ if (isValidEvent(e)) {
772
+ setItemList([]);
773
+ }
762
774
  };
763
775
  var initItemListMobileView = function initItemListMobileView(itemList) {
764
776
  var list = [].concat(itemList);
@@ -21135,6 +21147,8 @@ var CFG_ATTRIBUTE;
21135
21147
  CFG_ATTRIBUTE["RIGHT_WIDTH"] = "RightWidth";
21136
21148
  CFG_ATTRIBUTE["SCROLL_TOP"] = "ScrollTop";
21137
21149
  CFG_ATTRIBUTE["PAGING"] = "Paging";
21150
+ CFG_ATTRIBUTE["Z_INDEX"] = "ZIndex";
21151
+ CFG_ATTRIBUTE["STRICT_DATES"] = "StrictDates";
21138
21152
  })(CFG_ATTRIBUTE || (CFG_ATTRIBUTE = {}));
21139
21153
  var URL;
21140
21154
  (function (URL) {
@@ -63477,6 +63491,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
63477
63491
  var _useState7 = React.useState(props.isDisabled || props.isReadOnly ? styles$N['vitro-read-only'] : CTRL.EMPTY),
63478
63492
  state = _useState7[0],
63479
63493
  setState = _useState7[1];
63494
+ var _useState8 = React.useState(false),
63495
+ isSearchInProgress = _useState8[0],
63496
+ setIsSearchInProgress = _useState8[1];
63480
63497
  var localeService = props.container ? props.container.get(SERVICE.LOCALE) : inversifyReact.useInjection(SERVICE.LOCALE);
63481
63498
  var isEditable = !props.isDisabled && !props.isReadOnly;
63482
63499
  var isInputReadOnly = !(props.getValueList || props.getAllValueList || props.valueList);
@@ -63751,7 +63768,8 @@ var LookupPicker = React.forwardRef(function (props, ref) {
63751
63768
  return null;
63752
63769
  };
63753
63770
  var onSearch = function onSearch() {
63754
- if (props.onSearch) {
63771
+ if (!isSearchInProgress && props.onSearch) {
63772
+ setIsSearchInProgress(true);
63755
63773
  props.onSearch().then(function (valueList) {
63756
63774
  if (valueList) {
63757
63775
  var newValueList = props.isMultiSelect ? [].concat(selectedValueList, valueList) : [valueList[0]];
@@ -63768,6 +63786,8 @@ var LookupPicker = React.forwardRef(function (props, ref) {
63768
63786
  setState(CTRL.EMPTY);
63769
63787
  }
63770
63788
  }
63789
+ })["finally"](function () {
63790
+ return setIsSearchInProgress(false);
63771
63791
  });
63772
63792
  }
63773
63793
  };
@@ -66942,7 +66962,7 @@ var Viewer = function Viewer(props) {
66942
66962
  };
66943
66963
 
66944
66964
  var name = "@vitrosoftware/common-ui-ts";
66945
- var version$1 = "1.1.239";
66965
+ var version$1 = "1.1.241";
66946
66966
  var description = "vitro software common ui ts";
66947
66967
  var author = "";
66948
66968
  var license = "MIT";