@corva/ui 0.75.0-9 → 0.76.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/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
- package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/components/DatePicker/index.js +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/cjs-bundle/components/IconButton/index.js +1 -1
- package/cjs-bundle/components/MiddleTruncatedText/MiddleTruncatedText.js +1 -1
- package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
- package/cjs-bundle/components/Notifications/Toast.js +1 -1
- package/cjs-bundle/components/Notifications/Toast.styles.js +1 -1
- package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/useDialogState.js +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/Search/styles.js +1 -1
- package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
- package/cjs-bundle/config/theme/dateTimePickerThemeOverrides.js +1 -1
- package/cjs-bundle/config/theme/index.js +1 -1
- package/cjs-bundle/icons/index.js +1 -1
- package/components/AssetEditorV2/effects/index.d.ts.map +1 -1
- package/components/AssetEditorV2/effects/index.js +1 -1
- package/components/Chart/components/AxisDropdown.d.ts.map +1 -1
- package/components/Chart/components/AxisDropdown.js +1 -1
- package/components/Chart/components/ChartSelect.d.ts.map +1 -1
- package/components/Chart/components/ChartSelect.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/Chip/index.d.ts +1 -1
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Chip/index.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.d.ts +3 -3
- package/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts.map +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/IconButton/index.d.ts +0 -3
- package/components/IconButton/index.d.ts.map +1 -1
- package/components/IconButton/index.js +1 -1
- package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts.map +1 -1
- package/components/MiddleTruncatedText/MiddleTruncatedText.js +1 -1
- package/components/Modal/CorvaModal.d.ts.map +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Notifications/Toast.d.ts.map +1 -1
- package/components/Notifications/Toast.js +1 -1
- package/components/Notifications/Toast.styles.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts +4 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.d.ts.map +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/PadOffsetsPickerV2/useDialogState.js +1 -1
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/styles.d.ts.map +1 -1
- package/components/Search/styles.js +1 -1
- package/components/Select/SelectFilterBy.d.ts.map +1 -1
- package/components/Select/SelectFilterBy.js +1 -1
- package/config/theme/dateTimePickerThemeOverrides.d.ts +3 -0
- package/config/theme/dateTimePickerThemeOverrides.js +1 -1
- package/config/theme/index.d.ts.map +1 -1
- package/config/theme/index.js +1 -1
- package/icons/index.d.ts +2 -0
- package/icons/index.d.ts.map +1 -1
- package/icons/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@material-ui/core"),t=require("@material-ui/icons/Close"),i=require("./dateTimePickerThemeOverrides.js"),o=require("./accordionOverrides.js"),a=require("./buttonOverrides.js"),n=require("./checkboxOverrides.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@material-ui/core"),t=require("@material-ui/icons/Close"),i=require("./dateTimePickerThemeOverrides.js"),o=require("./accordionOverrides.js"),a=require("./buttonOverrides.js"),n=require("./checkboxOverrides.js"),p=require("./chipOverrides.js"),u=require("./fabOverrides.js"),c=require("./formControlLabelOverrides.js"),s=require("./formGroupOverrides.js"),d=require("./palette.mjs.js"),l=require("./radioOverrides.js"),m=require("./tableOverrides.js"),h=require("./textFieldOverrides.js"),x=require("./tooltipOverrides.js"),b=require("./themeVariables.mjs.js"),g=require("./toggleButtonsGroupOverrides.js"),j=require("react/jsx-runtime");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=O(e),v=O(t);function y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){f.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var k=d.primary,q=k.text7,T=k.text9,P={overrides:M(M(M(M(M(M(M(M(M(M(M(M(M({MuiPopover:{paper:{boxShadow:"0px 8px 24px 0px #0000003D"}},MuiMenu:{paper:{root:{overscrollBehaviorY:"contain","& .MuiMenuItem-root":{backgroundColor:d.background.b9,"&$selected":{backgroundColor:d.primary.text9}}}}},MuiMenuItem:{root:{minHeight:36,color:d.primary.contrastText}},MuiTooltip:{tooltip:{backgroundColor:d.background.b9}},MuiSwitch:{switchBase:{color:q},track:{backgroundColor:T,opacity:1},colorPrimary:{"&$checked":{"& + $track":{opacity:.38}}},colorSecondary:{"&$checked":{"& + $track":{opacity:.38}}}},MuiDialogTitle:{root:{padding:"40px 40px 16px 40px","@media (max-width: 960px)":{padding:"16px"}}},MuiDialogContent:{root:{padding:"0 40px 0 40px","@media (max-width: 960px)":{padding:"0 16px"}}},MuiDialogContentText:{root:{color:d.primary.text6,lineHeight:"22.5px",marginBottom:0}},MuiDialogActions:{root:{padding:"32px 40px 40px 40px","@media (max-width: 960px)":{padding:16}},spacing:{"&>:not(:first-child)":{marginLeft:16}}},MuiListItemIcon:{root:{minWidth:48}}},o),a),n),p),i.dateTimePickerThemeOverrides),u),c),s),l),m),h),x),g)},w={MuiMenu:{getContentAnchorEl:function(){return null}},MuiCheckbox:{color:"primary"},MuiRadio:{color:"primary"},MuiChip:{deleteIcon:j.jsx(v.default,{})}},C=r.createMuiTheme(M(M(M({props:w},b.lightThemeVariables),P),{},{isLightTheme:!0})),D=r.createMuiTheme(M(M(M({props:w},b.darkThemeVariables),{},{palette:M(M({},b.darkThemeVariables.palette),{},{type:"dark"})},P),{},{isLightTheme:!1}));exports.darkTheme=D,exports.lightTheme=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./WithCustomSize.js"),e=require("./IconParkProvider.js"),o=t.withCustomSize("AddOne"),i=t.withCustomSize("AllApplication"),s=t.withCustomSize("Attention"),n=t.withCustomSize("ChartHistogramTwo"),r=t.withCustomSize("BubbleChart"),C=t.withCustomSize("Broadcast"),c=t.withCustomSize("Caution"),p=t.withCustomSize("Calendar"),u=t.withCustomSize("CenterAlignment"),S=t.withCustomSize("CheckOne"),m=t.withCustomSize("CheckSmall"),h=t.withCustomSize("CloseSmall"),w=t.withCustomSize("Code"),I=t.withCustomSize("CollapseTextInput"),x=t.withCustomSize("Copy"),z=t.withCustomSize("Download"),l=t.withCustomSize("Down"),a=t.withCustomSize("DownOne"),d=t.withCustomSize("ExpandTextInput"),g=t.withCustomSize("Filter"),P=t.withCustomSize("FiveFive"),O=t.withCustomSize("FullScreenOne"),k=t.withCustomSize("HandleRound"),A=t.withCustomSize("ChartHistogram"),L=t.withCustomSize("Help"),v=t.withCustomSize("Layers"),F=t.withCustomSize("Info"),M=t.withCustomSize("LeftAlignment"),U=t.withCustomSize("Left"),T=t.withCustomSize("ChartLine"),f=t.withCustomSize("Lock"),H=t.withCustomSize("Message"),y=t.withCustomSize("Minus"),D=t.withCustomSize("More"),R=t.withCustomSize("MoveInOne"),b=t.withCustomSize("People"),B=t.withCustomSize("Peoples"),j=t.withCustomSize("Plus"),W=t.withCustomSize("Puzzle"),q=t.withCustomSize("Remind"),E=t.withCustomSize("Right"),V=t.withCustomSize("Search"),_=t.withCustomSize("Send"),G=t.withCustomSize("SettingOne"),J=t.withCustomSize("SettingTwo"),K=t.withCustomSize("SmilingFace"),N=t.withCustomSize("Star"),Q=t.withCustomSize("Time"),X=t.withCustomSize("Undo"),Y=t.withCustomSize("Unlock"),Z=t.withCustomSize("Up"),$=t.withCustomSize("User"),tt=t.withCustomSize("VerticalTidyUp"),et=t.withCustomSize("Write");exports.IconParkProvider=e.IconParkProvider,exports.AddOneIcon=o,exports.ApplicationIcon=i,exports.AttentionIcon=s,exports.BarChartIcon=n,exports.BroadcastIcon=C,exports.BubbleChartIcon=r,exports.CalendarIcon=p,exports.CautionIcon=c,exports.CenterAlignmentIcon=u,exports.CheckOneIcon=S,exports.CheckSmallIcon=m,exports.CloseSmallIcon=h,exports.CodeIcon=w,exports.CollapseIcon=I,exports.CopyIcon=x,exports.DownIcon=l,exports.DownOneIcon=a,exports.DownloadIcon=z,exports.ExpandIcon=d,exports.FilterIcon=g,exports.FiveIcon=P,exports.FullScreenOneIcon=O,exports.HandleRoundIcon=k,exports.HelpIcon=L,exports.HistogramIcon=A,exports.InfoIcon=F,exports.LayersIcon=v,exports.LeftAlignmentIcon=M,exports.LeftIcon=U,exports.LineChartIcon=T,exports.LockIcon=f,exports.MessageIcon=H,exports.MinusIcon=y,exports.MoreIcon=D,exports.MoveInIcon=R,exports.PeopleIcon=b,exports.PeoplesIcon=B,exports.PlusIcon=j,exports.PuzzleIcon=W,exports.RemindIcon=q,exports.RightIcon=E,exports.SearchIcon=V,exports.SendIcon=_,exports.SettingOneIcon=G,exports.SettingTwoIcon=J,exports.SmilingFaceIcon=K,exports.StarIcon=N,exports.TimeIcon=Q,exports.UndoIcon=X,exports.UnlockIcon=Y,exports.UpIcon=Z,exports.UserIcon=$,exports.VerticalLinesIcon=tt,exports.WriteIcon=et;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;EAuCC;AAED;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;EAuCC;AAED;;;;;;;;;;;;;;;;EAwFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import{useState as o,useEffect as a,useRef as i}from"react";import{isEmpty as p}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as c}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{jsonaDataFormatter as u}from"../../../utils/jsonaDataFormatter.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{ASSET_TYPES as l}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{formatAsset as m,sortAsset as f,getRequestOptions as d}from"../utils/index.js";function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?y(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t){var i=t.appKey,p=t.assetType,l=t.assetId,y=t.company,b=t.parentAssetType,h=t.parentAssetId,g=t.queryParams,v=t.assetFields,O=t.activeWellId,A=t.isRequiredAssetId,I=o([]),P=n(I,2),w=P[0],x=P[1],T=o(!0),k=n(T,2),_=k[0],q=k[1];return a((function(){function t(){return(t=r(s.mark((function t(){var r,n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c(p)(j(j(j({},d(p,v)),{},e({per_page:1e4,company:"all"!==y?y:null},b,h),i&&{app_key:i}),g));case 2:r=t.sent,n=u.deserialize(r),x(n.map((function(t){return m({asset:t,activeWellId:O,isRequiredAssetId:A})})).sort(f)),q(!1);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}q(!0),function(){t.apply(this,arguments)}()}),[p,l,b,h,i,O,y]),{assets:w,loading:_}}function h(e){var y,b=e.appKey,h=e.assetType,g=e.company,v=e.groups,O=e.isRequiredAssetId,A=e.parentAssetId,I=e.parentAssetType,P=e.searchText,w=e.assetFields,x=e.currentValue,T=e.setCurrentOption,k=e.onActiveAssetIdChange,_=o([]),q=n(_,2),D=q[0],C=q[1],R=o(!1),E=n(R,2),F=E[0],W=E[1],z=i(null),G=(y=r(s.mark((function e(r){var n,o,a,i,y,v,_,q;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(null==r?void 0:r.type)||h,W(!0),o={per_page:1e4},I&&A&&(o[I]=A),g&&"all"!==g&&(o.company=g),P&&(o.search=P),b&&(o.app_key=b),z.current=g,a=n===l.pad.type?[].concat(t(w),["pad.active","pad.parent_frac_fleet_id","pad.current"]):w,i=c(n)(j(j({},d(n,a)),o)),e.next=13,i;case 13:y=e.sent,v=u.deserialize(y),_=v.map((function(t){return m({asset:t,group:null==r?void 0:r.name,isRequiredAssetId:O,isPrimaryAsset:!0})})).sort(f),z.current===g&&C((function(e){return[].concat(t(e),t(_))})),x&&n===h&&(q=_.find((function(t){return x===t.id||t.assetId&&x===t.assetId})),p(q)||T(q),n===l.rig.type&&k(null==q?void 0:q.activeWellId)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:return e.prev=23,W(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])}))),function(t){return y.apply(this,arguments)});return a((function(){g&&C([])}),[g]),a((function(){v?v.forEach((function(t){G(t)})):G()}),[h,I,A,g,b,null==v?void 0:v.length]),{assets:D,loading:F}}export{h as usePrimaryAssetSelectData,b as useSecondaryAssetSelectData};
|
|
1
|
+
import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import{useState as o,useEffect as a,useRef as i}from"react";import{isEmpty as p}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as c}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{jsonaDataFormatter as u}from"../../../utils/jsonaDataFormatter.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{ASSET_TYPES as l}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{formatAsset as m,sortAsset as f,getRequestOptions as d}from"../utils/index.js";function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?y(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t){var i=t.appKey,p=t.assetType,l=t.assetId,y=t.company,b=t.parentAssetType,h=t.parentAssetId,g=t.queryParams,v=t.assetFields,O=t.activeWellId,A=t.isRequiredAssetId,I=o([]),P=n(I,2),w=P[0],x=P[1],T=o(!0),k=n(T,2),_=k[0],q=k[1];return a((function(){function t(){return(t=r(s.mark((function t(){var r,n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c(p)(j(j(j({},d(p,v)),{},e({per_page:1e4,company:"all"!==y?y:null},b,h),i&&{app_key:i}),g));case 2:r=t.sent,n=u.deserialize(r),x(n.map((function(t){return m({asset:t,activeWellId:O,isRequiredAssetId:A})})).sort(f)),q(!1);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}q(!0),function(){t.apply(this,arguments)}()}),[p,l,b,h,i,O,y]),{assets:w,loading:_}}function h(e){var y,b=e.appKey,h=e.assetType,g=e.company,v=e.groups,O=e.isRequiredAssetId,A=e.parentAssetId,I=e.parentAssetType,P=e.searchText,w=e.assetFields,x=e.currentValue,T=e.setCurrentOption,k=e.onActiveAssetIdChange,_=o([]),q=n(_,2),D=q[0],C=q[1],R=o(!1),E=n(R,2),F=E[0],W=E[1],z=i(null),G=(y=r(s.mark((function e(r){var n,o,a,i,y,v,_,q;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(null==r?void 0:r.type)||h,W(!0),o={per_page:1e4},I&&A&&(o[I]=A),g&&"all"!==g&&(o.company=g),P&&(o.search=P),b&&(o.app_key=b),z.current=g,a=n===l.pad.type?[].concat(t(w),["pad.active","pad.parent_frac_fleet_id","pad.current"]):w,i=c(n)(j(j({},d(n,a)),o)),e.next=13,i;case 13:y=e.sent,v=u.deserialize(y),_=v.map((function(t){return m({asset:t,group:null==r?void 0:r.name,isRequiredAssetId:O,isPrimaryAsset:!0})})).filter(Boolean).sort(f),z.current===g&&C((function(e){return[].concat(t(e),t(_))})),x&&n===h&&(q=_.find((function(t){return x===t.id||t.assetId&&x===t.assetId})),p(q)||T(q),n===l.rig.type&&k(null==q?void 0:q.activeWellId)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:return e.prev=23,W(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])}))),function(t){return y.apply(this,arguments)});return a((function(){g&&C([])}),[g]),a((function(){v?v.forEach((function(t){G(t)})):G()}),[h,I,A,g,b,null==v?void 0:v.length]),{assets:D,loading:F}}export{h as usePrimaryAssetSelectData,b as useSecondaryAssetSelectData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisDropdown.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AxisDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisDropdown.js"],"names":[],"mappings":";AA8CA;;;;;;;;gBA4BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{makeStyles as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as n,Select as o,MenuItem as i}from"@material-ui/core";import{DownOneIcon as a}from"../../../icons/index.js";import{jsx as c,jsxs as l,Fragment as s}from"react/jsx-runtime";var p=["className","classes","value","onChange","unit","options"];function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function m(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var f=n((function(e){var r=e.palette;return{selectContainer:{color:r.primary.contrastText,background:"transparen !important","& .MuiSelect-icon ":{top:"unset",right:4},"& .MuiSelect-icon > svg > path":{fill:r.primary.text6,stroke:r.primary.text6},"& .MuiSelect-iconOpen > svg > path":{fill:r.primary.main,stroke:r.primary.main},"&:hover":{"& .MuiSelect-icon > svg > path":{fill:r.primary.contrastText,stroke:r.primary.contrastText}},"&:active":{"& .MuiSelect-icon > svg > path":{fill:r.primary.main,stroke:r.primary.main}}},selectRoot:{fontSize:16,"&:focus":{backgroundColor:"transparent"}},unit:{fontSize:12,lineHeight:0,color:r.primary.text7}}})),b=function(e){var n=e.className,u=e.classes,b=e.value,h=e.onChange,y=e.unit,v=e.options,g=r(e,p),O=f();return c(o,m(m({className:t(O.selectContainer,n),value:b,classes:m({root:O.selectRoot},u),onChange:h,disableUnderline:!0,IconComponent:function(e){return c(a,m({theme:"filled",fill:"#BDBDBD",size:16},e))},renderValue:function(e){return l(s,{children:[e,y&&l("span",{className:O.unit,children:["(",y,")"]})]})}},g),{},{children:null==v?void 0:v.map((function(e){var r=e.label,t=e.value;return c(i,{value:t,children:r},t)}))}))};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartSelect.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ChartSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartSelect.js"],"names":[],"mappings":";AAmDA;;;;;;;gBAiCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as o,Select as n,MenuItem as a}from"@material-ui/core";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as o,Select as n,MenuItem as a}from"@material-ui/core";import{DownOneIcon as i}from"../../../icons/index.js";import{jsx as c}from"react/jsx-runtime";var l=["className","classes","value","onChange","options"];function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function p(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var u=o((function(e){var r=e.palette;return{selectContainer:{color:r.primary.contrastText,width:180,background:r.background.b6,borderRadius:4,height:30,marginRight:4,"& .MuiSelect-icon ":{top:"unset",right:4},"& .MuiSelect-icon > svg > path":{fill:r.primary.text6,stroke:r.primary.text6},"& .MuiSelect-iconOpen > svg > path":{fill:r.primary.main,stroke:r.primary.main},"&:hover":{background:r.background.b7,"& .MuiSelect-icon > svg > path":{fill:r.primary.contrastText,stroke:r.primary.contrastText}},"&:active":{background:r.background.b7}},selectRoot:{fontSize:14,paddingLeft:12,backgroundColor:"transparent","&:active":{backgroundColor:"transparent"},"&:focus":{backgroundColor:"transparent"}},menuPaper:{marginTop:4}}})),m=function(e){var o=e.className,s=e.classes,m=e.value,b=e.onChange,f=e.options,g=r(e,l),d=u();return c(n,p(p({className:t(d.selectContainer,o),value:m,classes:p({root:d.selectRoot},s),onChange:b,disableUnderline:!0,IconComponent:function(e){return c(i,p({theme:"filled",fill:"#BDBDBD",size:16},e))},MenuProps:{classes:{paper:d.menuPaper},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},g),{},{children:null==f?void 0:f.map((function(e){var r=e.label,t=e.value;return c(a,{value:t,children:r},t)}))}))};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useContext as r,useState as o}from"react";import e from"classnames";import{makeStyles as n}from"@material-ui/core";import{LineChartIcon as a,
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useContext as r,useState as o}from"react";import e from"classnames";import{makeStyles as n}from"@material-ui/core";import{LineChartIcon as a,HistogramIcon as i}from"../../../../icons/index.js";import c from"../ChartButton.js";import m from"../../ChartWrapperContext.js";import{jsxs as s,jsx as u}from"react/jsx-runtime";var d=n((function(t){var r=t.palette;return{container:{display:"flex",marginRight:4,"&:hover $button":{background:"red !important"}},lineChartButton:{borderTopRightRadius:0,borderBottomRightRadius:0,marginBottom:0,"&:active":{background:r.background.b7}},barChartButton:{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginBottom:0,"&:active":{background:r.background.b7}},hoveredContainer:{background:r.background.b7}}})),l="spline",p="bar",h=function(n){var h=n.className,b=n.onClick,f=r(m),C=f.chartType,g=f.handleChartTypeChange,v=o(!1),k=t(v,2),B=k[0],R=k[1],x=d();return s("div",{className:e(x.container,h),onMouseEnter:function(){R(!0)},onMouseLeave:function(){R(!1)},children:[u(c,{className:e(x.lineChartButton,B&&x.hoveredContainer),tooltipProps:{title:"Line Chart",placement:"bottom"},isActive:C===l,onClick:function(){g(l),b(l)},children:u(a,{})}),u(c,{className:e(x.barChartButton,B&&x.hoveredContainer),tooltipProps:{title:"Bar Chart",placement:"bottom"},isActive:C===p,onClick:function(){g(p),b(p)},children:u(i,{})})]})};h.defaultProps={onClick:function(){},isHidden:!1};export{h as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ChipProps as MuiChipProps } from '@material-ui/core';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { ChipProps as MuiChipProps } from '@material-ui/core';
|
|
4
4
|
interface ChipProps extends Omit<MuiChipProps, 'variant'>, PropTypes.InferProps<typeof chipPropTypes> {
|
|
5
5
|
variant?: 'default' | 'outlined' | 'basic';
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAA+B,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAA+B,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoF3F,UAAU,SACR,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EACnC,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;IAC5C,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CAC5C;AAED,QAAA,MAAM,IAAI,iwJA+BR,CAAC;AAEH,QAAA,MAAM,aAAa;;;CAGlB,CAAC;AASF,eAAe,IAAI,CAAC"}
|
package/components/Chip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import{forwardRef as t}from"react";import a from"prop-types";import r from"classnames";import{makeStyles as o,Chip as l}from"@material-ui/core";import{CloseSmallIcon as n}from"../../icons/index.js";var c=function(e){var i=e.width,t=void 0===i?24:i,a=e.height,r=void 0===a?24:a,o=e.fill.replace("#","%23");return"<svg width='".concat(t,"' height='").concat(r,"' viewBox='0 0 24 24' fill='").concat(o,"' xmlns='http://www.w3.org/2000/svg'><path d='M20.5303 6.46967C20.8232 6.76256 20.8232 7.23744 20.5303 7.53033L10.5303 17.5303C10.2374 17.8232 9.76256 17.8232 9.46967 17.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697C4.76256 11.1768 5.23744 11.1768 5.53033 11.4697L10 15.9393L19.4697 6.46967C19.7626 6.17678 20.2374 6.17678 20.5303 6.46967Z'/></svg>")},p=o((function(e){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(c({fill:e.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:16,lineHeight:"16px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(c({fill:e.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(c({width:12,fill:e.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(c({width:12,fill:e.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:e.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:e.palette.background.b1,padding:0},"&:hover":{backgroundColor:e.palette.primary.main,"& .MuiChip-label":{color:e.palette.background.b1}}}}}})),s=t((function(t,a){var o,c=t.checked,s=t.classes,d=void 0===s?{}:s,m=p(),h=r(t.className,((o={})[m.basic]="basic"===t.variant,o)),u="basic"===t.variant?"default":t.variant;return i(l,e({},t,c?{ref:a,className:h,classes:e(e({},d),{root:r(d.root,m.checked)}),variant:u,deleteIcon:i(n,{size:16})}:{ref:a,className:h,variant:u,deleteIcon:i(n,{size:16})}))})),d={checked:a.bool,"data-testid":a.string};s.propTypes=d,s.defaultProps={checked:!1,"data-testid":"Chip"};export{s as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default CopyToClipboard;
|
|
2
|
-
declare function CopyToClipboard({
|
|
3
|
-
|
|
2
|
+
declare function CopyToClipboard({ children, classes, dataTestId, IconComponent, tooltipProps }: {
|
|
3
|
+
children: any;
|
|
4
4
|
classes: any;
|
|
5
5
|
dataTestId: any;
|
|
6
6
|
IconComponent: any;
|
|
@@ -8,7 +8,7 @@ declare function CopyToClipboard({ label, classes, dataTestId, IconComponent, to
|
|
|
8
8
|
}): JSX.Element;
|
|
9
9
|
declare namespace CopyToClipboard {
|
|
10
10
|
namespace propTypes {
|
|
11
|
-
const
|
|
11
|
+
const children: PropTypes.Validator<string>;
|
|
12
12
|
const dataTestId: PropTypes.Requireable<string>;
|
|
13
13
|
const IconComponent: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
14
14
|
const tooltipProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/CopyToClipboard.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/CopyToClipboard.js"],"names":[],"mappings":";AAwBA;;;;;;gBAqCC;;;;;;;;;;;;;;;;;;;;;;QAsBgB,+CAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useState as o,useEffect as e}from"react";import r from"classnames";import i from"prop-types";import{makeStyles as
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useState as o,useEffect as e}from"react";import r from"classnames";import i from"prop-types";import{makeStyles as p,Tooltip as n}from"@material-ui/core";import{CopyIcon as a}from"../../icons/index.js";import s from"../../utils/main.js";import{jsx as l}from"react/jsx-runtime";var c=p((function(t){return{iconWrapper:{color:t.palette.primary.text6,cursor:"pointer",paddingLeft:4,display:"flex",alignItems:"center","&:hover":{color:t.palette.primary.contrastText}},tooltip:{color:t.palette.primary.text6,backgroundColor:"rgba(20, 20, 20, 0.5)"}}})),m=function(i){var p=i.children,a=i.classes,m=i.dataTestId,d=i.IconComponent,u=i.tooltipProps,f=o(!1),g=t(f,2),y=g[0],b=g[1],h=c();return e((function(){var t=setTimeout((function(){b(!1)}),u.delay);return function(){return clearTimeout(t)}}),[y]),l(n,{classes:{tooltip:r(h.tooltip,a.tooltip),popper:r(h.tooltipPopper,a.tooltipPopper)},title:u.title,open:y,disableFocusListener:!0,disableHoverListener:!0,placement:u.placement,children:l("span",{className:r(h.iconWrapper,a.iconWrapper),onClick:function(){b(!0),s.copyToClipboard(p)},children:l(d,{className:a.icon,"data-testid":m})})})};m.propTypes={children:i.string.isRequired,dataTestId:i.string,IconComponent:i.shape({}),tooltipProps:i.shape({title:i.string,placement:i.string,delay:i.number}),classes:i.shape({root:i.string,icon:i.string,iconWrapper:i.string,tooltip:i.string,tooltipPopper:i.string})},m.defaultProps={dataTestId:null,IconComponent:function(){return l(a,{size:16})},tooltipProps:{title:"Copied",placement:"bottom",delay:1500},classes:{}};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import{KeyboardDatePicker as i}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import m from"moment";import{DATE_FORMAT as p}from"../../constants/dateTimeFormat.js";import{CalendarIcon as n,RightIcon as c,LeftIcon as l}from"../../icons/index.js";var u=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:
|
|
1
|
+
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import{KeyboardDatePicker as i}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import m from"moment";import{DATE_FORMAT as p}from"../../constants/dateTimeFormat.js";import{CalendarIcon as n,RightIcon as c,LeftIcon as l}from"../../icons/index.js";var u=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:4},"& .MuiIconButton-root svg":{fill:"transparent !important"}},paper:{marginTop:8}}})),f=function(a){var s=a.className,f=a.PopoverProps,d=o(a,["className","PopoverProps"]),P=u();return t(i,r({disableToolbar:!0,variant:"inline",keyboardIcon:t(n,{}),rightArrowIcon:t(c,{}),leftArrowIcon:t(l,{}),format:p,placeholder:m().format(p),refuse:/[^(\w|\d)]+/gi},d,{PopoverProps:r({className:e(P.paper,f.className)},f),className:e(P.dateTimePickerInput,s)}))};f.propTypes={PopoverProps:a.shape({className:a.string}),className:a.string},f.defaultProps={PopoverProps:{},className:""};export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import i from"moment";import{KeyboardDateTimePicker as m}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import{CalendarIcon as p,TimeIcon as n,RightIcon as c,LeftIcon as u}from"../../icons/index.js";import{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var f=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:
|
|
1
|
+
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import i from"moment";import{KeyboardDateTimePicker as m}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import{CalendarIcon as p,TimeIcon as n,RightIcon as c,LeftIcon as u}from"../../icons/index.js";import{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var f=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:4},"& .MuiIconButton-root svg":{fill:"transparent !important"}},paper:{marginTop:8}}}));function d(a){var s=a.className,l=a.PopoverProps,d=a.format,P=o(a,["className","PopoverProps","format"]),g=f();return t(m,r({dateRangeIcon:t(p,{size:24}),timeIcon:t(n,{size:24}),rightArrowIcon:t(c,{}),leftArrowIcon:t(u,{}),keyboardIcon:t(p,{}),format:d,refuse:/[^(\w|\d)]+/gi,placeholder:i().format(d)},P,{PopoverProps:r({className:g.paper},l),className:e(g.dateTimePickerInput,s)}))}d.propTypes={className:a.string,PopoverProps:a.shape({className:a.string}),format:a.string},d.defaultProps={className:"",PopoverProps:{},format:l};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAA4B,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGpG,OAAO,EAEL,uBAAuB,EACxB,MAAM,8DAA8D,CAAC;AA6CtE,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;
|
|
1
|
+
{"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAA4B,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGpG,OAAO,EAEL,uBAAuB,EACxB,MAAM,8DAA8D,CAAC;AA6CtE,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;AA+BD,eAAO,MAAM,oBAAoB,0FAO9B,yBAAyB,KAAG,WA0C9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import r from"classnames";import{makeStyles as o,useTheme as n}from"@material-ui/core";import{CenterAlignmentIcon as a}from"../../../icons/index.js";import p from"../AppSideBar/AppSideBar.js";import s from"../../IconButton/index.js";import{AppSettingsPopover as l}from"../AppSettingsPopover/AppSettingsPopover.js";import d from"../../Button/index.js";import{useMatchAppContainerSize as c}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as m,isMobileDetected as h}from"../../../utils/mobileDetect.js";var f=o({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"},filtersTrigger:{width:30,height:30}}),g=function(t){var r=n(),o=c({width:{max:r.breakpoints.width("md")}}),p=f();return o?i(s,e({className:p.filtersTrigger,size:"small",tooltipProps:{title:"Filters"},variant:"contained"
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import r from"classnames";import{makeStyles as o,useTheme as n}from"@material-ui/core";import{CenterAlignmentIcon as a}from"../../../icons/index.js";import p from"../AppSideBar/AppSideBar.js";import s from"../../IconButton/index.js";import{AppSettingsPopover as l}from"../AppSettingsPopover/AppSettingsPopover.js";import d from"../../Button/index.js";import{useMatchAppContainerSize as c}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as m,isMobileDetected as h}from"../../../utils/mobileDetect.js";var f=o({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"},filtersTrigger:{width:30,height:30}}),g=function(t){var r=n(),o=c({width:{max:r.breakpoints.width("md")}}),p=f();return o?i(s,e({className:p.filtersTrigger,size:"small",tooltipProps:{title:"Filters"},variant:"contained"},t,{children:i(a,{size:16})})):i(d,e({startIcon:i(a,{size:16})},t,{children:"Filters"}))},x=function(o){var a=o.appSettingsPopoverProps,s=o.children,d=o.classes,x=void 0===d?{}:d,v=o.header,u=o.sideBarContent,j=o.sideBarProps,w=f(),y=n(),z=c({width:{max:y.breakpoints.width("md")}}),A=m||h||z;return t("div",e({className:r(w.appLayout,x.appLayout)},{children:[A&&t("div",e({className:r(w.header,x.header)},{children:[i(l,e({Trigger:g,classes:{popoverContent:w.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},a,{children:u})),v]})),t("div",e({className:r(w.contentWrapper,x.contentWrapper)},{children:[!A&&i(p,e({},j,{anchor:"left"},{children:u})),i("div",e({className:r(w.content,x.content)},{children:s}))]}))]}))};export{x as AppFilterPanelLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AA8DtE,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAClC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,OAAO,EACP,iBAAyB,EACzB,MAAmB,EACnB,iBAAsB,EACtB,SAAgB,EAChB,YAAmB,EACnB,UAAe,EACf,OAAkB,EAClB,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AA8DtE,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAClC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,OAAO,EACP,iBAAyB,EACzB,MAAmB,EACnB,iBAAsB,EACtB,SAAgB,EAChB,YAAmB,EACnB,UAAe,EACf,OAAkB,EAClB,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAmGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as r}from"react/jsx-runtime";import{useState as n}from"react";import l from"classnames";import{makeStyles as a,Popover as c}from"@material-ui/core";import{SettingTwoIcon as s,CloseSmallIcon as d}from"../../../icons/index.js";import{isNativeDetected as p,isMobileDetected as m}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import g from"../../Modal/Modal.js";import u from"../../Button/index.js";var v=p||m,f=a((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 89%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},modalActions:{display:"flex",justifyContent:"flex-end"}}}));function b(a){var m=a.Trigger,b=a.children,C=a.classes,x=a.defaultScrollable,H=void 0!==x&&x,S=a.header,j=void 0===S?"Settings":S,k=a.iconSettingsProps,T=void 0===k?{}:k,P=a.maxHeight,w=void 0===P?null:P,z=a.modalActions,N=void 0===z?null:z,y=a.modalProps,A=void 0===y?{}:y,B=a.onClose,I=void 0===B?function(){}:B,O=o(a,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),D=n(null),E=D[0],M=D[1],Y=n(!0),L=Y[0],W=Y[1],X=f({maxHeight:w,isScrollable:L,isNativeDetected:p}),_=C||{},q=_.popoverContent,F=o(_,["popoverContent"]),G=function(){M(null),I()},J=Boolean(E),K=function(o){return M(o.currentTarget)},Q=N||t(u,e({variation:"secondary",onClick:G},{children:"CLOSE"}));return i(r,{children:[m?t(m,{onClick:K}):t(h,e({isActive:J,onClick:K,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},T,{children:t(s,{size:16})})),!v&&i(c,e({open:J,anchorEl:E,onClose:G,anchorOrigin:{vertical:L?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},O,{classes:e(e({},F),{paper:l(X.popoverPaper,L&&"scrollable",null==F?void 0:F.paper)})},{children:[i("div",e({className:l(X.popoverHeader,L&&"scrollable")},{children:[t("div",e({className:X.headerTitle},{children:j})),t(h,e({tooltipProps:{title:"Close"},onClick:G},{children:t(d,{})}))]})),t("div",e({className:l(X.popoverContentContainer,L&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!H&&W(!1)}},{children:t("div",e({className:l(X.popoverContent,q)},{children:b}))}))]})),v&&t(g,e({actions:Q,onClose:G,open:J,actionsClassName:X.modalActions,title:j},A,{children:b}))]})}export{b as AppSettingsPopover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,Fragment as o,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as a}from"react";import l from"prop-types";import c from"classnames";import{noop as d}from"lodash";import{makeStyles as p,createStyles as s,Drawer as h,Box as u,Tooltip as f}from"@material-ui/core";import m from"../../IconButton/index.js";import g from"../../Button/index.js";import{LeftAlignmentIcon as x,CloseSmallIcon as b,CheckSmallIcon as T,RightIcon as w,LeftIcon as C}from"../../../icons/index.js";var O=p((function(e){var t,o;return s({drawer:function(e){var t;return(t={height:"100%",position:"relative",width:e.openedDrawerWidth})["&.".concat("closed")]={width:"48px"},t},drawerPaper:(t={position:"relative",width:"100%",borderRadius:function(e){return"left"===e.anchor?"0 8px 0 0":"8px 0 0 0"},backgroundColor:e.palette.background.b5},t["&.".concat("closed")]={cursor:"pointer","&:hover":{backgroundColor:e.palette.background.b7,"& > $header":{backgroundColor:e.palette.background.b7}}},t["&.MuiDrawer-paperAnchorDockedLeft"]={borderRight:"none"},t["&.MuiDrawer-paperAnchorDockedRight"]={borderLeft:"none"},t),header:(o={alignItems:"center",backgroundColor:e.palette.background.b5,borderBottom:"1px solid",borderBottomColor:"#ffffff14",display:"flex",fontSize:16,fontWeight:400,height:48,justifyContent:"center",left:0,letterSpacing:"1px",lineHeight:"22px",position:"absolute",right:0,textTransform:"capitalize",top:0},o["&.".concat("open")]={padding:e.spacing(1.5),justifyContent:"flex-start"},o),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(e){var t,o=e.anchor;return(t={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"})["&.".concat("open")]={justifyContent:"left"===o?"flex-end":"flex-start",paddingRight:6},t},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"12px !important"},"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer",paddingLeft:7,letterSpacing:1}})})),I=function(l){var d,p=l.anchor,s=l.children,I=l.drawerPaperClassName,
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,Fragment as o,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as a}from"react";import l from"prop-types";import c from"classnames";import{noop as d}from"lodash";import{makeStyles as p,createStyles as s,Drawer as h,Box as u,Tooltip as f}from"@material-ui/core";import m from"../../IconButton/index.js";import g from"../../Button/index.js";import{LeftAlignmentIcon as x,CloseSmallIcon as b,CheckSmallIcon as T,RightIcon as w,LeftIcon as C}from"../../../icons/index.js";var O=p((function(e){var t,o;return s({drawer:function(e){var t;return(t={height:"100%",position:"relative",width:e.openedDrawerWidth})["&.".concat("closed")]={width:"48px"},t},drawerPaper:(t={position:"relative",width:"100%",borderRadius:function(e){return"left"===e.anchor?"0 8px 0 0":"8px 0 0 0"},backgroundColor:e.palette.background.b5},t["&.".concat("closed")]={cursor:"pointer","&:hover":{backgroundColor:e.palette.background.b7,"& > $header":{backgroundColor:e.palette.background.b7}}},t["&.MuiDrawer-paperAnchorDockedLeft"]={borderRight:"none"},t["&.MuiDrawer-paperAnchorDockedRight"]={borderLeft:"none"},t),header:(o={alignItems:"center",backgroundColor:e.palette.background.b5,borderBottom:"1px solid",borderBottomColor:"#ffffff14",display:"flex",fontSize:16,fontWeight:400,height:48,justifyContent:"center",left:0,letterSpacing:"1px",lineHeight:"22px",position:"absolute",right:0,textTransform:"capitalize",top:0},o["&.".concat("open")]={padding:e.spacing(1.5),justifyContent:"flex-start"},o),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(e){var t,o=e.anchor;return(t={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"})["&.".concat("open")]={justifyContent:"left"===o?"flex-end":"flex-start",paddingRight:6},t},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"12px !important"},"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer",paddingLeft:7,letterSpacing:1}})})),I=function(l){var d,p=l.anchor,s=l.children,I=l.drawerPaperClassName,v=l.expandedTooltipTitle,k=l.collapsedTooltipTitle,S=l.header,A=l.headerIcon,B=l.headerTitleIcon,z=l.isOpen,D=l.openedDrawerWidth,N=l.setIsOpen,y=l.size,j=l.allOptionsButtonShown,W=l.isAllOptionsSelected,P=l.onAllOptionsClick,R=r(!1);R[0];var M=R[1],H=i(),L=O({anchor:p,openedDrawerWidth:D||{small:235,medium:354,large:473}[y]});a((function(){var e=H.current,t=e.scrollHeight,o=e.clientHeight;M(t>o)}));var _="left"===p?w:C;return t(h,e({"data-testid":"".concat("AppSideBar","_Drawer"),onClick:function(){z||N(!0)},className:c(L.drawer,!z&&"closed"),variant:"permanent",classes:{paper:c(L.drawerPaper,I,!z&&"closed")},anchor:p},{children:[t("div",e({className:c(L.header,z&&"open"),onClick:function(){z&&N(!1)}},{children:[z&&t(o,{children:[B||n(x,{size:24}),n("div",e({"data-testid":"".concat("AppSideBar","_header"),className:L.headerIconText},{children:S})),j&&n(g,e({className:L.selectAllButton,onClick:function(e){e.stopPropagation(),P(e)},startIcon:n(W?b:T,{size:16})},{children:W?"Clear All":"Select All"}))]}),!z&&A]})),n("div",e({className:L.contentWrapper,ref:H},{children:n("div",e({className:L.content},{children:z&&s}))})),n(u,e({className:c(L.openToggleContainer,(d={},d.open=z,d))},{children:n(f,e({title:z?v:k,placement:"bottom"},{children:n("div",{children:n(m,e({"aria-label":"toggle sidebar",onClick:function(){N(!z)}},{children:n(_,{size:24,"data-testid":"".concat("AppSideBar","_arrowButton"),className:c(z&&L.openToggleIconOpen)})}))})}))}))]}))},v={anchor:l.oneOf(["left","right"]),children:l.node.isRequired,drawerPaperClassName:l.string,expandedTooltipTitle:l.string,collapsedTooltipTitle:l.string,header:l.node,headerIcon:l.node,headerTitleIcon:l.node,isOpen:l.bool,openedDrawerWidth:l.oneOfType([l.string,l.number]),setIsOpen:l.func,size:l.oneOf(["small","medium","large"]),allOptionsButtonShown:l.bool,isAllOptionsSelected:l.bool,onAllOptionsClick:l.func};I.propTypes=v,I.defaultProps={anchor:"left",drawerPaperClassName:"",expandedTooltipTitle:"Collapse",collapsedTooltipTitle:"Expand",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:d,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:d};export{I as default};
|
|
@@ -25,7 +25,6 @@ declare const IconButton: {
|
|
|
25
25
|
}>>;
|
|
26
26
|
disabled: PropTypes.Requireable<boolean>;
|
|
27
27
|
'data-testid': PropTypes.Requireable<string>;
|
|
28
|
-
iconType: PropTypes.Requireable<string>;
|
|
29
28
|
};
|
|
30
29
|
defaultProps: {
|
|
31
30
|
isActive: boolean;
|
|
@@ -35,7 +34,6 @@ declare const IconButton: {
|
|
|
35
34
|
title: string;
|
|
36
35
|
};
|
|
37
36
|
disabled: boolean;
|
|
38
|
-
iconType: string;
|
|
39
37
|
'data-testid': string;
|
|
40
38
|
};
|
|
41
39
|
};
|
|
@@ -57,7 +55,6 @@ declare const iconButtonPropTypes: {
|
|
|
57
55
|
}>>;
|
|
58
56
|
disabled: PropTypes.Requireable<boolean>;
|
|
59
57
|
'data-testid': PropTypes.Requireable<string>;
|
|
60
|
-
iconType: PropTypes.Requireable<string>;
|
|
61
58
|
};
|
|
62
59
|
export default IconButton;
|
|
63
60
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAKL,eAAe,IAAI,kBAAkB,EACtC,MAAM,mBAAmB,CAAC;AAuF3B,UAAU,eACR,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,EAC9D,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAClD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,SAAS,CAAC;CACnD;AAED,QAAA,MAAM,UAAU;gDAIb,eAAe,GAAG,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAKL,eAAe,IAAI,kBAAkB,EACtC,MAAM,mBAAmB,CAAC;AAuF3B,UAAU,eACR,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,EAC9D,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAClD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,SAAS,CAAC;CACnD;AAED,QAAA,MAAM,UAAU;gDAIb,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD/B,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAaF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import a from"prop-types";import e from"classnames";import{makeStyles as i,Tooltip as n,IconButton as l}from"@material-ui/core";import{useState as s}from"react";var c=i((function(o){return{root:{color:o.palette.primary.text6,padding:6,"&:hover":{color:"#FFFFFF",backgroundColor:o.palette.background.b7,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&:active":{color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&.Mui-disabled":{pointerEvents:"all",opacity:.4,color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"& .MuiSvgIcon-root":{color:"inherit",fontSize:"inherit"}},colorPrimary:{color:o.palette.primary.main},sizeSmall:{fontSize:16,padding:7},sizeLarge:{"&.MuiButtonBase-root":{padding:8}},contained:{backgroundColor:o.palette.background.b9},containedDisabled:{"&.MuiButtonBase-root":{backgroundColor:o.palette.background.b9}},transparent:{color:o.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.2)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},transparentDisabled:{"&.MuiButtonBase-root":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},tooltipPopper:{"& .MuiTooltip-tooltip":{backgroundColor:function(t){return"transparent"===t.variant?"rgba(255, 255, 255, 0.2)":o.palette.background.b9}}},active:{"&.MuiButtonBase-root":{color:o.palette.primary.text1,backgroundColor:o.palette.background.b9,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main},"&.transparent":{color:o.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.2)"}}}}})),p=function(a){var i,p,d,u,m,b=a.tooltipProps,g=void 0===b?{title:"",classes:{}}:b,v=a.isActive,y=o(a,["tooltipProps","isActive"]),f=y.size,F=y.variant,P=y.classes,k=void 0===P?{}:P,B=y["data-testid"],z=c({variant:F}),M=s(!1),C=M[0],h=M[1],S=t(t({},k),{root:e(k.root,z.root,(i={},i[z.sizeLarge]="large"===f,i[z.contained]="contained"===F,i[z.transparent]="transparent"===F,i)),disabled:e(k.disabled,(p={},p[z.containedDisabled]="contained"===F,p[z.transparentDisabled]="transparent"===F,p)),colorPrimary:e(k.colorPrimary,z.colorPrimary),sizeSmall:e(k.sizeSmall,z.sizeSmall)});return g.title?r(n,t({open:C},g,{classes:t(t({},g.classes),{popper:e(z.tooltipPopper,null===(m=g.classes)||void 0===m?void 0:m.popper)})},{children:r(l,t({"data-testid":"".concat(B,"_").concat(g.title),classes:S,className:e((d={},d[z.active]=v,d),F),onPointerOver:function(){return h(!0)},onPointerOut:function(){return h(!1)}},y))})):r(l,t({"data-testid":B,classes:S,className:e((u={},u[z.active]=v,u),F)},y))},d={isActive:a.bool,size:a.oneOf(["small","medium","large"]),variant:a.oneOf(["default","contained","transparent"]),tooltipProps:a.shape({title:a.node,classes:a.shape({popper:a.string})}),classes:a.shape({root:a.string,disabled:a.string,colorPrimary:a.string,sizeSmall:a.string}),disabled:a.bool,"data-testid":a.string
|
|
1
|
+
import{__rest as o,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import a from"prop-types";import e from"classnames";import{makeStyles as i,Tooltip as n,IconButton as l}from"@material-ui/core";import{useState as s}from"react";var c=i((function(o){return{root:{color:o.palette.primary.text6,padding:6,"&:hover":{color:"#FFFFFF",backgroundColor:o.palette.background.b7,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&:active":{color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&.Mui-disabled":{pointerEvents:"all",opacity:.4,color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"& .MuiSvgIcon-root":{color:"inherit",fontSize:"inherit"}},colorPrimary:{color:o.palette.primary.main},sizeSmall:{fontSize:16,padding:7},sizeLarge:{"&.MuiButtonBase-root":{padding:8}},contained:{backgroundColor:o.palette.background.b9},containedDisabled:{"&.MuiButtonBase-root":{backgroundColor:o.palette.background.b9}},transparent:{color:o.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.2)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},transparentDisabled:{"&.MuiButtonBase-root":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},tooltipPopper:{"& .MuiTooltip-tooltip":{backgroundColor:function(t){return"transparent"===t.variant?"rgba(255, 255, 255, 0.2)":o.palette.background.b9}}},active:{"&.MuiButtonBase-root":{color:o.palette.primary.text1,backgroundColor:o.palette.background.b9,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main},"&.transparent":{color:o.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.2)"}}}}})),p=function(a){var i,p,d,u,m,b=a.tooltipProps,g=void 0===b?{title:"",classes:{}}:b,v=a.isActive,y=o(a,["tooltipProps","isActive"]),f=y.size,F=y.variant,P=y.classes,k=void 0===P?{}:P,B=y["data-testid"],z=c({variant:F}),M=s(!1),C=M[0],h=M[1],S=t(t({},k),{root:e(k.root,z.root,(i={},i[z.sizeLarge]="large"===f,i[z.contained]="contained"===F,i[z.transparent]="transparent"===F,i)),disabled:e(k.disabled,(p={},p[z.containedDisabled]="contained"===F,p[z.transparentDisabled]="transparent"===F,p)),colorPrimary:e(k.colorPrimary,z.colorPrimary),sizeSmall:e(k.sizeSmall,z.sizeSmall)});return g.title?r(n,t({open:C},g,{classes:t(t({},g.classes),{popper:e(z.tooltipPopper,null===(m=g.classes)||void 0===m?void 0:m.popper)})},{children:r(l,t({"data-testid":"".concat(B,"_").concat(g.title),classes:S,className:e((d={},d[z.active]=v,d),F),onPointerOver:function(){return h(!0)},onPointerOut:function(){return h(!1)}},y))})):r(l,t({"data-testid":B,classes:S,className:e((u={},u[z.active]=v,u),F)},y))},d={isActive:a.bool,size:a.oneOf(["small","medium","large"]),variant:a.oneOf(["default","contained","transparent"]),tooltipProps:a.shape({title:a.node,classes:a.shape({popper:a.string})}),classes:a.shape({root:a.string,disabled:a.string,colorPrimary:a.string,sizeSmall:a.string}),disabled:a.bool,"data-testid":a.string};p.propTypes=d,p.defaultProps={isActive:!1,size:"medium",variant:"default",tooltipProps:{title:""},disabled:!1,"data-testid":"IconButton"};export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MiddleTruncatedText.d.ts","sourceRoot":"","sources":["../../../src/components/MiddleTruncatedText/MiddleTruncatedText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,EAAE,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MiddleTruncatedText.d.ts","sourceRoot":"","sources":["../../../src/components/MiddleTruncatedText/MiddleTruncatedText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,EAAE,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAgB3F,aAAK,KAAK,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,GAAG;IAC/E,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,KAAK,CAkFzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{useRef as n,useState as o,useEffect as i}from"react";import{makeStyles as
|
|
1
|
+
import{__rest as t,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{useRef as n,useState as o,useEffect as i}from"react";import{debounce as c}from"lodash";import{makeStyles as u,Tooltip as l}from"@material-ui/core";import s from"classnames";import{truncateInTheMiddle as a}from"../../utils/formatting.js";var d=u({root:{opacity:0,overflow:"visible",whiteSpace:"nowrap",textOverflow:"ellipsis"}}),m=function(u){var m=u.children,v=u.className,p=u.showTooltip,f=void 0===p||p,h=u.customTooltipTitle,T=void 0===h?"":h,g=t(u,["children","className","showTooltip","customTooltipTitle"]),w=n(),b=n(),y=n(),S=o({isTruncated:!1,content:m}),x=S[0],j=S[1],M=n(0),N=n(0),R=d();i((function(){w.current&&b.current&&m&&(y.current&&y.current.unobserve(w.current),y.current=new ResizeObserver(c((function(t){var r,e,n,o=t[0].contentRect.width,i=null===(r=b.current)||void 0===r?void 0:r.getBoundingClientRect().width,c=null===(e=b.current)||void 0===e?void 0:e.innerHTML;M.current=Math.max(i,M.current);var u=N.current<o,l=Math.abs(o-M.current)<=2;if(t[0].target.scrollWidth<=t[0].target.clientWidth&&!u||l)(null===(n=w.current)||void 0===n?void 0:n.style)&&(w.current.style.opacity="1");else{var s=a(m.toString(),o,M.current);o&&M.current&&M.current!==o&&(s!==c&&j({content:s,isTruncated:m.toString()!==s}),m.toString()===s&&j({content:m.toString(),isTruncated:!1}),N.current=o),w.current.style.opacity="1"}}))),y.current.observe(w.current))}),[x.content,m,w.current,b.current]);var O=e("div",r({className:s(R.root,v),ref:w},g,{children:e("span",r({ref:b},{children:x.content}))}));return f&&x.isTruncated?e(l,r({title:T||m},{children:O})):O};export{m as MiddleTruncatedText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/CorvaModal.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAUtD,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,yBAAyB,EACzB,iBAAyB,EACzB,QAA2B,EAC3B,QAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,EAClB,OAAc,EACd,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,qBAAqB,EACrB,KAAK,EACL,IAAI,EACJ,aAAa,EAAE,SAAwB,EACvC,GAAG,UAAU,EACd,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"CorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/CorvaModal.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAUtD,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,yBAAyB,EACzB,iBAAyB,EACzB,QAA2B,EAC3B,QAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,EAClB,OAAc,EACd,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,qBAAqB,EACrB,KAAK,EACL,IAAI,EACJ,aAAa,EAAE,SAAwB,EACvC,GAAG,UAAU,EACd,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAoE1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s,jsxs as
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s,jsxs as t}from"react/jsx-runtime";import i from"classnames";import{noop as a}from"lodash";import{Modal as l}from"@material-ui/core";import{CloseSmallIcon as n}from"../../icons/index.js";import{isMobileDetected as m,isNativeDetected as r}from"../../utils/mobileDetect.js";import c from"../IconButton/index.js";import d from"./CorvaModal.css.js";var C={filters:"Filters",settings:"Settings"};function N(N){var p,v=N.actions,f=N.actionsClassName,h=N.children,b=N.contentClassName,u=N.contentContainerClassName,M=N.isCloseIconHidden,j=void 0!==M&&M,x=N.isMobile,I=void 0===x?m:x,y=N.isNative,k=void 0===y?r:y,z=N.modalTitleClassName,F=N.closeIconClassName,T=N.onClose,g=void 0===T?a:T,A=N.open,B=N.rootClassName,H=N.size,_=N.stickyFooterClassName,D=N.title,P=N.type,S=N["data-testid"],W=void 0===S?"CorvaModal":S,q=o(N,["actions","actionsClassName","children","contentClassName","contentContainerClassName","isCloseIconHidden","isMobile","isNative","modalTitleClassName","closeIconClassName","onClose","open","rootClassName","size","stickyFooterClassName","title","type","data-testid"]),w=k||I,E=D||C[P];return s(l,e({open:A,onClose:g,className:i(!w&&"c-modal",d.modalWrapper,B)},q,{children:t("div",e({className:i((p={},p[d.modalContainer]=!0,p[d.modalContainerMobile]=w,p[d[H]]=!0,p[u]=!0,p))},{children:[E&&t("div",e({className:i(d.title,w&&d.titleMobile,z)},{children:[s("div",e({className:i(d.titleText)},{children:E})),(!j||P)&&s(c,e({className:F,tooltipProps:{title:"Close"},onClick:g,"data-testid":"".concat(W,"_closeButton")},{children:s(n,{size:24})}))]})),h&&s("div",e({className:i(d.modalContent,w&&d.modalContentMobile,b)},{children:h})),v&&s("div",e({className:i(d.modalActions,w&&d.modalActionsMobile,_,f)},{children:v}))]}))}))}export{N as CorvaModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/Toast.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAYvC,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAU7C,UAAU,UAAU;IAClB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,wCAAyC,UAAU,KAAG,
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/Toast.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAYvC,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAU7C,UAAU,UAAU;IAClB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,wCAAyC,UAAU,KAAG,WA4HvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useEffect as a,cloneElement as s}from"react";import n from"classnames";import{noop as c}from"lodash";import{Grow as r,SnackbarContent as l,Tooltip as m,Typography as d}from"@material-ui/core";import f from"../IconButton/index.js";import{NOTIFICATION_VARIANTS as p}from"../../constants/notifications.js";import{useStyles as u}from"./Toast.styles.js";import{CheckOneIcon as v,CautionIcon as h,AttentionIcon as C,InfoIcon as N,PuzzleIcon as b,CloseSmallIcon as g}from"../../icons/index.js";var k,j="NotificationPopup",
|
|
1
|
+
import{__rest as t,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useEffect as a,cloneElement as s}from"react";import n from"classnames";import{noop as c}from"lodash";import{Grow as r,SnackbarContent as l,Tooltip as m,Typography as d}from"@material-ui/core";import f from"../IconButton/index.js";import{NOTIFICATION_VARIANTS as p}from"../../constants/notifications.js";import{useStyles as u}from"./Toast.styles.js";import{CheckOneIcon as v,CautionIcon as h,AttentionIcon as C,InfoIcon as N,PuzzleIcon as b,CloseSmallIcon as g}from"../../icons/index.js";var k,j="NotificationPopup",_=((k={})[p.success]=v,k[p.warning]=h,k[p.error]=C,k[p.info]=N,k[p.neutral]=b,k),T=function(v){var h,C=v.onDismissClick,N=v.toast,b=t(v,["onDismissClick","toast"]),k=N.alertLevel,T=N.autoHideDuration,x=void 0===T?3e3:T,z=N.content,B=N.hideIcon,D=N.icon,I=N.id,P=N.onClick,w=void 0===P?c:P,y=N.onClose,L=void 0===y?c:y,W=N.timestamp,H=N.title,q=N.tooltipProps,A=N.variant,E=void 0===A?"info":A;a((function(){if(x!==1/0){var t=setTimeout((function(){return C(I)}),x);return function(){return clearTimeout(t)}}}),[]);var F=u(),G=_[E];return e(r,i({appear:!0,in:!0},{children:e(l,i({classes:{root:n(F.main,!k&&F[E],k&&F.alertNotification,k&&F["alertLevels-".concat(k)]),action:F.actionContainer,message:F.messageContainer},"aria-describedby":"client-snackbar",message:e(m,i({},q,{title:z,classes:{tooltip:F.tooltip},placement:"bottom"},{children:o("div",i({id:"client-snackbar",className:F.messageWrapper,onClick:w,"data-testid":"".concat(j,"_status_").concat(p[E])},{children:[!B&&e("div",i({className:F.iconWrapper},{children:D?s(D,{className:F.icon,nativeColor:"#fff"}):e(G,{fill:E===p.warning?"#000":"#fff",size:16,className:F.icon})})),o("div",i({className:F.message},{children:[o("div",i({className:F.messageTop},{children:[H&&e(d,i({"data-testid":"".concat(j,"_title"),variant:"subtitle2",className:n(F.title,(h={},h[F.alertTitle]=k,h))},{children:H})),W&&e(d,i({className:n(F.timestamp,!k&&F[E])},{children:W}))]})),e("div",i({className:n(F.messageContent,!k&&F[E])},{children:e(d,i({"data-testid":"".concat(j,"_content"),className:n(k?F.alertContent:F.content)},{children:z}))}))]}))]}))})),action:[e(f,i({"data-testid":"".concat(j,"_closeButton"),"aria-label":"Close",color:"inherit",onClick:function(){L(),C(I)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:F.tooltip}},className:F.closeIconButton},{children:e(g,{size:24,fill:k?"#000":"#fff"})}),"close")]},b))}))};export{j as PAGE_NAME,T as Toast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{main:{width:443,height:48,maxWidth:"85vw",display:"flex",flexWrap:"nowrap",alignItems:"center",padding:0,marginBottom:e.spacing(2),boxShadow:"0px 8px 24px 0px rgba(0, 0, 0, 0.24)"},success:{backgroundColor:e.palette.success.main},error:{backgroundColor:e.palette.error.main},warning:{backgroundColor:e.palette.warning.main,"& p":{color:e.palette.background.b7}},info:{backgroundColor:e.palette.info.main},neutral:{backgroundColor:e.palette.background.b9,"& .MuiSvgIcon-root":{color:e.palette.primary.text7}},title:{color:e.palette.grey[600],fontWeight:400},alertTitle:{color:e.palette.primary.contrastText},content:{fontSize:"14px",lineHeight:"16px",color:e.palette.primary.contrastText,fontWeight:
|
|
1
|
+
import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{main:{width:443,height:48,maxWidth:"85vw",display:"flex",flexWrap:"nowrap",alignItems:"center",padding:0,marginBottom:e.spacing(2),boxShadow:"0px 8px 24px 0px rgba(0, 0, 0, 0.24)"},success:{backgroundColor:e.palette.success.main},error:{backgroundColor:e.palette.error.main},warning:{backgroundColor:e.palette.warning.main,"& p":{color:e.palette.background.b7}},info:{backgroundColor:e.palette.info.main},neutral:{backgroundColor:e.palette.background.b9,"& .MuiSvgIcon-root":{color:e.palette.primary.text7}},title:{color:e.palette.grey[600],fontWeight:400},alertTitle:{color:e.palette.primary.contrastText},content:{fontSize:"14px",lineHeight:"16px",color:e.palette.primary.contrastText,fontWeight:400,whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":2,height:"fit-content",display:"-webkit-box",flexDirection:"column",justifyContent:"center"},alertContent:{color:"#CCCCCC"},iconWrapper:{display:"flex",alignSelf:"center",alignItems:"center",height:35,padding:"0px 10px 0 18px"},icon:{transform:"scale(1.2)"},closeIconButton:{"&.MuiButtonBase-root":{"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.4)"}}},messageContainer:{overflowX:"hidden",flex:1},messageWrapper:{display:"flex"},message:{display:"flex",flex:1,alignItems:"center",minHeight:35,height:"100%",overflowY:"hidden",justifyContent:"center",flexDirection:"column"},messageTop:{display:"flex",justifyContent:"space-between",overflowX:"hidden",textOverflow:"ellipsis",width:"100%"},messageContent:{overflowX:"hidden",textOverflow:"ellipsis",width:"100%"},timestamp:{marginLeft:10,alignSelf:"flex-end"},actionContainer:{paddingLeft:"8px",marginRight:"16px"},alertNotification:{paddingLeft:12,backgroundColor:e.palette.background.b9,height:"unset"},"alertLevels-info":{borderLeft:"15px solid rgb(119, 195, 241)"},"alertLevels-warning":{borderLeft:"15px solid rgb(242, 192, 70)"},"alertLevels-critical":{borderLeft:"15px solid rgb(237, 70, 48)"},tooltip:{marginTop:8,color:e.palette.primary.contrastText}}}));export{t as useStyles};
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare type OffsetWellButtonProps = PropTypes.InferProps<typeof offsetWellButtonPropTypes>;
|
|
4
4
|
declare const OffsetWellButton: {
|
|
5
|
-
({ onClick, wells, disabled, expanded, onExpand, offsetWellsLimited, isTooltipDisabled, }: OffsetWellButtonProps): JSX.Element;
|
|
5
|
+
({ onClick, wells, label, disabled, expanded, onExpand, offsetWellsLimited, isTooltipDisabled, }: OffsetWellButtonProps): JSX.Element;
|
|
6
6
|
propTypes: {
|
|
7
7
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
8
|
wells: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
9
|
id: PropTypes.Requireable<number>;
|
|
10
10
|
title: PropTypes.Requireable<string>;
|
|
11
11
|
}>[]>;
|
|
12
|
+
label: PropTypes.Requireable<string>;
|
|
12
13
|
disabled: PropTypes.Requireable<boolean>;
|
|
13
14
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
15
|
expanded: PropTypes.Requireable<boolean>;
|
|
@@ -22,6 +23,7 @@ declare const OffsetWellButton: {
|
|
|
22
23
|
disabled: boolean;
|
|
23
24
|
offsetWellsLimited: boolean;
|
|
24
25
|
isTooltipDisabled: boolean;
|
|
26
|
+
label: string;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
declare const offsetWellButtonPropTypes: {
|
|
@@ -30,6 +32,7 @@ declare const offsetWellButtonPropTypes: {
|
|
|
30
32
|
id: PropTypes.Requireable<number>;
|
|
31
33
|
title: PropTypes.Requireable<string>;
|
|
32
34
|
}>[]>;
|
|
35
|
+
label: PropTypes.Requireable<string>;
|
|
33
36
|
disabled: PropTypes.Requireable<boolean>;
|
|
34
37
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
38
|
expanded: PropTypes.Requireable<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAqDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAqDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB;sGASnB,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;CA4ErC,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;CAc9B,CAAC;AAcF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as i}from"react";import n from"prop-types";import a from"classnames";import{makeStyles as r,Typography as l,Tooltip as s}from"@material-ui/core";import{Info as c}from"@material-ui/icons";import d from"../IconButton/index.js";import{WriteIcon as p,UpIcon as m,DownIcon as f}from"../../icons/index.js";var u=r((function(o){var e=o.palette;return{disabled:{opacity:.4,pointerEvents:"none"},offsetContainer:{cursor:"pointer",display:"flex",whiteSpace:"nowrap",flexWrap:"nowrap",alignItems:"center",width:"fit-content"},hoveredContainer:{backgroundColor:"rgba(3, 188, 212, 0.16)"},offsetText:{color:e.primary.text6,fontSize:12,paddingRight:4,"&:hover":{color:e.primary.contrastText}},buttons:{display:"flex",alignItems:"center"},isActive:{color:e.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}},infoIcon:{marginRight:"8px",fontSize:"20px",color:e.info.light},infoTooltip:{maxWidth:"264px"}}})),b=function(n){var r=n.onClick,b=n.wells,x=n.label,h=n.disabled,g=n.expanded,v=n.onExpand,y=n.offsetWellsLimited,C=n.isTooltipDisabled,T=i(!1),I=T[0],w=T[1],k=u(),E=b.length,N=!(!E||!v),W=e("div",o({className:a(k.offsetContainer,h&&k.disabled),onClick:r,onMouseMove:function(o){var e=o.target,t=e.parentNode;e.getAttribute("data-icon")||t.getAttribute("data-icon")?w(!1):w(!0)},onMouseLeave:function(){w(!1)}},{children:[e(l,o({className:a(k.offsetText,I&&k.isActive)},{children:[x," (",E,")"]})),t(d,o({className:a(k.primaryIcon,I&&k.hoveredContainer),color:"primary",size:"medium"},{children:t(p,{size:24})}))]}));return e("div",o({className:k.buttons},{children:[y&&t(s,o({title:"".concat(x," list wasn't populated completely due to technical limitations of the app."),classes:{tooltip:k.infoTooltip}},{children:t(c,{className:k.infoIcon})})),t(s,o({title:"Edit ".concat(x),placement:"bottom"},{children:W})),N&&t(d,o({tooltipProps:!C&&{title:g?"Collapse ".concat(x):"Expand ".concat(x)},onClick:function(o){o.stopPropagation(),v()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(g?m:f,{"data-icon":"expandIcon"})}))]}))},x={onClick:n.func.isRequired,wells:n.arrayOf(n.shape({id:n.number,title:n.string})),label:n.string,disabled:n.bool,onExpand:n.func,expanded:n.bool,offsetWellsLimited:n.bool,isTooltipDisabled:n.bool};b.propTypes=x,b.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1,offsetWellsLimited:!1,isTooltipDisabled:!1,label:"Offset Wells"};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadOffsetsPickerV2.d.ts","sourceRoot":"","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js"],"names":[],"mappings":";AAyBA;;;;;;;
|
|
1
|
+
{"version":3,"file":"PadOffsetsPickerV2.d.ts","sourceRoot":"","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js"],"names":[],"mappings":";AAyBA;;;;;;;gBAgIC"}
|