@corva/ui 0.96.0-3 → 0.96.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.
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/cjs-bundle/components/Autocomplete/Autocomplete.js +1 -1
- package/cjs-bundle/components/Avatar/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Checkbox/index.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/Comment/CommentIcon/index.js +1 -1
- package/cjs-bundle/components/Comment/index.js +1 -1
- package/cjs-bundle/components/CommentInput/index.js +1 -1
- package/cjs-bundle/components/CommentsInfo/index.js +1 -1
- package/cjs-bundle/components/ContextMenuItem/index.js +1 -1
- package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/components/Counter/index.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/EmptyState/EmptyState.js +1 -1
- package/cjs-bundle/components/EmptyState/constants.js +1 -1
- package/cjs-bundle/components/EmptyState/utils.js +1 -1
- package/cjs-bundle/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
- package/cjs-bundle/components/EmptyView/EmptyView.js +1 -1
- package/cjs-bundle/components/FeedItem/components/AvatarIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/FileIcon.js +1 -1
- package/cjs-bundle/components/MenuItem/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
- package/cjs-bundle/components/SettingEditors/ColorEditor/style.css.js +1 -1
- package/cjs-bundle/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
- package/cjs-bundle/components/UserMention/index.js +1 -1
- package/cjs-bundle/components/index.js +1 -1
- package/cjs-bundle/permissions/constants/index.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/components/Autocomplete/Autocomplete.d.ts +41 -36
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.js +1 -1
- package/components/Autocomplete/Autocomplete.stories.d.ts +13 -0
- package/components/Autocomplete/Autocomplete.stories.d.ts.map +1 -0
- package/components/Avatar/Avatar.stories.d.ts +19 -0
- package/components/Avatar/Avatar.stories.d.ts.map +1 -0
- package/components/Avatar/index.d.ts +9 -101
- package/components/Avatar/index.d.ts.map +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -0
- package/components/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/components/Breadcrumbs/index.d.ts +11 -10
- package/components/Breadcrumbs/index.d.ts.map +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/Button/Button.stories.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Checkbox/Checkbox.stories.d.ts +10 -0
- package/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/components/Checkbox/index.d.ts +13 -11
- package/components/Checkbox/index.d.ts.map +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Chip/Chip.stories.d.ts +9 -0
- package/components/Chip/Chip.stories.d.ts.map +1 -0
- package/components/Chip/index.d.ts +9 -8
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ColorPicker/ColorPicker.stories.d.ts +8 -0
- package/components/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
- package/components/Comment/CommentIcon/CommentIcon.stories.d.ts +8 -0
- package/components/Comment/CommentIcon/CommentIcon.stories.d.ts.map +1 -0
- package/components/Comment/CommentIcon/index.d.ts +5 -20
- package/components/Comment/CommentIcon/index.d.ts.map +1 -1
- package/components/Comment/CommentIcon/index.js +1 -1
- package/components/Comment/index.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/CommentsInfo/index.js +1 -1
- package/components/ContextMenuItem/ContextMenuItem.stories.d.ts +10 -0
- package/components/ContextMenuItem/ContextMenuItem.stories.d.ts.map +1 -0
- package/components/ContextMenuItem/index.d.ts +11 -23
- package/components/ContextMenuItem/index.d.ts.map +1 -1
- package/components/ContextMenuItem/index.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.d.ts +23 -41
- package/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.stories.d.ts +8 -0
- package/components/CopyToClipboard/CopyToClipboard.stories.d.ts.map +1 -0
- package/components/Counter/Counter.stories.d.ts +10 -0
- package/components/Counter/Counter.stories.d.ts.map +1 -0
- package/components/Counter/index.d.ts +11 -33
- package/components/Counter/index.d.ts.map +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/DatePicker.stories.d.ts +8 -0
- package/components/DatePicker/DatePicker.stories.d.ts.map +1 -0
- package/components/DateTimePicker/DateTimePicker.stories.d.ts +8 -0
- package/components/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -0
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts +4 -4
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts.map +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.stories.d.ts +9 -0
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.stories.d.ts.map +1 -0
- package/components/DevCenter/AppHeader/AppHeader.stories.d.ts +15 -0
- package/components/DevCenter/AppHeader/AppHeader.stories.d.ts.map +1 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +10 -7
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.stories.d.ts +8 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.stories.d.ts.map +1 -0
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/EmptyState/EmptyState.d.ts +18 -55
- package/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/components/EmptyState/EmptyState.js +1 -1
- package/components/EmptyState/EmptyState.stories.d.ts +11 -0
- package/components/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/components/EmptyState/constants.d.ts +7 -38
- package/components/EmptyState/constants.d.ts.map +1 -1
- package/components/EmptyState/constants.js +1 -1
- package/components/EmptyState/images/index.d.ts.map +1 -1
- package/components/EmptyState/utils.d.ts +1 -1
- package/components/EmptyState/utils.d.ts.map +1 -1
- package/components/EmptyState/utils.js +1 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts +24 -81
- package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts.map +1 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.stories.d.ts +11 -0
- package/components/EmptyView/EmptyAppView/EmptyAppView.stories.d.ts.map +1 -0
- package/components/EmptyView/EmptyView.d.ts +16 -30
- package/components/EmptyView/EmptyView.d.ts.map +1 -1
- package/components/EmptyView/EmptyView.js +1 -1
- package/components/EmptyView/EmptyView.stories.d.ts +8 -0
- package/components/EmptyView/EmptyView.stories.d.ts.map +1 -0
- package/components/FeedItem/components/AvatarIcon.js +1 -1
- package/components/FileIcon/FileIcon.d.ts +4 -3
- package/components/FileIcon/FileIcon.d.ts.map +1 -1
- package/components/FileIcon/FileIcon.js +1 -1
- package/components/FileIcon/FileIcon.stories.d.ts +8 -981
- package/components/FileIcon/FileIcon.stories.d.ts.map +1 -1
- package/components/MenuItem/MenuItem.stories.d.ts +10 -0
- package/components/MenuItem/MenuItem.stories.d.ts.map +1 -0
- package/components/MenuItem/index.d.ts +15 -1
- package/components/MenuItem/index.d.ts.map +1 -1
- package/components/MenuItem/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/SettingEditors/ColorEditor/ColorEditor.stories.d.ts +9 -0
- package/components/SettingEditors/ColorEditor/ColorEditor.stories.d.ts.map +1 -0
- package/components/SettingEditors/ColorEditor/index.d.ts +18 -89
- package/components/SettingEditors/ColorEditor/index.d.ts.map +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/SettingEditors/ColorEditor/style.css.js +1 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
- package/components/UserMention/index.js +1 -1
- package/components/index.js +1 -1
- package/package.json +1 -1
- package/permissions/constants/index.d.ts +0 -3
- package/permissions/constants/index.d.ts.map +1 -1
- package/permissions/constants/index.js +1 -1
- package/storyBookHelpers/components.d.ts +3 -2
- package/storyBookHelpers/components.d.ts.map +1 -1
- package/storyBookHelpers/index.d.ts +1 -0
- package/storyBookHelpers/index.d.ts.map +1 -1
- package/storyBookHelpers/types.d.ts +6 -0
- package/storyBookHelpers/types.d.ts.map +1 -0
- package/storyBookHelpers/utils.d.ts +9 -4
- package/storyBookHelpers/utils.d.ts.map +1 -1
package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{memo as o,useState as a,useRef as i}from"react";import{number as s,shape as p,string as m}from"prop-types";import c from"classnames";import{flowRight as d,get as l}from"lodash";import u from"moment";import{withStyles as f}from"@material-ui/core/styles";import{Fade as h,Paper as v,Typography as y}from"@material-ui/core";import{useAnnotationsDispatch as A}from"../../../../AnnotationsContext.js";import{ADD_ANNOTATION as b}from"../../../../constants.js";import C from"../AnnotationInput/index.js";import I from"./style.css.js";import j
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{memo as o,useState as a,useRef as i}from"react";import{number as s,shape as p,string as m}from"prop-types";import c from"classnames";import{flowRight as d,get as l}from"lodash";import u from"moment";import{withStyles as f}from"@material-ui/core/styles";import{Fade as h,Paper as v,Typography as y}from"@material-ui/core";import{useAnnotationsDispatch as A}from"../../../../AnnotationsContext.js";import{ADD_ANNOTATION as b}from"../../../../constants.js";import C from"../AnnotationInput/index.js";import I from"./style.css.js";import{AvatarComponent as j}from"../../../../../Avatar/index.js";import x from"../../../../../../effects/useOutsideClick.js";import"../../../../../../utils/index.js";import{postAnnotation as _}from"../../../../../../clients/jsonApi/index.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as R}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import{jsxs as g,jsx as P}from"react/jsx-runtime";import{showSuccessNotification as T,showErrorNotification as U}from"../../../../../../utils/notificationToasts.js";var k=function(o){var s,p=o.appId,m=o.assetId,d=o.assetCompanyId,f=o.appSettings,R=o.currentUser,k=o.classes,q=o.location,D=o.dashboardType,N=A(),F=a(!1),L=r(F,2),w=L[0],S=L[1],O=i(null);x(O,(function(){S(!1)}));var z,E=(z=e(n.mark((function t(e,r,o){var a,i,s,c;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={app_id:p,asset_id:m,body:e,active_until:r,attachment:{file_name:o&&o.attachmentName,s3_link:o&&o.attachmentUrl},settings:f},i={},D&&(i.dashboard_type=D),(s=l(q,"query.time"))&&(a.data_timestamp=u(s).format()),t.next=8,_(a,i);case 8:c=t.sent,N({type:b,annotation:c}),t.next=17;break;case 12:return t.prev=12,t.t0=t.catch(0),U("Error during annotation creation"),console.error(t.t0),t.abrupt("return");case 17:T("Annotation has been added"),S(!1);case 19:case"end":return t.stop()}}),t,null,[[0,12]])}))),function(t,e,r){return z.apply(this,arguments)});return g("div",{className:I.cAddAnnotationFormInput,children:[P(j,{displayName:"".concat(R.first_name," ").concat(R.last_name),imgSrc:R.profile_photo,size:36}),g("div",{className:c(I.cAddAnnotationFormInputPaper,(s={},t(s,I.cAddAnnotationFormInputPaperOpened,w),t(s,I.cAddAnnotationFormInputPaperClosed,!w),s)),children:[P(h,{in:!w,timeout:500,children:P(v,{className:I.cAddAnnotationFormInputPaperLabel,children:P(y,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:k.inputLabel,onClick:function(){return S(!0)},children:"Type annotation here"})})}),P(h,{in:w,timeout:100,children:P("div",{className:I.cAddAnnotationFormInputPaperAddAnnotation,children:w&&P(C,{onSend:E,assetCompanyId:d,currentUser:R})})})]})]})};k.propTypes={appId:s.isRequired,assetId:s.isRequired,assetCompanyId:s.isRequired,appSettings:p().isRequired,currentUser:p({}),classes:p().isRequired,location:p().isRequired,dashboardType:m},k.defaultProps={currentUser:{},dashboardType:null};var q=d([f((function(t){return{inputLabel:{color:t.palette.grey[700],fontWeight:200,width:"100%"}}})),R])(o(k));export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import i from"@babel/runtime/regenerator";import{useState as r}from"react";import a from"classnames";import{shape as o,number as s,string as c,oneOf as m,node as d,func as l,arrayOf as u}from"prop-types";import{withStyles as p}from"@material-ui/core/styles";import{flowRight as h}from"lodash";import f,{isWidthUp as v}from"@material-ui/core/withWidth";import C from"moment";import{Paper as b,Typography as _,Divider as A,IconButton as y,Menu as g,MenuItem as R}from"@material-ui/core";import q from"@material-ui/core/colors/grey";import N from"@material-ui/icons/MoreVert";import x from"../AnnotationComments/index.js";import{useAnnotationsDispatch as M}from"../../../../AnnotationsContext.js";import{DELETE_ANNOTATION as I,EDIT_ANNOTATION as j}from"../../../../constants.js";import T from"../AnnotationInput/index.js";import k from"./style.css.js";import w
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import i from"@babel/runtime/regenerator";import{useState as r}from"react";import a from"classnames";import{shape as o,number as s,string as c,oneOf as m,node as d,func as l,arrayOf as u}from"prop-types";import{withStyles as p}from"@material-ui/core/styles";import{flowRight as h}from"lodash";import f,{isWidthUp as v}from"@material-ui/core/withWidth";import C from"moment";import{Paper as b,Typography as _,Divider as A,IconButton as y,Menu as g,MenuItem as R}from"@material-ui/core";import q from"@material-ui/core/colors/grey";import N from"@material-ui/icons/MoreVert";import x from"../AnnotationComments/index.js";import{useAnnotationsDispatch as M}from"../../../../AnnotationsContext.js";import{DELETE_ANNOTATION as I,EDIT_ANNOTATION as j}from"../../../../constants.js";import T from"../AnnotationInput/index.js";import k from"./style.css.js";import{AvatarComponent as w}from"../../../../../Avatar/index.js";import D from"../../../../../UserCardPopover.js";import U from"../../../../../ConfirmationDialog.js";import E from"../../../../../CommentsInfo/index.js";import{formatMentionText as S}from"../../../../../UserMention/utils/index.js";import O from"../../../../../Attachment/index.js";import{isNativeDetected as z}from"../../../../../../utils/mobileDetect.js";import{deleteAnnotation as B,patchAnnotation as P}from"../../../../../../clients/jsonApi/index.js";import{jsxs as L,jsx as W,Fragment as Y}from"react/jsx-runtime";var G="AppAnnotationItemPo",H=function(e){var t=e.user,n=e.currentUser,i=e.classes;return W("div",{className:k.cAnnotationUserAvatar,children:z?W(w,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:38,className:i.avatar}):W(D,{user:t,currentUser:n,children:W(w,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:38,className:i.avatar})})})},V=function(e){var t=e.actionsMenuAnchorEl,n=e.handleToggleActionsMenu,i=e.classes,r=e.handleEdit,a=e.handleDelete;return L(Y,{children:[W(y,{"data-testid":"".concat(G,"_menuButton"),"aria-label":"Actions","aria-owns":t?k.cAnnotationContainerActionsMenu:void 0,"aria-haspopup":"true",className:i.iconButtonRoot,onClick:n,children:W(N,{htmlColor:q[400]})}),L(g,{id:"cAnnotationContainerActionsMenu",anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:t,open:!!t,onClick:n,children:[W(R,{"data-testid":"".concat(G,"_editMenuItem"),onClick:r,children:"Edit"}),W(R,{"data-testid":"".concat(G,"_deleteMenuItem"),onClick:a,children:"Delete"})]})]})},F=function(o){var s,c,m=o.included,d=o.annotation,l=o.assetCompanyId,u=o.classes,p=o.showSuccessNotification,h=o.width,f=r(!1),y=n(f,2),g=y[0],R=y[1],q=r(null),N=n(q,2),w=N[0],D=N[1],F=r(!1),J=n(F,2),K=J[0],Q=J[1],X=r(!1),Z=n(X,2),$=Z[0],ee=Z[1],te=!v("sm",h),ne=d.attributes.comments_count||0,ie=r(ne),re=n(ie,2),ae=re[0],oe=re[1],se=M(),ce=d.relationships.comment_users.data.reduce((function(e,t){var n=t.id,i=m.find((function(e){return e.id===n}));return i&&e.push(i.attributes),e}),[]),me=ce.map((function(e){var t=e.last_name,n=e.first_name;return"".concat(n," ").concat(t)})),de=(s=t(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,B(d.id);case 3:e.sent&&(se({type:I,id:d.id}),p("Annotation has been deleted")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(){return s.apply(this,arguments)}),le=(c=t(i.mark((function e(t,n,r){var a,o;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a={body:t,active_until:n,attachment:{file_name:r&&r.attachmentName,signed_url:r&&r.attachmentUrl}},e.next=4,P(d.id,a);case 4:o=e.sent,se({type:j,annotation:o,id:d.id}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 12:p("Annotation has been changed"),Q(!1);case 14:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t,n){return c.apply(this,arguments)}),ue=d.relationships.user.data.id,pe=m.find((function(e){var t=e.type,n=e.id;return"user"===t&&n===ue})),he=pe.attributes,fe=d.attributes.attachment;return L(b,{className:u.container,elevation:0,children:[L("div",{"data-testid":"".concat(G,"_annotation_").concat(d.attributes.body),className:k.cAnnotationContainer,children:[W(H,{user:he,classes:u,isNative:z,currentUser:pe}),L("div",{className:k.cAnnotationContainerTop,children:[L("div",{className:k.cAnnotationContainerTopMainInfo,children:[W(_,{variant:"body2","data-testid":"".concat(G,"_userName"),children:"".concat(he.first_name," ").concat(he.last_name)}),W(_,{"data-testid":"".concat(G,"_addDate"),variant:"caption",className:u.createdAt,children:C(d.attributes.created_at).format("MM/DD/YY H:mm")})]}),W("div",{className:a(k.cAnnotationContainerTopMenu,e({},k.cAnnotationContainerTopMenuSmall,te)),children:W(V,{actionsMenuAnchorEl:w,handleToggleActionsMenu:function(e){var t=e.currentTarget;D(w?null:t)},handleEdit:function(){return Q(!0)},handleDelete:function(){return ee(!0)},classes:u})})]}),W(A,{className:u.headerDividerRoot}),W("div",{"data-testid":"".concat(G,"_message"),className:k.cAnnotationContainerContent,children:K?W(T,{initialText:d.attributes.body,assetCompanyId:l,initialPeriod:d.attributes.created_at,initialAttachment:fe,onSend:le,onClose:function(){return Q(!1)},closeOnEsc:!0}):L(Y,{children:[S(d.attributes.body,d.relationships.mentioned_users.data,z,null,pe),fe&&fe.signed_url&&W(O,{attachmentUrl:fe.signed_url,fileName:fe.file_name,size:"small"})]})})]}),L("div",{"data-testid":"".concat(G,"_comments_").concat(d.attributes.body),className:k.cAnnotationComments,children:[L("div",{className:k.cAnnotationCommentsInfo,children:[W(_,{"data-testid":"".concat(G,"_commentButton"),variant:"caption",color:"primary",className:u.link,onClick:function(){return R(!0)},children:"Comment"}),W(E,{commentsCount:ae,usersWhoCommented:me,activeUsersList:ce,currentUser:pe,small:!0})]}),W(x,{annotationId:d.id,commentInputIsOpen:g,setCommentInputIsOpen:R,commentsCount:ae,initialCommentsCount:ne,assetCompanyId:l,setCommentsCount:oe,currentUser:pe})]}),$&&W(U,{open:$,text:"Do you really want to delete annotation?",handleClose:function(){return ee(!1)},handleOk:de,okText:"Delete"})]})};H.propTypes={user:o({id:s.isRequired,first_name:c.isRequired,last_name:c.isRequired,profile_photo:c.isRequired}).isRequired,currentUser:o({}).isRequired,classes:o({}).isRequired},V.propTypes={actionsMenuAnchorEl:m([d,null]).isRequired,handleToggleActionsMenu:l.isRequired,classes:o({}).isRequired,handleDelete:l.isRequired,handleEdit:l.isRequired},F.propTypes={included:u(o({})).isRequired,annotation:o({relationships:o({user:o({data:o({id:c.isRequired}).isRequired}).isRequired,mentioned_users:o({data:u(o({})).isRequired}).isRequired}).isRequired,attributes:o({body:c.isRequired,created_at:c.isRequired})}).isRequired,classes:o({}).isRequired,showSuccessNotification:l,width:c.isRequired,assetCompanyId:s.isRequired},F.defaultProps={showSuccessNotification:function(){}};var J=h([p((function(e){return{container:{backgroundColor:"#3b3b3be6",marginBottom:16,marginLeft:26},headerDividerRoot:{margin:"10px 0"},createdAt:{color:e.palette.grey[700],marginLeft:5},link:{cursor:"pointer"},iconButtonRoot:{height:24,width:24,padding:0,margin:"0 -10px 0 5px"}}})),f()])(F);export{J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/regenerator";import{memo as i,useMemo as a}from"react";import{number as n,shape as s,arrayOf as o,string as c,bool as m,func as u}from"prop-types";import d from"classnames";import{flowRight as l}from"lodash";import{withStyles as p}from"@material-ui/core/styles";import f,{isWidthUp as h}from"@material-ui/core/withWidth";import v from"@material-ui/core/Paper";import b from"@material-ui/core/Typography";import y from"@material-ui/icons/Comment";import N from"@material-ui/icons/Close";import{closeLastAnnotation as A}from"../../../../clients/jsonApi/index.js";import R from"./style.css.js";import g from"../../../UserCardPopover.js";import x
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/regenerator";import{memo as i,useMemo as a}from"react";import{number as n,shape as s,arrayOf as o,string as c,bool as m,func as u}from"prop-types";import d from"classnames";import{flowRight as l}from"lodash";import{withStyles as p}from"@material-ui/core/styles";import f,{isWidthUp as h}from"@material-ui/core/withWidth";import v from"@material-ui/core/Paper";import b from"@material-ui/core/Typography";import y from"@material-ui/icons/Comment";import N from"@material-ui/icons/Close";import{closeLastAnnotation as A}from"../../../../clients/jsonApi/index.js";import R from"./style.css.js";import g from"../../../UserCardPopover.js";import{AvatarComponent as x}from"../../../Avatar/index.js";import{formatMentionText as q}from"../../../UserMention/utils/index.js";import{isNativeDetected as _}from"../../../../utils/mobileDetect.js";import{jsxs as U,jsx as C}from"react/jsx-runtime";var j="lastAnnotation",L=function(e){var t=e.user,r=e.currentUser,i=e.isNative,a=e.className,n=e.size,s=C(x,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:n,className:a});return i?s:C(g,{user:t,currentUser:r,children:s})},T=function(e){var r=e.commentsCount,i=e.commentUsers,a=e.isSmallScreen,n=e.isNative,s=e.currentUser,o=e.classes;return r?U("div",{className:R.cTopAnnotationAdditionalReactions,children:[C(y,{className:o.commentIcon}),!a&&U(b,{variant:"body2","data-testid":"".concat(j,"_comments"),noWrap:!0,className:o.commentText,component:"div",children:["Comments ",r]}),C("div",{className:R.cTopAnnotationAdditionalReactionsList,children:i.map((function(e,r){var i=e.attributes;return C(L,{user:i,currentUser:s,isNative:n,className:d(o.avatar,t({},o.avatarInList,0!==r)),size:25},i.id)}))})]}):null},w=function(t){var i,n=t.isNative,s=t.appId,o=t.annotation,c=t.openAnnotationsList,m=t.currentUser,u=t.updateCurrentDashboardAppLastAnnotation,d=t.width,l=t.classes,p=o.data,f=o.included,y=f.find((function(e){var t=e.id,r=e.type;return t===p.relationships.user.data.id&&"user"===r})),g=a((function(){return p.relationships.mentioned_users.data.map((function(e){var t=e.id;return f.find((function(e){return e.id===t}))}))}),[p.relationships.mentioned_users.data,f]),x=a((function(){return p.relationships.comment_users.data.map((function(e){var t=e.id;return f.find((function(e){return e.id===t}))}))}),[p.relationships.comment_users.data,f]),_=!h("sm",d),w=(i=e(r.mark((function e(t){var i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),e.prev=1,e.next=4,A(p.id);case 4:i=e.sent,u(p.id,s,i),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),function(e){return i.apply(this,arguments)});return U(v,{"data-testid":"".concat(j,"_lastAnnotation"),className:l.container,onClick:c,children:[U("div",{className:R.cTopAnnotationMain,children:[C(L,{user:y.attributes,currentUser:m,isNative:n,className:l.avatar,size:38}),C(b,{variant:"body2","data-testid":"".concat(j,"_message"),noWrap:!0,className:l.body,children:q(p.attributes.body,g,n,null,m)})]}),U("div",{className:R.cTopAnnotationAdditional,children:[C(T,{commentsCount:p.attributes.comments_count,commentUsers:x,classes:l,isSmallScreen:_,currentUser:m}),C(N,{"data-testid":"".concat(j,"_closeButton"),fontSize:"small",className:l.closeButton,onClick:w})]})]})};w.propTypes={appId:n.isRequired,annotation:s({included:o(s({})).isRequired,data:s({relationships:s({user:s({data:s({id:c.isRequired}).isRequired}).isRequired,mentioned_users:s({data:o(s()).isRequired}).isRequired}).isRequired,attributes:s({body:c.isRequired,created_at:c.isRequired})}).isRequired}).isRequired,classes:s({}).isRequired,isNative:m,width:c.isRequired,openAnnotationsList:u.isRequired,updateCurrentDashboardAppLastAnnotation:u,currentUser:s({})},w.defaultProps={isNative:_,updateCurrentDashboardAppLastAnnotation:function(){},currentUser:{}};var I=l([p((function(e){return{container:{height:56,margin:"10px 0",padding:"0 20px",display:"flex",alignItems:"center",justifyContent:"space-between",flex:"auto 1",width:"100%",cursor:"pointer"},body:{margin:"0 16px ",minWidth:100},avatar:{border:"1px solid #909090"},commentIcon:{marginRight:16,color:e.palette.grey[500]},commentText:{marginRight:16,color:e.palette.grey[500]},closeButton:{color:e.palette.grey[500]},avatarInList:{marginLeft:-4}}})),f()])(i(w));export{I as default};
|
|
@@ -1,38 +1,43 @@
|
|
|
1
|
+
import { ChangeEvent, ReactNode } from 'react';
|
|
2
|
+
import { AutocompleteProps as MuiAutocompleteProps } from '@material-ui/lab/Autocomplete';
|
|
3
|
+
declare type AutocompleteProps = {
|
|
4
|
+
options: (object | string)[];
|
|
5
|
+
/**
|
|
6
|
+
* Renders input
|
|
7
|
+
*/
|
|
8
|
+
renderInput: (params: any) => ReactNode;
|
|
9
|
+
value?: object | string;
|
|
10
|
+
size?: MuiAutocompleteProps<any, any, any, any>['size'];
|
|
11
|
+
/**
|
|
12
|
+
* Works only with strings as `options`. If `true`, `onChange` has the following signature:<br/>
|
|
13
|
+
* ```
|
|
14
|
+
* (value: string, wasCreated: boolean) => void;
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
isCreatable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Used for searching the options list by default
|
|
20
|
+
*/
|
|
21
|
+
getOptionLabel: (option: object | string) => string;
|
|
22
|
+
/**
|
|
23
|
+
* Required when working with objects as `options`.
|
|
24
|
+
*/
|
|
25
|
+
renderOption?: (option: object | string, params: {
|
|
26
|
+
selected: boolean;
|
|
27
|
+
inputValue: string;
|
|
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;
|
|
31
|
+
classes?: Record<string, string>;
|
|
32
|
+
className?: string;
|
|
33
|
+
loading?: boolean;
|
|
34
|
+
loadingText?: ReactNode;
|
|
35
|
+
getOptionDisabled?: (option: object | string) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* If `true` - prevents Autocomplete from closing on select
|
|
38
|
+
*/
|
|
39
|
+
disableCloseOnSelect?: boolean;
|
|
40
|
+
};
|
|
41
|
+
declare const Autocomplete: ({ isCreatable, options: inputOptions, value: inputValue, getOptionLabel, onInputChange, onChange, renderOption, classes: customClasses, ...restProps }: AutocompleteProps) => JSX.Element;
|
|
1
42
|
export default Autocomplete;
|
|
2
|
-
declare function Autocomplete({ isCreatable, options: inputOptions, value: inputValue, getOptionLabel, onInputChange, onChange, renderOption, classes: customClasses, ...restProps }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
isCreatable: any;
|
|
5
|
-
options: any;
|
|
6
|
-
value: any;
|
|
7
|
-
getOptionLabel: any;
|
|
8
|
-
onInputChange: any;
|
|
9
|
-
onChange: any;
|
|
10
|
-
renderOption: any;
|
|
11
|
-
classes: any;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
declare namespace Autocomplete {
|
|
14
|
-
namespace propTypes {
|
|
15
|
-
const value: PropTypes.Validator<NonNullable<NonNullable<PropTypes.InferProps<{}>>>>;
|
|
16
|
-
const options: PropTypes.Validator<NonNullable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>>;
|
|
17
|
-
const isCreatable: PropTypes.Requireable<boolean>;
|
|
18
|
-
const getOptionLabel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
const onInputChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
const renderOption: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
-
const classes: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
23
|
-
}
|
|
24
|
-
namespace defaultProps {
|
|
25
|
-
const isCreatable_1: boolean;
|
|
26
|
-
export { isCreatable_1 as isCreatable };
|
|
27
|
-
export { noop as onChange };
|
|
28
|
-
export { identity as getOptionLabel };
|
|
29
|
-
export { noop as onInputChange };
|
|
30
|
-
export { identity as renderOption };
|
|
31
|
-
const classes_1: {};
|
|
32
|
-
export { classes_1 as classes };
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
import PropTypes from "prop-types";
|
|
36
|
-
import { noop } from "lodash/common/util";
|
|
37
|
-
import { identity } from "lodash/common/util";
|
|
38
43
|
//# sourceMappingURL=Autocomplete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.
|
|
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;AAsCvC,aAAK,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,EAAE,MAAM,GAAG,MAAM,EACvB,MAAM,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAC9C,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,KAAK,IAAI,CAAC;IACjG,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,EAAE,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,OAAO,GAAG,MAAM,KAC3E,IAAI,CAAC;IACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC;IACzD;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,YAAY,2JAUf,iBAAiB,gBAoFnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{__rest as o,__assign as e,__spreadArray as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import{useMemo as r,useState as i,useEffect as l}from"react";import a from"classnames";import{get as p,noop as u}from"lodash";import{makeStyles as c}from"@material-ui/core";import s from"@material-ui/lab/Autocomplete";import f from"@material-ui/icons/Close";import{Tooltip as m}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";var d=function(o){return p(p(o.split('Create "'),"1","").split('"'),"0","")},h=c((function(o){return{root:{width:200},paper:{maxHeight:400,boxShadow:"0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%)",margin:0},createLabel:{fontSize:"16px",lineHeight:"22.5px",color:o.palette.primary.main},openIcon:{marginLeft:5},option:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},closeIcon:{width:16,height:16}}})),x=function(p){var c=p.isCreatable,x=p.options,g=p.value,v=p.getOptionLabel,b=p.onInputChange,C=p.onChange,I=void 0===C?u:C,w=p.renderOption,L=p.classes,O=o(p,["isCreatable","options","value","getOptionLabel","onInputChange","onChange","renderOption","classes"]),S=h(),j=r((function(){return null==x?void 0:x.map((function(o){return c?v(o):o}))}),[x]),T=r((function(){return c?v(g)||"":g}),[g]),H=i(j),N=H[0],y=H[1],z=i(null),A=z[0],_=z[1];l((function(){y(j)}),[j]);return t(s,e({value:T,onChange:c?function(o,e){return function(o){if((null==o?void 0:o.includes('Create "'))&&v(o)===v(A)){_(null);var e=d(A);y(n(n([],j,!0),[e],!1)),I(e,!0)}else I(o,!1)}(e)}:I,onInputChange:c?function(o,e){return function(o){if(""===o)_(null),y(j);else if(j.find((function(e){return e===o}))){var e=j.filter((function(o){return!o.includes('Create "')}));y(e)}else{var t=function(o){return'Create "'.concat(o,'"')}(o);_(t),y(n(n([],j,!0),[t],!1))}}(e)}:b,options:N,getOptionLabel:c?function(o){return String(o)}:v,renderOption:c?function(o){var n,r=d(o);return t(m,e({title:o},{children:t("div",e({className:a((n={},n[S.createLabel]=r&&o!==r,n),S.option,null==L?void 0:L.optionLabelClass)},{children:o}))}))}:w,classes:e({root:a(S.root,null==L?void 0:L.root),paper:a(S.paper,null==L?void 0:L.paper),popupIndicator:S.openIcon},L),closeIcon:(T||A)&&t(f,{className:S.closeIcon})},O))};export{x as default};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import Autocomplete from './Autocomplete';
|
|
4
|
+
declare type Props = ComponentProps<typeof Autocomplete>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const InputOptions: () => JSX.Element;
|
|
9
|
+
export declare const Sizes: () => JSX.Element;
|
|
10
|
+
export declare const LoadingState: () => JSX.Element;
|
|
11
|
+
export declare const DisabledOptions: () => JSX.Element;
|
|
12
|
+
export declare const Creatable: () => JSX.Element;
|
|
13
|
+
//# sourceMappingURL=Autocomplete.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAyDF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAenC,CAAC;AAKF,eAAO,MAAM,YAAY,mBAYxB,CAAC;AAMF,eAAO,MAAM,KAAK,mBAqBjB,CAAC;AAGF,eAAO,MAAM,YAAY,mBAgBxB,CAAC;AAMF,eAAO,MAAM,eAAe,mBAW3B,CAAC;AAKF,eAAO,MAAM,SAAS,mBAsBrB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Avatar from '~/components/Avatar';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
declare type Props = ComponentProps<typeof Avatar>;
|
|
4
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: ({ className, imgSrc, alt, displayName, showTooltip, size, "data-testid": dataTestId, }: {
|
|
8
|
+
displayName: string;
|
|
9
|
+
showTooltip?: boolean;
|
|
10
|
+
size?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
imgSrc?: string;
|
|
13
|
+
alt?: string;
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
export declare const TextSize: () => JSX.Element;
|
|
19
|
+
//# sourceMappingURL=Avatar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,OAAO,CAAC;AAErC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA0B,CAAC;AAE/D,QAAA,MAAM,IAAI;;;;;;;;;;;CAGT,CAAC;AAOF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,QAAQ,mBAYpB,CAAC"}
|
|
@@ -1,105 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const AvatarComponent: {
|
|
5
|
-
({ displayName, showTooltip, size, className, imgSrc, alt, classes, "data-testid": dataTestId, }: AvatarComponentProps): JSX.Element;
|
|
6
|
-
propTypes: {
|
|
7
|
-
displayName: PropTypes.Requireable<string>;
|
|
8
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
9
|
-
size: PropTypes.Requireable<number>;
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
imgSrc: PropTypes.Requireable<string>;
|
|
12
|
-
alt: PropTypes.Requireable<string>;
|
|
13
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
14
|
-
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
15
|
-
avatar: PropTypes.Requireable<string>;
|
|
16
|
-
}>>>;
|
|
17
|
-
};
|
|
18
|
-
defaultProps: {
|
|
19
|
-
displayName: string;
|
|
20
|
-
showTooltip: boolean;
|
|
21
|
-
size: number;
|
|
22
|
-
className: any;
|
|
23
|
-
imgSrc: any;
|
|
24
|
-
alt: any;
|
|
25
|
-
'data-testid': string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
declare const avatarComponentPropTypes: {
|
|
29
|
-
displayName: PropTypes.Requireable<string>;
|
|
30
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
31
|
-
size: PropTypes.Requireable<number>;
|
|
32
|
-
className: PropTypes.Requireable<string>;
|
|
33
|
-
imgSrc: PropTypes.Requireable<string>;
|
|
34
|
-
alt: PropTypes.Requireable<string>;
|
|
35
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
36
|
-
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
37
|
-
avatar: PropTypes.Requireable<string>;
|
|
38
|
-
}>>>;
|
|
39
|
-
};
|
|
40
|
-
declare const _default: import("react").ComponentType<Pick<Pick<Pick<PropTypes.InferPropsInner<Pick<{
|
|
41
|
-
displayName: PropTypes.Requireable<string>;
|
|
42
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
43
|
-
size: PropTypes.Requireable<number>;
|
|
44
|
-
className: PropTypes.Requireable<string>;
|
|
45
|
-
imgSrc: PropTypes.Requireable<string>;
|
|
46
|
-
alt: PropTypes.Requireable<string>;
|
|
47
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
48
|
-
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
49
|
-
avatar: PropTypes.Requireable<string>;
|
|
50
|
-
}>>>;
|
|
51
|
-
}, never>> & Partial<PropTypes.InferPropsInner<Pick<{
|
|
52
|
-
displayName: PropTypes.Requireable<string>;
|
|
53
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
54
|
-
size: PropTypes.Requireable<number>;
|
|
55
|
-
className: PropTypes.Requireable<string>;
|
|
56
|
-
imgSrc: PropTypes.Requireable<string>;
|
|
57
|
-
alt: PropTypes.Requireable<string>;
|
|
58
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
59
|
-
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
60
|
-
avatar: PropTypes.Requireable<string>;
|
|
61
|
-
}>>>;
|
|
62
|
-
}, "className" | "data-testid" | "displayName" | "classes" | "size" | "alt" | "showTooltip" | "imgSrc">>>, "className" | "data-testid" | "displayName" | "classes" | "size" | "alt" | "showTooltip" | "imgSrc"> & Pick<PropTypes.InferProps<{
|
|
63
|
-
displayName: PropTypes.Requireable<string>;
|
|
64
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
65
|
-
size: PropTypes.Requireable<number>;
|
|
66
|
-
className: PropTypes.Requireable<string>;
|
|
67
|
-
imgSrc: PropTypes.Requireable<string>;
|
|
68
|
-
alt: PropTypes.Requireable<string>;
|
|
69
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
70
|
-
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
71
|
-
avatar: PropTypes.Requireable<string>;
|
|
72
|
-
}>>>;
|
|
73
|
-
}>, never> & Pick<PropTypes.InferPropsInner<Pick<{
|
|
74
|
-
displayName: PropTypes.Requireable<string>;
|
|
75
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
76
|
-
size: PropTypes.Requireable<number>;
|
|
77
|
-
className: PropTypes.Requireable<string>;
|
|
78
|
-
imgSrc: PropTypes.Requireable<string>;
|
|
79
|
-
alt: PropTypes.Requireable<string>;
|
|
80
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
81
|
-
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
82
|
-
avatar: PropTypes.Requireable<string>;
|
|
83
|
-
}>>>;
|
|
84
|
-
}, never>> & Partial<PropTypes.InferPropsInner<Pick<{
|
|
85
|
-
displayName: PropTypes.Requireable<string>;
|
|
86
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
87
|
-
size: PropTypes.Requireable<number>;
|
|
88
|
-
className: PropTypes.Requireable<string>;
|
|
89
|
-
imgSrc: PropTypes.Requireable<string>;
|
|
90
|
-
alt: PropTypes.Requireable<string>;
|
|
91
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
92
|
-
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
93
|
-
avatar: PropTypes.Requireable<string>;
|
|
94
|
-
}>>>;
|
|
95
|
-
}, "className" | "data-testid" | "displayName" | "classes" | "size" | "alt" | "showTooltip" | "imgSrc">>>, never>, "classes"> & {
|
|
96
|
-
className?: string;
|
|
97
|
-
'data-testid'?: string;
|
|
98
|
-
displayName?: string;
|
|
99
|
-
size?: number;
|
|
100
|
-
alt?: string;
|
|
2
|
+
declare type AvatarComponentProps = {
|
|
3
|
+
displayName: string;
|
|
101
4
|
showTooltip?: boolean;
|
|
5
|
+
size?: number;
|
|
6
|
+
className?: string;
|
|
102
7
|
imgSrc?: string;
|
|
103
|
-
|
|
104
|
-
|
|
8
|
+
alt?: string;
|
|
9
|
+
'data-testid'?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const AvatarComponent: ({ className, imgSrc, alt, displayName, showTooltip, size, "data-testid": dataTestId, }: AvatarComponentProps) => JSX.Element;
|
|
12
|
+
export default AvatarComponent;
|
|
105
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":";AAiEA,aAAK,oBAAoB,GAAG;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,eAAe,2FAQzB,oBAAoB,KAAG,WAyBzB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import r from"
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import r from"classnames";import i from"@material-ui/core/Avatar";import{Tooltip as o}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import a from"../../utils/main.js";import{makeStyles as s}from"@material-ui/core";var n=function(t){switch(t){case 24:return 12;case 32:return 14;case 40:return 16;case 48:return 20;case 128:return 64;case 200:return 80;default:return Math.floor(t/2)}},l=function(t){return{minWidth:t,width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:n(t)}},c=["#5F47A4","#9078C8","#DC74FD","#F695B5","#CB4F4F","#896F65","#F3AE96","#EE7850","#DDAE67","#A6CA72","#62893D","#91C9C4","#38818D","#77B5F1","#3F4C99","#919DA4"],m=function(t){return c[Math.abs(a.hashCode(t)%c.length)]},u=s((function(t){return{avatar:{color:t.palette.common.white,fontWeight:"bold"}}})),d=function(s){var n=s.className,c=s.imgSrc,d=s.alt,f=s.displayName,h=void 0===f?"":f,p=s.showTooltip,v=void 0!==p&&p,b=s.size,F=void 0===b?32:b,C=s["data-testid"],g=void 0===C?"generic_avatar":C,A=u();return e(o,t({title:h,disableFocusListener:!v,disableHoverListener:!v,disableTouchListener:!v},{children:e(i,t({"data-testid":g,alt:d,src:c,className:r(A.avatar,n),style:t(t({},l(Number(F))),{backgroundColor:!!h&&m(h)})},{children:h?a.getNameInitials(h):null}))}))};export{d as AvatarComponent,d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/typeof";import t from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/slicedToArray";import i from"@babel/runtime/helpers/defineProperty";import{useState as r,useRef as n,useMemo as s,useEffect as p,useCallback as a}from"react";import l from"prop-types";import{get as m,uniq as c,includes as d,isEqual as u}from"lodash";import j from"classnames";import{makeStyles as f,Dialog as C,DialogTitle as b,Typography as A,Tooltip as g,IconButton as v,DialogContent as h,DialogActions as I,Button as S}from"@material-ui/core";import{Close as x}from"@material-ui/icons";import D from"./components/Map/index.js";import P from"./components/WellSection/index.js";import{useWells as y,useFetchBicWellsData as W}from"./effects/index.js";import{DEFAULT_WELL_SECTIONS as T}from"./constants.js";import{jsxs as k,Fragment as B,jsx as O}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../icons/WithCustomSize.js";import"../../icons/IconParkProvider.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/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"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import"../Modal/CorvaModal.css.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.js";import"../../clients/jsonApi/index.js";import"jsona";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import E from"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../OffsetWellButton/OffsetWellButton.js";import w from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV4/utils/apiCalls.js";import"../OffsetWellPickerV4/effects/useAdvancedWells.js";import"../OffsetWellPickerV4/constants.js";import"react-virtualized";import"../OffsetWellPickerV4/effects/useAssetsData.js";import"../OffsetWellPickerV4/components/AppHeader/AppHeader.js";import"../OffsetWellPickerV4/components/Toolbar/Toolbar.js";import"../OffsetWellPickerV4/components/Filter/Filter.js";import"../OffsetWellPickerV4/components/Map/WellsMap.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js";import"../OffsetWellPickerV4/utils/index.js";import"../OffsetWellPickerV4/OffsetWellPickerV4.module.css.js";import"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PadModeSelect/PadModeSelect.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"react-dropzone";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function F(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?V(Object(o),!0).forEach((function(t){i(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):V(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var M=f((function(e){return{paper:{width:"552px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},description:{fontSize:"16px",fontWeight:"normal",color:e.palette.primary.text6,marginTop:16},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:e.palette.primary.text6},topShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",top:"155px",zIndex:2},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActions:{display:"flex",justifyContent:"flex-end",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column",overflowX:"hidden"},buttonContainer:{display:"flex",gap:"16px"}}}));function L(e,t){var o=e.find((function(e){return e.id===t}));return m(o,"name")||"-"}function R(e,t){var o=e.find((function(e){return e.id===t}));return m(o,"rigName")||"-"}function N(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function H(e){return e.map((function(e){return F(F({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function G(e){var t=m(e,"bicWellIds")||[],o=m(e,"manualWellIds")||[],i=m(e,"selectedWellIds")||[];return c(t.concat(o).concat(i))}function z(i){var l=i.defaultSubjectWell,f=i.offsetSetting,V=i.currentUser,z=i.isOpen,U=i.onClose,_=i.onSave,q=i.addWellsUsabilityInfo,Z=i.unusableWellAlarm,K=r(!1),Q=o(K,2),X=Q[0],$=Q[1],J=M({scrolling:X}),Y=n(null),ee=n(!0),te=r(m(l,"companyId")||m(f,"companyId")||+m(V,"company_id")),oe=o(te,2),ie=oe[0],re=oe[1],ne=r(m(l,"asset_id")||m(f,"subjectWellId")||null),se=o(ne,2),pe=se[0],ae=se[1],le=y(ie,z),me=W(pe,z),ce=r([]),de=o(ce,2),ue=de[0],je=de[1],fe=r(!1),Ce=o(fe,2),be=Ce[0],Ae=Ce[1],ge=r(f),ve=o(ge,2),he=ve[0],Ie=ve[1],Se=r(!1),xe=o(Se,2),De=xe[0],Pe=xe[1],ye=s((function(){if(le){var e=G(he);return le.filter((function(t){return e.find((function(e){return e===m(t,"id")}))}))}return[]}),[le,he]);p((function(){z&&(re(m(l,"companyId")||m(f,"companyId")||+m(V,"company_id")),ae(m(l,"asset_id")||m(f,"subjectWellId")||null),Ie(f),Pe(!1),ee.current=!0)}),[f,z]),p((function(){if(z&&le&&ee.current){var o,i=m(he,"selectedWellIds")||[],r=m(he,"manualWellIds")||[],n=m(he,"bicWellIds")||[],s=i.concat(r),p=s.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:L(le,e),rigName:R(le,e),kind:i.includes(e)?"advanced":"manual"}}));if(me&&me.filters&&me.result){var a,l=[],u=[{name:"Wells within Area",value:"area"}].concat(t(m(me,["filters","filterTabs"]))),j=(null===(a=me.filters)||void 0===a?void 0:a.filterMode)||"holeSize",f=c(u);o=[{name:"Search Results",wells:p,expanded:De}].concat(t(f.map((function(t){var o;return{name:N(t,j),wells:(null===(o=me.result[t.value])||void 0===o?void 0:o.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(t){var o="object"===e(t)?t.id:t;return l.push(o),{id:o,checked:!1,name:L(le,o),rigName:R(le,o),kind:"best"}})))||[],expanded:!1}}))))}else o=[{name:"Search Results",wells:p,expanded:De}].concat(t(T));var C=o.map((function(e){var t=e.wells.map((function(e){return d(n,e.id)||d(s,e.id)?F(F({},e),{},{checked:!0}):F({},e)}));return F(F({},e),{},{wells:t})}));je(H(C))}}),[z,le,me,he]);var We=a((function(){return G(he).length}),[he]),Te=a((function(){return(m(he,"bicWellIds")||[]).length})),ke=n(null),Be=!le;return k(B,{children:[k(C,{onBackdropClick:U,onEscapeKeyDown:U,open:z,classes:{paper:J.paper},children:[O(b,{children:k("div",{className:J.dialogTitles,children:[k("div",{className:J.titleContent,children:[O(A,{className:J.title,children:"Select Offset Wells"}),O(g,{title:"Close",children:O(v,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:J.closeIconButton,onClick:U,children:O(x,{className:J.closeIcon})})})]}),O("div",{className:J.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),X&&O("div",{className:J.topShadow}),O(h,{className:J.dialogContent,ref:Y,onScroll:function(){$(!0),clearTimeout(ke.current),ke.current=setTimeout((function(){$(!1)}),1e3)},children:Be?O(E,{fullscreen:!1}):k(B,{children:[O(D,{wells:ye,offsetWells:ye}),O(P,{company:ie,wellSections:ue,getWellName:L,onChangeWellSections:function(e){var t=H(e);je(t),Pe(t[0].expanded);var o=[],i=[],r=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&o.push(e.id),e.checked&&"manual"===e.kind&&i.push(e.id),e.checked&&"best"===e.kind&&r.push(e.id)}))}));var n=o.concat(i).concat(r),s=F(F({},he),{},{selectedWellIds:c(o),manualWellIds:c(i),bicWellIds:c(r),resultWellIds:c(n)});Ie(s),ee.current=!1},onExploreMode:function(){Ae(!0)}})]})}),O("div",{className:J.bottomShadow}),O(I,{className:j(J.dialogActions),children:k("div",{className:J.buttonContainer,children:[O(S,{"data-testid":"".concat("BICOffsetPickerDialog","_cancel"),onClick:U,color:"primary",children:"Cancel"}),k(S,{"data-testid":"".concat("BICOffsetPickerDialog","_add"),variant:"contained",color:"primary",onClick:function(){var e=G(he),t=le.filter((function(t){return d(e,t.id)})),o=F(F({},he),{},{companyId:+ie,resultWellIds:e});Ae(!1),_(o,t)},children:["Add (",We(),")"]})]})})]}),be&&O(w,{defaultSubjectWellId:m(l,"asset_id"),companyId:+ie,offsetSetting:he,currentUser:V,addWellsUsabilityInfo:q,unusableWellAlarm:Z,isAdvancedSearch:!0,bestCount:Te(),isOpen:be,onClose:function(){Ae(!1)},onSave:function(e){var t=e;l||(u(pe,m(t,"subjectWellId"))&&u(ie,m(t,"companyId"))||(t=F(F({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),ae(m(t,"subjectWellId")),re(m(t,"companyId")));var o=m(t,"manualWellIds")||[],i=m(t,"selectedWellIds")||[];o=o.filter((function(e){return!i.includes(e)})),t=F(F({},t),{},{manualWellIds:o}),Ie(t),ee.current=!0,Pe(!0),Ae(!1)}})]})}z.propTypes={defaultSubjectWell:l.shape({}),offsetSetting:l.shape({subjectWellId:l.number,companyId:l.number}),currentUser:l.shape({}),isOpen:l.bool.isRequired,onClose:l.func.isRequired,onSave:l.func.isRequired,addWellsUsabilityInfo:l.func,unusableWellAlarm:l.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export{z as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/typeof";import t from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import{useState as i,useRef as n,useMemo as s,useEffect as p,useCallback as a}from"react";import l from"prop-types";import{get as m,uniq as c,includes as d,isEqual as u}from"lodash";import j from"classnames";import{makeStyles as f,Dialog as C,DialogTitle as b,Typography as A,Tooltip as g,IconButton as v,DialogContent as h,DialogActions as I,Button as S}from"@material-ui/core";import{Close as D}from"@material-ui/icons";import x from"./components/Map/index.js";import P from"./components/WellSection/index.js";import{useWells as y,useFetchBicWellsData as W}from"./effects/index.js";import{DEFAULT_WELL_SECTIONS as T}from"./constants.js";import{jsxs as k,Fragment as B,jsx as O}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../icons/WithCustomSize.js";import"../../icons/IconParkProvider.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/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"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import"../Modal/CorvaModal.css.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.js";import"../../clients/jsonApi/index.js";import"jsona";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import E from"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"react-color";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../OffsetWellButton/OffsetWellButton.js";import w from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV4/utils/apiCalls.js";import"../OffsetWellPickerV4/effects/useAdvancedWells.js";import"../OffsetWellPickerV4/constants.js";import"react-virtualized";import"../OffsetWellPickerV4/effects/useAssetsData.js";import"../OffsetWellPickerV4/components/AppHeader/AppHeader.js";import"../OffsetWellPickerV4/components/Toolbar/Toolbar.js";import"../OffsetWellPickerV4/components/Filter/Filter.js";import"../OffsetWellPickerV4/components/Map/WellsMap.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js";import"../OffsetWellPickerV4/utils/index.js";import"../OffsetWellPickerV4/OffsetWellPickerV4.module.css.js";import"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PadModeSelect/PadModeSelect.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"react-dropzone";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function F(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?V(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):V(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var M=f((function(e){return{paper:{width:"552px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},description:{fontSize:"16px",fontWeight:"normal",color:e.palette.primary.text6,marginTop:16},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:e.palette.primary.text6},topShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",top:"155px",zIndex:2},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActions:{display:"flex",justifyContent:"flex-end",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column",overflowX:"hidden"},buttonContainer:{display:"flex",gap:"16px"}}}));function L(e,t){var o=e.find((function(e){return e.id===t}));return m(o,"name")||"-"}function R(e,t){var o=e.find((function(e){return e.id===t}));return m(o,"rigName")||"-"}function N(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function H(e){return e.map((function(e){return F(F({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function G(e){var t=m(e,"bicWellIds")||[],o=m(e,"manualWellIds")||[],r=m(e,"selectedWellIds")||[];return c(t.concat(o).concat(r))}function z(r){var l=r.defaultSubjectWell,f=r.offsetSetting,V=r.currentUser,z=r.isOpen,U=r.onClose,_=r.onSave,q=r.addWellsUsabilityInfo,Z=r.unusableWellAlarm,K=i(!1),Q=o(K,2),X=Q[0],$=Q[1],J=M({scrolling:X}),Y=n(null),ee=n(!0),te=i(m(l,"companyId")||m(f,"companyId")||+m(V,"company_id")),oe=o(te,2),re=oe[0],ie=oe[1],ne=i(m(l,"asset_id")||m(f,"subjectWellId")||null),se=o(ne,2),pe=se[0],ae=se[1],le=y(re,z),me=W(pe,z),ce=i([]),de=o(ce,2),ue=de[0],je=de[1],fe=i(!1),Ce=o(fe,2),be=Ce[0],Ae=Ce[1],ge=i(f),ve=o(ge,2),he=ve[0],Ie=ve[1],Se=i(!1),De=o(Se,2),xe=De[0],Pe=De[1],ye=s((function(){if(le){var e=G(he);return le.filter((function(t){return e.find((function(e){return e===m(t,"id")}))}))}return[]}),[le,he]);p((function(){z&&(ie(m(l,"companyId")||m(f,"companyId")||+m(V,"company_id")),ae(m(l,"asset_id")||m(f,"subjectWellId")||null),Ie(f),Pe(!1),ee.current=!0)}),[f,z]),p((function(){if(z&&le&&ee.current){var o,r=m(he,"selectedWellIds")||[],i=m(he,"manualWellIds")||[],n=m(he,"bicWellIds")||[],s=r.concat(i),p=s.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:L(le,e),rigName:R(le,e),kind:r.includes(e)?"advanced":"manual"}}));if(me&&me.filters&&me.result){var a,l=[],u=[{name:"Wells within Area",value:"area"}].concat(t(m(me,["filters","filterTabs"]))),j=(null===(a=me.filters)||void 0===a?void 0:a.filterMode)||"holeSize",f=c(u);o=[{name:"Search Results",wells:p,expanded:xe}].concat(t(f.map((function(t){var o;return{name:N(t,j),wells:(null===(o=me.result[t.value])||void 0===o?void 0:o.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(t){var o="object"===e(t)?t.id:t;return l.push(o),{id:o,checked:!1,name:L(le,o),rigName:R(le,o),kind:"best"}})))||[],expanded:!1}}))))}else o=[{name:"Search Results",wells:p,expanded:xe}].concat(t(T));var C=o.map((function(e){var t=e.wells.map((function(e){return d(n,e.id)||d(s,e.id)?F(F({},e),{},{checked:!0}):F({},e)}));return F(F({},e),{},{wells:t})}));je(H(C))}}),[z,le,me,he]);var We=a((function(){return G(he).length}),[he]),Te=a((function(){return(m(he,"bicWellIds")||[]).length})),ke=n(null),Be=!le;return k(B,{children:[k(C,{onBackdropClick:U,onEscapeKeyDown:U,open:z,classes:{paper:J.paper},children:[O(b,{children:k("div",{className:J.dialogTitles,children:[k("div",{className:J.titleContent,children:[O(A,{className:J.title,children:"Select Offset Wells"}),O(g,{title:"Close",children:O(v,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:J.closeIconButton,onClick:U,children:O(D,{className:J.closeIcon})})})]}),O("div",{className:J.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),X&&O("div",{className:J.topShadow}),O(h,{className:J.dialogContent,ref:Y,onScroll:function(){$(!0),clearTimeout(ke.current),ke.current=setTimeout((function(){$(!1)}),1e3)},children:Be?O(E,{fullscreen:!1}):k(B,{children:[O(x,{wells:ye,offsetWells:ye}),O(P,{company:re,wellSections:ue,getWellName:L,onChangeWellSections:function(e){var t=H(e);je(t),Pe(t[0].expanded);var o=[],r=[],i=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&o.push(e.id),e.checked&&"manual"===e.kind&&r.push(e.id),e.checked&&"best"===e.kind&&i.push(e.id)}))}));var n=o.concat(r).concat(i),s=F(F({},he),{},{selectedWellIds:c(o),manualWellIds:c(r),bicWellIds:c(i),resultWellIds:c(n)});Ie(s),ee.current=!1},onExploreMode:function(){Ae(!0)}})]})}),O("div",{className:J.bottomShadow}),O(I,{className:j(J.dialogActions),children:k("div",{className:J.buttonContainer,children:[O(S,{"data-testid":"".concat("BICOffsetPickerDialog","_cancel"),onClick:U,color:"primary",children:"Cancel"}),k(S,{"data-testid":"".concat("BICOffsetPickerDialog","_add"),variant:"contained",color:"primary",onClick:function(){var e=G(he),t=le.filter((function(t){return d(e,t.id)})),o=F(F({},he),{},{companyId:+re,resultWellIds:e});Ae(!1),_(o,t)},children:["Add (",We(),")"]})]})})]}),be&&O(w,{defaultSubjectWellId:m(l,"asset_id"),companyId:+re,offsetSetting:he,currentUser:V,addWellsUsabilityInfo:q,unusableWellAlarm:Z,isAdvancedSearch:!0,bestCount:Te(),isOpen:be,onClose:function(){Ae(!1)},onSave:function(e){var t=e;l||(u(pe,m(t,"subjectWellId"))&&u(re,m(t,"companyId"))||(t=F(F({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),ae(m(t,"subjectWellId")),ie(m(t,"companyId")));var o=m(t,"manualWellIds")||[],r=m(t,"selectedWellIds")||[];o=o.filter((function(e){return!r.includes(e)})),t=F(F({},t),{},{manualWellIds:o}),Ie(t),ee.current=!0,Pe(!0),Ae(!1)}})]})}z.propTypes={defaultSubjectWell:l.shape({}),offsetSetting:l.shape({subjectWellId:l.number,companyId:l.number}),currentUser:l.shape({}),isOpen:l.bool.isRequired,onClose:l.func.isRequired,onSave:l.func.isRequired,addWellsUsabilityInfo:l.func,unusableWellAlarm:l.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export{z as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import Breadcrumbs from './index';
|
|
4
|
+
declare type Props = ComponentProps<typeof Breadcrumbs>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Breadcrumbs.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,WAAW,MAAM,SAAS,CAAC;AAElC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAcF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA+B,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type BreadcrumbsProps = {
|
|
3
|
+
pathItems: {
|
|
4
|
+
text: string;
|
|
5
|
+
href: string;
|
|
6
|
+
}[];
|
|
7
|
+
classes?: Record<string, string>;
|
|
8
|
+
withBackIcon?: boolean;
|
|
9
|
+
separator?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare const Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element;
|
|
1
12
|
export default Breadcrumbs;
|
|
2
|
-
declare function Breadcrumbs(props: any): JSX.Element;
|
|
3
|
-
declare namespace Breadcrumbs {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const pathItems: PropTypes.Validator<PropTypes.InferProps<{
|
|
6
|
-
text: PropTypes.Requireable<string>;
|
|
7
|
-
href: PropTypes.Requireable<string>;
|
|
8
|
-
}>[]>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
import PropTypes from "prop-types";
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AA6B5C,oBAAY,gBAAgB,GAAG;IAC7B,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,WAAW,UAAW,gBAAgB,gBAiC3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from
|
|
1
|
+
import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as e}from"react/jsx-runtime";import{makeStyles as c,Breadcrumbs as i}from"@material-ui/core";import n from"classnames";import{Link as r}from"react-router";import{Fragment as m}from"react";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{UniversalLink as a}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import p from"../TruncatedText/index.js";import{LeftIcon as l}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/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";var u=c((function(o){return{container:{display:"flex",gap:"0px 8px",fontSize:"0.8125rem"},pathPart:{color:o.palette.primary.text6,"&:hover":{textDecoration:"underline"}},lastPathPart:{color:o.palette.primary.text1,"&:hover":{textDecoration:"underline"}},iconLink:{display:"flex",alignItems:"center",color:o.palette.primary.text6,"&:hover":{textDecoration:"underline"}}}})),d=function(c){var d=c.pathItems,h=c.withBackIcon,j=c.classes,I=void 0===j?{}:j,x=o(c,["pathItems","withBackIcon","classes"]),f=I.container,C=o(I,["container"]),b=u();return t(i,s({classes:s({li:n(b.container,f)},C)},x,{children:d.map((function(o,c,i){var u;return e(m,{children:[0===c&&h&&t(r,s({to:o.href,className:b.iconLink},{children:t(l,{size:"small"})})),t(p,{children:t(a,s({className:n(b.pathPart,(u={},u[b.lastPathPart]=c===i.length-1&&!h,u)),"data-testid":"Breadcrumbs_".concat(o.text),href:o.href},{children:o.text}),o.text)})]},o.href)}))}))};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,eAAO,MAAM,UAAU,UAAW,eAAe,aAAa,CAAC,gBAE9D,CAAC;AAKF,eAAO,MAAM,IAAI,mBAMhB,CAAC;AAWF,eAAO,MAAM,KAAK,mBAKjB,CAAC;AAMF,eAAO,MAAM,OAAO,mBAenB,CAAC;AAMF,eAAO,MAAM,KAAK,mBAyBjB,CAAC;AAOF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,eAAO,MAAM,UAAU,UAAW,eAAe,aAAa,CAAC,gBAE9D,CAAC;AAKF,eAAO,MAAM,IAAI,mBAMhB,CAAC;AAWF,eAAO,MAAM,KAAK,mBAKjB,CAAC;AAMF,eAAO,MAAM,OAAO,mBAenB,CAAC;AAMF,eAAO,MAAM,KAAK,mBAyBjB,CAAC;AAOF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAAqD,CAAC;AAapF,eAAe,IAAI,CAAC"}
|