@corva/ui 3.49.0-4 → 3.49.0-5

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.
Files changed (32) hide show
  1. package/cjs-bundle/components/Search/Search.js +1 -1
  2. package/cjs-bundle/components/Select/index.js +1 -1
  3. package/cjs-bundle/utils/goalsConfig/utils.js +1 -1
  4. package/components/Autocomplete/Autocomplete.d.ts +2 -2
  5. package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  6. package/components/GradientManager/GradientSelect.d.ts +1 -1
  7. package/components/GradientManager/GradientSelect.d.ts.map +1 -1
  8. package/components/GradientManager/__tests__/pageHelpers.d.ts +1 -1
  9. package/components/GradientManager/__tests__/pageHelpers.d.ts.map +1 -1
  10. package/components/GradientPicker/__tests__/pageHelpers.d.ts +1 -1
  11. package/components/GradientPicker/__tests__/pageHelpers.d.ts.map +1 -1
  12. package/components/OffsetWellPickerV2/constants.d.ts +28 -0
  13. package/components/OffsetWellPickerV2/constants.d.ts.map +1 -1
  14. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts +28 -0
  15. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts.map +1 -1
  16. package/components/OffsetWellPickerV4/effects/useSortedWells.d.ts +1 -1
  17. package/components/OffsetWellPickerV4/effects/useSortedWells.d.ts.map +1 -1
  18. package/components/OffsetWellPickerV5/effects/useSortedWells.d.ts +1 -1
  19. package/components/OffsetWellPickerV5/effects/useSortedWells.d.ts.map +1 -1
  20. package/components/Search/Search.d.ts.map +1 -1
  21. package/components/Search/Search.js +1 -1
  22. package/components/Select/index.d.ts +1 -1
  23. package/components/Select/index.d.ts.map +1 -1
  24. package/components/Select/index.js +1 -1
  25. package/mcp-server/server.mjs +8 -8
  26. package/package.json +1 -1
  27. package/storyBookHelpers/utils.d.ts +1 -1
  28. package/storyBookHelpers/utils.d.ts.map +1 -1
  29. package/tsconfig.tsbuildinfo +1 -1
  30. package/utils/goalsConfig/goalsConfig.d.ts +2 -2
  31. package/utils/goalsConfig/goalsConfig.d.ts.map +1 -1
  32. package/utils/goalsConfig/utils.js +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),o=require("@babel/runtime/helpers/slicedToArray"),n=require("@babel/runtime/helpers/objectWithoutProperties"),s=require("react/jsx-runtime"),t=require("react"),i=require("classnames"),r=require("lodash"),c=require("@material-ui/lab"),u=require("@material-ui/core"),l=require("@material-ui/icons"),a=require("./components/Listbox.js"),p=require("./components/Paper.js");require("./components/RecentSearches.js");var d=require("./components/Groups.js"),m=require("./components/SelectAllListItem.js"),h=require("./context/index.js"),f=require("./effects/useAutocompleteOptions.js"),j=require("./styles.js"),v=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js"),require("../../icons/customIcons/icons/Global.js"),require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js");var I=require("../MiddleTruncatedText/MiddleTruncatedText.js"),b=require("../IconButton/index.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var C=g(e),x=g(o),O=g(n),q=g(i),P=["AutocompleteProps","value","disableClearable","onChange","onInputChange","loading","options","optionSize","placeholder","onGroupChange","disabled","disableResetOnGroupChange","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage","onInputReset","getOptionLabel","TextFieldProps","ListboxProps","onInputChangeCallback","renderCustomOption","isHiddenAllOption","isHiddenAllLabel","onOpen","selectedGroup","onGroupReset","onClose","popperProps","paperFooter","noOptionsText","ListboxComponent","isPrioritizedSelectedOptions","isOpenedFromParent","onFocus","InputProps","classes","popupIcon","shouldResetInputOnAutocompleteChange"],S=["popper","listbox","popupIndicator","popupIndicatorOpen","groupChip"],A=["InputProps","inputProps"],y=["input"],F=["classes","style"],R=["children","className"],k=["style"];function T(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);o&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,s)}return n}function G(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?T(Object(n),!0).forEach((function(o){C.default(e,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}))}return e}var L={},N=function(e){var o=e.AutocompleteProps,n=void 0===o?{}:o,i=e.value,d=e.disableClearable,g=void 0!==d&&d,T=e.onChange,N=e.onInputChange,M=void 0===N?null:N,D=e.loading,E=void 0!==D&&D,w=e.options,z=void 0===w?[]:w,B=e.optionSize,_=e.placeholder,H=void 0===_?"Search...":_,U=e.onGroupChange,W=void 0===U?function(){}:U,K=e.disabled,V=void 0!==K&&K,Z=e.disableResetOnGroupChange,J=e.multiple,Q=void 0!==J&&J,X=e.groups,Y=void 0===X?[]:X,$=e.GroupsComponent,ee=void 0===$?null:$,oe=e.recentSearchesMaxCount,ne=void 0===oe?3:oe,se=e.dataStorageKey,te=void 0===se?"Search:recentSearches":se,ie=e.RecentSearchesComponent,re=void 0===ie?null:ie,ce=e.dataStorage,ue=void 0===ce?sessionStorage:ce,le=e.onInputReset,ae=void 0===le?null:le,pe=e.getOptionLabel,de=void 0===pe?function(e){return e.label||""}:pe,me=e.TextFieldProps,he=void 0===me?{endAdornment:null}:me,fe=e.ListboxProps,je=void 0===fe?null:fe,ve=e.onInputChangeCallback,Ie=void 0===ve?function(){}:ve,be=e.renderCustomOption,ge=void 0===be?null:be,Ce=e.isHiddenAllOption,xe=void 0!==Ce&&Ce,Oe=e.isHiddenAllLabel,qe=void 0!==Oe&&Oe,Pe=e.onOpen,Se=void 0===Pe?r.noop:Pe,Ae=e.selectedGroup,ye=void 0===Ae?null:Ae,Fe=e.onGroupReset,Re=void 0===Fe?function(){}:Fe,ke=e.onClose,Te=void 0===ke?function(){}:ke,Ge=e.popperProps,Le=void 0===Ge?L:Ge,Ne=e.paperFooter,Me=e.noOptionsText,De=void 0===Me?"No Options":Me,Ee=e.ListboxComponent,we=void 0===Ee?a:Ee,ze=e.isPrioritizedSelectedOptions,Be=void 0!==ze&&ze,_e=e.isOpenedFromParent,He=void 0===_e?void 0:_e,Ue=e.onFocus,We=void 0===Ue?null:Ue,Ke=e.InputProps,Ve=void 0===Ke?null:Ke,Ze=e.classes,Je=void 0===Ze?{}:Ze,Qe=e.popupIcon;void 0===Qe&&s.jsx(v.DownOneIcon,{theme:"filled",fill:"#BDBDBD",size:16});var Xe=e.shouldResetInputOnAutocompleteChange,Ye=O.default(e,P),$e=t.useState(""),eo=x.default($e,2),oo=eo[0],no=eo[1],so=t.useState(""),to=x.default(so,2),io=to[0],ro=to[1],co=t.useState(!1),uo=x.default(co,2),lo=uo[0],ao=uo[1],po=t.useState(!1),mo=x.default(po,2),ho=mo[0],fo=mo[1],jo=t.useRef(),vo=t.useRef(),Io=f.useAutocompletOptions({options:z,value:i,groups:Y,selectedGroup:ye,isPrioritizedSelectedOptions:Be}),bo=Io.autocompleteOptions,go=Io.isGrouped,Co=Io.handleAutocompleOptionsUpdate,xo=j(),Oo=Je.popper,qo=Je.listbox,Po=Je.popupIndicator,So=Je.popupIndicatorOpen,Ao=Je.groupChip,yo=O.default(Je,S),Fo=G({popper:q.default(xo.popper,Oo),listbox:q.default(xo.listbox,qo),popupIndicator:q.default(xo.popupIndicator,Po),popupIndicatorOpen:q.default(xo.popupIndicatorOpen,So)},yo),Ro=function(){no(""),null==ae||ae()},ko=t.useCallback(r.debounce((function(e){return ro(e)}),500),[]),To=function(e){var o=Y.find((function(o){return o.id===e}));Z||Ro(),W(o)},Go=function(e){oo.length||Q&&"ArrowLeft"===e.code&&e.stopPropagation()};t.useEffect((function(){lo&&(jo.current.focus(),jo.current.setSelectionRange(oo.length,oo.length))}));var Lo=Q&&Array.isArray(i)?i.length:null,No=Q&&(null==bo?void 0:bo.length)===Lo,Mo=Q&&!!Lo&&!No,Do=function(){return Ro(),n.getOptionDisabled&&No?T(null,[z[z.length-1]]):T(null,No||Mo?[]:bo)};t.useEffect((function(){ko(oo),M&&M(oo)}),[oo]);var Eo=function(e,o){"blur"===o&&(!e.relatedTarget||vo.current.contains(e.relatedTarget))||(Te(),ao(!1))},wo=function(){(null!=He?He:lo)?(ao(!1),Te()):(ao(!0),Se())},zo=function(e){if(No&&!xe&&!qe)return"All";var o=e[0].label||e[0].name||"";return 1===(null==e?void 0:e.length)?s.jsx("div",{children:s.jsx(I.MiddleTruncatedText,{children:o})}):"".concat(null==e?void 0:e.length," Selected")},Bo=r.isEmpty(bo),_o=t.useMemo((function(){return{onOutsideClick:Eo,isEmptyOptions:Bo,loading:E,AllSelectComponent:!xe&&Q&&!Bo&&s.jsx(m,{className:xo.selectAllCheckbox,onClick:Do,someSelected:Mo,allSelected:No}),RecentSearchesComponent:re&&s.jsx(re,{title:"Recent Searches",Icon:l.AccessTime,dataStorage:ue,dataStorageKey:te,maxCount:ne,isHidden:!r.isEmpty(oo),onInputChange:function(e){return no(e)},inputValue:io}),GroupsComponent:!ye&&go&&ee&&s.jsx(ee,{onGroupClick:To,groups:Y})}}),[ye,E,go,Bo,oo,xe,Q,Bo,io,Te,Eo]),Ho=t.useMemo((function(){return function(e){var o=e.children,n=e.className,t=O.default(e,R);return s.jsxs(p,G(G({},t),{},{className:n,inputRef:jo,ref:vo,children:[o,Ne]}))}}),[Ne]),Uo=t.useMemo((function(){return function(e){var o=Le.style,n=O.default(Le,k);return s.jsx(u.Popper,G(G({},e),{},{style:G(G({},e.style),o),placement:"bottom-start"},n))}}),[Le]);return s.jsx(h.PaperContext.Provider,{value:_o,children:s.jsx(c.Autocomplete,G(G({},r.omit(Ye,["InputProps","isNullable","isOpenedFromParent"])),{},{PopperComponent:Uo,disableClearable:g,onOpen:function(e){Co(),ao(!0),Se(e)},onClose:Eo,open:null!=He?He:lo,onChange:function(e,o){Q&&!Xe||no(""),T(e,o)},forcePopupIcon:n.forcePopupIcon,fullWidth:!0,disabled:V,value:i,classes:Fo,renderInput:function(e){var o,c,l,a=t.useState(!1),p=x.default(a,2),d=p[0],m=p[1],h=e.InputProps,f=e.inputProps,j=O.default(e,A),I=(null===(o=h.endAdornment)||void 0===o||null===(c=o.props)||void 0===c||null===(l=c.children)||void 0===l?void 0:l.length)>1?t.cloneElement(h.endAdornment,{children:h.endAdornment.props.children.slice(1),onMouseDown:function(e){return e.stopPropagation()},onMouseUp:function(e){return e.stopPropagation()}}):h.endAdornment,P=1===Lo,S=d||lo||oo.length>0||!r.isEmpty(i)||!r.isEmpty(null==Ve?void 0:Ve.startAdornment),R=Ve||{},k=R.classes,T=(k=void 0===k?{}:k).input,L=void 0===T?"":T,N=O.default(k,y),M=R.style,D=O.default(R,F);return s.jsx(u.TextField,G(G(G({},j),r.omit(he,["endAdornment"])),{},{onBlur:function(){m(!1),P&&fo(!0)},onFocus:function(){m(!0)},onKeyDown:Go,inputRef:jo,placeholder:H,classes:{root:xo.searchInput},inputProps:G(G({style:{padding:5}},f),Ye.inputProps),InputLabelProps:{shrink:S},InputProps:G(G(G({classes:G({input:q.default(ho?xo.inputShrinked:P&&xo.inputExpanded,L)},N),style:G({paddingRight:0,paddingBottom:0},M)},h),D),{},{startAdornment:s.jsxs(s.Fragment,{children:[null==Ve?void 0:Ve.startAdornment,ye&&s.jsx(u.Chip,{className:xo.selectedGroup,"data-not-migrated-muichip":!0,variant:"outlined",label:s.jsxs("div",{className:xo.selectedGroupLabel,children:[ye.name,s.jsx(v.CloseSmallIcon,{size:16,id:"removeGroupIcon",className:xo.removeIcon,onClick:Re})]})},ye.id),Q&&!r.isEmpty(i)&&s.jsx("div",{onClick:wo,id:"selectedOptions",className:q.default(xo.selectedLabel,ho&&xo.selectedLabelExpanded),children:zo(i)})]}),endAdornment:s.jsxs(s.Fragment,{children:[s.jsxs(u.InputAdornment,{className:q.default(xo.endAdornment,C.default({},xo.removeIconWithDropdown,n.forcePopupIcon)),position:"end",children:[he.endAdornment,E&&s.jsx(u.CircularProgress,{color:"primary",size:20}),d&&oo&&!g&&s.jsx(b,{"data-testid":"".concat("AutocompleteSearch","_clear_icon"),size:"small",className:xo.iconButton,onClick:function(){no(""),ae&&ae()},tooltipProps:{title:"Clear"},children:s.jsx(v.CloseSmallIcon,{size:20,className:xo.closeIcon})})]}),n.forcePopupIcon&&I]})})}))},loading:E,options:bo,renderGroup:function(e){var o=e.key,n=e.group,t=e.children;return!n||!r.isEmpty(ye)&&Q?t:s.jsxs("div",{className:xo.group,children:[s.jsx(u.Tooltip,{title:n,placement:"right",TransitionComponent:u.Fade,TransitionProps:{timeout:500},enterDelay:500,children:s.jsx(u.Chip,{"data-not-migrated-muichip":!0,className:q.default(xo.groupChip,Ao),variant:"outlined",label:n})}),t]},o)},disableCloseOnSelect:Q,multiple:Q,renderOption:ge||function(e,o){var n=e.label,t=void 0===n?"":n,i=e.id;return Q?s.jsxs("div",{className:q.default(xo.option,B),"data-testid":"autocompleteOption_".concat(t,"MenuItem"),children:[s.jsx(u.Checkbox,{size:"small",disableRipple:!0,className:xo.checkbox,checked:o.selected}),s.jsx(I.MiddleTruncatedText,{className:xo.optionLabelContainer,children:t})]},i):s.jsx(u.MenuItem,{className:xo.menuItem,value:i,"data-testid":"autocompleteOption_".concat(t,"MenuItem"),children:s.jsx(I.MiddleTruncatedText,{className:xo.optionLabelContainer,children:t})},i)},groupBy:go?function(e){return e.group}:null,PaperComponent:Ho,ListboxComponent:we,inputValue:oo,getOptionLabel:de,getOptionDisabled:null==n?void 0:n.getOptionDisabled,onInputChange:function(e,o,n){no(Z?function(e){return"reset"===n?e:o}:o),Ie(o,n)},loadingText:s.jsx("div",{className:xo.label,children:"Loading ..."}),noOptionsText:s.jsx("div",{className:xo.label,children:De}),ListboxProps:je,onFocus:function(){fo(!1),null==We||We()}}))})};N.Groups=d,exports.Search=N,exports.default=N;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),o=require("@babel/runtime/helpers/slicedToArray"),n=require("@babel/runtime/helpers/objectWithoutProperties"),s=require("react/jsx-runtime"),t=require("react"),i=require("classnames"),r=require("lodash"),c=require("@material-ui/lab"),u=require("@material-ui/core"),l=require("@material-ui/icons"),a=require("./components/Listbox.js"),p=require("./components/Paper.js");require("./components/RecentSearches.js");var d=require("./components/Groups.js"),m=require("./components/SelectAllListItem.js"),h=require("./context/index.js"),f=require("./effects/useAutocompleteOptions.js"),j=require("./styles.js"),v=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js"),require("../../icons/customIcons/icons/Global.js"),require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js");var I=require("../MiddleTruncatedText/MiddleTruncatedText.js"),b=require("../IconButton/index.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var C=g(e),x=g(o),O=g(n),q=g(i),P=["AutocompleteProps","value","disableClearable","onChange","onInputChange","loading","options","optionSize","placeholder","onGroupChange","disabled","disableResetOnGroupChange","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage","onInputReset","getOptionLabel","TextFieldProps","ListboxProps","onInputChangeCallback","renderCustomOption","isHiddenAllOption","isHiddenAllLabel","onOpen","selectedGroup","onGroupReset","onClose","popperProps","paperFooter","noOptionsText","ListboxComponent","isPrioritizedSelectedOptions","isOpenedFromParent","onFocus","InputProps","classes","popupIcon","shouldResetInputOnAutocompleteChange"],S=["popper","listbox","popupIndicator","popupIndicatorOpen","groupChip"],A=["InputProps","inputProps"],y=["input"],F=["classes","style"],R=["children","className"],k=["style"];function T(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);o&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,s)}return n}function G(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?T(Object(n),!0).forEach((function(o){C.default(e,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}))}return e}var L={},N=function(e){var o=e.AutocompleteProps,n=void 0===o?{}:o,i=e.value,d=e.disableClearable,g=void 0!==d&&d,T=e.onChange,N=e.onInputChange,M=void 0===N?null:N,D=e.loading,E=void 0!==D&&D,w=e.options,z=void 0===w?[]:w,B=e.optionSize,_=e.placeholder,H=void 0===_?"Search...":_,U=e.onGroupChange,W=void 0===U?function(){}:U,K=e.disabled,V=void 0!==K&&K,Z=e.disableResetOnGroupChange,J=e.multiple,Q=void 0!==J&&J,X=e.groups,Y=void 0===X?[]:X,$=e.GroupsComponent,ee=void 0===$?null:$,oe=e.recentSearchesMaxCount,ne=void 0===oe?3:oe,se=e.dataStorageKey,te=void 0===se?"Search:recentSearches":se,ie=e.RecentSearchesComponent,re=void 0===ie?null:ie,ce=e.dataStorage,ue=void 0===ce?sessionStorage:ce,le=e.onInputReset,ae=void 0===le?null:le,pe=e.getOptionLabel,de=void 0===pe?function(e){return e.label||""}:pe,me=e.TextFieldProps,he=void 0===me?{endAdornment:null}:me,fe=e.ListboxProps,je=void 0===fe?null:fe,ve=e.onInputChangeCallback,Ie=void 0===ve?function(){}:ve,be=e.renderCustomOption,ge=void 0===be?null:be,Ce=e.isHiddenAllOption,xe=void 0!==Ce&&Ce,Oe=e.isHiddenAllLabel,qe=void 0!==Oe&&Oe,Pe=e.onOpen,Se=void 0===Pe?r.noop:Pe,Ae=e.selectedGroup,ye=void 0===Ae?null:Ae,Fe=e.onGroupReset,Re=void 0===Fe?function(){}:Fe,ke=e.onClose,Te=void 0===ke?function(){}:ke,Ge=e.popperProps,Le=void 0===Ge?L:Ge,Ne=e.paperFooter,Me=e.noOptionsText,De=void 0===Me?"No Options":Me,Ee=e.ListboxComponent,we=void 0===Ee?a:Ee,ze=e.isPrioritizedSelectedOptions,Be=void 0!==ze&&ze,_e=e.isOpenedFromParent,He=void 0===_e?void 0:_e,Ue=e.onFocus,We=void 0===Ue?null:Ue,Ke=e.InputProps,Ve=void 0===Ke?null:Ke,Ze=e.classes,Je=void 0===Ze?{}:Ze,Qe=e.popupIcon;void 0===Qe&&s.jsx(v.DownOneIcon,{theme:"filled",fill:"#BDBDBD",size:16});var Xe=e.shouldResetInputOnAutocompleteChange,Ye=O.default(e,P),$e=t.useState(""),eo=x.default($e,2),oo=eo[0],no=eo[1],so=t.useState(""),to=x.default(so,2),io=to[0],ro=to[1],co=t.useState(!1),uo=x.default(co,2),lo=uo[0],ao=uo[1],po=t.useState(!1),mo=x.default(po,2),ho=mo[0],fo=mo[1],jo=t.useRef(),vo=t.useRef(),Io=f.useAutocompletOptions({options:z,value:i,groups:Y,selectedGroup:ye,isPrioritizedSelectedOptions:Be}),bo=Io.autocompleteOptions,go=Io.isGrouped,Co=Io.handleAutocompleOptionsUpdate,xo=j(),Oo=Je.popper,qo=Je.listbox,Po=Je.popupIndicator,So=Je.popupIndicatorOpen,Ao=Je.groupChip,yo=O.default(Je,S),Fo=G({popper:q.default(xo.popper,Oo),listbox:q.default(xo.listbox,qo),popupIndicator:q.default(xo.popupIndicator,Po),popupIndicatorOpen:q.default(xo.popupIndicatorOpen,So)},yo),Ro=function(){no(""),null==ae||ae()},ko=t.useCallback(r.debounce((function(e){return ro(e)}),500),[]),To=function(e){var o=Y.find((function(o){return o.id===e}));Z||Ro(),W(o)},Go=function(e){oo.length||Q&&"ArrowLeft"===e.code&&e.stopPropagation()};t.useEffect((function(){lo&&(jo.current.focus(),jo.current.setSelectionRange(oo.length,oo.length))}));var Lo=Q&&Array.isArray(i)?i.length:null,No=Q&&(null==bo?void 0:bo.length)===Lo,Mo=Q&&!!Lo&&!No,Do=function(){return Ro(),n.getOptionDisabled&&No?T(null,[z[z.length-1]]):T(null,No||Mo?[]:bo)};t.useEffect((function(){ko(oo),M&&M(oo)}),[oo]);var Eo=function(e,o){var n=e;"blur"===o&&(!n.relatedTarget||vo.current.contains(n.relatedTarget))||(Te(),ao(!1))},wo=function(){(null!=He?He:lo)?(ao(!1),Te()):(ao(!0),Se())},zo=function(e){if(No&&!xe&&!qe)return"All";var o=e[0].label||e[0].name||"";return 1===(null==e?void 0:e.length)?s.jsx("div",{children:s.jsx(I.MiddleTruncatedText,{children:o})}):"".concat(null==e?void 0:e.length," Selected")},Bo=r.isEmpty(bo),_o=t.useMemo((function(){return{onOutsideClick:Eo,isEmptyOptions:Bo,loading:E,AllSelectComponent:!xe&&Q&&!Bo&&s.jsx(m,{className:xo.selectAllCheckbox,onClick:Do,someSelected:Mo,allSelected:No}),RecentSearchesComponent:re&&s.jsx(re,{title:"Recent Searches",Icon:l.AccessTime,dataStorage:ue,dataStorageKey:te,maxCount:ne,isHidden:!r.isEmpty(oo),onInputChange:function(e){return no(e)},inputValue:io}),GroupsComponent:!ye&&go&&ee&&s.jsx(ee,{onGroupClick:To,groups:Y})}}),[ye,E,go,Bo,oo,xe,Q,Bo,io,Te,Eo]),Ho=t.useMemo((function(){return function(e){var o=e.children,n=e.className,t=O.default(e,R);return s.jsxs(p,G(G({},t),{},{className:n,inputRef:jo,ref:vo,children:[o,Ne]}))}}),[Ne]),Uo=t.useMemo((function(){return function(e){var o=Le.style,n=O.default(Le,k);return s.jsx(u.Popper,G(G({},e),{},{style:G(G({},e.style),o),placement:"bottom-start"},n))}}),[Le]);return s.jsx(h.PaperContext.Provider,{value:_o,children:s.jsx(c.Autocomplete,G(G({},r.omit(Ye,["InputProps","isNullable","isOpenedFromParent"])),{},{PopperComponent:Uo,disableClearable:g,onOpen:function(e){Co(),ao(!0),Se(e)},onClose:Eo,open:null!=He?He:lo,onChange:function(e,o){Q&&!Xe||no(""),T(e,o)},forcePopupIcon:n.forcePopupIcon,fullWidth:!0,disabled:V,value:i,classes:Fo,renderInput:function(e){var o,c,l,a=t.useState(!1),p=x.default(a,2),d=p[0],m=p[1],h=e.InputProps,f=e.inputProps,j=O.default(e,A),I=(null===(o=h.endAdornment)||void 0===o||null===(c=o.props)||void 0===c||null===(l=c.children)||void 0===l?void 0:l.length)>1?t.cloneElement(h.endAdornment,{children:h.endAdornment.props.children.slice(1),onMouseDown:function(e){return e.stopPropagation()},onMouseUp:function(e){return e.stopPropagation()}}):h.endAdornment,P=1===Lo,S=d||lo||oo.length>0||!r.isEmpty(i)||!r.isEmpty(null==Ve?void 0:Ve.startAdornment),R=Ve||{},k=R.classes,T=(k=void 0===k?{}:k).input,L=void 0===T?"":T,N=O.default(k,y),M=R.style,D=O.default(R,F);return s.jsx(u.TextField,G(G(G({},j),r.omit(he,["endAdornment"])),{},{onBlur:function(){m(!1),P&&fo(!0)},onFocus:function(){m(!0)},onKeyDown:Go,inputRef:jo,placeholder:H,classes:{root:xo.searchInput},inputProps:G(G({style:{padding:5}},f),Ye.inputProps),InputLabelProps:{shrink:S},InputProps:G(G(G({classes:G({input:q.default(ho?xo.inputShrinked:P&&xo.inputExpanded,L)},N),style:G({paddingRight:0,paddingBottom:0},M)},h),D),{},{startAdornment:s.jsxs(s.Fragment,{children:[null==Ve?void 0:Ve.startAdornment,ye&&s.jsx(u.Chip,{className:xo.selectedGroup,"data-not-migrated-muichip":!0,variant:"outlined",label:s.jsxs("div",{className:xo.selectedGroupLabel,children:[ye.name,s.jsx(v.CloseSmallIcon,{size:16,id:"removeGroupIcon",className:xo.removeIcon,onClick:Re})]})},ye.id),Q&&!r.isEmpty(i)&&s.jsx("div",{onClick:wo,id:"selectedOptions",className:q.default(xo.selectedLabel,ho&&xo.selectedLabelExpanded),children:zo(i)})]}),endAdornment:s.jsxs(s.Fragment,{children:[s.jsxs(u.InputAdornment,{className:q.default(xo.endAdornment,C.default({},xo.removeIconWithDropdown,n.forcePopupIcon)),position:"end",children:[he.endAdornment,E&&s.jsx(u.CircularProgress,{color:"primary",size:20}),d&&oo&&!g&&s.jsx(b,{"data-testid":"".concat("AutocompleteSearch","_clear_icon"),size:"small",className:xo.iconButton,onClick:function(){no(""),ae&&ae()},tooltipProps:{title:"Clear"},children:s.jsx(v.CloseSmallIcon,{size:20,className:xo.closeIcon})})]}),n.forcePopupIcon&&I]})})}))},loading:E,options:bo,renderGroup:function(e){var o=e.key,n=e.group,t=e.children;return!n||!r.isEmpty(ye)&&Q?t:s.jsxs("div",{className:xo.group,children:[s.jsx(u.Tooltip,{title:n,placement:"right",TransitionComponent:u.Fade,TransitionProps:{timeout:500},enterDelay:500,children:s.jsx(u.Chip,{"data-not-migrated-muichip":!0,className:q.default(xo.groupChip,Ao),variant:"outlined",label:n})}),t]},o)},disableCloseOnSelect:Q,multiple:Q,renderOption:ge||function(e,o){var n=e.label,t=void 0===n?"":n,i=e.id;return Q?s.jsxs("div",{className:q.default(xo.option,B),"data-testid":"autocompleteOption_".concat(t,"MenuItem"),children:[s.jsx(u.Checkbox,{size:"small",disableRipple:!0,className:xo.checkbox,checked:o.selected}),s.jsx(I.MiddleTruncatedText,{className:xo.optionLabelContainer,children:t})]},i):s.jsx(u.MenuItem,{className:xo.menuItem,value:i,"data-testid":"autocompleteOption_".concat(t,"MenuItem"),children:s.jsx(I.MiddleTruncatedText,{className:xo.optionLabelContainer,children:t})},i)},groupBy:go?function(e){return e.group}:null,PaperComponent:Ho,ListboxComponent:we,inputValue:oo,getOptionLabel:de,getOptionDisabled:null==n?void 0:n.getOptionDisabled,onInputChange:function(e,o,n){no(Z?function(e){return"reset"===n?e:o}:o),Ie(o,n)},loadingText:s.jsx("div",{className:xo.label,children:"Loading ..."}),noOptionsText:s.jsx("div",{className:xo.label,children:De}),ListboxProps:je,onFocus:function(){fo(!1),null==We||We()}}))})};N.Groups=d,exports.Search=N,exports.default=N;
2
2
  //# sourceMappingURL=Search.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react/jsx-runtime"),o=require("react"),i=require("@material-ui/core"),l=require("uuid/v4"),n=require("classnames");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e),p=u(t),d=u(l),c=u(n),s=["FormControlProps","InputLabelProps","label","formHelperText","error","fullWidth"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){a.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M=i.makeStyles((function(e){return{formControlRoot:{"& .MuiSelect-icon":{top:"calc(50% - 8px)",right:4},"& .MuiSelect-icon.MuiSelect-iconOutlined":{right:8},"& .MuiSelect-icon.MuiSelect-iconFilled":{right:8},"&:hover":{"& .MuiFormLabel-root, & .MuiInputAdornment-root, & .MuiSelect-icon > svg > path":{color:e.palette.primary.contrastText},"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.contrastText,fill:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.main,fill:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:e.palette.primary.text6,"& svg":{height:16,width:16}},"&.Mui-error":{"& .MuiInputAdornment-root":{color:e.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}},paper:{marginTop:8}}}));module.exports=function(e){var t,l,n,u,b,f,y=e.FormControlProps,v=void 0===y?{}:y,h=e.InputLabelProps,x=void 0===h?{}:h,I=e.label,g=void 0===I?null:I,O=e.formHelperText,P=void 0===O?null:O,j=e.error,S=void 0!==j&&j,F=e.fullWidth,k=void 0!==F&&F,C=p.default(e,s),L=o.useMemo(d.default,[]),T=M();return r.jsxs(i.FormControl,m(m({},v),{},{classes:m(m({},v.classes),{},{root:c.default(null===(t=v.classes)||void 0===t?void 0:t.root,T.formControlRoot,a.default({},T.error,S))}),disabled:v.disabled||C.disabled,fullWidth:k,error:S,children:[g&&r.jsx(i.InputLabel,m(m({id:L},x),{},{children:g})),r.jsx(i.Select,m(m({},C),{},{labelId:L,label:g,MenuProps:m(m({getContentAnchorEl:null,anchorOrigin:{horizontal:"left",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"left"}},null==C?void 0:C.MenuProps),{},{classes:m(m({},null==C||null===(l=C.MenuProps)||void 0===l?void 0:l.classes),{},{paper:c.default(T.paper,null==C||null===(n=C.MenuProps)||void 0===n||null===(u=n.classes)||void 0===u?void 0:u.paper),list:c.default(null==C||null===(b=C.MenuProps)||void 0===b||null===(f=b.classes)||void 0===f?void 0:f.list,T.menuList)})}),fullWidth:k})),P&&r.jsx(i.FormHelperText,{children:P})]}))};
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react/jsx-runtime"),o=require("react"),i=require("@material-ui/core"),l=require("uuid/v4"),n=require("classnames");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e),p=u(t),d=u(l),c=u(n),s=["FormControlProps","InputLabelProps","label","formHelperText","error","fullWidth","onChange"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){a.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M=i.makeStyles((function(e){return{formControlRoot:{"& .MuiSelect-icon":{top:"calc(50% - 8px)",right:4},"& .MuiSelect-icon.MuiSelect-iconOutlined":{right:8},"& .MuiSelect-icon.MuiSelect-iconFilled":{right:8},"&:hover":{"& .MuiFormLabel-root, & .MuiInputAdornment-root, & .MuiSelect-icon > svg > path":{color:e.palette.primary.contrastText},"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.contrastText,fill:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.main,fill:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:e.palette.primary.text6,"& svg":{height:16,width:16}},"&.Mui-error":{"& .MuiInputAdornment-root":{color:e.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}},paper:{marginTop:8}}}));module.exports=function(e){var t,l,n,u,b,f,y=e.FormControlProps,h=void 0===y?{}:y,v=e.InputLabelProps,g=void 0===v?{}:v,x=e.label,I=void 0===x?null:x,O=e.formHelperText,P=void 0===O?null:O,j=e.error,S=void 0!==j&&j,F=e.fullWidth,C=void 0!==F&&F,k=e.onChange,L=p.default(e,s),T=o.useMemo(d.default,[]),B=M();return r.jsxs(i.FormControl,m(m({},h),{},{classes:m(m({},h.classes),{},{root:c.default(null===(t=h.classes)||void 0===t?void 0:t.root,B.formControlRoot,a.default({},B.error,S))}),disabled:h.disabled||L.disabled,fullWidth:C,error:S,children:[I&&r.jsx(i.InputLabel,m(m({id:T},g),{},{children:I})),r.jsx(i.Select,m(m({},L),{},{onChange:k,labelId:T,label:I,MenuProps:m(m({getContentAnchorEl:null,anchorOrigin:{horizontal:"left",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"left"}},null==L?void 0:L.MenuProps),{},{classes:m(m({},null==L||null===(l=L.MenuProps)||void 0===l?void 0:l.classes),{},{paper:c.default(B.paper,null==L||null===(n=L.MenuProps)||void 0===n||null===(u=n.classes)||void 0===u?void 0:u.paper),list:c.default(null==L||null===(b=L.MenuProps)||void 0===b||null===(f=b.classes)||void 0===f?void 0:f.list,B.menuList)})}),fullWidth:C})),P&&r.jsx(i.FormHelperText,{children:P})]}))};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("lodash"),r=require("../convert.js"),n=require("./goalsConfig.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(e);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){i.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.convertGoalValue=function(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"TO_SHOW";if(!n.GoalsConfig[o])return e;var c=n.GoalsConfig[o],a=c.unitType,l=c.unit,u=c.convertToShow,f=c.convertToSave;if(!l&&!u&&!f)return e;if("TO_SHOW"===i){if(""===e)return e;var s=u?u(e):r.convertValue(+e,a,l,null,16),p=t.round(s,2),g=String(p);return g}return"TO_SAVE"===i?e?String(f?f(e):r.convertValue(+e,a,r.getUnitPreference(a),l,16)):"":void 0},exports.getGoalsConfig=function(){return a(a({},n.GoalsConfig),{},{cost_per_ft:a(a({},n.GoalsConfig.cost_per_ft),{},{label:"Cost/".concat(r.getUnitDescription(r.getUnitPreference("length")).singular)}),cost_per_lat_ft:a(a({},n.GoalsConfig.cost_per_lat_ft),{},{label:"Lateral Cost/".concat(r.getUnitDescription(r.getUnitPreference("length")).singular)})})},exports.getGoalsUnitDisplay=function(e){if(!n.GoalsConfig[e])return"";var t=n.GoalsConfig[e],o=t.unit,i=t.unitType,c=t.formatUnitDisplay;return i||c?c?c(r.getUnitPreference(i)):"percent"===i?o:r.getUnitDisplay(i):""};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("lodash"),r=require("../convert.js"),n=require("./goalsConfig.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(e);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){i.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.convertGoalValue=function(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"TO_SHOW";if(!n.GoalsConfig[o])return e;var c=n.GoalsConfig[o],a=c.unitType,l=c.unit,u=c.convertToShow,f=c.convertToSave;if(!l&&!u&&!f)return e;if("TO_SHOW"===i){if(""===e)return e;var s=u?u(+e):r.convertValue(+e,a,l,null,16),p=t.round(s,2),g=String(p);return g}return"TO_SAVE"===i?e?String(f?f(+e):r.convertValue(+e,a,r.getUnitPreference(a),l,16)):"":void 0},exports.getGoalsConfig=function(){return a(a({},n.GoalsConfig),{},{cost_per_ft:a(a({},n.GoalsConfig.cost_per_ft),{},{label:"Cost/".concat(r.getUnitDescription(r.getUnitPreference("length")).singular)}),cost_per_lat_ft:a(a({},n.GoalsConfig.cost_per_lat_ft),{},{label:"Lateral Cost/".concat(r.getUnitDescription(r.getUnitPreference("length")).singular)})})},exports.getGoalsUnitDisplay=function(e){if(!n.GoalsConfig[e])return"";var t=n.GoalsConfig[e],o=t.unit,i=t.unitType,c=t.formatUnitDisplay;return i||c?c?c(r.getUnitPreference(i)):"percent"===i?o:r.getUnitDisplay(i):""};
2
2
  //# sourceMappingURL=utils.js.map
@@ -26,8 +26,8 @@ type AutocompleteProps = {
26
26
  selected: boolean;
27
27
  inputValue: string;
28
28
  }) => string;
