@vitrosoftware/common-ui-ts 1.1.63 → 1.1.65

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.
@@ -79,5 +79,10 @@
79
79
  }
80
80
 
81
81
  .vitro-avatar {
82
+ width: 32px;
83
+ min-width: 32px;
84
+ height: 32px;
85
+ line-height: 32px;
86
+ font-size: 16px;
82
87
  margin-right: 8px;
83
88
  }
@@ -152,6 +152,7 @@
152
152
  :global(.vitro-button-context) {
153
153
  padding: 0 !important;
154
154
  width: 24px;
155
+ background-color: #fff !important;
155
156
  }
156
157
 
157
158
  :global(.vitro-button-context > div),
@@ -84,6 +84,12 @@ input#pageNumber {
84
84
  margin: 0;
85
85
  margin-top: 1px;
86
86
  border: 1px solid #C0CAD5;
87
+ font-size: 14px;
88
+ min-width: 40px;
89
+ width: fit-content;
90
+ line-height: 20px;
91
+ text-overflow: ellipsis;
92
+ overflow: hidden;
87
93
  }
88
94
 
89
95
  .horizontalToolbarSeparator {
@@ -47,9 +47,6 @@
47
47
  background-color: #fff;
48
48
  }
49
49
 
50
- .vitro-active .vitro-search-value-list {
51
- width: 262px;
52
- }
53
50
 
54
51
  .vitro-search-value-list {
55
52
  display: flex;
@@ -101,6 +98,10 @@
101
98
  margin-right: 4px;
102
99
  white-space: nowrap;
103
100
  overflow: hidden;
101
+ }
102
+
103
+ .vitro-search-value span {
104
+ overflow: hidden;
104
105
  text-overflow: ellipsis;
105
106
  }
106
107
 
@@ -3,6 +3,11 @@
3
3
  align-self: baseline;
4
4
  margin-right: 16px;
5
5
  margin-left: auto;
6
+ max-width: 376px;
7
+ }
8
+
9
+ .vitro-search.vitro-active {
10
+ width: 376px;
6
11
  }
7
12
 
8
13
  .vitro-settings-dialog {
@@ -1,15 +1,20 @@
1
1
  /// <reference types="react" />
2
2
  import { SearchCriterion } from '../Search/SearchCriterion';
3
3
  interface InputProps {
4
- valueList?: SearchCriterion[];
4
+ valueList: SearchCriterion[];
5
5
  textValue?: string;
6
6
  placeholder?: string;
7
- onSettingsClick?: (active: boolean) => any;
7
+ onSettingsClick?: () => any;
8
8
  onCancel: () => any;
9
- onSubmit: (value?: string) => any;
9
+ onSubmit: (value?: string, searchCriterionList?: SearchCriterion[]) => any;
10
10
  onChange?: (value: any) => any;
11
+ onBlur?: () => any;
12
+ onFocus?: () => any;
13
+ onRemoveValue?: (newItemList: SearchCriterion[]) => any;
11
14
  isShowSettings?: boolean;
12
15
  isSettingsActive?: boolean;
16
+ isActive: boolean;
17
+ isMobileView: boolean;
13
18
  className?: string;
14
19
  }
15
20
  export declare const Input: (props: InputProps) => JSX.Element;
package/dist/index.css CHANGED
@@ -3602,6 +3602,7 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
3602
3602
  .vitro-button-context {
3603
3603
  padding: 0 !important;
3604
3604
  width: 24px;
3605
+ background-color: #fff !important;
3605
3606
  }
3606
3607
 
3607
3608
  .vitro-button-context > div,
@@ -4460,6 +4461,11 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
4460
4461
  }
4461
4462
 
4462
4463
  ._activity-item_vitro-avatar_218ZqAk {
4464
+ width: 32px;
4465
+ min-width: 32px;
4466
+ height: 32px;
4467
+ line-height: 32px;
4468
+ font-size: 16px;
4463
4469
  margin-right: 8px;
4464
4470
  }
4465
4471
 
@@ -5037,9 +5043,6 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
5037
5043
  background-color: #fff;
5038
5044
  }
5039
5045
 
5040
- ._input_vitro-active_jxhGdE8 ._input_vitro-search-value-list_2I_KVY5 {
5041
- width: 262px;
5042
- }
5043
5046
 
