pollination-react-io 1.22.0 → 1.22.1

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.
@@ -11,5 +11,5 @@ export declare type CreateStudyProps = {
11
11
  hidden?: boolean;
12
12
  };
13
13
  };
14
- createStudySuccess: (accountName: string, projectName: string, studyId: string) => void;
14
+ createStudySuccess?: (accountName: string, projectName: string, studyId: string) => void;
15
15
  };
@@ -8684,7 +8684,6 @@ var ComboBox = React__default.forwardRef(function ComboBox(_a, ref) {
8684
8684
  }); });
8685
8685
  useEffect(function () {
8686
8686
  var _a;
8687
- console.log(selectedItem);
8688
8687
  if (!selectedItem) {
8689
8688
  setInputValue('');
8690
8689
  }
@@ -41790,6 +41789,9 @@ var SelectProject = function (_a) {
41790
41789
  if (lodash_isequal(valueRef.current, selProject)) {
41791
41790
  return;
41792
41791
  }
41792
+ if (selProject && selProject.name) {
41793
+ comboBoxRef.current.setInputValue(selProject.name);
41794
+ }
41793
41795
  comboBoxRef.current.selectItem(selProject);
41794
41796
  valueRef.current = selProject;
41795
41797
  // don't call onChange for undefined values
@@ -41797,7 +41799,6 @@ var SelectProject = function (_a) {
41797
41799
  }, [selProject, onChange]);
41798
41800
  useEffect(function () {
41799
41801
  setSelProject(value);
41800
- console.log(value);
41801
41802
  }, [value]);
41802
41803
  var onScrollReachEnd = useCallback(function () {
41803
41804
  // already loaded all runs
@@ -41976,6 +41977,9 @@ var SelectRecipe = function (_a) {
41976
41977
  if (lodash_isequal(valueRef.current, selRecipe)) {
41977
41978
  return;
41978
41979
  }
41980
+ if (selRecipe && selRecipe.metadata && selRecipe.metadata.name) {
41981
+ comboBoxRef.current.setInputValue(selRecipe.metadata.name);
41982
+ }
41979
41983
  comboBoxRef.current.selectItem(selRecipe);
41980
41984
  valueRef.current = selRecipe;
41981
41985
  onChange && selRecipe && onChange(selRecipe);
@@ -45992,7 +45996,6 @@ var SelectRun = function (_a) {
45992
45996
  };
45993
45997
  // deselect items
45994
45998
  if (comboBoxRef.current) {
45995
- console.log('clear selection');
45996
45999
  comboBoxRef.current.selectItem(null);
45997
46000
  }
45998
46001
  setRuns([]);
@@ -46034,6 +46037,17 @@ var SelectRun = function (_a) {
46034
46037
  if (lodash_isequal(valueRef.current, selRun)) {
46035
46038
  return;
46036
46039
  }
46040
+ if (selRun && selRun.id) {
46041
+ if (selRun.recipe &&
46042
+ selRun.recipe.metadata &&
46043
+ selRun.recipe.metadata.name &&
46044
+ selRun.status) {
46045
+ comboBoxRef.current.setInputValue("".concat(selRun.recipe.metadata.name, ":").concat(selRun.status));
46046
+ }
46047
+ else {
46048
+ comboBoxRef.current.setInputValue(selRun.id);
46049
+ }
46050
+ }
46037
46051
  comboBoxRef.current.selectItem(selRun);
46038
46052
  valueRef.current = selRun;
46039
46053
  // don't call onChange for undefined values
@@ -46158,6 +46172,14 @@ var SelectStudy = function (_a) {
46158
46172
  if (lodash_isequal(valueRef.current, selStudy)) {
46159
46173
  return;
46160
46174
  }
46175
+ if (selStudy && selStudy.id) {
46176
+ if (selStudy.spec.name) {
46177
+ comboBoxRef.current.setInputValue(selStudy.spec.name);
46178
+ }
46179
+ else {
46180
+ comboBoxRef.current.setInputValue(selStudy.id);
46181
+ }
46182
+ }
46161
46183
  comboBoxRef.current.selectItem(selStudy);
46162
46184
  valueRef.current = selStudy;
46163
46185
  // don't call onChange for undefined values