29
- onInputChange?: (event: ChangeEvent, value: string, action: 'input' | 'reset' | 'clear') => void;
30
- onChange?: (event: ChangeEvent, value: object | string, reason: 'create-option' | 'select-option' | 'remove-option' | 'clear' | 'blur') => void;
29
+ onInputChange?: (event: ChangeEvent<{}>, value: string, action: 'input' | 'reset' | 'clear') => void;
30
+ onChange?: (event: ChangeEvent<{}>, value: object | string, reason: 'create-option' | 'select-option' | 'remove-option' | 'clear' | 'blur') => void;
31
31
  classes?: Record<string, string>;
32
32
  className?: string;
33
33
  loading?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;A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AE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC;IACzD;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CACN,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACtC,SAAS,GACT,aAAa,GACb,OAAO,GACP,MAAM,GACN,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,aAAa,GACb,mBAAmB,GACnB,sBAAsB,GACtB,UAAU,CACb,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,wJAUnB,iBAAiB,gBAoFnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAI7E,OAA6B,EAC3B,iBAAiB,IAAI,oBAAoB,EAC1C,MAAM,+BAA+B,CAAC;AAuCvC,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC7B;;OAEG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,SAAS,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;IACxD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC;IACpD;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,MAAM,EAA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;
5
5
  onChange: (id: string) => void;