5044
5047
  ._input_vitro-search-value-list_2I_KVY5 {
5045
5048
  display: flex;
@@ -5091,6 +5094,10 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
5091
5094
  margin-right: 4px;
5092
5095
  white-space: nowrap;
5093
5096
  overflow: hidden;
5097
+ }
5098
+
5099
+ ._input_vitro-search-value_1ZbcNTJ span {
5100
+ overflow: hidden;
5094
5101
  text-overflow: ellipsis;
5095
5102
  }
5096
5103
 
@@ -5141,6 +5148,11 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
5141
5148
  align-self: baseline;
5142
5149
  margin-right: 16px;
5143
5150
  margin-left: auto;
5151
+ max-width: 376px;
5152
+ }
5153
+
5154
+ ._search_vitro-search_QkJksC_._search_vitro-active_1HhQOCR {
5155
+ width: 376px;
5144
5156
  }
5145
5157
 
5146
5158
  ._search_vitro-settings-dialog_1_c5bIg {
package/dist/index.js CHANGED
@@ -64882,51 +64882,14 @@ var styles$N = {"vitro-control":"_input_vitro-control__btu7j_","vitro-active":"_
64882
64882
 
64883
64883
  var NEW_LINE$1 = '\n';
64884
64884
  var Input$1 = function Input(props) {
64885
- var _useState = React.useState(false),
64886
- isMobileView = _useState[0],
64887
- setIsMobileView = _useState[1];
64888
- var _useState2 = React.useState(Boolean(props.isSettingsActive)),
64889
- isToggled = _useState2[0],
64890
- setIsToggled = _useState2[1];
64891
- var _useState3 = React.useState(false),
64892
- isActive = _useState3[0],
64893
- setIsActive = _useState3[1];
64894
- var _useState4 = React.useState(CTRL.EMPTY),
64895
- state = _useState4[0],
64896
- setState = _useState4[1];
64885
+ var _useState = React.useState(CTRL.EMPTY),
64886
+ state = _useState[0],
64887
+ setState = _useState[1];
64897
64888
  var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
64898
64889
  var inputRef = React.useRef(null);
64899
- React.useEffect(function () {
64900
- window.addEventListener(exports.EVENT.RESIZE, handleResize);
64901
- handleResize();
64902
- return function () {
64903
- window.removeEventListener(exports.EVENT.RESIZE, handleResize);
64904
- };
64905
- }, []);
64906
- React.useEffect(function () {
64907
- handleResize();
64908
- }, [window.innerWidth]);
64909
- React.useEffect(function () {
64910
- if (isMobileView && props.valueList && props.valueList.length) {
64911
- setIsToggled(true);
64912
- }
64913
- }, [isMobileView, props.valueList]);
64914
- React.useEffect(function () {
64915
- var _props$valueList;
64916
- if (state || props.textValue || (_props$valueList = props.valueList) !== null && _props$valueList !== void 0 && _props$valueList.length) {
64917
- setIsActive(true);
64918
- }
64919
- }, [state, props.textValue, props.valueList]);
64920
- React.useEffect(function () {
64921
- setIsToggled(Boolean(props.isSettingsActive));
64922
- }, [props.isSettingsActive]);
64923
- var handleResize = function handleResize() {
64924
- window.innerWidth < 800 ? setIsMobileView(true) : setIsMobileView(false);
64925
- };
64926
64890
  var onSettingsClick = function onSettingsClick() {
64927
- setIsToggled(!isToggled);
64928
64891
  if (props.onSettingsClick) {
64929
- props.onSettingsClick(!isToggled);
64892
+ props.onSettingsClick();
64930
64893
  }
64931
64894
  };
64932
64895
  var onKeyDown = function onKeyDown(e) {
@@ -64943,7 +64906,6 @@ var Input$1 = function Input(props) {
64943
64906
  }
64944
64907
  };
64945
64908
  var onCancel = function onCancel() {
64946
- setIsActive(false);
64947
64909
  if (inputRef.current) {
64948
64910
  inputRef.current.value = CTRL.EMPTY;
64949
64911
  }
@@ -64955,12 +64917,21 @@ var Input$1 = function Input(props) {
64955
64917
  }
64956
64918
  };
64957
64919
  var onBlur = function onBlur() {
64920
+ if (props.onBlur) {
64921
+ props.onBlur();
64922
+ }
64958
64923
  setState(CTRL.EMPTY);
64959
64924
  onSubmit();
64960
64925
  };
64926
+ var onFocus = function onFocus() {
64927
+ setState(styles$N['vitro-focus']);
64928
+ if (props.onFocus) {
64929
+ props.onFocus();
64930
+ }
64931
+ };
64961
64932
  var getClassName = function getClassName() {
64962
64933
  var classList = [styles$N['vitro-control'], props.className || CTRL.EMPTY, state];
64963
- if (isActive) {
64934
+ if (props.isActive) {
64964
64935
  classList.push(styles$N['vitro-active']);
64965
64936
  }
64966
64937
  return classList.join(CTRL.SPACE);
@@ -64979,34 +64950,53 @@ var Input$1 = function Input(props) {
64979
64950
  var text = [value.name, valueArray.join(CTRL.COMMA + CTRL.SPACE)].join(CTRL.COLON + CTRL.SPACE);
64980
64951
  return text;
64981
64952
  };
64953
+ var onRemoveValue = function onRemoveValue(valueList) {
64954
+ if (props.onRemoveValue) {
64955
+ var newList = props.valueList;
64956
+ var _loop = function _loop() {
64957
+ var value = _step.value;
64958
+ newList = newList.filter(function (x) {
64959
+ return x.internalName !== value.internalName;
64960
+ });
64961
+ };
64962
+ for (var _iterator = _createForOfIteratorHelperLoose(valueList), _step; !(_step = _iterator()).done;) {
64963
+ _loop();
64964
+ }
64965
+ props.onRemoveValue(newList);
64966
+ }
64967
+ };
64982
64968
  var getTextValueList = function getTextValueList(valueList) {
64983
64969
  var list = valueList.map(function (x) {
64984
64970
  return getTextValue(x);
64985
64971
  });
64986
- list.shift();
64987
64972
  return list.join(NEW_LINE$1);
64988
64973
  };
64989
64974
  var getSelectedValueList = function getSelectedValueList(valueList) {
64990
64975
  var firstValue = valueList[0];
64976
+ var list = valueList.slice(1);
64991
64977
  return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
64992
64978
  className: styles$N['vitro-search-value']
64993
- }, getTextValue(firstValue), React__default.createElement("button", {
64994
- onClick: onCancel,
64979
+ }, React__default.createElement("span", null, getTextValue(firstValue)), React__default.createElement("button", {
64980
+ onClick: function onClick() {
64981
+ return onRemoveValue([firstValue]);
64982
+ },
64995
64983
  className: styles$N['vitro-button-cancel']
64996
- })), valueList.length && valueList.length > 1 ? React__default.createElement(Tooltip$1, {
64997
- text: getTextValueList(valueList),
64984
+ })), list.length >= 1 ? React__default.createElement(Tooltip$1, {
64985
+ text: getTextValueList(list),
64998
64986
  placement: PLACEMENT$1.BOTTOM
64999
64987
  }, React__default.createElement("div", {
65000
64988
  className: styles$N['vitro-search-value']
65001
64989
  }, localeService.create(LOCALE$8.INPUT_MORE, {
65002
- count: valueList.length - 1
64990
+ count: list.length
65003
64991
  }), React__default.createElement("button", {
65004
- onClick: onCancel,
64992
+ onClick: function onClick() {
64993
+ return onRemoveValue(list);
64994
+ },
65005
64995
  className: styles$N['vitro-button-cancel']
65006
64996
  }))) : null);
65007
64997
  };
65008
64998
  var onSearchClick = function onSearchClick() {
65009
- if (isMobileView) {
64999
+ if (props.isMobileView) {
65010
65000
  onSettingsClick();
65011
65001
  } else {
65012
65002
  onSubmit();
@@ -65015,23 +65005,21 @@ var Input$1 = function Input(props) {
65015
65005
  return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
65016
65006
  className: getClassName()
65017
65007
  }, React__default.createElement("button", {
65018
- className: styles$N['vitro-button-search'] + (isToggled ? CTRL.SPACE + styles$N['vitro-active'] : CTRL.EMPTY),
65008
+ className: styles$N['vitro-button-search'] + (props.isSettingsActive ? CTRL.SPACE + styles$N['vitro-active'] : CTRL.EMPTY),
65019
65009
  onClick: onSearchClick
65020
- }), !isMobileView && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
65010
+ }), !props.isMobileView && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
65021
65011
  className: styles$N['vitro-search-value-list']
65022
- }, props.valueList && props.valueList.length ? getSelectedValueList(props.valueList) : React__default.createElement("input", {
65012
+ }, props.valueList.length ? getSelectedValueList(props.valueList) : React__default.createElement("input", {
65023
65013
  type: 'text',
65024
65014
  ref: inputRef,
65025
65015
  onKeyDown: onKeyDown,
65026
65016
  onChange: onChange,
65027
- onFocus: function onFocus() {
65028
- return setState(styles$N['vitro-focus']);
65029
- },
65017
+ onFocus: onFocus,
65030
65018
  onBlur: onBlur,
65031
- placeholder: !isActive ? props.placeholder : CTRL.EMPTY
65032
- })), isActive && React__default.createElement(React__default.Fragment, null, props.isShowSettings && React__default.createElement("button", {
65019
+ placeholder: !props.isActive ? props.placeholder : CTRL.EMPTY
65020
+ })), props.isActive && React__default.createElement(React__default.Fragment, null, props.isShowSettings && React__default.createElement("button", {
65033
65021
  onClick: onSettingsClick,
65034
- className: styles$N['vitro-button-settings'] + (isToggled ? CTRL.SPACE + styles$N['vitro-active'] : CTRL.EMPTY)
65022
+ className: styles$N['vitro-button-settings'] + (props.isSettingsActive ? CTRL.SPACE + styles$N['vitro-active'] : CTRL.EMPTY)
65035
65023
  }), React__default.createElement("button", {
65036
65024
  onClick: onCancel,
65037
65025
  className: styles$N['vitro-button-cancel']
@@ -65221,7 +65209,7 @@ var FieldIterator = React.forwardRef(function (props, ref) {
65221
65209
  })));
65222
65210
  });
65223
65211
 
65224
- var styles$O = {"vitro-search":"_search_vitro-search_QkJksC_","vitro-settings-dialog":"_search_vitro-settings-dialog_1_c5bIg","vitro-filter":"_search_vitro-filter_2n-Y-mS","vitro-add-field":"_search_vitro-add-field_2hHt1Z2","vitro-add-field-button":"_search_vitro-add-field-button_30hdXYn","vitro-add-field-dialog":"_search_vitro-add-field-dialog_3gC92SF","vitro-footer":"_search_vitro-footer_1-ya4xk","vitro-button-cancel":"_search_vitro-button-cancel_1M8UkMM"};
65212
+ var styles$O = {"vitro-search":"_search_vitro-search_QkJksC_","vitro-active":"_search_vitro-active_1HhQOCR","vitro-settings-dialog":"_search_vitro-settings-dialog_1_c5bIg","vitro-filter":"_search_vitro-filter_2n-Y-mS","vitro-add-field":"_search_vitro-add-field_2hHt1Z2","vitro-add-field-button":"_search_vitro-add-field-button_30hdXYn","vitro-add-field-dialog":"_search_vitro-add-field-dialog_3gC92SF","vitro-footer":"_search_vitro-footer_1-ya4xk","vitro-button-cancel":"_search_vitro-button-cancel_1M8UkMM"};
65225
65213
 
65226
65214
  var Filter = function Filter(props) {
65227
65215
  var _useState = React.useState(null),
@@ -65348,10 +65336,13 @@ var CheckboxList = function CheckboxList(props) {
65348
65336
  return React__default.createElement("div", {
65349
65337
  className: styles$P['vitro-checkbox-list']
65350
65338
  }, React__default.createElement(Input$1, {
65339
+ valueList: [],
65351
65340
  onCancel: onSearchCancel,
65352
65341
  onChange: onInputChange,
65353
65342
  onSubmit: onInputChange,
65354
- className: styles$P['vitro-control']
65343
+ isActive: false,
65344
+ className: styles$P['vitro-control'],
65345
+ isMobileView: false
65355
65346
  }), React__default.createElement(ScrollBar, null, isShowSearchResult ? searchItemList.length ? searchItemList.map(function (item) {
65356
65347
  return getCheckbox(item);
65357
65348
  }) : React__default.createElement("span", null, localeService.create(LOCALE$8.EMPTY_PLACEHOLDER)) : itemList.map(function (item) {
@@ -65363,31 +65354,40 @@ var ESC_KEY_CODE$1 = 27;
65363
65354
  var CONDITION_CONTAINS = 11;
65364
65355
  var Search = function Search(props) {
65365
65356
  var _useState = React.useState(false),
65366
- isShowDialog = _useState[0],
65367
- setIsShowDialog = _useState[1];
65357
+ isMobileView = _useState[0],
65358
+ setIsMobileView = _useState[1];
65368
65359
  var _useState2 = React.useState(false),
65369
- isShowAddFieldDialog = _useState2[0],
65370
- setIsShowAddFieldDialog = _useState2[1];
65371
- var _useState3 = React.useState([]),
65372
- filterFieldList = _useState3[0],
65373
- setFilterFieldList = _useState3[1];
65360
+ isShowDialog = _useState2[0],
65361
+ setIsShowDialog = _useState2[1];
65362
+ var _useState3 = React.useState(false),
65363
+ isShowAddFieldDialog = _useState3[0],
65364
+ setIsShowAddFieldDialog = _useState3[1];
65374
65365
  var _useState4 = React.useState([]),
65375
- searchCriterionList = _useState4[0],
65376
- setSearchCriterionList = _useState4[1];
65366
+ filterFieldList = _useState4[0],
65367
+ setFilterFieldList = _useState4[1];
65377
65368
  var _useState5 = React.useState([]),
65378
- selectedSearchCriterionList = _useState5[0],
65379
- setSelectedSearchCriterionList = _useState5[1];
65369
+ searchCriterionList = _useState5[0],
65370
+ setSearchCriterionList = _useState5[1];
65380
65371
  var _useState6 = React.useState([]),
65381
- checkboxFieldList = _useState6[0],
65382
- setCheckboxFieldList = _useState6[1];
65372
+ selectedSearchCriterionList = _useState6[0],
65373
+ setSelectedSearchCriterionList = _useState6[1];
65374
+ var _useState7 = React.useState([]),
65375
+ checkboxFieldList = _useState7[0],
65376
+ setCheckboxFieldList = _useState7[1];
65377
+ var _useState8 = React.useState(CTRL.EMPTY),
65378
+ state = _useState8[0],
65379
+ setState = _useState8[1];
65383
65380
  var addFieldDialogRef = React.useRef(null);
65384
65381
  var searchRef = React.useRef(null);
65385
65382
  React.useEffect(function () {
65386
65383
  window.addEventListener(exports.EVENT.MOUSEDOWN, onBlurAddFieldDialog);
65387
65384
  window.addEventListener(exports.EVENT.KEYDOWN, onEscClick, false);
65385
+ window.addEventListener(exports.EVENT.RESIZE, handleResize);
65386
+ handleResize();
65388
65387
  return function () {
65389
65388
  window.removeEventListener(exports.EVENT.MOUSEDOWN, onBlurAddFieldDialog);
65390
65389
  window.removeEventListener(exports.EVENT.KEYDOWN, onEscClick, false);
65390
+ window.removeEventListener(exports.EVENT.RESIZE, handleResize);
65391
65391
  };
65392
65392
  });
65393
65393
  React.useEffect(function () {
@@ -65409,34 +65409,50 @@ var Search = function Search(props) {
65409
65409
  }
65410
65410
  setCheckboxFieldList(checkboxList);
65411
65411
  }, [props.visibleFieldList]);
65412
- var onSettingsClick = function onSettingsClick(active) {
65413
- setIsShowDialog(active);
65412
+ React.useEffect(function () {
65413
+ if (filterFieldList.length >= props.maxFieldCount) {
65414
+ setIsShowAddFieldDialog(false);
65415
+ }
65416
+ }, [filterFieldList]);
65417
+ React.useEffect(function () {
65418
+ handleResize();
65419
+ }, [window.innerWidth]);
65420
+ React.useEffect(function () {
65421
+ if (selectedSearchCriterionList.length) {
65422
+ setState(styles$O['vitro-active']);
65423
+ }
65424
+ }, [selectedSearchCriterionList]);
65425
+ var handleResize = function handleResize() {
65426
+ window.innerWidth < 800 ? setIsMobileView(true) : setIsMobileView(false);
65427
+ };
65428
+ var onSettingsClick = function onSettingsClick() {
65429
+ setIsShowDialog(!isShowDialog);
65414
65430
  };
65415
65431
  var onAddField = function onAddField() {
65416
65432
  setIsShowAddFieldDialog(!isShowAddFieldDialog);
65417
65433
  };
65418
65434
  var onFieldListChange = function onFieldListChange(selectedFieldIdList) {
65435
+ var fieldList = [];
65419
65436
  var _loop = function _loop() {
65420
65437
  var id = _step.value;
65421
- var field = filterFieldList.find(function (x) {
65438
+ var field = props.fieldList.find(function (x) {
65422
65439
  return x.id === id;
65423
65440
  });
65424
- if (!field) {
65425
- var newField = props.fieldList.find(function (x) {
65426
- return x.id === id;
65427
- });
65428
- setFilterFieldList(function (prevState) {
65429
- return [].concat(prevState, [newField]);
65430
- });
65441
+ if (field) {
65442
+ fieldList.push(field);
65431
65443
  }
65432
65444
  };
65433
65445
  for (var _iterator = _createForOfIteratorHelperLoose(selectedFieldIdList), _step; !(_step = _iterator()).done;) {
65434
65446
  _loop();
65435
65447
  }
65448
+ setFilterFieldList(fieldList);
65436
65449
  };
65437
65450
  var closeSettings = function closeSettings() {
65438
65451
  setIsShowAddFieldDialog(false);
65439
65452
  setIsShowDialog(false);
65453
+ if (!selectedSearchCriterionList.length) {
65454
+ setState(CTRL.EMPTY);
65455
+ }
65440
65456
  };
65441
65457
  var onDeleteField = function onDeleteField(id) {
65442
65458
  setFilterFieldList(function (prevState) {
@@ -65466,9 +65482,10 @@ var Search = function Search(props) {
65466
65482
  props.onFilterChange(criterionList);
65467
65483
  }
65468
65484
  };
65469
- var onSubmit = function onSubmit() {
65470
- props.onSubmit(searchCriterionList);
65471
- var selectedList = searchCriterionList.map(function (x) {
65485
+ var onSubmit = function onSubmit(value, criterionList) {
65486
+ var list = criterionList ? criterionList : searchCriterionList;
65487
+ props.onSubmit(list);
65488
+ var selectedList = list.map(function (x) {
65472
65489
  var fieldName = props.fieldList.find(function (field) {
65473
65490
  return field.internalName === x.internalName;
65474
65491
  }).name;
@@ -65483,6 +65500,7 @@ var Search = function Search(props) {
65483
65500
  setSearchCriterionList([]);
65484
65501
  setSelectedSearchCriterionList([]);
65485
65502
  closeSettings();
65503
+ setState(CTRL.EMPTY);
65486
65504
  props.onCancel();
65487
65505
  };
65488
65506
  var onInputChange = function onInputChange(value) {
@@ -65504,17 +65522,28 @@ var Search = function Search(props) {
65504
65522
  setIsShowAddFieldDialog(false);
65505
65523
  }
65506
65524
  };
65525
+ var onFocusInput = function onFocusInput() {
65526
+ setState(styles$O['vitro-active']);
65527
+ };
65528
+ var onRemoveValue = function onRemoveValue(valueList) {
65529
+ setSearchCriterionList(valueList);
65530
+ onSubmit(CTRL.EMPTY, valueList);
65531
+ };
65507
65532
  return React__default.createElement("div", {
65508
65533
  ref: searchRef,
65509
- className: styles$O['vitro-search']
65534
+ className: styles$O['vitro-search'] + CTRL.SPACE + state
65510
65535
  }, React__default.createElement(Input$1, {
65511
65536
  valueList: selectedSearchCriterionList,
65512
65537
  onSettingsClick: onSettingsClick,
65513
65538
  onCancel: onCancel,
65514
65539
  onSubmit: onSubmit,
65540
+ onRemoveValue: onRemoveValue,
65515
65541
  onChange: onInputChange,
65516
65542
  placeholder: props.inputPlaceholder,
65517
65543
  isSettingsActive: isShowDialog,
65544
+ onFocus: onFocusInput,
65545
+ isActive: state || isShowDialog ? true : false,
65546
+ isMobileView: isMobileView,
65518
65547
  isShowSettings: true
65519
65548
  }), isShowDialog && React__default.createElement("div", {
65520
65549
  className: styles$O['vitro-settings-dialog']