@corva/ui 0.48.0-9-test-674373bf → 0.49.0-0
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/_virtual/_tslib.js +1 -1
- package/components/AssetNameLabel/styles.css.js +1 -1
- package/components/Chip/index.d.ts +14 -7
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ColorPickerPalette/ColorPickerPalette.d.ts +17 -19
- package/components/ColorPickerPalette/ColorPickerPalette.d.ts.map +1 -1
- package/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
- package/components/Comment/CommentIcon/index.d.ts +20 -21
- package/components/Comment/CommentIcon/index.d.ts.map +1 -1
- package/components/Comment/CommentIcon/index.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/DatePicker/index.d.ts +17 -19
- package/components/DatePicker/index.d.ts.map +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js +1 -1
- package/components/EmptyView/EmptyView.js +1 -1
- package/components/Notifications/components/Toast.d.ts.map +1 -1
- package/components/Notifications/components/Toast.js +1 -1
- package/components/Notifications/components/styles.d.ts.map +1 -1
- package/components/Notifications/components/styles.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts +3 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts +3 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/SwitchControl/index.d.ts +124 -2
- package/components/SwitchControl/index.d.ts.map +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/Tabs/Tabs.d.ts +23 -25
- package/components/Tabs/Tabs.d.ts.map +1 -1
- package/components/Tabs/Tabs.js +1 -1
- package/components/TextLink/index.d.ts +33 -38
- package/components/TextLink/index.d.ts.map +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.d.ts +227 -81
- package/components/VirtualizedTable/VirtualizedTable.d.ts.map +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/package.json +2 -2
- package/types.d.ts +141 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useRef as i,useMemo as o,useEffect as s,useCallback as n}from"react";import p from"classnames";import a from"prop-types";import{Table as l,TableHead as m,TableBody as d,TableRow as c,TableCell as u}from"@material-ui/core";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as j,jsxs as C,Fragment as f}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import h from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";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/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"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.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/index.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"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../MenuItem/index.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"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.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"../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import{AdvancedSearch as A}from"./AdvancedSearch/AdvancedSearch.js";import b from"./OffsetWellsTableHead.js";import v from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as g,TableColumns as S,ROW_HEIGHT as y,ViewType as x}from"../../constants.js";import T from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";var P=function(r){var a,P=r.open,W=r.isTableLoading,w=r.companyId,E=r.subjectWellId,R=r.sortBy,B=r.setSortBy,O=r.sortDirection,L=r.setSortDirection,k=r.columnsWithDict,q=r.wells,F=r.metricsKeys,V=r.setMetricsKeys,N=r.handleChanageOffsetWell,H=r.handleChangeAllOffsetWells,M=r.handleAddRemoveAssets,K=r.isWellNameExpand,Z=r.setIsWellNameExpand,z=r.isHscrollMoved,U=r.onHideAdvancedSearch,G=r.isViewOnly,J=r.isLastWell,Q=r.contentRef,X=r.isLimitedOffsetwells,Y=r.tableTop,$=r.wellSections,_=r.setActiveWellId,ee=r.viewType,te=i(),re=i(),ie=o((function(){var e=q.filter((function(e){return e.checked}));return[e,q.length!==e.length&&e.length&&!X,e.length===q.length||X]}),[q,X]),oe=t(ie,3),se=oe[0],ne=oe[1],pe=oe[2],ae=o((function(){return I()}),[]),le=o((function(){return(F||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[F]),me=o((function(){return K?g-58:S[0].width[F.length]-58}),[K,null==F?void 0:F.length]),de=o((function(){return se.length*y}),[se]);s((function(){if(ee!==x.mobile){var e=te.current.querySelector(".".concat(T.wellNameFixed));z?e.classList.remove(T.noShadow):e.classList.add(T.noShadow);var t=re.current.querySelectorAll(".".concat(T.wellNameFixed));z?t.forEach((function(e){return e.classList.remove(T.noShadow)})):t.forEach((function(e){return e.classList.add(T.noShadow)}))}}),[z,re.current,te.current,q]);var ce=n((function(e,t){B(e),L(t)}),[]),ue=n((function(e){V(e)}),[]),je=n((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return W?j(h,{fullscreen:!1}):k&&q?C(f,{children:[j("div",{className:T.stickyTable,children:j(l,{"aria-label":"ows table head",innerRef:te,children:j(m,{children:j(b,{open:P,columnsWithDict:k,metricsKeys:F,sortBy:R,sortDirection:O,indeterminate:ne,isAllWellsSelected:pe,onChangeSort:ce,onChangeMetricsKeys:ue,onUpdateMetricsKey:je,isWellNameExpand:K,setIsWellNameExpand:Z,handleChangeAllOffsetWells:H,wellNameStyle:T.wellNameFixed,isViewOnly:G,isImperial:ae,contentRef:Q,viewType:ee})})})}),!G&&j("div",{className:T.searchCell,children:j(A,{companyId:w,subjectWellId:E,wells:q,onChange:M,selectedWellIds:se.map((function(e){return e.id})),onHideAdvancedSearch:U,width:null===(a=Q.current)||void 0===a?void 0:a.getBoundingClientRect().width})}),j(l,{"aria-label":"ows table body",innerRef:re,className:T.bodyTable,children:C(d,{children:[j(c,{children:j(u,{className:p(T.topShadow,e({},T.viewOnlyShadow,G))})}),q.map((function(e){return j(v,{columnsWithDict:k,subjectWellId:E,data:e,metricsKeys:F,metricsColumns:le,handleChanageOffsetWell:N,isWellNameExpand:K,wellNameStyle:T.wellNameFixed,wellNameWidth:me,isViewOnly:G,isImperial:ae,isLimitedOffsetwells:X,flyTo:de,tableTop:Y,wellSections:$,setActiveWellId:_,viewType:ee},e.id)})),!J&&j(c,{children:j(u,{className:T.loadingCell,children:j("span",{children:"Loading..."})})}),j(c,{children:j(u,{className:T.bottomShadow})})]})})]}):null};P.propTypes={open:a.bool.isRequired,isTableLoading:a.bool.isRequired,companyId:a.number.isRequired,subjectWellId:a.number.isRequired,sortBy:a.string.isRequired,setSortBy:a.func.isRequired,sortDirection:a.string.isRequired,setSortDirection:a.func.isRequired,columnsWithDict:a.arrayOf(a.shape({})).isRequired,wells:a.arrayOf(a.shape({})).isRequired,metricsKeys:a.arrayOf(a.string).isRequired,setMetricsKeys:a.func.isRequired,handleChanageOffsetWell:a.func.isRequired,handleChangeAllOffsetWells:a.func.isRequired,handleAddRemoveAssets:a.func.isRequired,setIsWellNameExpand:a.func.isRequired,isWellNameExpand:a.bool.isRequired,isHscrollMoved:a.bool.isRequired,onHideAdvancedSearch:a.func.isRequired,isViewOnly:a.bool.isRequired,isLastWell:a.bool.isRequired,isLimitedOffsetwells:a.bool.isRequired,contentRef:a.shape().isRequired,tableTop:a.number.isRequired,wellSections:a.arrayOf(a.shape({})).isRequired,setActiveWellId:a.func.isRequired,viewType:a.string.isRequired};var W=r(P);export{W as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useRef as i,useMemo as o,useEffect as s,useCallback as n}from"react";import p from"classnames";import a from"prop-types";import{Table as l,TableHead as m,TableBody as d,TableRow as c,TableCell as u}from"@material-ui/core";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as j,jsxs as C,Fragment as f}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import h from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";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/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"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.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/index.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"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../MenuItem/index.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"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.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"../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import{AdvancedSearch as A}from"./AdvancedSearch/AdvancedSearch.js";import b from"./OffsetWellsTableHead.js";import v from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as g,TableColumns as S,ROW_HEIGHT as y,ViewType as T}from"../../constants.js";import x from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";var P=function(r){var a,P=r.open,W=r.isTableLoading,w=r.companyId,E=r.subjectWellId,R=r.sortBy,B=r.setSortBy,O=r.sortDirection,L=r.setSortDirection,k=r.columnsWithDict,q=r.wells,F=r.metricsKeys,V=r.setMetricsKeys,N=r.handleChanageOffsetWell,H=r.handleChangeAllOffsetWells,M=r.handleAddRemoveAssets,K=r.isWellNameExpand,Z=r.setIsWellNameExpand,z=r.isHscrollMoved,U=r.onHideAdvancedSearch,G=r.isViewOnly,J=r.isLastWell,Q=r.contentRef,X=r.isLimitedOffsetwells,Y=r.tableTop,$=r.wellSections,_=r.setActiveWellId,ee=r.viewType,te=i(),re=i(),ie=o((function(){var e=q.filter((function(e){return e.checked}));return[e,q.length!==e.length&&e.length&&!X,e.length===q.length||X]}),[q,X]),oe=t(ie,3),se=oe[0],ne=oe[1],pe=oe[2],ae=o((function(){return I()}),[]),le=o((function(){return(F||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[F]),me=o((function(){return K?g-58:S[0].width[F.length]-58}),[K,null==F?void 0:F.length]),de=o((function(){return se.length*y}),[se]);s((function(){if(ee!==T.mobile){var e=te.current.querySelector(".".concat(x.wellNameFixed));z?e.classList.remove(x.noShadow):e.classList.add(x.noShadow);var t=re.current.querySelectorAll(".".concat(x.wellNameFixed));z?t.forEach((function(e){return e.classList.remove(x.noShadow)})):t.forEach((function(e){return e.classList.add(x.noShadow)}))}}),[z,re.current,te.current,q]);var ce=n((function(e,t){B(e),L(t)}),[]),ue=n((function(e){V(e)}),[]),je=n((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return W?j(h,{fullscreen:!1}):k&&q?C(f,{children:[j("div",{className:x.stickyTable,children:j(l,{"aria-label":"ows table head",innerRef:te,children:j(m,{children:j(b,{open:P,columnsWithDict:k,metricsKeys:F,sortBy:R,sortDirection:O,indeterminate:ne,isAllWellsSelected:pe,onChangeSort:ce,onChangeMetricsKeys:ue,onUpdateMetricsKey:je,isWellNameExpand:K,setIsWellNameExpand:Z,handleChangeAllOffsetWells:H,wellNameStyle:x.wellNameFixed,isViewOnly:G,isImperial:ae,contentRef:Q,viewType:ee})})})}),!G&&j("div",{className:x.searchCell,children:j(A,{companyId:w,subjectWellId:E,wells:q,onChange:M,selectedWellIds:se.map((function(e){return e.id})),onHideAdvancedSearch:U,width:null===(a=Q.current)||void 0===a?void 0:a.getBoundingClientRect().width,viewType:ee})}),j(l,{"aria-label":"ows table body",innerRef:re,className:x.bodyTable,children:C(d,{children:[j(c,{children:j(u,{className:p(x.topShadow,e({},x.viewOnlyShadow,G))})}),q.map((function(e){return j(v,{columnsWithDict:k,subjectWellId:E,data:e,metricsKeys:F,metricsColumns:le,handleChanageOffsetWell:N,isWellNameExpand:K,wellNameStyle:x.wellNameFixed,wellNameWidth:me,isViewOnly:G,isImperial:ae,isLimitedOffsetwells:X,flyTo:de,tableTop:Y,wellSections:$,setActiveWellId:_,viewType:ee},e.id)})),!J&&j(c,{children:j(u,{className:x.loadingCell,children:j("span",{children:"Loading..."})})}),j(c,{children:j(u,{className:x.bottomShadow})})]})})]}):null};P.propTypes={open:a.bool.isRequired,isTableLoading:a.bool.isRequired,companyId:a.number.isRequired,subjectWellId:a.number.isRequired,sortBy:a.string.isRequired,setSortBy:a.func.isRequired,sortDirection:a.string.isRequired,setSortDirection:a.func.isRequired,columnsWithDict:a.arrayOf(a.shape({})).isRequired,wells:a.arrayOf(a.shape({})).isRequired,metricsKeys:a.arrayOf(a.string).isRequired,setMetricsKeys:a.func.isRequired,handleChanageOffsetWell:a.func.isRequired,handleChangeAllOffsetWells:a.func.isRequired,handleAddRemoveAssets:a.func.isRequired,setIsWellNameExpand:a.func.isRequired,isWellNameExpand:a.bool.isRequired,isHscrollMoved:a.bool.isRequired,onHideAdvancedSearch:a.func.isRequired,isViewOnly:a.bool.isRequired,isLastWell:a.bool.isRequired,isLimitedOffsetwells:a.bool.isRequired,contentRef:a.shape().isRequired,tableTop:a.number.isRequired,wellSections:a.arrayOf(a.shape({})).isRequired,setActiveWellId:a.func.isRequired,viewType:a.string.isRequired};var W=r(P);export{W as default};
|
|
@@ -1,4 +1,126 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
export declare const SwitchControlComponent: import("react").ForwardRefExoticComponent<PropTypes.InferPropsInner<Pick<{
|
|
4
|
+
title: PropTypes.Requireable<string>;
|
|
5
|
+
leftLabel: PropTypes.Requireable<string>;
|
|
6
|
+
rightLabel: PropTypes.Requireable<string>;
|
|
7
|
+
checked: PropTypes.Validator<boolean>;
|
|
8
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
10
|
+
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
11
|
+
label: PropTypes.Requireable<string>;
|
|
12
|
+
labelSmall: PropTypes.Requireable<string>;
|
|
13
|
+
activeLabel: PropTypes.Requireable<string>;
|
|
14
|
+
disabledLabel: PropTypes.Requireable<string>;
|
|
15
|
+
root: PropTypes.Requireable<string>;
|
|
16
|
+
switchBase: PropTypes.Requireable<string>;
|
|
17
|
+
switchBaseDisabledNoLabels: PropTypes.Requireable<string>;
|
|
18
|
+
switchBaseDisabled: PropTypes.Requireable<string>;
|
|
19
|
+
track: PropTypes.Requireable<string>;
|
|
20
|
+
trackDisabledNoLabels: PropTypes.Requireable<string>;
|
|
21
|
+
trackDisabled: PropTypes.Requireable<string>;
|
|
22
|
+
}>>>;
|
|
23
|
+
size: PropTypes.Requireable<string>;
|
|
24
|
+
className: PropTypes.Requireable<string>;
|
|
25
|
+
customClasses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
26
|
+
root: PropTypes.Requireable<string>;
|
|
27
|
+
track: PropTypes.Requireable<string>;
|
|
28
|
+
switchBase: PropTypes.Requireable<string>;
|
|
29
|
+
}>>;
|
|
30
|
+
rightLabelTooltip: PropTypes.Requireable<string>;
|
|
31
|
+
leftLabelTooltip: PropTypes.Requireable<string>;
|
|
32
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
33
|
+
}, never>> & Partial<PropTypes.InferPropsInner<Pick<{
|
|
34
|
+
title: PropTypes.Requireable<string>;
|
|
35
|
+
leftLabel: PropTypes.Requireable<string>;
|
|
36
|
+
rightLabel: PropTypes.Requireable<string>;
|
|
37
|
+
checked: PropTypes.Validator<boolean>;
|
|
38
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
39
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
40
|
+
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
41
|
+
label: PropTypes.Requireable<string>;
|
|
42
|
+
labelSmall: PropTypes.Requireable<string>;
|
|
43
|
+
activeLabel: PropTypes.Requireable<string>;
|
|
44
|
+
disabledLabel: PropTypes.Requireable<string>;
|
|
45
|
+
root: PropTypes.Requireable<string>;
|
|
46
|
+
switchBase: PropTypes.Requireable<string>;
|
|
47
|
+
switchBaseDisabledNoLabels: PropTypes.Requireable<string>;
|
|
48
|
+
switchBaseDisabled: PropTypes.Requireable<string>;
|
|
49
|
+
track: PropTypes.Requireable<string>;
|
|
50
|
+
trackDisabledNoLabels: PropTypes.Requireable<string>;
|
|
51
|
+
trackDisabled: PropTypes.Requireable<string>;
|
|
52
|
+
}>>>;
|
|
53
|
+
size: PropTypes.Requireable<string>;
|
|
54
|
+
className: PropTypes.Requireable<string>;
|
|
55
|
+
customClasses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
56
|
+
root: PropTypes.Requireable<string>;
|
|
57
|
+
track: PropTypes.Requireable<string>;
|
|
58
|
+
switchBase: PropTypes.Requireable<string>;
|
|
59
|
+
}>>;
|
|
60
|
+
rightLabelTooltip: PropTypes.Requireable<string>;
|
|
61
|
+
leftLabelTooltip: PropTypes.Requireable<string>;
|
|
62
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
63
|
+
}, "title" | "size" | "className" | "classes" | "onChange" | "disabled" | "checked" | "data-testid" | "leftLabel" | "rightLabel" | "customClasses" | "rightLabelTooltip" | "leftLabelTooltip">>> & import("react").RefAttributes<unknown>>;
|
|
64
|
+
declare const _default: import("react").ComponentType<Pick<PropTypes.InferPropsInner<Pick<{
|
|
65
|
+
title: PropTypes.Requireable<string>;
|
|
66
|
+
leftLabel: PropTypes.Requireable<string>;
|
|
67
|
+
rightLabel: PropTypes.Requireable<string>;
|
|
68
|
+
checked: PropTypes.Validator<boolean>;
|
|
69
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
70
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
71
|
+
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
72
|
+
label: PropTypes.Requireable<string>;
|
|
73
|
+
labelSmall: PropTypes.Requireable<string>;
|
|
74
|
+
activeLabel: PropTypes.Requireable<string>;
|
|
75
|
+
disabledLabel: PropTypes.Requireable<string>;
|
|
76
|
+
root: PropTypes.Requireable<string>;
|
|
77
|
+
switchBase: PropTypes.Requireable<string>;
|
|
78
|
+
switchBaseDisabledNoLabels: PropTypes.Requireable<string>;
|
|
79
|
+
switchBaseDisabled: PropTypes.Requireable<string>;
|
|
80
|
+
track: PropTypes.Requireable<string>;
|
|
81
|
+
trackDisabledNoLabels: PropTypes.Requireable<string>;
|
|
82
|
+
trackDisabled: PropTypes.Requireable<string>;
|
|
83
|
+
}>>>;
|
|
84
|
+
size: PropTypes.Requireable<string>;
|
|
85
|
+
className: PropTypes.Requireable<string>;
|
|
86
|
+
customClasses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
87
|
+
root: PropTypes.Requireable<string>;
|
|
88
|
+
track: PropTypes.Requireable<string>;
|
|
89
|
+
switchBase: PropTypes.Requireable<string>;
|
|
90
|
+
}>>;
|
|
91
|
+
rightLabelTooltip: PropTypes.Requireable<string>;
|
|
92
|
+
leftLabelTooltip: PropTypes.Requireable<string>;
|
|
93
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
94
|
+
}, never>> & Partial<PropTypes.InferPropsInner<Pick<{
|
|
95
|
+
title: PropTypes.Requireable<string>;
|
|
96
|
+
leftLabel: PropTypes.Requireable<string>;
|
|
97
|
+
rightLabel: PropTypes.Requireable<string>;
|
|
98
|
+
checked: PropTypes.Validator<boolean>;
|
|
99
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
100
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
101
|
+
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
102
|
+
label: PropTypes.Requireable<string>;
|
|
103
|
+
labelSmall: PropTypes.Requireable<string>;
|
|
104
|
+
activeLabel: PropTypes.Requireable<string>;
|
|
105
|
+
disabledLabel: PropTypes.Requireable<string>;
|
|
106
|
+
root: PropTypes.Requireable<string>;
|
|
107
|
+
switchBase: PropTypes.Requireable<string>;
|
|
108
|
+
switchBaseDisabledNoLabels: PropTypes.Requireable<string>;
|
|
109
|
+
switchBaseDisabled: PropTypes.Requireable<string>;
|
|
110
|
+
track: PropTypes.Requireable<string>;
|
|
111
|
+
trackDisabledNoLabels: PropTypes.Requireable<string>;
|
|
112
|
+
trackDisabled: PropTypes.Requireable<string>;
|
|
113
|
+
}>>>;
|
|
114
|
+
size: PropTypes.Requireable<string>;
|
|
115
|
+
className: PropTypes.Requireable<string>;
|
|
116
|
+
customClasses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
117
|
+
root: PropTypes.Requireable<string>;
|
|
118
|
+
track: PropTypes.Requireable<string>;
|
|
119
|
+
switchBase: PropTypes.Requireable<string>;
|
|
120
|
+
}>>;
|
|
121
|
+
rightLabelTooltip: PropTypes.Requireable<string>;
|
|
122
|
+
leftLabelTooltip: PropTypes.Requireable<string>;
|
|
123
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
124
|
+
}, "title" | "size" | "className" | "classes" | "onChange" | "disabled" | "checked" | "data-testid" | "leftLabel" | "rightLabel" | "customClasses" | "rightLabelTooltip" | "leftLabelTooltip">>> & import("react").RefAttributes<unknown>, "title" | "size" | "className" | "onChange" | "disabled" | "checked" | "data-testid" | "leftLabel" | "rightLabel" | "customClasses" | "rightLabelTooltip" | "leftLabelTooltip" | keyof import("react").RefAttributes<unknown>> & import("@material-ui/core").StyledComponentProps<"label" | "track" | "root" | "labelSmall" | "activeLabel" | "disabledLabel" | "switchBase" | "switchBaseDisabledNoLabels" | "switchBaseDisabled" | "trackDisabledNoLabels" | "trackDisabled">>;
|
|
3
125
|
export default _default;
|
|
4
126
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchControl/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchControl/index.tsx"],"names":[],"mappings":";AAGA,OAAO,SAAS,MAAM,YAAY,CAAC;AAmEnC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0OAgGlC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDF,wBAA6D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"
|
|
1
|
+
import{__rest as e,__assign as t}from"../../_virtual/_tslib.js";import{jsxs as a,jsx as i}from"react/jsx-runtime";import{forwardRef as l}from"react";import s from"classnames";import r from"prop-types";import{Grid as o,Tooltip as c,Typography as n,Switch as d,withStyles as b}from"@material-ui/core";import m from"./style.css.js";var h=l((function(l,r){var b,h,p=l.title,g=l.leftLabel,f=l.rightLabel,u=l.checked,L=l.onChange,w=l.disabled,k=l.classes,D=l.size,B=l.className,C=l.rightLabelTooltip,v=l.leftLabelTooltip,N=l.customClasses,y=l["data-testid"],x=g&&f,S=N.root,T=N.track,z=N.switchBase,j=e(N,["root","track","switchBase"]);return a("div",t({className:B},{children:[p&&i("div",t({className:m.switchControlTitle},{children:p})),a(o,t({component:"label",container:!0,alignItems:"center",spacing:0},{children:[g&&i(o,t({item:!0},{children:i(c,t({title:v},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(!u||!f)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:g}))}))})),i(o,t({item:!0},{children:i(d,{"data-testid":"".concat(y,"_switch_").concat(u),ref:r,checked:u,onChange:L,color:"primary",disabled:w,classes:t({root:s(k.root,S),switchBase:s((b={},b[k.switchBase]=x||u&&!w,b[k.switchBaseDisabled]=w&&(x||u),b[k.switchBaseDisabledNoLabels]=!x&&w&&!u,b),z),track:s((h={},h[k.track]=x||u&&!w,h[k.trackDisabled]=w&&(x||u),h[k.trackDisabledNoLabels]=!x&&w&&!u,h),T)},j),size:D})})),f&&i(o,t({item:!0},{children:i(c,t({title:C},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(u||!g)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:f}))}))}))]}))]}))})),p={title:r.string,leftLabel:r.string,rightLabel:r.string,checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,classes:r.shape({label:r.string,labelSmall:r.string,activeLabel:r.string,disabledLabel:r.string,root:r.string,switchBase:r.string,switchBaseDisabledNoLabels:r.string,switchBaseDisabled:r.string,track:r.string,trackDisabledNoLabels:r.string,trackDisabled:r.string}).isRequired,size:r.oneOf(["small","medium"]),className:r.string,customClasses:r.shape({root:r.string,track:r.string,switchBase:r.string}),rightLabelTooltip:r.string,leftLabelTooltip:r.string,"data-testid":r.string};h.propTypes=p,h.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium",className:"",customClasses:{},rightLabelTooltip:"",leftLabelTooltip:"","data-testid":"SwitchControlComponent"};var g=b({root:{width:60,height:40,padding:13,"&.MuiSwitch-sizeSmall":{width:52,height:36,padding:13},"& .MuiSwitch-switchBase":{padding:10}},switchBase:{padding:10,color:"#03BCD4","&.MuiIconButton-root:hover":{backgroundColor:"rgba(3, 188, 212, 0.08)"}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#9e9e9e",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#808080"},activeLabel:{color:"#ffffff"}})(h);export{h as SwitchControlComponent,g as default};
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>>;
|
|
13
|
-
}>>;
|
|
14
|
-
const type: PropTypes.Requireable<string>;
|
|
15
|
-
const compact: PropTypes.Requireable<boolean>;
|
|
16
|
-
}
|
|
17
|
-
namespace defaultProps {
|
|
18
|
-
const TabIndicatorProps_1: {};
|
|
19
|
-
export { TabIndicatorProps_1 as TabIndicatorProps };
|
|
20
|
-
const type_1: string;
|
|
21
|
-
export { type_1 as type };
|
|
22
|
-
const compact_1: boolean;
|
|
23
|
-
export { compact_1 as compact };
|
|
24
|
-
}
|
|
1
|
+
import { TabsProps as MuiTabsProps } from '@material-ui/core';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
interface TabsProps extends Omit<MuiTabsProps, 'type' | 'TabIndicatorProps'> {
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
type?: 'default' | 'filled' | 'filledTab';
|
|
7
|
+
TabIndicatorProps?: Partial<React.HTMLAttributes<HTMLDivElement>> & {
|
|
8
|
+
classes: {
|
|
9
|
+
root: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
25
12
|
}
|
|
26
|
-
|
|
13
|
+
declare const Tabs: {
|
|
14
|
+
({ compact, type, ...TabsProps }: TabsProps): JSX.Element;
|
|
15
|
+
propTypes: {
|
|
16
|
+
type: PropTypes.Requireable<string>;
|
|
17
|
+
compact: PropTypes.Requireable<boolean>;
|
|
18
|
+
};
|
|
19
|
+
defaultProps: {
|
|
20
|
+
type: string;
|
|
21
|
+
compact: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default Tabs;
|
|
27
25
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElG,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+G/B,UAAU,SAAU,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,mBAAmB,CAAC;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;QAClE,OAAO,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;SACd,CAAA;KACF,CAAC;CACH;AAED,QAAA,MAAM,IAAI;kDAAiD,WAAW;;;;;;;;;CAgCrE,CAAC;AAYF,eAAe,IAAI,CAAC"}
|
package/components/Tabs/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t
|
|
1
|
+
import{__rest as o,__assign as t}from"../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import{makeStyles as a,Tabs as e}from"@material-ui/core";import i from"classnames";import l from"prop-types";var n=a((function(o){return{root:{"& .MuiTab-root":{paddingLeft:16,paddingRight:16,"&.Mui-disabled":{color:o.palette.primary.text1}}},rootCompact:{"& .MuiTab-root":{minWidth:0}},root_filled:{backgroundColor:o.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:o.palette.primary.text6,"&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:o.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:42,"& .MuiTab-root":{color:o.palette.primary.contrastText,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"}}},root_filledTab:{minHeight:42,"& .MuiTab-root":{borderRadius:4,color:o.palette.primary.contrastText,fontSize:16,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{backgroundColor:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"},"&.Mui-disabled":{color:o.palette.primary.text9}}},tabIndicatorRoot:{height:4,borderTopLeftRadius:4,borderTopRightRadius:4},tabIndicatorFilledTab:{display:"none"},scrollButtonsRoot:{backgroundColor:o.palette.background.b9,height:48,zIndex:1,"&.Mui-disabled":{},"&:first-of-type":{"&::after":{background:"linear-gradient(to right, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",left:40,position:"absolute",width:16,zIndex:1}},"&:last-of-type":{"&::before":{background:"linear-gradient(to left, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",position:"absolute",right:40,width:16,zIndex:1}},"& .MuiSvgIcon-root":{color:o.palette.primary.text6}}}})),c=function(a){var l,c,d,p=a.compact,s=a.type,b=o(a,["compact","type"]),u=n(),m=b.classes,g=b.TabIndicatorProps;return r(e,t({},b,{classes:t(t({},m),{root:i(null==m?void 0:m.root,u.root,u["root_".concat(s)],(l={},l[u.rootCompact]=p,l)),scrollButtons:i(null==m?void 0:m.scrollButtons,u.scrollButtonsRoot)}),indicatorColor:"primary",TabIndicatorProps:t(t({},g),{classes:{root:i(null===(d=null==g?void 0:g.classes)||void 0===d?void 0:d.root,u.tabIndicatorRoot,(c={},c[u.tabIndicatorFilledTab]="filledTab"===s,c))}})}))};c.propTypes={type:l.oneOf(["default","filled","filledTab"]),compact:l.bool},c.defaultProps={type:"default",compact:!1};export{c as default};
|
|
@@ -1,40 +1,35 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare type TextLinkProps = PropTypes.InferProps<typeof textLinkPropTypes>;
|
|
3
|
+
declare const TextLink: {
|
|
4
|
+
({ TooltipProps, children, className, disabled, showTooltip, tooltipText, target, href, ...LinkProps }: TextLinkProps): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
7
|
+
href: PropTypes.Validator<string>;
|
|
8
|
+
className: PropTypes.Requireable<string>;
|
|
9
|
+
target: PropTypes.Requireable<string>;
|
|
10
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
11
|
+
showTooltip: PropTypes.Requireable<boolean>;
|
|
12
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
13
|
+
TooltipProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
14
|
+
};
|
|
15
|
+
defaultProps: {
|
|
16
|
+
TooltipProps: {};
|
|
17
|
+
className: string;
|
|
18
|
+
target: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
showTooltip: boolean;
|
|
21
|
+
tooltipText: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
declare const textLinkPropTypes: {
|
|
25
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
26
|
+
href: PropTypes.Validator<string>;
|
|
27
|
+
className: PropTypes.Requireable<string>;
|
|
28
|
+
target: PropTypes.Requireable<string>;
|
|
29
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
30
|
+
showTooltip: PropTypes.Requireable<boolean>;
|
|
31
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
32
|
+
TooltipProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
33
|
+
};
|
|
1
34
|
export default TextLink;
|
|
2
|
-
declare function TextLink({ TooltipProps, children, className, disabled, showTooltip, tooltipText, target, href, ...LinkProps }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
TooltipProps: any;
|
|
5
|
-
children: any;
|
|
6
|
-
className: any;
|
|
7
|
-
disabled: any;
|
|
8
|
-
showTooltip: any;
|
|
9
|
-
tooltipText: any;
|
|
10
|
-
target: any;
|
|
11
|
-
href: any;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
declare namespace TextLink {
|
|
14
|
-
namespace propTypes {
|
|
15
|
-
const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
16
|
-
const href: PropTypes.Validator<string>;
|
|
17
|
-
const className: PropTypes.Requireable<string>;
|
|
18
|
-
const target: PropTypes.Requireable<string>;
|
|
19
|
-
const disabled: PropTypes.Requireable<boolean>;
|
|
20
|
-
const showTooltip: PropTypes.Requireable<boolean>;
|
|
21
|
-
const tooltipText: PropTypes.Requireable<string>;
|
|
22
|
-
const TooltipProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
23
|
-
}
|
|
24
|
-
namespace defaultProps {
|
|
25
|
-
const TooltipProps_1: {};
|
|
26
|
-
export { TooltipProps_1 as TooltipProps };
|
|
27
|
-
const className_1: string;
|
|
28
|
-
export { className_1 as className };
|
|
29
|
-
const target_1: string;
|
|
30
|
-
export { target_1 as target };
|
|
31
|
-
const disabled_1: boolean;
|
|
32
|
-
export { disabled_1 as disabled };
|
|
33
|
-
const showTooltip_1: boolean;
|
|
34
|
-
export { showTooltip_1 as showTooltip };
|
|
35
|
-
const tooltipText_1: string;
|
|
36
|
-
export { tooltipText_1 as tooltipText };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
import PropTypes from "prop-types";
|
|
40
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA6CnC,aAAK,aAAa,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,QAAQ;4GAUX,aAAa,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CAgE7B,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;CAStB,CAAC;AAsBF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"
|
|
1
|
+
import{__rest as e,__assign as t}from"../../_virtual/_tslib.js";import{jsx as r,jsxs as o,Fragment as i}from"react/jsx-runtime";import{withStyles as n,Tooltip as a,makeStyles as p}from"@material-ui/core";import s from"prop-types";import l from"classnames";import m from"@material-ui/icons/Language";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as d}from"../DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";var c=n({tooltip:{padding:"4px 8px",display:"flex",alignItems:"center"}})(a),v=p((function(e){return{root:{color:e.palette.primary.main,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px",textDecoration:"none","&:hover":{color:e.palette.primary.main,textDecoration:"underline"},"&:visited":{color:e.palette.primary.main}},disabled:{color:e.palette.primary.dark,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px"},icon:{marginRight:8},buttonLink:{border:"none",background:"none",padding:0,cursor:"pointer"}}})),u=function(n){var p=n.TooltipProps,s=n.children,u=n.className,C=n.disabled,h=n.showTooltip,f=n.tooltipText,b=n.target,g=n.href,D=e(n,["TooltipProps","children","className","disabled","showTooltip","tooltipText","target","href"]),x=v(),j=d();if(C)return r(a,t({title:"Disabled",placement:"bottom-start"},{children:r("span",t({className:l(x.disabled,u)},D,{children:s}))}));var A=j&&"_self"===b?r("button",t({tabIndex:0,role:"link",className:l(x.buttonLink,x.root,u),onClick:function(e){e.metaKey||e.ctrlKey?window.open(g,"_blank"):j.push(g)}},D,{children:s})):r("a",t({className:l(x.root,u),target:b,href:g,rel:"noopener noreferrer"},D,{children:s}));return h||f?r(c,t({title:o(i,{children:[r(m,{fontSize:"small",className:x.icon}),f||g]}),placement:"bottom-start"},p,{children:A})):A};s.node.isRequired,s.string.isRequired,s.string,s.oneOf(["_self","_blank"]),s.bool,s.bool,s.string,s.shape({}),u.propTypes={children:s.node.isRequired,href:s.string.isRequired,className:s.string,target:s.oneOf(["_self","_blank"]),disabled:s.bool,showTooltip:s.bool,tooltipText:s.string,TooltipProps:s.shape({})},u.defaultProps={TooltipProps:{},className:"",target:"_blank",disabled:!1,showTooltip:!1,tooltipText:""};export{u as default};
|