6
6
  defaultGradients: CustomGradient[];
7
- onAction: (type: string, data?: any) => void;
7
+ onAction: (type: 'delete' | 'add', data?: any) => void;
8
8
  readonly: boolean;
9
9
  }
10
10
  export declare const GradientSelect: React.FC<GradientSelectProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"GradientSelect.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientSelect.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,UAAU,mBAAmB;IAC3B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsGxD,CAAC"}
1
+ {"version":3,"file":"GradientSelect.d.ts","sourceRoot":"","sources":["../../../src/components/GradientManager/GradientSelect.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,UAAU,mBAAmB;IAC3B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsGxD,CAAC"}
@@ -11,7 +11,7 @@ export declare const page: {
11
11
  getNameEditValue(): string;
12
12
  getTextOnSelect(): string;
13
13
  selectItemNamed(name: string): void;
14
- getStops(): Element[];
14
+ getStops(): HTMLDivElement[];
15
15
  getStopValues(): {
16
16
  color: any;
17
17
  pos: number;
@@ -1 +1 @@
1
- {"version":3,"file":"pageHelpers.d.ts","sourceRoot":"","sources":["../../../../src/components/GradientManager/__tests__/pageHelpers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,wBAEzB,CAAC;AAIF,eAAO,MAAM,IAAI;;;;;;;;;;;0BAyCO,MAAM;;;;;;yBA0BP,MAAM;sBAMT,MAAM;;CAmBzB,CAAC"}
1
+ {"version":3,"file":"pageHelpers.d.ts","sourceRoot":"","sources":["../../../../src/components/GradientManager/__tests__/pageHelpers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,wBAEzB,CAAC;AAIF,eAAO,MAAM,IAAI;;;;;;;;;;;0BAyCO,MAAM;gBAQgD,cAAc,EAAE;;;;;yBAkBvE,MAAM;sBAMT,MAAM;;CAmBzB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare const page: {
2
2
  deleteStopBtn(): HTMLElement;
3
- getStops(): Element[];
3
+ getStops(): HTMLDivElement[];
4
4
  getStopValues(): {
5
5
  color: any;
6
6
  pos: number;
@@ -1 +1 @@
1
- {"version":3,"file":"pageHelpers.d.ts","sourceRoot":"","sources":["../../../../src/components/GradientPicker/__tests__/pageHelpers.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI;;;;;;;yBA0BM,MAAM;sBAOT,MAAM;CAazB,CAAC"}
1
+ {"version":3,"file":"pageHelpers.d.ts","sourceRoot":"","sources":["../../../../src/components/GradientPicker/__tests__/pageHelpers.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI;;gBAM6D,cAAc,EAAE;;;;;yBAoBvE,MAAM;sBAOT,MAAM;CAazB,CAAC"}
@@ -50,6 +50,20 @@ export const METRICS_LIST: ({
50
50
  label: string;
51
51
  value: string;
52
52
  };
53
+ } | {
54
+ label: string;
55
+ key: string;
56
+ unitType: string;
57
+ from: string;
58
+ isBiggestBest: boolean;
59
+ convertForMultiRigs: ({ sumVal, number }: {
60
+ sumVal: any;
61
+ number: any;
62
+ }) => number;
63
+ category: {
64
+ label: string;
65
+ value: string;
66
+ };
53
67
  } | {
54
68
  label: string;
55
69
  key: string;
@@ -62,6 +76,20 @@ export const METRICS_LIST: ({
62
76
  label: string;
63
77
  value: string;
64
78
  };
79
+ } | {
80
+ label: string;
81
+ key: string;
82
+ to: string;
83
+ unitType: string;
84
+ from: string;
85
+ convertForMultiRigs: ({ sumVal, number }: {
86
+ sumVal: any;
87
+ number: any;
88
+ }) => number;
89
+ category: {
90
+ label: string;
91
+ value: string;
92
+ };
65
93
  } | {
66
94
  label: string;
67
95
  labelFunc: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV2/constants.js"],"names":[],"mappings":";;;;;;;;AAeA;;;;;IAqCE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,gCAAiC,CAAC,CAAC;;;;;;;;;;6BAtHN,SAAS"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV2/constants.js"],"names":[],"mappings":";;;;;;;;AAeA;;;;;IAqCE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,gCAAiC,CAAC,CAAC;;;;;;;;;;6BAtHN,SAAS"}
@@ -51,6 +51,20 @@ export const METRICS_LIST: ({
51
51
  label: string;
52
52
  value: string;
53
53
  };
54
+ } | {
55
+ label: string;
56
+ key: string;
57
+ unitType: string;
58
+ from: string;
59
+ isBiggestBest: boolean;
60
+ convertForMultiRigs: ({ sumVal, number }: {
61
+ sumVal: any;
62
+ number: any;
63
+ }) => number;
64
+ category: {
65
+ label: string;
66
+ value: string;
67
+ };
54
68
  } | {
55
69
  label: string;
56
70
  key: string;
@@ -63,6 +77,20 @@ export const METRICS_LIST: ({
63
77
  label: string;
64
78
  value: string;
65
79
  };
80
+ } | {
81
+ label: string;
82
+ key: string;
83
+ to: string;
84
+ unitType: string;
85
+ from: string;
86
+ convertForMultiRigs: ({ sumVal, number }: {
87
+ sumVal: any;
88
+ number: any;
89
+ }) => number;
90
+ category: {
91
+ label: string;
92
+ value: string;
93
+ };
66
94
  } | {
67
95
  label: string;
68
96
  labelFunc: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js"],"names":[],"mappings":";;;;;;;;;AAgBA;;;;;IA2CE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,gCAAiC,CAAC,CAAC;AAEnC,wCAYE;;;;;;;;;;6BA3I2B,SAAS"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js"],"names":[],"mappings":";;;;;;;;;AAgBA;;;;;IA2CE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,gCAAiC,CAAC,CAAC;AAEnC,wCAYE;;;;;;;;;;6BA3I2B,SAAS"}
@@ -1,2 +1,2 @@
1
- export function useSortedWells(subjectWell: any, expandedWells: any, selectedWells: any, setIsTableLoading: any): (string | any[] | import("react").Dispatch<import("react").SetStateAction<string>>)[];
1
+ export function useSortedWells(subjectWell: any, expandedWells: any, selectedWells: any, setIsTableLoading: any): (string | any[] | import("react").Dispatch<import("react").SetStateAction<string>> | import("react").Dispatch<import("react").SetStateAction<"ASC">>)[];
2
2
  //# sourceMappingURL=useSortedWells.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSortedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useSortedWells.js"],"names":[],"mappings":"AA+BA,wMAiCC"}
1
+ {"version":3,"file":"useSortedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useSortedWells.js"],"names":[],"mappings":"AA+BA,0QAiCC"}
@@ -1,2 +1,2 @@
1
- export function useSortedWells(subjectWell: any, expandedWells: any, selectedWells: any, setIsTableLoading: any, selectedWellIds: any): (string | any[] | import("react").Dispatch<import("react").SetStateAction<string>>)[];
1
+ export function useSortedWells(subjectWell: any, expandedWells: any, selectedWells: any, setIsTableLoading: any, selectedWellIds: any): (string | any[] | import("react").Dispatch<import("react").SetStateAction<string>> | import("react").Dispatch<import("react").SetStateAction<"ASC">>)[];
2
2
  //# sourceMappingURL=useSortedWells.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSortedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/effects/useSortedWells.js"],"names":[],"mappings":"AA+BO,8NAkDN"}
1
+ {"version":3,"file":"useSortedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/effects/useSortedWells.js"],"names":[],"mappings":"AA+BO,gSAkDN"}
@@ -1 +1 @@
1
-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AAgB,GAChB,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,cAAc,GACd,SAAS,GACT,aAAa,GACb,kBAAkB,GAClB,QAAQ,GACR,SAAS,GACT,KAAK,GACL,eAAe,GACf,aAAa,GACb,iBAAiB,GACjB,MAAM,GACN,gBAAgB,GAChB,WAAW,GACX,aAAa,GACb,sBAAsB,GACtB,cAAc,GACd,SAAS,GACT,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,aAAa,GACb,YAAY,GACZ,YAAY,CACf,CAAC;AAEF,eAAO,MAAM,MAAM;8pBA6ChB,WAAW;;;;;;;;CAkcb,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as t,jsxs as i,Fragment as s}from"react/jsx-runtime";import{useState as r,useRef as c,useCallback as l,useEffect as p,useMemo as a,cloneElement as u}from"react";import d from"classnames";import{debounce as m,isEmpty as h,omit as v,noop as I}from"lodash";import{Autocomplete as f}from"@material-ui/lab";import{Popper as b,Tooltip as g,Fade as C,Chip as j,TextField as O,InputAdornment as P,CircularProgress as A,MenuItem as S,Checkbox as x}from"@material-ui/core";import{AccessTime as y}from"@material-ui/icons";import F from"./components/Listbox.js";import G from"./components/Paper.js";import"./components/RecentSearches.js";import L from"./components/Groups.js";import R from"./components/SelectAllListItem.js";import{PaperContext as k}from"./context/index.js";import{useAutocompletOptions as N}from"./effects/useAutocompleteOptions.js";import D from"./styles.js";import{DownOneIcon as T,CloseSmallIcon as z}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import{MiddleTruncatedText as M}from"../MiddleTruncatedText/MiddleTruncatedText.js";import w from"../IconButton/index.js";var B=["AutocompleteProps","value","disableClearable","onChange","onInputChange","loading","options","optionSize","placeholder","onGroupChange","disabled","disableResetOnGroupChange","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage","onInputReset","getOptionLabel","TextFieldProps","ListboxProps","onInputChangeCallback","renderCustomOption","isHiddenAllOption","isHiddenAllLabel","onOpen","selectedGroup","onGroupReset","onClose","popperProps","paperFooter","noOptionsText","ListboxComponent","isPrioritizedSelectedOptions","isOpenedFromParent","onFocus","InputProps","classes","popupIcon","shouldResetInputOnAutocompleteChange"],E=["popper","listbox","popupIndicator","popupIndicatorOpen","groupChip"],H=["InputProps","inputProps"],U=["input"],W=["classes","style"],K=["children","className"],_=["style"];function q(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable}))),e.push.apply(e,t)}return e}function V(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?q(Object(t),!0).forEach((function(e){o(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))}))}return n}var Z={},J=function(L){var q=L.AutocompleteProps,J=void 0===q?{}:q,Q=L.value,X=L.disableClearable,Y=void 0!==X&&X,$=L.onChange,oo=L.onInputChange,no=void 0===oo?null:oo,eo=L.loading,to=void 0!==eo&&eo,io=L.options,so=void 0===io?[]:io,ro=L.optionSize,co=L.placeholder,lo=void 0===co?"Search...":co,po=L.onGroupChange,ao=void 0===po?function(){}:po,uo=L.disabled,mo=void 0!==uo&&uo,ho=L.disableResetOnGroupChange,vo=L.multiple,Io=void 0!==vo&&vo,fo=L.groups,bo=void 0===fo?[]:fo,go=L.GroupsComponent,Co=void 0===go?null:go,jo=L.recentSearchesMaxCount,Oo=void 0===jo?3:jo,Po=L.dataStorageKey,Ao=void 0===Po?"Search:recentSearches":Po,So=L.RecentSearchesComponent,xo=void 0===So?null:So,yo=L.dataStorage,Fo=void 0===yo?sessionStorage:yo,Go=L.onInputReset,Lo=void 0===Go?null:Go,Ro=L.getOptionLabel,ko=void 0===Ro?function(o){return o.label||""}:Ro,No=L.TextFieldProps,Do=void 0===No?{endAdornment:null}:No,To=L.ListboxProps,zo=void 0===To?null:To,Mo=L.onInputChangeCallback,wo=void 0===Mo?function(){}:Mo,Bo=L.renderCustomOption,Eo=void 0===Bo?null:Bo,Ho=L.isHiddenAllOption,Uo=void 0!==Ho&&Ho,Wo=L.isHiddenAllLabel,Ko=void 0!==Wo&&Wo,_o=L.onOpen,qo=void 0===_o?I:_o,Vo=L.selectedGroup,Zo=void 0===Vo?null:Vo,Jo=L.onGroupReset,Qo=void 0===Jo?function(){}:Jo,Xo=L.onClose,Yo=void 0===Xo?function(){}:Xo,$o=L.popperProps,on=void 0===$o?Z:$o,nn=L.paperFooter,en=L.noOptionsText,tn=void 0===en?"No Options":en,sn=L.ListboxComponent,rn=void 0===sn?F:sn,cn=L.isPrioritizedSelectedOptions,ln=void 0!==cn&&cn,pn=L.isOpenedFromParent,an=void 0===pn?void 0:pn,un=L.onFocus,dn=void 0===un?null:un,mn=L.InputProps,hn=void 0===mn?null:mn,vn=L.classes,In=void 0===vn?{}:vn,fn=L.popupIcon;void 0===fn&&t(T,{theme:"filled",fill:"#BDBDBD",size:16});var bn=L.shouldResetInputOnAutocompleteChange,gn=e(L,B),Cn=r(""),jn=n(Cn,2),On=jn[0],Pn=jn[1],An=r(""),Sn=n(An,2),xn=Sn[0],yn=Sn[1],Fn=r(!1),Gn=n(Fn,2),Ln=Gn[0],Rn=Gn[1],kn=r(!1),Nn=n(kn,2),Dn=Nn[0],Tn=Nn[1],zn=c(),Mn=c(),wn=N({options:so,value:Q,groups:bo,selectedGroup:Zo,isPrioritizedSelectedOptions:ln}),Bn=wn.autocompleteOptions,En=wn.isGrouped,Hn=wn.handleAutocompleOptionsUpdate,Un=D(),Wn=In.popper,Kn=In.listbox,_n=In.popupIndicator,qn=In.popupIndicatorOpen,Vn=In.groupChip,Zn=e(In,E),Jn=V({popper:d(Un.popper,Wn),listbox:d(Un.listbox,Kn),popupIndicator:d(Un.popupIndicator,_n),popupIndicatorOpen:d(Un.popupIndicatorOpen,qn)},Zn),Qn=function(){Pn(""),null==Lo||Lo()},Xn=l(m((function(o){return yn(o)}),500),[]),Yn=function(o){var n=bo.find((function(n){return n.id===o}));ho||Qn(),ao(n)},$n=function(o){On.length||Io&&"ArrowLeft"===o.code&&o.stopPropagation()};p((function(){Ln&&(zn.current.focus(),zn.current.setSelectionRange(On.length,On.length))}));var oe=Io&&Array.isArray(Q)?Q.length:null,ne=Io&&(null==Bn?void 0:Bn.length)===oe,ee=Io&&!!oe&&!ne,te=function(){return Qn(),J.getOptionDisabled&&ne?$(null,[so[so.length-1]]):$(null,ne||ee?[]:Bn)};p((function(){Xn(On),no&&no(On)}),[On]);var ie=function(o,n){"blur"===n&&(!o.relatedTarget||Mn.current.contains(o.relatedTarget))||(Yo(),Rn(!1))},se=function(){(null!=an?an:Ln)?(Rn(!1),Yo()):(Rn(!0),qo())},re=function(o){if(ne&&!Uo&&!Ko)return"All";var n=o[0].label||o[0].name||"";return 1===(null==o?void 0:o.length)?t("div",{children:t(M,{children:n})}):"".concat(null==o?void 0:o.length," Selected")},ce=h(Bn),le=a((function(){return{onOutsideClick:ie,isEmptyOptions:ce,loading:to,AllSelectComponent:!Uo&&Io&&!ce&&t(R,{className:Un.selectAllCheckbox,onClick:te,someSelected:ee,allSelected:ne}),RecentSearchesComponent:xo&&t(xo,{title:"Recent Searches",Icon:y,dataStorage:Fo,dataStorageKey:Ao,maxCount:Oo,isHidden:!h(On),onInputChange:function(o){return Pn(o)},inputValue:xn}),GroupsComponent:!Zo&&En&&Co&&t(Co,{onGroupClick:Yn,groups:bo})}}),[Zo,to,En,ce,On,Uo,Io,ce,xn,Yo,ie]),pe=a((function(){return function(o){var n=o.children,t=o.className,s=e(o,K);return i(G,V(V({},s),{},{className:t,inputRef:zn,ref:Mn,children:[n,nn]}))}}),[nn]),ae=a((function(){return function(o){var n=on.style,i=e(on,_);return t(b,V(V({},o),{},{style:V(V({},o.style),n),placement:"bottom-start"},i))}}),[on]);return t(k.Provider,{value:le,children:t(f,V(V({},v(gn,["InputProps","isNullable","isOpenedFromParent"])),{},{PopperComponent:ae,disableClearable:Y,onOpen:function(o){Hn(),Rn(!0),qo(o)},onClose:ie,open:null!=an?an:Ln,onChange:function(o,n){Io&&!bn||Pn(""),$(o,n)},forcePopupIcon:J.forcePopupIcon,fullWidth:!0,disabled:mo,value:Q,classes:Jn,renderInput:function(c){var l,p,a,m=r(!1),I=n(m,2),f=I[0],b=I[1],g=c.InputProps,C=c.inputProps,S=e(c,H),x=(null===(l=g.endAdornment)||void 0===l||null===(p=l.props)||void 0===p||null===(a=p.children)||void 0===a?void 0:a.length)>1?u(g.endAdornment,{children:g.endAdornment.props.children.slice(1),onMouseDown:function(o){return o.stopPropagation()},onMouseUp:function(o){return o.stopPropagation()}}):g.endAdornment,y=1===oe,F=f||Ln||On.length>0||!h(Q)||!h(null==hn?void 0:hn.startAdornment),G=hn||{},L=G.classes,R=(L=void 0===L?{}:L).input,k=void 0===R?"":R,N=e(L,U),D=G.style,T=e(G,W);return t(O,V(V(V({},S),v(Do,["endAdornment"])),{},{onBlur:function(){b(!1),y&&Tn(!0)},onFocus:function(){b(!0)},onKeyDown:$n,inputRef:zn,placeholder:lo,classes:{root:Un.searchInput},inputProps:V(V({style:{padding:5}},C),gn.inputProps),InputLabelProps:{shrink:F},InputProps:V(V(V({classes:V({input:d(Dn?Un.inputShrinked:y&&Un.inputExpanded,k)},N),style:V({paddingRight:0,paddingBottom:0},D)},g),T),{},{startAdornment:i(s,{children:[null==hn?void 0:hn.startAdornment,Zo&&t(j,{className:Un.selectedGroup,"data-not-migrated-muichip":!0,variant:"outlined",label:i("div",{className:Un.selectedGroupLabel,children:[Zo.name,t(z,{size:16,id:"removeGroupIcon",className:Un.removeIcon,onClick:Qo})]})},Zo.id),Io&&!h(Q)&&t("div",{onClick:se,id:"selectedOptions",className:d(Un.selectedLabel,Dn&&Un.selectedLabelExpanded),children:re(Q)})]}),endAdornment:i(s,{children:[i(P,{className:d(Un.endAdornment,o({},Un.removeIconWithDropdown,J.forcePopupIcon)),position:"end",children:[Do.endAdornment,to&&t(A,{color:"primary",size:20}),f&&On&&!Y&&t(w,{"data-testid":"".concat("AutocompleteSearch","_clear_icon"),size:"small",className:Un.iconButton,onClick:function(){Pn(""),Lo&&Lo()},tooltipProps:{title:"Clear"},children:t(z,{size:20,className:Un.closeIcon})})]}),J.forcePopupIcon&&x]})})}))},loading:to,options:Bn,renderGroup:function(o){var n=o.key,e=o.group,s=o.children;return!e||!h(Zo)&&Io?s:i("div",{className:Un.group,children:[t(g,{title:e,placement:"right",TransitionComponent:C,TransitionProps:{timeout:500},enterDelay:500,children:t(j,{"data-not-migrated-muichip":!0,className:d(Un.groupChip,Vn),variant:"outlined",label:e})}),s]},n)},disableCloseOnSelect:Io,multiple:Io,renderOption:Eo||function(o,n){var e=o.label,s=void 0===e?"":e,r=o.id;return Io?i("div",{className:d(Un.option,ro),"data-testid":"autocompleteOption_".concat(s,"MenuItem"),children:[t(x,{size:"small",disableRipple:!0,className:Un.checkbox,checked:n.selected}),t(M,{className:Un.optionLabelContainer,children:s})]},r):t(S,{className:Un.menuItem,value:r,"data-testid":"autocompleteOption_".concat(s,"MenuItem"),children:t(M,{className:Un.optionLabelContainer,children:s})},r)},groupBy:En?function(o){return o.group}:null,PaperComponent:pe,ListboxComponent:rn,inputValue:On,getOptionLabel:ko,getOptionDisabled:null==J?void 0:J.getOptionDisabled,onInputChange:function(o,n,e){Pn(ho?function(o){return"reset"===e?o:n}:n),wo(n,e)},loadingText:t("div",{className:Un.label,children:"Loading ..."}),noOptionsText:t("div",{className:Un.label,children:tn}),ListboxProps:zo,onFocus:function(){Tn(!1),null==dn||dn()}}))})};J.Groups=L;export{J as Search,J as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as t,jsxs as i,Fragment as s}from"react/jsx-runtime";import{useState as r,useRef as c,useCallback as l,useEffect as p,useMemo as a,cloneElement as u}from"react";import d from"classnames";import{debounce as m,isEmpty as h,omit as v,noop as I}from"lodash";import{Autocomplete as f}from"@material-ui/lab";import{Popper as b,Tooltip as g,Fade as C,Chip as j,TextField as O,InputAdornment as P,CircularProgress as A,MenuItem as S,Checkbox as x}from"@material-ui/core";import{AccessTime as y}from"@material-ui/icons";import F from"./components/Listbox.js";import G from"./components/Paper.js";import"./components/RecentSearches.js";import L from"./components/Groups.js";import R from"./components/SelectAllListItem.js";import{PaperContext as k}from"./context/index.js";import{useAutocompletOptions as N}from"./effects/useAutocompleteOptions.js";import D from"./styles.js";import{DownOneIcon as T,CloseSmallIcon as z}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import{MiddleTruncatedText as M}from"../MiddleTruncatedText/MiddleTruncatedText.js";import w from"../IconButton/index.js";var B=["AutocompleteProps","value","disableClearable","onChange","onInputChange","loading","options","optionSize","placeholder","onGroupChange","disabled","disableResetOnGroupChange","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage","onInputReset","getOptionLabel","TextFieldProps","ListboxProps","onInputChangeCallback","renderCustomOption","isHiddenAllOption","isHiddenAllLabel","onOpen","selectedGroup","onGroupReset","onClose","popperProps","paperFooter","noOptionsText","ListboxComponent","isPrioritizedSelectedOptions","isOpenedFromParent","onFocus","InputProps","classes","popupIcon","shouldResetInputOnAutocompleteChange"],E=["popper","listbox","popupIndicator","popupIndicatorOpen","groupChip"],H=["InputProps","inputProps"],U=["input"],W=["classes","style"],K=["children","className"],_=["style"];function q(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable}))),e.push.apply(e,t)}return e}function V(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?q(Object(t),!0).forEach((function(e){o(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))}))}return n}var Z={},J=function(L){var q=L.AutocompleteProps,J=void 0===q?{}:q,Q=L.value,X=L.disableClearable,Y=void 0!==X&&X,$=L.onChange,oo=L.onInputChange,no=void 0===oo?null:oo,eo=L.loading,to=void 0!==eo&&eo,io=L.options,so=void 0===io?[]:io,ro=L.optionSize,co=L.placeholder,lo=void 0===co?"Search...":co,po=L.onGroupChange,ao=void 0===po?function(){}:po,uo=L.disabled,mo=void 0!==uo&&uo,ho=L.disableResetOnGroupChange,vo=L.multiple,Io=void 0!==vo&&vo,fo=L.groups,bo=void 0===fo?[]:fo,go=L.GroupsComponent,Co=void 0===go?null:go,jo=L.recentSearchesMaxCount,Oo=void 0===jo?3:jo,Po=L.dataStorageKey,Ao=void 0===Po?"Search:recentSearches":Po,So=L.RecentSearchesComponent,xo=void 0===So?null:So,yo=L.dataStorage,Fo=void 0===yo?sessionStorage:yo,Go=L.onInputReset,Lo=void 0===Go?null:Go,Ro=L.getOptionLabel,ko=void 0===Ro?function(o){return o.label||""}:Ro,No=L.TextFieldProps,Do=void 0===No?{endAdornment:null}:No,To=L.ListboxProps,zo=void 0===To?null:To,Mo=L.onInputChangeCallback,wo=void 0===Mo?function(){}:Mo,Bo=L.renderCustomOption,Eo=void 0===Bo?null:Bo,Ho=L.isHiddenAllOption,Uo=void 0!==Ho&&Ho,Wo=L.isHiddenAllLabel,Ko=void 0!==Wo&&Wo,_o=L.onOpen,qo=void 0===_o?I:_o,Vo=L.selectedGroup,Zo=void 0===Vo?null:Vo,Jo=L.onGroupReset,Qo=void 0===Jo?function(){}:Jo,Xo=L.onClose,Yo=void 0===Xo?function(){}:Xo,$o=L.popperProps,on=void 0===$o?Z:$o,nn=L.paperFooter,en=L.noOptionsText,tn=void 0===en?"No Options":en,sn=L.ListboxComponent,rn=void 0===sn?F:sn,cn=L.isPrioritizedSelectedOptions,ln=void 0!==cn&&cn,pn=L.isOpenedFromParent,an=void 0===pn?void 0:pn,un=L.onFocus,dn=void 0===un?null:un,mn=L.InputProps,hn=void 0===mn?null:mn,vn=L.classes,In=void 0===vn?{}:vn,fn=L.popupIcon;void 0===fn&&t(T,{theme:"filled",fill:"#BDBDBD",size:16});var bn=L.shouldResetInputOnAutocompleteChange,gn=e(L,B),Cn=r(""),jn=n(Cn,2),On=jn[0],Pn=jn[1],An=r(""),Sn=n(An,2),xn=Sn[0],yn=Sn[1],Fn=r(!1),Gn=n(Fn,2),Ln=Gn[0],Rn=Gn[1],kn=r(!1),Nn=n(kn,2),Dn=Nn[0],Tn=Nn[1],zn=c(),Mn=c(),wn=N({options:so,value:Q,groups:bo,selectedGroup:Zo,isPrioritizedSelectedOptions:ln}),Bn=wn.autocompleteOptions,En=wn.isGrouped,Hn=wn.handleAutocompleOptionsUpdate,Un=D(),Wn=In.popper,Kn=In.listbox,_n=In.popupIndicator,qn=In.popupIndicatorOpen,Vn=In.groupChip,Zn=e(In,E),Jn=V({popper:d(Un.popper,Wn),listbox:d(Un.listbox,Kn),popupIndicator:d(Un.popupIndicator,_n),popupIndicatorOpen:d(Un.popupIndicatorOpen,qn)},Zn),Qn=function(){Pn(""),null==Lo||Lo()},Xn=l(m((function(o){return yn(o)}),500),[]),Yn=function(o){var n=bo.find((function(n){return n.id===o}));ho||Qn(),ao(n)},$n=function(o){On.length||Io&&"ArrowLeft"===o.code&&o.stopPropagation()};p((function(){Ln&&(zn.current.focus(),zn.current.setSelectionRange(On.length,On.length))}));var oe=Io&&Array.isArray(Q)?Q.length:null,ne=Io&&(null==Bn?void 0:Bn.length)===oe,ee=Io&&!!oe&&!ne,te=function(){return Qn(),J.getOptionDisabled&&ne?$(null,[so[so.length-1]]):$(null,ne||ee?[]:Bn)};p((function(){Xn(On),no&&no(On)}),[On]);var ie=function(o,n){var e=o;"blur"===n&&(!e.relatedTarget||Mn.current.contains(e.relatedTarget))||(Yo(),Rn(!1))},se=function(){(null!=an?an:Ln)?(Rn(!1),Yo()):(Rn(!0),qo())},re=function(o){if(ne&&!Uo&&!Ko)return"All";var n=o[0].label||o[0].name||"";return 1===(null==o?void 0:o.length)?t("div",{children:t(M,{children:n})}):"".concat(null==o?void 0:o.length," Selected")},ce=h(Bn),le=a((function(){return{onOutsideClick:ie,isEmptyOptions:ce,loading:to,AllSelectComponent:!Uo&&Io&&!ce&&t(R,{className:Un.selectAllCheckbox,onClick:te,someSelected:ee,allSelected:ne}),RecentSearchesComponent:xo&&t(xo,{title:"Recent Searches",Icon:y,dataStorage:Fo,dataStorageKey:Ao,maxCount:Oo,isHidden:!h(On),onInputChange:function(o){return Pn(o)},inputValue:xn}),GroupsComponent:!Zo&&En&&Co&&t(Co,{onGroupClick:Yn,groups:bo})}}),[Zo,to,En,ce,On,Uo,Io,ce,xn,Yo,ie]),pe=a((function(){return function(o){var n=o.children,t=o.className,s=e(o,K);return i(G,V(V({},s),{},{className:t,inputRef:zn,ref:Mn,children:[n,nn]}))}}),[nn]),ae=a((function(){return function(o){var n=on.style,i=e(on,_);return t(b,V(V({},o),{},{style:V(V({},o.style),n),placement:"bottom-start"},i))}}),[on]);return t(k.Provider,{value:le,children:t(f,V(V({},v(gn,["InputProps","isNullable","isOpenedFromParent"])),{},{PopperComponent:ae,disableClearable:Y,onOpen:function(o){Hn(),Rn(!0),qo(o)},onClose:ie,open:null!=an?an:Ln,onChange:function(o,n){Io&&!bn||Pn(""),$(o,n)},forcePopupIcon:J.forcePopupIcon,fullWidth:!0,disabled:mo,value:Q,classes:Jn,renderInput:function(c){var l,p,a,m=r(!1),I=n(m,2),f=I[0],b=I[1],g=c.InputProps,C=c.inputProps,S=e(c,H),x=(null===(l=g.endAdornment)||void 0===l||null===(p=l.props)||void 0===p||null===(a=p.children)||void 0===a?void 0:a.length)>1?u(g.endAdornment,{children:g.endAdornment.props.children.slice(1),onMouseDown:function(o){return o.stopPropagation()},onMouseUp:function(o){return o.stopPropagation()}}):g.endAdornment,y=1===oe,F=f||Ln||On.length>0||!h(Q)||!h(null==hn?void 0:hn.startAdornment),G=hn||{},L=G.classes,R=(L=void 0===L?{}:L).input,k=void 0===R?"":R,N=e(L,U),D=G.style,T=e(G,W);return t(O,V(V(V({},S),v(Do,["endAdornment"])),{},{onBlur:function(){b(!1),y&&Tn(!0)},onFocus:function(){b(!0)},onKeyDown:$n,inputRef:zn,placeholder:lo,classes:{root:Un.searchInput},inputProps:V(V({style:{padding:5}},C),gn.inputProps),InputLabelProps:{shrink:F},InputProps:V(V(V({classes:V({input:d(Dn?Un.inputShrinked:y&&Un.inputExpanded,k)},N),style:V({paddingRight:0,paddingBottom:0},D)},g),T),{},{startAdornment:i(s,{children:[null==hn?void 0:hn.startAdornment,Zo&&t(j,{className:Un.selectedGroup,"data-not-migrated-muichip":!0,variant:"outlined",label:i("div",{className:Un.selectedGroupLabel,children:[Zo.name,t(z,{size:16,id:"removeGroupIcon",className:Un.removeIcon,onClick:Qo})]})},Zo.id),Io&&!h(Q)&&t("div",{onClick:se,id:"selectedOptions",className:d(Un.selectedLabel,Dn&&Un.selectedLabelExpanded),children:re(Q)})]}),endAdornment:i(s,{children:[i(P,{className:d(Un.endAdornment,o({},Un.removeIconWithDropdown,J.forcePopupIcon)),position:"end",children:[Do.endAdornment,to&&t(A,{color:"primary",size:20}),f&&On&&!Y&&t(w,{"data-testid":"".concat("AutocompleteSearch","_clear_icon"),size:"small",className:Un.iconButton,onClick:function(){Pn(""),Lo&&Lo()},tooltipProps:{title:"Clear"},children:t(z,{size:20,className:Un.closeIcon})})]}),J.forcePopupIcon&&x]})})}))},loading:to,options:Bn,renderGroup:function(o){var n=o.key,e=o.group,s=o.children;return!e||!h(Zo)&&Io?s:i("div",{className:Un.group,children:[t(g,{title:e,placement:"right",TransitionComponent:C,TransitionProps:{timeout:500},enterDelay:500,children:t(j,{"data-not-migrated-muichip":!0,className:d(Un.groupChip,Vn),variant:"outlined",label:e})}),s]},n)},disableCloseOnSelect:Io,multiple:Io,renderOption:Eo||function(o,n){var e=o.label,s=void 0===e?"":e,r=o.id;return Io?i("div",{className:d(Un.option,ro),"data-testid":"autocompleteOption_".concat(s,"MenuItem"),children:[t(x,{size:"small",disableRipple:!0,className:Un.checkbox,checked:n.selected}),t(M,{className:Un.optionLabelContainer,children:s})]},r):t(S,{className:Un.menuItem,value:r,"data-testid":"autocompleteOption_".concat(s,"MenuItem"),children:t(M,{className:Un.optionLabelContainer,children:s})},r)},groupBy:En?function(o){return o.group}:null,PaperComponent:pe,ListboxComponent:rn,inputValue:On,getOptionLabel:ko,getOptionDisabled:null==J?void 0:J.getOptionDisabled,onInputChange:function(o,n,e){Pn(ho?function(o){return"reset"===e?o:n}:n),wo(n,e)},loadingText:t("div",{className:Un.label,children:"Loading ..."}),noOptionsText:t("div",{className:Un.label,children:tn}),ListboxProps:zo,onFocus:function(){Tn(!1),null==dn||dn()}}))})};J.Groups=L;export{J as Search,J as default};
2
2
  //# sourceMappingURL=Search.js.map
@@ -1,4 +1,4 @@
1
1
  import { SelectProps } from './types';
2
- declare const Select: <T extends unknown>({ FormControlProps, InputLabelProps, label, formHelperText, error, fullWidth, ...SelectProps }: SelectProps<T>) => JSX.Element;
2
+ declare const Select: <T extends unknown>({ FormControlProps, InputLabelProps, label, formHelperText, error, fullWidth, onChange, ...SelectProps }: SelectProps<T>) => JSX.Element;
3
3
  export default Select;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA8KtC,QAAA,MAAM,MAAM,GAAI,CAAC,SAAS,OAAO,EAAE,gGAQhC,WAAW,CAAC,CAAC,CAAC,KAAG,GAAG,CAAC,OAmDvB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA8KtC,QAAA,MAAM,MAAM,GAAI,CAAC,SAAS,OAAO,EAAE,0GAShC,WAAW,CAAC,CAAC,CAAC,KAAG,GAAG,CAAC,OAoDvB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{useMemo as i}from"react";import{makeStyles as l,FormControl as n,InputLabel as a,Select as u,FormHelperText as p}from"@material-ui/core";import d from"uuid/v4";import c from"classnames";var s=["FormControlProps","InputLabelProps","label","formHelperText","error","fullWidth"];function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function b(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?m(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var M=l((function(e){return{formControlRoot:{"& .MuiSelect-icon":{top:"calc(50% - 8px)",right:4},"& .MuiSelect-icon.MuiSelect-iconOutlined":{right:8},"& .MuiSelect-icon.MuiSelect-iconFilled":{right:8},"&:hover":{"& .MuiFormLabel-root, & .MuiInputAdornment-root, & .MuiSelect-icon > svg > path":{color:e.palette.primary.contrastText},"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.contrastText,fill:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.main,fill:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:e.palette.primary.text6,"& svg":{height:16,width:16}},"&.Mui-error":{"& .MuiInputAdornment-root":{color:e.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}},paper:{marginTop:8}}})),f=function(l){var m,f,y,v,h,g,I=l.FormControlProps,x=void 0===I?{}:I,O=l.InputLabelProps,P=void 0===O?{}:O,S=l.label,F=void 0===S?null:S,j=l.formHelperText,k=void 0===j?null:j,C=l.error,L=void 0!==C&&C,T=l.fullWidth,B=void 0!==T&&T,w=t(l,s),A=i(d,[]),W=M();return r(n,b(b({},x),{},{classes:b(b({},x.classes),{},{root:c(null===(m=x.classes)||void 0===m?void 0:m.root,W.formControlRoot,e({},W.error,L))}),disabled:x.disabled||w.disabled,fullWidth:B,error:L,children:[F&&o(a,b(b({id:A},P),{},{children:F})),o(u,b(b({},w),{},{labelId:A,label:F,MenuProps:b(b({getContentAnchorEl:null,anchorOrigin:{horizontal:"left",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"left"}},null==w?void 0:w.MenuProps),{},{classes:b(b({},null==w||null===(f=w.MenuProps)||void 0===f?void 0:f.classes),{},{paper:c(W.paper,null==w||null===(y=w.MenuProps)||void 0===y||null===(v=y.classes)||void 0===v?void 0:v.paper),list:c(null==w||null===(h=w.MenuProps)||void 0===h||null===(g=h.classes)||void 0===g?void 0:g.list,W.menuList)})}),fullWidth:B})),k&&o(p,{children:k})]}))};export{f as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{useMemo as i}from"react";import{makeStyles as l,FormControl as n,InputLabel as a,Select as u,FormHelperText as p}from"@material-ui/core";import d from"uuid/v4";import c from"classnames";var s=["FormControlProps","InputLabelProps","label","formHelperText","error","fullWidth","onChange"];function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function b(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?m(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var M=l((function(e){return{formControlRoot:{"& .MuiSelect-icon":{top:"calc(50% - 8px)",right:4},"& .MuiSelect-icon.MuiSelect-iconOutlined":{right:8},"& .MuiSelect-icon.MuiSelect-iconFilled":{right:8},"&:hover":{"& .MuiFormLabel-root, & .MuiInputAdornment-root, & .MuiSelect-icon > svg > path":{color:e.palette.primary.contrastText},"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.contrastText,fill:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.main,fill:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:e.palette.primary.text6,"& svg":{height:16,width:16}},"&.Mui-error":{"& .MuiInputAdornment-root":{color:e.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}},paper:{marginTop:8}}})),f=function(l){var m,f,y,h,v,g,I=l.FormControlProps,x=void 0===I?{}:I,O=l.InputLabelProps,P=void 0===O?{}:O,S=l.label,C=void 0===S?null:S,F=l.formHelperText,j=void 0===F?null:F,k=l.error,L=void 0!==k&&k,T=l.fullWidth,B=void 0!==T&&T,w=l.onChange,A=t(l,s),W=i(d,[]),D=M();return r(n,b(b({},x),{},{classes:b(b({},x.classes),{},{root:c(null===(m=x.classes)||void 0===m?void 0:m.root,D.formControlRoot,e({},D.error,L))}),disabled:x.disabled||A.disabled,fullWidth:B,error:L,children:[C&&o(a,b(b({id:W},P),{},{children:C})),o(u,b(b({},A),{},{onChange:w,labelId:W,label:C,MenuProps:b(b({getContentAnchorEl:null,anchorOrigin:{horizontal:"left",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"left"}},null==A?void 0:A.MenuProps),{},{classes:b(b({},null==A||null===(f=A.MenuProps)||void 0===f?void 0:f.classes),{},{paper:c(D.paper,null==A||null===(y=A.MenuProps)||void 0===y||null===(h=y.classes)||void 0===h?void 0:h.paper),list:c(null==A||null===(v=A.MenuProps)||void 0===v||null===(g=v.classes)||void 0===g?void 0:g.list,D.menuList)})}),fullWidth:B})),j&&o(p,{children:j})]}))};export{f as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -7815,13 +7815,13 @@ var componentsV1Data = [
7815
7815
  },
7816
7816
  {
7817
7817
  name: "onInputChange",
7818
- type: "(event: ChangeEvent, value: string, action: 'input' | 'reset' | 'clear') => void",
7818
+ type: "(event: ChangeEvent<{}>, value: string, action: 'input' | 'reset' | 'clear') => void",
7819
7819
  required: false,
7820
7820
  description: ""
7821
7821
  },
7822
7822
  {
7823
7823
  name: "onChange",
7824
- type: "(event: ChangeEvent, value: object | string, reason: 'create-option' | 'select-option' | 'remove-option' | 'clear' | 'blur') => void",
7824
+ type: "(event: ChangeEvent<{}>, value: object | string, reason: 'create-option' | 'select-option' | 'remove-option' | 'clear' | 'blur') => void",
7825
7825
  required: false,
7826
7826
  description: ""
7827
7827
  },
@@ -7872,27 +7872,27 @@ var componentsV1Data = [
7872
7872
  {
7873
7873
  name: "Default",
7874
7874
  description: "",
7875
- code: "{\n const [value, setValue] = useState<Option>();\n return (\n <Autocomplete\n {...props}\n value={value}\n onChange={(e, newValue, ...rest) => {\n setValue(newValue as Option);\n props.onChange?.(e, newValue, ...rest);\n }}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option: Option) => option.name}\n renderOption={(option: Option) => option.name}\n />\n );\n}"
7875
+ code: "{\n const [value, setValue] = useState<Option>();\n return (\n <Autocomplete\n {...props}\n value={value}\n onChange={(e, newValue, ...rest) => {\n setValue(newValue as Option);\n props.onChange?.(e, newValue, ...rest);\n }}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option) => (option as Option).name}\n renderOption={(option) => (option as Option).name}\n />\n );\n}"
7876
7876
  },
7877
7877
  {
7878
7878
  name: "InputOptions",
7879
7879
  description: "Input-related options should be done through `renderInput` prop",
7880
- code: "{\n return (\n <Autocomplete\n value={null}\n options={Options}\n getOptionLabel={(option: Option) => option.name}\n renderOption={(option: Option) => option.name}\n renderInput={params => (\n <TextField {...params} label=\"Field Label\" placeholder=\"Field placeholder\" />\n )}\n />\n );\n}"
7880
+ code: "{\n return (\n <Autocomplete\n value={null}\n options={Options}\n getOptionLabel={(option) => (option as Option).name}\n renderOption={(option) => (option as Option).name}\n renderInput={params => (\n <TextField {...params} label=\"Field Label\" placeholder=\"Field placeholder\" />\n )}\n />\n );\n}"
7881
7881
  },
7882
7882
  {
7883
7883
  name: "Sizes",
7884
7884
  description: "Input size can be controlled through `size` prop.",
7885
- code: "{\n return (\n <SbRow>\n <Autocomplete\n value={Options[1]}\n size=\"small\"\n options={Options}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option: Option) => option.name}\n renderOption={(option: Option) => option.name}\n />\n <Autocomplete\n value={Options[1]}\n size=\"medium\"\n options={Options}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option: Option) => option.name}\n renderOption={(option: Option) => option.name}\n />\n </SbRow>\n );\n}"
7885
+ code: "{\n return (\n <SbRow>\n <Autocomplete\n value={Options[1]}\n size=\"small\"\n options={Options}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option) => (option as Option).name}\n renderOption={(option) => (option as Option).name}\n />\n <Autocomplete\n value={Options[1]}\n size=\"medium\"\n options={Options}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option) => (option as Option).name}\n renderOption={(option) => (option as Option).name}\n />\n </SbRow>\n );\n}"
7886
7886
  },
7887
7887
  {
7888
7888
  name: "LoadingState",
7889
7889
  description: "Use `loading` and `loadingText` props to show a custom message when some data is being loaded in the background",
7890
- code: "{\n return (\n <Autocomplete\n value={null}\n options={[]}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option: Option) => option.name}\n renderOption={(option: Option) => option.name}\n loading\n loadingText={\n <>\n Can't you see, I'm <u>loading</u>!\n </>\n }\n />\n );\n}"
7890
+ code: "{\n return (\n <Autocomplete\n value={null}\n options={[]}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option) => (option as Option).name}\n renderOption={(option) => (option as Option).name}\n loading\n loadingText={\n <>\n Can't you see, I'm <u>loading</u>!\n </>\n }\n />\n );\n}"
7891
7891
  },
7892
7892
  {
7893
7893
  name: "DisabledOptions",
7894
7894
  description: "Use `getOptionDisabled` prop to tell which options are disabled",
7895
- code: "{\n return (\n <Autocomplete\n value={null}\n options={Options}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option: Option) => option.name}\n renderOption={(option: Option) => option.name}\n getOptionDisabled={(option: Option) => option.id === '2'}\n />\n );\n}"
7895
+ code: "{\n return (\n <Autocomplete\n value={null}\n options={Options}\n renderInput={params => <TextField {...params} />}\n getOptionLabel={(option) => (option as Option).name}\n renderOption={(option) => (option as Option).name}\n getOptionDisabled={(option) => (option as Option).id === '2'}\n />\n );\n}"
7896
7896
  },
7897
7897
  {
7898
7898
  name: "Creatable",
@@ -9406,7 +9406,7 @@ var componentsV1Data = [
9406
9406
  {
9407
9407
  name: "Sizes",
9408
9408
  description: "Component takes all available height, and uses `resizeObserver` to automatically adjust own layout.\n\nBreakpoints: \\`${${...}}px\\` and \\`$${...}}px\\`",
9409
- code: "{\n const max = 500;\n const min = 100;\n const [height, setHeight] = useState(500);\n\n const onHeightChange = useCallback(\n (_: ChangeEvent, value: number | number[]) =>\n setHeight(value instanceof Array ? value[0] : value),\n []\n );\n\n return (\n <SbColumn>\n <div style={{ width: '200px' }}>\n Height: {height}px\n <Slider value={height} onChange={onHeightChange} min={min} max={max} />\n </div>\n\n <div style={{ height: `${max}px` }}>\n <div style={{ height: `${height}px` }}>\n <EmptyState\n image={EmptyState.IMAGES.FracFleetHasNoActivePad}\n title={EmptyState.APP_MESSAGES.fracFleetHasNoPad.title}\n subtitle={EmptyState.APP_MESSAGES.fracFleetHasNoPad.subtitle}\n />\n </div>\n </div>\n </SbColumn>\n );\n}"
9409
+ code: "{\n const max = 500;\n const min = 100;\n const [height, setHeight] = useState(500);\n\n const onHeightChange = useCallback(\n (_: ChangeEvent<{}>, value: number | number[]) =>\n setHeight(value instanceof Array ? value[0] : value),\n []\n );\n\n return (\n <SbColumn>\n <div style={{ width: '200px' }}>\n Height: {height}px\n <Slider value={height} onChange={onHeightChange} min={min} max={max} />\n </div>\n\n <div style={{ height: `${max}px` }}>\n <div style={{ height: `${height}px` }}>\n <EmptyState\n image={EmptyState.IMAGES.FracFleetHasNoActivePad}\n title={EmptyState.APP_MESSAGES.fracFleetHasNoPad.title}\n subtitle={EmptyState.APP_MESSAGES.fracFleetHasNoPad.subtitle}\n />\n </div>\n </div>\n </SbColumn>\n );\n}"
9410
9410
  }
9411
9411
  ],
9412
9412
  sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/components/EmptyState/EmptyState.tsx",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.49.0-4",
3
+ "version": "3.49.0-5",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "keywords": [
@@ -50,6 +50,6 @@ type PartialStory = {
50
50
  background?: Background;
51
51
  showCodeSource?: boolean;
52
52
  };
53
- export declare const mutateStory: (story: StoryFn, { name, description, fullWidth, background, showCodeSource }: PartialStory) => void;
53
+ export declare const mutateStory: (story: StoryFn<any>, { name, description, fullWidth, background, showCodeSource }: PartialStory) => void;
54
54
  export {};
55
55
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/storyBookHelpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,eAAO,MAAM,eAAe,GAC1B,WAAW;IAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,EACzD,iBAAiB;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE;;;;;kBAO5B,UAAU,QARd,GAAG,EAAE,KAAK,GAAG,CAQc;;;;kBAAvB,UAAU,QARd,GAAG,EAAE,KAAK,GAAG,CAQc;;;CAatD,CAAC;AAEF,KAAK,SAAS,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;IAAE,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,C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